/* GLN 09 · Seen in infrared */

@font-face {
  font-family: "Chivo";
  src: url("fonts/chivo-latin-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Chivo Mono";
  src: url("fonts/chivo-mono-latin-var.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* metric-matched local fallbacks, so a late font doesn't shift the layout */
@font-face { font-family: "Chivo fb"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); size-adjust: 103%; ascent-override: 90%; descent-override: 23%; line-gap-override: 0%; }
@font-face { font-family: "Chivo Mono fb"; src: local("Consolas"), local("Menlo"), local("Courier New"); size-adjust: 104%; ascent-override: 88%; descent-override: 24%; line-gap-override: 0%; }

/* Chinese: Noto Sans SC (variable 300–600), subset to this page's Chinese strings; only fetched when the page is in Chinese */
@font-face { font-family: "GLN Sans SC"; src: url("fonts/noto-sans-sc-gln.woff2") format("woff2"); font-weight: 300 600; font-style: normal; font-display: swap; unicode-range: U+2E80-9FFF, U+3000-303F, U+FF00-FFEF, U+2014, U+2018-201D, U+2026, U+00B7; }
@font-face { font-family: "GLN SC fb"; src: local("PingFang SC"), local("Microsoft YaHei"), local("Hiragino Sans GB"), local("Source Han Sans SC"); size-adjust: 100%; }

:root {
  --ink: #07070A;
  --ink-2: #0F0F13;
  --paper: #EDEDEA;
  --mute: #A4A49F;
  --line: rgba(237, 237, 234, 0.16);
  --line-2: rgba(237, 237, 234, 0.34);
  --cool: #62D5E8;
  --ib0: #140B34; --ib1: #6A176E; --ib2: #C73E4C; --ib3: #F98C0A; --ib4: #FCFFA4;
  --ironbow: linear-gradient(to top, var(--ib0), var(--ib1) 25%, var(--ib2) 50%, var(--ib3) 75%, var(--ib4));

  /* 1px up to 1440, growing to 1.5px at 2560 */
  --u: clamp(1px, calc(1px + (100vw - 1440px) / 2240), 1.5px);
  --pad: clamp(16px, 4vw, calc(var(--u) * 56));
  --gap: clamp(14px, 2vw, calc(var(--u) * 28));
  --head-h: max(60px, calc(var(--u) * 76));
  --cs: clamp(12px, calc(var(--u) * 22), 34px);
  --bw: max(1.5px, calc(var(--u) * 1.5));

  --f-text: "Chivo", "Chivo fb", system-ui, sans-serif;
  --f-mono: "Chivo Mono", "Chivo Mono fb", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.16, 0.84, 0.24, 1);
  --ease-io: cubic-bezier(0.65, 0.05, 0.25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  /* running text grows 1.25x between 1440 and 2560 */
  font-size: clamp(16px, calc(16px + (100vw - 1440px) * 4 / 1120), 20px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ink);
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
}
img, svg, canvas { display: block; max-width: 100%; }
.i18n-wait body { visibility: hidden; }
picture { display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, figure, ol, dl, dd { margin: 0; }
ol { padding: 0; list-style: none; }
b { font-weight: inherit; }

:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 10px 14px; background: var(--paper); color: var(--ink);
  transform: translateY(-160%); text-decoration: none;
}
.skip:focus { transform: none; }

.wrap { padding-inline: var(--pad); }

.lead {
  font-size: clamp(1.125rem, 1.3vw, 1.3rem);
  line-height: 1.5;
  color: var(--paper);
  max-width: 36em;
}

h2 {
  font-weight: 300;
  font-size: clamp(2.125rem, 4.6vw, calc(var(--u) * 68));
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 16ch;
  text-wrap: balance;
}
h3 {
  font-weight: 500;
  font-size: clamp(1.1875rem, 1.45vw, calc(var(--u) * 24));
  line-height: 1.25;
  letter-spacing: -0.012em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; height: max(48px, calc(var(--u) * 54));
  padding: 0 calc(max(18px, var(--u) * 24));
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--paper); border-radius: 2px;
  font-weight: 500; font-size: 1rem; letter-spacing: 0;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: #fff; border-color: #fff; }
.btn--ghost { background: transparent; color: var(--paper); border-color: var(--line-2); }
.btn--ghost:hover { background: rgba(237, 237, 234, .08); border-color: var(--paper); }
.btn--small { min-height: 44px; height: max(44px, calc(var(--u) * 46)); font-size: .9375rem; }
.btn--wide { width: 100%; }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: var(--head-h);
  display: flex; align-items: center; gap: calc(var(--u) * 28);
  padding-inline: var(--pad);
  transition: background-color .35s, backdrop-filter .35s;
}
.top.is-solid { background: rgba(7, 7, 10, .84); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.wordmark {
  font-weight: 800; letter-spacing: .02em;
  font-size: max(22px, calc(var(--u) * 26)); line-height: 1;
  text-decoration: none; color: var(--paper);
  padding: 10px 0;
}
.top-sub { color: var(--mute); font-size: .875rem; margin-left: calc(var(--u) * -12); }
.top-nav { margin-left: auto; display: flex; gap: calc(var(--u) * 30); }
.top-nav a {
  text-decoration: none; color: var(--mute); font-size: .9375rem;
  padding: 12px 0; transition: color .2s;
}
.top-nav a:hover, .top-nav a[aria-current="true"] { color: var(--paper); }
.menu-btn { display: none; }

.menu {
  position: fixed; inset: 0; z-index: 39; background: var(--ink);
  padding: calc(var(--head-h) + 24px) var(--pad) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  font-size: 2rem; font-weight: 300; letter-spacing: -.02em; text-decoration: none;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.menu-foot { color: var(--mute); font-size: .9375rem; }

@media (max-width: 1100px) {
  .top-nav, .top-sub { display: none; }
  .top-cta { margin-left: auto; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; min-width: 64px; padding: 0 14px;
    background: transparent; border: 1px solid var(--line-2); border-radius: 2px; cursor: pointer;
  }
}
@media (max-width: 380px) { .top-cta { padding: 0 12px; } }

/* ---------- HUD kit ---------- */
.corners { position: absolute; inset: 0; pointer-events: none; }
.corners i { position: absolute; width: var(--cs); height: var(--cs); border: 0 solid rgba(237, 237, 234, .92); }
.corners i:nth-child(1) { top: 0; left: 0; border-top-width: var(--bw); border-left-width: var(--bw); }
.corners i:nth-child(2) { top: 0; right: 0; border-top-width: var(--bw); border-right-width: var(--bw); }
.corners i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: var(--bw); border-left-width: var(--bw); }
.corners i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: var(--bw); border-right-width: var(--bw); }

.hud { position: absolute; inset: 0; z-index: 2; pointer-events: none; font-family: var(--f-mono); font-size: .8125rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.osd b, .scale span, .spot b, [data-iso], [data-spot] { font-variant-numeric: tabular-nums; }

.scale {
  position: absolute; right: calc(var(--u) * 14); top: 50%;
  height: min(46%, calc(var(--u) * 360)); transform: translateY(-50%);
  display: grid; grid-template-rows: auto 1fr auto auto; justify-items: end; row-gap: 6px;
  color: var(--paper);
}
.scale-bar { position: relative; width: max(7px, calc(var(--u) * 9)); background: var(--ironbow); box-shadow: 0 0 0 1px rgba(7, 7, 10, .5); }
.scale-unit { color: var(--mute); }
.scale > span:not(.scale-bar) { text-shadow: 0 0 6px rgba(7, 7, 10, .9); }
.scale-mark {
  position: absolute; right: calc(100% + 4px); bottom: calc(var(--t, .5) * 100%);
  width: 0; height: 0; transform: translateY(50%);
  border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent var(--paper);
  opacity: 0; transition: opacity .4s;
}
.scale-mark.on { opacity: 1; }

.vf-tag {
  position: absolute; left: calc(var(--u) * 16 + 8px); top: calc(var(--u) * 14 + 6px);
  padding: 3px 7px; background: rgba(7, 7, 10, .8); color: var(--paper);
  max-width: calc(100% - 90px);
}
.osd--frame {
  position: absolute; left: calc(var(--u) * 16 + 8px); bottom: calc(var(--u) * 14 + 6px);
  padding: 3px 7px; background: rgba(7, 7, 10, .8);
}

.spot {
  position: absolute; left: calc(var(--x, .5) * 100%); top: calc(var(--y, .5) * 100%);
  display: flex; align-items: center; gap: 6px;
  transform: translate(-6px, -50%);
  opacity: 0; transition: opacity .35s;
  white-space: nowrap;
}
.spot.on { opacity: 1; }
.spot i { width: 0; height: 0; border-style: solid; flex: none; }
.spot--cold i { border-width: 9px 6px 0 6px; border-color: var(--cool) transparent transparent transparent; }
.spot--hot i, .spot--face i { border-width: 0 6px 9px 6px; border-color: transparent transparent var(--paper) transparent; }
.spot b { padding: 2px 6px; background: rgba(7, 7, 10, .82); }
.spot--cold b { color: var(--cool); }

.vf-screen { position: relative; overflow: hidden; background: #111; }
.vf-screen picture, .vf-screen img { width: 100%; height: 100%; }
.vf-screen img { object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(.72); }
[data-stage] { position: relative; isolation: isolate; }
[data-stage] > canvas.gl { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .45s ease-out; }
[data-stage].gl-live > canvas.gl { opacity: 1; }

/* ---------- hero ---------- */
.hero {
  height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; background: var(--ink);
  cursor: crosshair; touch-action: pan-y;
  --inset: max(12px, calc(var(--u) * 22));
}
.hero-screen { position: absolute; inset: 0; background: var(--ink); }
.hero-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(7, 7, 10, .5), rgba(7, 7, 10, 0) 16%), radial-gradient(ellipse 85% 75% at 0% 100%, rgba(7, 7, 10, .5), rgba(7, 7, 10, 0) 72%); }
.hero-pic, .hero-pic img { width: 100%; height: 100%; }
.hero-pic img { object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.06) brightness(.5); }
.hud--hero { inset: var(--inset); top: calc(var(--head-h) * .2 + var(--inset) * .5); }
.hud--hero .scale { right: calc(var(--u) * 20); height: min(44%, calc(var(--u) * 420)); }
.osd--hero {
  position: absolute; right: calc(var(--u) * 20); bottom: calc(var(--u) * 20 + 4px);
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  color: var(--paper); text-shadow: 0 0 8px rgba(7, 7, 10, .9);
}
.osd--hero span { color: var(--mute); }
.osd--hero b { color: var(--paper); }

.hero-copy {
  position: absolute; z-index: 4;
  left: calc(var(--pad) + var(--u) * 12); right: var(--pad);
  bottom: calc(var(--u) * 84 + 24px);
  pointer-events: none;
}
.hero-copy a { pointer-events: auto; }
.hero-h {
  font-weight: 300;
  font-size: clamp(2.875rem, 7.4vw, calc(var(--u) * 112));
  line-height: .96;
  letter-spacing: -0.04em;
  margin-left: -0.05em;
  text-shadow: 0 0 40px rgba(7, 7, 10, .45);
}
.hero-h .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-h .ln > span { display: inline-block; }
.hero-deck {
  margin-top: calc(var(--u) * 28 + 6px);
  max-width: 34em;
  font-size: clamp(1.0625rem, 1.25vw, 1.25rem);
  line-height: 1.5; color: var(--paper);
  text-shadow: 0 0 18px rgba(7, 7, 10, .7);
}
.hero-actions { margin-top: calc(var(--u) * 30 + 6px); display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note {
  position: absolute; z-index: 4; left: calc(var(--pad) + var(--u) * 12); bottom: calc(var(--u) * 26 + 12px);
  font-family: var(--f-mono); font-size: .8125rem; color: var(--mute);
}

/* the lens */
.lens {
  --r: 150px;
  position: absolute; left: 0; top: 0; z-index: 3;
  width: calc(var(--r) * 2); height: calc(var(--r) * 2);
  margin: calc(var(--r) * -1) 0 0 calc(var(--r) * -1);
  padding: 0; border: 0; background: none; border-radius: 50%;
  color: var(--paper); cursor: crosshair; touch-action: none;
  transform: translate3d(var(--lx, 60vw), var(--ly, 40vh), 0);
  visibility: hidden; opacity: 0;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.lens.on { visibility: visible; opacity: 1; transition: opacity .5s ease-out; }
.lens:focus-visible { outline: none; }
.lens:focus-visible .lens-ring { box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--paper); }
.lens-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: var(--bw) solid rgba(237, 237, 234, .92);
  box-shadow: 0 0 0 1px rgba(7, 7, 10, .3);
}
.lens-ring::before, .lens-ring::after {
  content: ""; position: absolute; background: rgba(237, 237, 234, .92);
}
.lens-ring::before { left: 50%; top: -1px; width: var(--bw); height: 12px; margin-left: calc(var(--bw) / -2); box-shadow: 0 calc(var(--r) * 2 - 10px) 0 rgba(237, 237, 234, .92); }
.lens-ring::after { top: 50%; left: -1px; height: var(--bw); width: 12px; margin-top: calc(var(--bw) / -2); box-shadow: calc(var(--r) * 2 - 10px) 0 0 rgba(237, 237, 234, .92); }
.lens-cross {
  position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  background:
    linear-gradient(var(--paper), var(--paper)) 0 50% / 11px var(--bw) no-repeat,
    linear-gradient(var(--paper), var(--paper)) 100% 50% / 11px var(--bw) no-repeat,
    linear-gradient(var(--paper), var(--paper)) 50% 0 / var(--bw) 11px no-repeat,
    linear-gradient(var(--paper), var(--paper)) 50% 100% / var(--bw) 11px no-repeat;
}
.lens-read {
  position: absolute; left: calc(var(--r) * 1.707 + 6px); top: calc(var(--r) * .293 - 6px);
  transform: translateY(-100%);
  white-space: nowrap; font-family: var(--f-mono); font-size: .875rem;
  padding: 3px 8px; background: rgba(7, 7, 10, .8); color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.lens-sp { color: var(--mute); }
.lens.flip-x .lens-read { left: auto; right: calc(var(--r) * 1.707 + 6px); }
.lens.flip-y .lens-read { top: calc(var(--r) * 1.707 + 6px); transform: none; }

/* ---------- intro (CSS, no library needed) ---------- */
@keyframes scan-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes scan-line { 0% { transform: translateY(0); opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(100svh); opacity: 0; } }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes corner { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bar-grow { from { transform: scaleY(0); } to { transform: none; } }

.js .hero-pic { animation: scan-in .58s cubic-bezier(.4, .05, .25, 1) .04s both; }
.js .hero::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 5; pointer-events: none;
  background: rgba(237, 237, 234, .8); box-shadow: 0 0 18px 2px rgba(237, 237, 234, .35);
  opacity: 0; animation: scan-line .58s cubic-bezier(.4, .05, .25, 1) .04s both;
}
.js .hero-h .ln > span { transform: translateY(105%); }
.js.go .hero-h .ln > span { animation: line-up .9s var(--ease-out) .08s both; }
.js.go .hero-h .ln:nth-child(2) > span { animation-delay: .17s; }
.js .hero-deck, .js .hero-actions, .js .hero-note { opacity: 0; }
.js.go .hero-deck { animation: fade .7s ease-out .42s both; }
.js.go .hero-actions { animation: fade .7s ease-out .55s both; }
.js.go .hero-note { animation: fade .7s ease-out .7s both; }
.js .hud--hero .corners i { animation: corner .5s var(--ease-out) .12s both; }
.js .hud--hero .corners i:nth-child(1) { transform-origin: 0 0; }
.js .hud--hero .corners i:nth-child(2) { transform-origin: 100% 0; }
.js .hud--hero .corners i:nth-child(3) { transform-origin: 0 100%; }
.js .hud--hero .corners i:nth-child(4) { transform-origin: 100% 100%; }
.js .hud--hero .scale-bar { transform-origin: 50% 100%; animation: bar-grow .6s var(--ease-out) .3s both; }
.js .hud--hero .scale > span:not(.scale-bar), .js .osd--hero { animation: fade .4s ease-out .45s both; }

/* ---------- two rooms ---------- */
.rooms { padding-top: calc(var(--u) * 150 + 40px); }
.rooms-intro { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 20px; margin-bottom: calc(var(--u) * 40 + 20px); }
.rooms-intro h2 { grid-column: 1 / span 5; }
.rooms-intro .lead { grid-column: 7 / span 6; align-self: end; }

.rooms-stage { --reserve: calc(var(--head-h) + var(--u) * 330 + 40px); }
.rooms-grid {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(var(--gap) * 1.6);
  align-content: center;
  min-height: 100vh; min-height: 100svh;
  padding-top: calc(var(--head-h) + var(--u) * 16);
  padding-bottom: calc(var(--u) * 28 + 8px);
}
.rooms-meter {
  grid-column: 1 / -1; justify-self: center;
  font-family: var(--f-mono); font-size: .9375rem; color: var(--mute);
  margin-bottom: calc(var(--u) * 16 + 4px);
  font-variant-numeric: tabular-nums;
}
.rooms-meter b { color: var(--paper); display: inline-block; min-width: 2.6em; text-align: right; font-size: 1.25rem; }
.room { min-width: 0; }
.room .vf-screen { aspect-ratio: 16 / 10; max-height: calc(100svh - var(--reserve)); width: 100%; }
.room figcaption { display: grid; grid-template-columns: auto 1fr; column-gap: calc(var(--gap) * 1.2); align-items: baseline; margin-top: calc(var(--u) * 14 + 4px); }
.room h3 { grid-column: 1; }
.room-range { grid-column: 2; justify-self: end; font-family: var(--f-mono); font-size: .875rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.room-cap { grid-column: 1 / -1; margin-top: 8px; color: var(--mute); max-width: 38em; }
.rooms-foot { grid-column: 1 / -1; margin-top: calc(var(--u) * 20 + 8px); font-size: .8125rem; color: var(--mute); }

.hist { position: relative; display: flex; align-items: flex-end; gap: max(1px, calc(var(--u) * 2)); height: calc(var(--u) * 54 + 10px); margin-top: calc(var(--u) * 12 + 4px); padding-bottom: 18px; }
.hist:empty { display: none; }
.hist i { position: relative; flex: 1; height: calc(var(--h, 0) * var(--grow, 1) * 100%); min-height: 1px; background: var(--c); opacity: .95; transition: background-color .15s; }
.hist i.off { background: rgba(237, 237, 234, .14); }
.hist-axis { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; font-family: var(--f-mono); font-size: .75rem; color: var(--mute); }
.hist-axis span { position: absolute; top: 2px; transform: translateX(-50%); line-height: 1; }
.hist-axis span:first-child { transform: none; }
.hist-iso { position: absolute; top: -6px; bottom: 16px; width: 0; border-left: 1.5px solid var(--cool); left: calc(var(--iso, 0) * 100%); opacity: 0; transition: opacity .3s; }
.hist-iso.on { opacity: 1; }

/* ---------- the body ---------- */
.bodysec { padding-top: calc(var(--u) * 170 + 40px); }
.bodysec-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start; }
.bodysec-stage { grid-column: 1 / span 7; position: sticky; top: calc(var(--head-h) + var(--u) * 24); }
.bodysec-fig .vf-screen { aspect-ratio: 16 / 11; max-height: calc(100svh - var(--head-h) - var(--u) * 90); width: 100%; }
.bodysec-cap { margin-top: 10px; font-family: var(--f-mono); font-size: .8125rem; color: var(--mute); }
.spot--face b { font-size: .9375rem; }
.bodysec-copy { grid-column: 9 / span 4; padding-top: calc(var(--u) * 20); padding-bottom: calc(var(--u) * 160); display: flex; flex-direction: column; gap: calc(var(--u) * 26 + 6px); }
.bodysec-copy h2 { font-size: clamp(2rem, 3.6vw, calc(var(--u) * 58)); max-width: 13ch; }
.bodysec-copy > p:not(.lead) { color: var(--mute); max-width: 32em; }
.wien { font-family: var(--f-mono); font-size: .9375rem; color: var(--paper) !important; }

.planck { margin-top: calc(var(--u) * 8); }
.planck-wrap { position: relative; }
.planck svg { width: 100%; height: auto; overflow: visible; }
.planck-axis line, .planck-axis path { stroke: var(--line-2); stroke-width: 1; fill: none; }
.planck-skin { fill: none; stroke: var(--ib3); stroke-width: 2.2; }
.planck-panel { fill: none; stroke: var(--cool); stroke-width: 2.2; }
.planck-gap { fill: rgba(249, 140, 10, .16); stroke: none; }
.planck-peak { stroke: var(--paper); stroke-width: 1; stroke-dasharray: 3 4; }
.planck-ticks { position: relative; height: 18px; margin-top: 2px; font-family: var(--f-mono); font-size: .75rem; color: var(--mute); }
.planck-ticks span { position: absolute; transform: translateX(-50%); }
.planck-ticks .unit { right: 0; transform: none; }
.planck-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: .875rem; color: var(--mute); }
.lg { display: inline-flex; align-items: center; gap: 8px; }
.lg::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.lg--skin::before { background: var(--ib3); }
.lg--panel::before { background: var(--cool); }
.lg--gap::before { height: 10px; background: rgba(249, 140, 10, .3); }

/* ---------- how it works ---------- */
.how { padding-top: calc(var(--u) * 170 + 40px); }
.how-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start; }
.how-head { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; margin-bottom: calc(var(--u) * 56 + 16px); row-gap: 16px; }
.how-head h2 { grid-column: 1 / span 6; }
.how-head .lead { grid-column: 8 / span 5; align-self: end; }
.how-fig { grid-column: 1 / span 7; position: sticky; top: calc(var(--head-h) + var(--u) * 20); z-index: 2; background: var(--ink); }
.diagram { position: relative; padding: calc(var(--u) * 56 + 20px) calc(var(--u) * 20 + 6px) calc(var(--u) * 20 + 6px); border: 1px solid var(--line); background: var(--ink-2); }
.diagram-svg { width: 100%; height: auto; overflow: visible; }
.d-build rect, .d-build line { fill: none; stroke: rgba(237, 237, 234, .5); stroke-width: 1.5; }
.d-build .d-thin { stroke: rgba(237, 237, 234, .2); stroke-dasharray: 2 5; }
.d-unit { fill: rgba(237, 237, 234, .04); stroke: var(--paper); stroke-width: 1.5; }
.d-unit-screen { fill: var(--water); opacity: .7; }
.d-water { fill: none; stroke: var(--water); stroke-width: 3; stroke-linejoin: round; }
.d-return { opacity: .5; }
.d-fit { fill: var(--ink-2); stroke: var(--paper); stroke-width: 2; }
.d-panel { fill: var(--panel-fill); stroke: var(--paper); stroke-width: 1.5; }
.d-fins line { stroke: var(--water); stroke-width: 1.2; opacity: .7; }
.d-dim { fill: none; stroke: var(--mute); stroke-width: 1; }
.d-wave { fill: none; stroke: var(--water); stroke-width: 1.6; opacity: .85; }
.d-sofa { fill: none; stroke: rgba(237, 237, 234, .45); stroke-width: 1.5; }
.d-probe circle { fill: none; stroke: var(--paper); stroke-width: 1.5; }
.d-probe path { stroke: var(--paper); stroke-width: 1.5; }
.d-person { opacity: .95; }
.diagram { --water: var(--cool); --panel-fill: rgba(98, 213, 232, .16); --out-fill: rgba(249, 140, 10, .13); --air-fill: rgba(176, 52, 84, .2); }
.diagram[data-mode="heat"] { --water: var(--ib3); --panel-fill: rgba(249, 140, 10, .18); --out-fill: rgba(40, 22, 110, .45); --air-fill: rgba(199, 62, 76, .16); }
.d-water, .d-fins line, .d-wave, .d-unit-screen, .d-panel { transition: stroke .5s, fill .5s; }

.mode, .switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: 2px; }
.mode { position: absolute; left: calc(var(--u) * 20 + 6px); top: calc(var(--u) * 14 + 6px); z-index: 2; }
.mode button, .switch button {
  min-height: 44px; padding: 0 calc(max(14px, var(--u) * 18)); background: transparent; border: 0; cursor: pointer;
  color: var(--mute); font-size: .9375rem;
}
.mode button[aria-pressed="true"], .switch button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.mode button:focus-visible, .switch button:focus-visible { outline-offset: -4px; outline-color: var(--cool); }

.diagram-canvas { position: relative; }
.dl { position: absolute; inset: 0; pointer-events: none; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.dl-n, .strip-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: max(24px, calc(var(--u) * 26)); height: max(24px, calc(var(--u) * 26));
  font-size: .8125rem; line-height: 1; border: 1px solid var(--paper); background: var(--ink-2); color: var(--paper);
}
.dl-n { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); }
.dl-n.is-now, .strip-n { background: var(--paper); color: var(--ink); }
.dl-v {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  font-size: .8125rem; white-space: nowrap; padding: 2px 6px; background: rgba(15, 15, 19, .85); color: var(--mute);
}
.dl-v b { color: var(--paper); }
.strip { margin-top: calc(var(--u) * 16 + 4px); padding-top: calc(var(--u) * 14 + 4px); border-top: 1px solid var(--line); display: grid; gap: 10px; font-family: var(--f-mono); font-size: .875rem; font-variant-numeric: tabular-nums; }
.strip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px calc(var(--u) * 30 + 6px); }
.strip-row i { font-style: normal; color: var(--mute); margin-right: .45em; }
.strip-row b { color: var(--water); }
.diagram.anim .strip { min-height: calc(var(--u) * 26 + 34px); }
.diagram.anim .strip-row { display: none; }
.diagram.anim .strip-row.is-now { display: flex; animation: type .5s steps(14, end) both; }
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.d-out { fill: var(--out-fill); transition: fill .5s; }
.d-air { fill: var(--air-fill); transition: fill .5s; }

.steps { grid-column: 9 / span 4; padding-bottom: 12vh; }
.step { padding: calc(var(--u) * 24) 0 calc(var(--u) * 24); min-height: 58vh; display: flex; flex-direction: column; justify-content: center; gap: 12px; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
.step h3 { display: flex; align-items: baseline; gap: 14px; }
.step-n { font-family: var(--f-mono); font-size: .875rem; font-weight: 400; color: var(--mute); border: 1px solid var(--line-2); min-width: 1.9em; height: 1.9em; display: inline-flex; align-items: center; justify-content: center; flex: none; transform: translateY(-.1em); }
.step p { color: var(--mute); max-width: 32em; }
.step.is-on .step-n { color: var(--ink); background: var(--paper); border-color: var(--paper); }

/* ---------- places ---------- */
.places { padding-top: calc(var(--u) * 170 + 40px); }
.places-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 18px; align-items: end; margin-bottom: calc(var(--u) * 48 + 16px); }
.places-head h2 { grid-column: 1 / span 6; grid-row: 1 / span 2; align-self: end; }
.places-head .lead { grid-column: 7 / span 6; }
.places-head .switch { grid-column: 7 / span 6; justify-self: start; }
.places-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--gap); row-gap: 40px; }
.place .vf-screen { aspect-ratio: 4 / 3; width: 100%; }
.place h3 { margin-top: calc(var(--u) * 20 + 4px); }
.place p { margin-top: 8px; color: var(--mute); max-width: 30em; }
.places-foot { margin-top: calc(var(--u) * 28 + 10px); font-size: .8125rem; color: var(--mute); }

/* ---------- visit ---------- */
.visit { padding: calc(var(--u) * 170 + 40px) 0 calc(var(--u) * 110 + 32px); }
.visit-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 48px; align-items: start; }
.visit-copy { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: calc(var(--u) * 28 + 4px); }
.visit-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 22px var(--gap); padding-top: 8px; border-top: 1px solid var(--line); }
.visit-facts div { padding-top: 14px; }
.visit-facts dt { font-size: .875rem; color: var(--mute); margin-bottom: 4px; }
.visit-facts dd { font-size: 1rem; }
.visit-facts a { text-decoration: none; font-family: var(--f-mono); font-variant-numeric: tabular-nums; display: inline-block; padding: 10px 0; margin: -10px 0; }
.visit-facts a:hover { text-decoration: underline; }

.visit-form {
  grid-column: 7 / span 6; position: relative;
  padding: calc(var(--u) * 44 + 12px) calc(var(--u) * 44 + 10px);
  background: var(--ink-2);
  display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--u) * 24 + 4px) var(--gap);
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field:nth-of-type(n+4), .field--checks, .visit-form .btn, .form-note, .form-done { grid-column: 1 / -1; }
.field label, .field legend { font-size: .9375rem; color: var(--paper); }
.opt { color: var(--mute); font-size: .875rem; margin-left: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  background: rgba(237, 237, 234, .04); border: 1px solid var(--line-2); border-radius: 2px;
  color: var(--paper); font-size: 1rem;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.field select option { background: var(--ink-2); color: var(--paper); }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; border-color: var(--paper); }
.field [aria-invalid="true"] { border-color: #FF8A7A; }
.err { color: #FF9C8F; font-size: .875rem; min-height: 0; }
.err:empty { display: none; }
.field--checks { border: 0; padding: 0; margin: 0; display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; }
.field--checks legend { margin-bottom: 10px; padding: 0; width: 100%; }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 12px; border: 1px solid var(--line-2); border-radius: 2px; cursor: pointer; font-size: .9375rem; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--paper); }
.check:has(input:checked) { border-color: var(--paper); background: rgba(237, 237, 234, .08); }
.check:has(input:focus-visible) { outline: 2px solid var(--paper); outline-offset: 2px; }
.form-note { font-size: .875rem; color: var(--mute); }
.form-done { font-size: 1rem; color: var(--paper); outline: none; }
.form-done:empty { display: none; }
.form-done:not(:empty) { padding: 14px 16px; border-left: 2px solid var(--cool); background: rgba(98, 213, 232, .07); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: calc(var(--u) * 56 + 16px) 0 calc(var(--u) * 48 + 16px); }
.foot-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 28px; }
.foot-brand { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 10px; color: var(--mute); }
.wordmark--foot { font-size: max(30px, calc(var(--u) * 40)); padding: 0; }
.foot-nav { grid-column: 5 / span 3; display: flex; flex-direction: column; }
.foot-nav a { text-decoration: none; color: var(--mute); padding: 6px 0; min-height: 44px; display: flex; align-items: center; }
.foot-nav a:hover { color: var(--paper); }
.foot-legal { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 10px; font-size: .875rem; color: var(--mute); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hud--hero { top: calc(var(--head-h) + 8px); }
  .rooms-intro h2 { grid-column: 1 / -1; }
  .places-head h2 { grid-column: 1 / -1; grid-row: auto; }
  .places-head .lead, .places-head .switch { grid-column: 1 / span 9; }
  .rooms-intro .lead { grid-column: 1 / -1; }
  .bodysec-stage { grid-column: 1 / span 6; }
  .bodysec-copy { grid-column: 7 / span 6; }
  .how-fig { grid-column: 1 / span 7; }
  .steps { grid-column: 8 / span 5; }
  .visit-copy { grid-column: 1 / -1; }
  .visit-form { grid-column: 1 / -1; }
}
@media (max-width: 899px) {
  .rooms-grid { grid-template-columns: 1fr; row-gap: 14px; padding-top: calc(var(--head-h) + 10px); }
  .rooms-meter { margin-bottom: 0; }
  .room .vf-screen { aspect-ratio: 16 / 9; max-height: calc((100svh - var(--head-h) - 250px) / 2); }
  .room figcaption { margin-top: 8px; }
  .room h3 { font-size: 1.0625rem; }
  .room-range { font-size: .8125rem; }
  .hist { height: 40px; margin-top: 8px; padding-bottom: 16px; }
  .rooms-foot { margin-top: 4px; }
  .bodysec-grid, .how-grid { display: block; }
  .bodysec-stage { position: relative; top: 0; }
  .bodysec-copy { padding-top: 40px; padding-bottom: 0; }
  .how-head { display: flex; flex-direction: column; }
  .how-fig { top: var(--head-h); margin-inline: calc(var(--pad) * -1); padding: 8px var(--pad) 10px; box-shadow: 0 12px 16px -6px var(--ink); }
  .diagram { padding: 60px 8px 8px; }
  .mode { left: 8px; top: 8px; }
  .dl-v { font-size: .6875rem; padding: 1px 4px; }
  .strip { font-size: .8125rem; }
  .steps { padding-top: 12px; }
  .step { min-height: 0; padding: 26px 0 40vh; }
  .step:last-child { padding-bottom: 32px; }
  .places-head { display: flex; flex-direction: column; align-items: flex-start; }
  .places-grid { grid-template-columns: 1fr; row-gap: 48px; }
  .visit-facts { grid-template-columns: 1fr; }
  .visit-form { grid-template-columns: 1fr; padding: 28px 18px; margin-inline: calc(var(--pad) * -.25); }
  .foot-brand, .foot-nav, .foot-legal { grid-column: 1 / -1; }
}
@media (max-width: 899px) and (max-height: 900px) {
  .js:not(.rm) .room-cap { display: none; }
}
@media (max-width: 560px) {
  .hero-copy { left: var(--pad); bottom: 64px; }
  .hero-note { left: var(--pad); bottom: 22px; font-size: .75rem; }
  .hero-deck { font-size: 1.0625rem; }
  .hud--hero { top: calc(var(--head-h) + 8px); }
  .hud--hero .scale { height: 24%; top: 6%; transform: none; right: 6px; }
  .osd--hero { display: none; }
  .hero-actions .btn { flex: 1 1 auto; }
  .vf-tag, .osd--frame { font-size: .6875rem; padding: 2px 5px; }
  .scale { font-size: .6875rem; right: 8px; }
}

/* short, wide screens (laptops at 150% zoom) */
@media (min-width: 900px) and (max-height: 700px) {
  .room-cap { display: none; }
}

/* ---------- reduced motion: plain stacked layout ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .hero-pic, .js .hero::after, .js.go .hero-h .ln > span, .js .hero-deck, .js .hero-actions, .js .hero-note,
  .js .hud--hero .corners i, .js .hud--hero .scale-bar, .js .hud--hero .scale > span:not(.scale-bar), .js .osd--hero { animation: none !important; opacity: 1; transform: none; clip-path: none; }
  .js .hero::after { display: none; }
  .js .hero-h .ln > span { transform: none; }
  .rooms-grid { min-height: 0; padding-top: 24px; }
  .room .vf-screen { max-height: none; }
  .bodysec-stage, .how-fig { position: relative; top: 0; }
  .step { min-height: 0; padding: 28px 0; }
  .how-fig { box-shadow: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- motion states set by JS ---------- */
.lens .lens-ring { transform: scale(.72); transition: transform .8s var(--ease-out); }
.lens.on .lens-ring { transform: none; }
.rooms-stage.anim .room-cap, .rooms-stage.anim .room-range { opacity: 0; transition: opacity .5s ease-out; }
.rooms-stage.anim.is-done .room-cap, .rooms-stage.anim.is-done .room-range { opacity: 1; }
[data-stage]:not(.gl-live) .spot { display: none; }
.dl-v--start { transform: translate(0, -50%); }

/* ---------- language switch and Chinese ---------- */
.lang { display: flex; flex: none; border: 1px solid var(--line-2); border-radius: 2px; }
.lang button {
  min-width: 44px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 0;
  background: transparent; color: var(--mute); font: inherit; font-size: .8125rem; font-weight: 500; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.lang button + button { border-left: 1px solid var(--line-2); }
.lang button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.lang button:not([aria-pressed="true"]):hover { color: var(--paper); }
.lang button:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
@media (max-width: 1100px) { .lang { margin-left: auto; } .lang ~ .top-cta { margin-left: 0; } }
@media (max-width: 560px) { .top { gap: 10px; } .lang button { min-width: 40px; padding: 0 8px; } }
@media (max-width: 440px) { .top-cta { display: none; } }

html[data-lang="zh"] {
  --f-text: "Chivo", "GLN Sans SC", "GLN SC fb", system-ui, sans-serif;
  --f-mono: "Chivo Mono", "GLN Sans SC", "GLN SC fb", ui-monospace, monospace;
}
:lang(zh) body { line-height: 1.8; }
:lang(zh) i, :lang(zh) em { font-style: normal; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: 0; text-wrap: balance; }
:lang(zh) p { text-wrap: pretty; }
:lang(zh) .hero-h { font-weight: 400; font-size: clamp(2.5rem, 6vw, calc(var(--u) * 92)); line-height: 1.22; margin-left: 0; }
:lang(zh) .hero-h .ln { padding-bottom: .12em; margin-bottom: -.12em; }
:lang(zh) .hero-deck { line-height: 1.8; max-width: 30em; }
:lang(zh) .lead { line-height: 1.8; }
:lang(zh) .menu nav a { letter-spacing: 0; font-weight: 400; }
:lang(zh) .btn { font-weight: 500; }
:lang(zh) h2 { font-weight: 400; font-size: clamp(1.875rem, 3.6vw, calc(var(--u) * 54)); line-height: 1.3; max-width: 13em; }
:lang(zh) .bodysec-copy h2 { font-size: clamp(1.75rem, 3vw, calc(var(--u) * 46)); max-width: 12em; }
:lang(zh) h3 { line-height: 1.45; }
