/* Capital Catalyst · tower site
   Type and details follow the Capital Catalyst page of Felipe's portfolio (v4): Space Mono headlines and labels,
   Space Grotesk text, italic muted second line, kicker with a colour square, role chips, mono stat row,
   HUD tools with corner brackets, the drafting frame. Bill's colours: ink #0B1F33, cerulean #1E7DC4, gold #C8A45C. */
:root {
  --display: "Space Mono", ui-monospace, Consolas, monospace;
  --text: "Space Grotesk", "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, Consolas, monospace;
  --accent: #1E7DC4; --gold: #C8A45C;
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* day */
  --ink: #0b1f33; --muted: rgba(11, 31, 51, .7); --soft: rgba(11, 31, 51, .82); --accent-text: #145f9b;
  --line: rgba(11, 31, 51, .12); --hair: rgba(11, 31, 51, .09);
  --glass: rgba(244, 247, 250, .86); --glass-edge: rgba(255, 255, 255, .7);
  --shadow: 0 40px 90px -36px rgba(8, 30, 60, .5);
  --solid: #0b1f33; --solid-ink: #f4f1ea;
  --bracket: rgba(11, 31, 51, .45);
  --frame: rgba(11, 31, 51, .1);
}
body.night {
  --accent: #4ea3ea; --accent-text: #4ea3ea;
  --ink: #f3f3f1; --muted: rgba(243, 243, 241, .68); --soft: rgba(243, 243, 241, .8);
  --line: rgba(255, 255, 255, .12); --hair: rgba(255, 255, 255, .08);
  --glass: rgba(10, 12, 16, .86); --glass-edge: rgba(255, 255, 255, .1);
  --shadow: 0 40px 80px -30px rgba(0, 0, 0, .9);
  --solid: #f3f3f1; --solid-ink: #08090b;
  --bracket: rgba(255, 255, 255, .55);
  --frame: rgba(255, 255, 255, .07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html { background: #08090b; }
body {
  font: 400 15.5px/1.55 var(--text); letter-spacing: -.005em; color: var(--ink);
  background: #8fa6bd; -webkit-font-smoothing: antialiased; touch-action: none;
  transition: color .8s;
}
body.night { background: #05070b; }
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; }
a { color: inherit; }

/* Bill's wordmark face (his site's Fraunces), for the logo only */
@font-face { font-family: "Fraunces CC"; src: url("../fonts/Fraunces-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* logo in the sky */
.skymark {
  position: fixed; left: 0; top: 0; z-index: 3; display: flex; align-items: center; gap: 16px;
  pointer-events: none; will-change: transform, opacity; color: var(--ink);
}
.skymark .logo { width: 58px; height: 58px; filter: drop-shadow(0 8px 24px rgba(8, 30, 60, .22)); }
.skymark span { font: 600 38px/1 "Fraunces CC", Georgia, serif; letter-spacing: -.015em; white-space: nowrap; }
.logo .outer { stroke: #0B1F33; transition: stroke .8s; }
body.night .logo .outer { stroke: #F4F1EA; }
body.night .skymark .logo { filter: drop-shadow(0 0 26px rgba(78, 163, 234, .35)); }

/* drafting frame (desktop) */
.frame { position: fixed; inset: 0; z-index: 4; pointer-events: none; --gx: 64px; --gy: 66px; }
.frame i { position: absolute; background: var(--frame); transition: background .8s; }
.frame .fx { top: 0; bottom: 0; width: 1px; } .frame .l { left: var(--gx); } .frame .r { right: var(--gx); }
.frame .fy { left: 0; right: 0; height: 1px; } .frame .t { top: var(--gy); } .frame .b { bottom: var(--gy); }
.frame .plus { width: 11px; height: 11px; margin: -5px 0 0 -5px; background:
  linear-gradient(var(--bracket), var(--bracket)) center / 11px 1px no-repeat, linear-gradient(var(--bracket), var(--bracket)) center / 1px 11px no-repeat !important; }
.frame .tl { left: var(--gx); top: var(--gy); } .frame .tr { left: calc(100% - var(--gx)); top: var(--gy); }
.frame .bl { left: var(--gx); top: calc(100% - var(--gy)); } .frame .br { left: calc(100% - var(--gx)); top: calc(100% - var(--gy)); }

/* top bar */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px 0 30px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 600 18px/1 "Fraunces CC", Georgia, serif; letter-spacing: -.01em; }
.brand .logo { width: 26px; height: 26px; }
.brand b { font-weight: 600; color: inherit; }
.tools { display: flex; gap: 10px; align-items: center; }

/* HUD tools: square, thin, corner brackets */
.tool, .arrows button {
  --b: var(--bracket);
  display: inline-flex; align-items: center; gap: 9px; border-radius: 0; border: 1px solid var(--hair); cursor: pointer;
  background:
    linear-gradient(var(--b), var(--b)) top left / 9px 1px no-repeat, linear-gradient(var(--b), var(--b)) top left / 1px 9px no-repeat,
    linear-gradient(var(--b), var(--b)) top right / 9px 1px no-repeat, linear-gradient(var(--b), var(--b)) top right / 1px 9px no-repeat,
    linear-gradient(var(--b), var(--b)) bottom left / 9px 1px no-repeat, linear-gradient(var(--b), var(--b)) bottom left / 1px 9px no-repeat,
    linear-gradient(var(--b), var(--b)) bottom right / 9px 1px no-repeat, linear-gradient(var(--b), var(--b)) bottom right / 1px 9px no-repeat,
    var(--glass);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 400 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
  position: relative; min-height: 32px; padding: 9px 13px; transition: box-shadow .3s, color .8s, background-color .8s;
}
.tool:hover, .arrows button:hover { --b: var(--accent); box-shadow: 0 0 24px -8px var(--accent); }
.tool .sun { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(200, 164, 92, .25); transition: all .8s; }
body.night .tool .sun { background: transparent; box-shadow: inset -3px -2px 0 0 #dfe7f2; }

/* buttons: one solid action, quiet outlined ones */
.begin {
  display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 18px; border-radius: 8px;
  font: 400 12px/1 var(--mono); letter-spacing: .02em; text-decoration: none; white-space: nowrap; color: var(--ink);
  border: 1px solid var(--line); background: transparent; transition: background .3s, border-color .3s, color .8s;
}
.begin:hover { border-color: var(--soft); }
.begin.primary { background: var(--solid); border-color: var(--solid); color: var(--solid-ink); }
.begin.primary:hover { filter: brightness(1.15); }
.begin.small { height: 34px; padding: 0 14px; }

/* elevator floor indicator */
.floors {
  position: fixed; right: 84px; top: 50%; transform: translateY(-50%); z-index: 15; text-align: right;
  font: 400 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.floors .now { display: flex; align-items: baseline; justify-content: flex-end; gap: 8px; margin-bottom: 20px; }
.floors .now b { font: 400 40px/1 var(--display); letter-spacing: -.06em; color: var(--ink); min-width: 2.2ch; transition: color .8s; }
.floors ol { list-style: none; border-right: 1px solid var(--line); padding-right: 16px; }
.floors li { position: relative; display: flex; justify-content: flex-end; align-items: center; gap: 12px; min-height: 32px; padding: 6px 0; cursor: pointer; transition: color .3s; text-shadow: 0 0 12px var(--glass); }
.floors li i { font-style: normal; width: 2.4ch; text-align: right; }
.floors li::after { content: ''; position: absolute; right: -20px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; background: var(--line); transition: background .3s; }
.floors li:hover, .floors li.on { color: var(--ink); }
.floors li.on::after { background: var(--accent); }

.pager { position: fixed; left: 84px; bottom: 24px; z-index: 15; font: 400 12px/1 var(--mono); letter-spacing: .16em; color: var(--muted); padding: 7px 10px; background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pager span:first-child { color: var(--ink); }
.arrows { position: fixed; right: 84px; bottom: 12px; z-index: 15; display: flex; gap: 10px; }
.arrows button { width: 40px; height: 40px; justify-content: center; padding: 0; font: 400 14px/1 var(--text); letter-spacing: 0; }

/* content slabs, anchored to floors of the tower */
.panel {
  position: fixed; left: 0; top: 0; z-index: 10; width: 520px;
  padding: 30px 34px 26px; border-radius: 10px;
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(22px) saturate(1.35); backdrop-filter: blur(22px) saturate(1.35);
  opacity: 0; visibility: hidden; will-change: transform, opacity;
  transition: background .8s, border-color .8s, box-shadow .8s;
}
.panel::-webkit-scrollbar { display: none; }
.panel.hero { width: 600px; }
.panel.contact { width: 600px; }
.panel > * { opacity: 0; transform: translateY(12px); filter: blur(6px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); }
.panel.on > * { opacity: 1; transform: none; filter: none; }
.panel.on > :nth-child(2) { transition-delay: .07s; } .panel.on > :nth-child(3) { transition-delay: .14s; }
.panel.on > :nth-child(4) { transition-delay: .21s; } .panel.on > :nth-child(5) { transition-delay: .28s; }
.panel.on > :nth-child(6) { transition-delay: .35s; } .panel.on > :nth-child(7) { transition-delay: .42s; }

.kicker { margin-bottom: 18px; font: 400 12px/1.2 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.kicker::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 10px; background: var(--accent); vertical-align: 1px; transition: background .8s; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.055em; line-height: 1.05; color: var(--ink); }
h1 { font-size: 50px; margin-bottom: 18px; }
h2 { font-size: 32px; margin-bottom: 14px; }
h1 b, h2 b { font-style: italic; font-weight: 400; color: var(--muted); }
.lede { color: var(--soft); font-weight: 400; }
.lede b { color: var(--ink); font-weight: 500; }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.note { margin-top: 16px; font: 400 12.5px/1.6 var(--mono); letter-spacing: .02em; color: var(--muted); }

.cc-roles { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.cc-roles span { font: 400 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); }
.cc-roles span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; background: var(--accent); vertical-align: 1px; }

.cc-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.cc-stats dt { font: 400 30px/1 var(--display); letter-spacing: -.05em; color: var(--ink); }
.cc-stats dd { margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); }

.calls { list-style: none; margin-top: 16px; border-top: 1px solid var(--line); }
.calls li { display: grid; grid-template-columns: 30px 1fr 34px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.calls i { font: 400 12px var(--mono); font-style: normal; color: var(--muted); letter-spacing: .1em; }
.calls b { display: block; font-weight: 500; font-size: 13.5px; line-height: 1.3; }
.calls span { font-size: 13px; color: var(--muted); }
.calls em { font: 400 18px/1 var(--display); font-style: normal; letter-spacing: -.05em; text-align: right; color: var(--accent-text); transition: color .8s; }
.calls .cold { opacity: .8; } .calls .cold em { color: var(--muted); }
.bars { margin-top: 16px; display: grid; gap: 9px; }
.bars div { display: grid; grid-template-columns: 124px 1fr 52px; gap: 10px; align-items: center; font: 400 12px var(--mono); letter-spacing: .02em; color: var(--muted); }
.bars em { height: 4px; background: var(--line); position: relative; }
.bars em::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); transition: width 1.4s .5s var(--ease), background .8s; }
.panel.on .bars em::after { width: var(--w); }
.bars b { font: 400 12.5px var(--mono); color: var(--ink); text-align: right; }

.steps { list-style: none; margin-top: 10px; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.steps i { font: 400 12px/1.7 var(--mono); font-style: normal; color: var(--accent-text); letter-spacing: .1em; transition: color .8s; }
.steps b { display: block; font-weight: 500; font-size: 15px; margin-bottom: 2px; }
.steps span { font-size: 13.5px; color: var(--soft); }

/* phones */
@media (max-width: 760px) {
  .frame, .floors ol, .arrows { display: none; }
  .topbar { padding: 0 16px; height: 58px; }
  .brand span { display: none; }
  .tool .lbl { display: none; }
  .floors { right: 16px; top: auto; bottom: 16px; transform: none; }
  .floors .now { margin: 0; } .floors .now b { font-size: 26px; }
  .pager { left: 16px; bottom: 22px; }
  .panel, .panel.hero, .panel.contact { width: calc(100vw - 32px); padding: 22px 20px 18px; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); }
  h1 { font-size: 34px; } h2 { font-size: 24px; }
  .cc-stats dt { font-size: 24px; }
  .skymark { gap: 10px; } .skymark .logo { width: 38px; height: 38px; } .skymark span { font-size: 25px; }
  .bars div { grid-template-columns: 110px 1fr 46px; }
}
/* the portfolio's slab: offset corner brackets top-left and bottom-right */
.panel::before { content: ""; position: absolute; inset: -7px; pointer-events: none; --b: var(--accent);
  background:
    linear-gradient(var(--b), var(--b)) top left / 22px 1px no-repeat, linear-gradient(var(--b), var(--b)) top left / 1px 22px no-repeat,
    linear-gradient(var(--b), var(--b)) bottom right / 22px 1px no-repeat, linear-gradient(var(--b), var(--b)) bottom right / 1px 22px no-repeat;
  opacity: 0; transition: opacity .8s .2s, inset .9s .2s var(--ease); }
.panel.on::before { opacity: .95; inset: -9px; }

/* the screen container (What we build): framed screen, HUD tabs below */
.screen-panel { width: 860px; padding: 14px 14px 12px; }
.screen { border-radius: 4px; padding: 26px 28px 20px; background: #fbfaf6; border: 1px solid var(--hair); transition: background .8s; min-height: 340px; }
body.night .screen { background: #030405; }
.screen h2 { font-size: 30px; }
.tabs { display: flex; gap: 10px; margin-top: 12px; }
.tabs .tool { --b: var(--bracket); color: var(--muted); }
.tabs .tool[aria-selected="true"] { --b: var(--accent); color: var(--ink); box-shadow: inset 0 0 22px -12px var(--accent); }
.view[hidden] { display: none; }

.pipe { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.pipe::before { content: ""; position: absolute; left: 4px; right: 0; top: 25px; height: 1px; background: var(--line); }
.pipe::after { content: ""; position: absolute; left: 0; top: 24px; width: 70px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--accent)); opacity: 0; }
.panel.on .pipe::after { animation: pulse 3.6s 1s var(--ease) infinite; }
@keyframes pulse { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 80% { opacity: 1; } 100% { left: calc(100% - 70px); opacity: 0; } }
.stage i { display: block; font: 400 12px/1 var(--mono); font-style: normal; letter-spacing: .14em; color: var(--muted); }
.stage s { display: block; width: 7px; height: 7px; margin: 9px 0 14px; background: var(--line); transform: rotate(45deg); transition: background .4s, box-shadow .4s; }
.stage > b { display: block; font: 400 13px/1.3 var(--mono); letter-spacing: -.02em; color: var(--muted); min-height: 32px; transition: color .4s; }
.stage .card, .stage .mini { margin-top: 10px; opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.stage .card { padding: 10px 10px 11px; border: 1px solid var(--hair); border-radius: 4px; }
.stage .card strong { display: block; font-weight: 600; font-size: 13px; line-height: 1.3; }
.stage .card span { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.stage .card .num { font: 400 13px var(--mono); letter-spacing: -.02em; }
.stage .card .score { font: 400 26px/1 var(--display); letter-spacing: -.05em; color: var(--accent-text); }
.mini { list-style: none; }
.mini li { display: grid; grid-template-columns: 24px 1fr 26px; gap: 4px; padding: 6px 0; border-bottom: 1px solid var(--hair); font-size: 12.5px; line-height: 1.25; }
.mini em { font: 400 12px/1.4 var(--mono); font-style: normal; color: var(--muted); }
.mini u { text-decoration: none; font: 400 12.5px var(--mono); color: var(--accent-text); text-align: right; }
.mini .cold { opacity: .8; } .mini .cold u { color: var(--muted); }
.panel.on .stage s { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.panel.on .stage > b { color: var(--ink); }
.panel.on .stage .card, .panel.on .stage .mini { opacity: 1; transform: none; }
.panel.on .stage:nth-child(1) * { transition-delay: .5s; }
.panel.on .stage:nth-child(2) * { transition-delay: .9s; }
.panel.on .stage:nth-child(3) * { transition-delay: 1.3s; }
.panel.on .stage:nth-child(4) * { transition-delay: 1.7s; }
.panel.on .stage:nth-child(5) * { transition-delay: 2.1s; }
.screen .bars { margin-top: 26px; }

@media (max-width: 760px) {
  .panel { max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); overflow: auto; scrollbar-width: none; touch-action: pan-y; }
  .panel::before { display: none; }
  .screen-panel { width: calc(100vw - 32px); padding: 8px; }
  .screen { padding: 18px 16px 14px; min-height: 0; }
  .screen h2 { font-size: 22px; }
  .pipe { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pipe::before, .pipe::after { display: none; }
  .pipe .stage:nth-child(5) { grid-column: span 2; }
  .stage > b { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .panel > * { transition: none; filter: none; } }

/* ---------- live charts (js/charts.js) */
.chart { margin: 18px 0 4px; min-height: 120px; }
.chart svg { display: block; overflow: visible; }
.chart text { font: 400 12px var(--mono); letter-spacing: .03em; fill: var(--muted); }
.chart .ink { fill: var(--ink); }
.chart .dim { fill: var(--muted); opacity: 1; }
.chart .val { font: 400 16px var(--display); letter-spacing: -.04em; fill: var(--ink); }
.chart .val.sm { font-size: 12.5px; letter-spacing: -.02em; }
.chart .big { font: 400 26px var(--display); letter-spacing: -.05em; fill: var(--ink); }
.chart .acc { fill: var(--accent-text); }
.chart .delta { font: italic 400 28px var(--display); letter-spacing: -.05em; fill: var(--accent-text); }
.chart .base { stroke: var(--line); stroke-width: 1; }
.chart .grid { stroke: var(--hair); stroke-width: 1; }
.chart .mark { stroke: var(--soft); stroke-width: 1; stroke-dasharray: 3 4; opacity: .6; }
.chart .band { fill: var(--accent); opacity: .07; }
.chart .bar { fill: var(--accent); transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform 1.1s var(--ease); }
.chart .barh { fill: var(--accent); transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.2s var(--ease); }
.chart .barh.neg { transform-origin: 100% 50%; }
.chart .before { fill: var(--soft); opacity: .38; }
.chart .track { fill: var(--line); opacity: .7; }
.chart.play .bar, .chart.play .barh { transform: none; }
.chart .hatch-bg { fill: var(--accent); opacity: .28; }
.chart .hatch-fg { fill: var(--accent); }
.chart .lbl, .chart .dot { opacity: 0; transition: opacity .6s var(--ease); }
.chart.play .lbl, .chart.play .dot { opacity: 1; }
.chart .dot { fill: var(--accent); stroke: var(--glass); stroke-width: 2; }
.chart .draw { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.8s var(--ease); }
.chart.play .draw { stroke-dashoffset: 0; }
.chart .ringbg { fill: none; stroke: var(--line); stroke-width: 10; }
.chart .ring { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1.6s var(--ease); }
.chart .ring.before { stroke: var(--soft); opacity: .55; }
.chart.play .ring { stroke-dashoffset: var(--off) !important; }
.chart .seg { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); transition: transform .8s var(--ease); }
.chart.play .seg { transform: none; }
.chart .seg.a { fill: var(--accent); } .chart .seg.b { fill: var(--accent); opacity: .5; }
.chart .seg.c { fill: var(--gold); } .chart .seg.d { fill: var(--line); }
.chart .tile { fill: none; stroke: var(--line); stroke-width: 1; opacity: 0; transition: opacity .5s, fill .5s; }
.chart.play .tile { opacity: 1; fill: color-mix(in srgb, var(--accent) 12%, transparent); stroke: var(--accent); }
.chart .tick { stroke-width: 3; }
.chart .hubc { fill: color-mix(in srgb, var(--accent) 14%, transparent); stroke: var(--accent); stroke-width: 1.4; }
.chart .node { fill: none; stroke: var(--line); opacity: 0; transition: opacity .5s; }
.chart.play .node { opacity: 1; }
.chart .flow { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 4 6; opacity: 0; transition: opacity .6s; animation: cc-flow 1.4s linear infinite; }
.chart.play .flow { opacity: .85; }
@keyframes cc-flow { to { stroke-dashoffset: -20; } }

/* ---------- other screen content */
.screen .cc-stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.screen .cc-stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.screen .cc-stats { margin-top: 16px; }
.screen .cc-stats dt { font-size: 26px; }
.screen .lede + .lede { margin-top: 10px; }
.grid4, .grid3 { display: grid; gap: 12px; margin-top: 18px; }
.grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid4 > div, .grid3 > div { padding: 14px 14px 15px; border: 1px solid var(--hair); border-radius: 4px; }
.grid4 b, .grid3 b { display: block; font: 400 15px/1.25 var(--display); letter-spacing: -.04em; margin-bottom: 6px; }
.grid3 i { display: block; font: 400 12px var(--mono); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 8px; }
.grid4 span, .grid3 span { font-size: 13px; line-height: 1.45; color: var(--soft); }
.partner-row { display: grid; grid-template-columns: 170px 1fr; gap: 22px; margin-top: 18px; align-items: start; }
.partner-row img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; border: 1px solid var(--hair); filter: saturate(.85); }
.faq { margin-top: 14px; }
.faq dt { font-weight: 500; padding-top: 12px; border-top: 1px solid var(--line); }
.faq dd { margin: 4px 0 12px; font-size: 14px; color: var(--soft); }
.note a, .faq a { color: var(--accent-text); text-decoration: none; white-space: nowrap; }
.tabs { flex-wrap: wrap; }
@media (max-width: 760px) {
  .screen .cc-stats.four, .screen .cc-stats.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid3, .grid4 { grid-template-columns: 1fr; }
  .partner-row { grid-template-columns: 96px 1fr; gap: 14px; }
  .tabs .tool { padding: 8px 9px; letter-spacing: .12em; }
}

/* team line, socials, the screen resizing smoothly between tabs */
.team { margin-top: 14px; font-size: 13px; color: var(--soft); }
.team b { color: var(--ink); font-weight: 500; }
.team a, .social a { color: var(--accent-text); text-decoration: none; }
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 18px; font: 400 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.social a { border-bottom: 1px solid transparent; transition: border-color .3s; }
.social a:hover { border-color: var(--accent); }
.screen.sizing { overflow: hidden; transition: height .6s var(--ease); }
.view.enter { animation: view-in .55s var(--ease) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.floors { padding: 16px 16px 12px 18px; border-radius: 6px; background: var(--glass); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); right: 74px; }
.floors li { text-shadow: none; }
@media (max-width: 760px) { .floors { padding: 6px 10px; right: 12px; } }

/* the lobby card: wide and short, near the top, so the entrance and the people stay in view */
.panel.contact { width: min(980px, max(600px, calc(100vw - 440px))); text-align: left; display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: end; padding: 26px 30px 22px; }
.panel.contact .kicker { justify-content: flex-start; }
.panel.contact h2 { font-size: 28px; }
.panel.contact .row { justify-content: flex-start; margin-top: 0; }
.panel.contact .social { justify-content: flex-start; flex-direction: column; gap: 6px; }
.panel.contact .c-left > :last-child, .panel.contact .c-right > :last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .panel.contact { grid-template-columns: 1fr; gap: 14px; width: calc(100vw - 32px); }
  .panel.contact h2 { font-size: 21px; } .panel.contact .lede { font-size: 13.5px; }
  .panel.contact .social { flex-direction: row; gap: 4px 14px; }
}
@media (max-width: 760px) {
  .panel.contact .lede, .panel.contact .note { display: none; }
  .panel.contact { padding: 18px 18px 16px; gap: 10px; }
}

/* sound button: three small bars that move while sound is on */
.tool .eq { display: inline-flex; align-items: flex-end; gap: 2px; width: 12px; height: 10px; }
.tool .eq b { width: 2px; height: 3px; background: var(--ink); transition: height .3s; }
#sound[aria-pressed="true"] .eq b { animation: eq 1s ease-in-out infinite; background: var(--accent); }
#sound[aria-pressed="true"] .eq b:nth-child(2) { animation-delay: -.35s; } #sound[aria-pressed="true"] .eq b:nth-child(3) { animation-delay: -.7s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 10px; } }
@media (max-width: 760px) { #sound .lbl { display: none; } #sound { padding: 0 11px; } }

/* headlines: the italic second half moves as one piece, lines are balanced, paragraphs avoid lonely last words */
h1, h2 { text-wrap: balance; }
h1 b, h2 b { white-space: nowrap; }
.lede, .note, .grid3 span, .grid4 span, .steps span, .faq dd { text-wrap: pretty; }
@media (max-width: 760px) {
  h1 b, h2 b { white-space: normal; }
  h1 b.keep, h2 b.keep { white-space: nowrap; display: block; }   /* on phones a short italic phrase gets its own line */
  .panel.hero h1 { font-size: 28px; }
}
@media (max-width: 760px) { .panel.contact h2 { font-size: 19px; } }

@media (max-width: 760px) { .panel.contact h2 { font-size: 19px; } }

/* ---------- the opening: an elevator */
.intro { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; cursor: pointer; }
.intro .door { position: absolute; top: 0; bottom: 0; width: 50.2%; background: #08090b; transition: transform 1.25s cubic-bezier(.7, 0, .2, 1); }
.intro .door.l { left: 0; border-right: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(90deg, #08090b 70%, #0d0f12); }
.intro .door.r { right: 0; border-left: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(270deg, #08090b 70%, #0d0f12); }
.intro.open .door.l { transform: translateX(-101%); } .intro.open .door.r { transform: translateX(101%); }
.intro-c { position: relative; display: flex; flex-direction: column; align-items: center; color: #f3f3f1; transition: opacity .5s, transform .8s var(--ease); }
.intro.open .intro-c { opacity: 0; transform: scale(.96); }
.ilogo { width: 84px; height: 84px; }
.ilogo .outer { stroke: #F4F1EA; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 1.1s .2s cubic-bezier(.6, 0, .2, 1) forwards; }
.ilogo .inner { stroke-dasharray: 34; stroke-dashoffset: 34; animation: draw .9s .75s cubic-bezier(.6, 0, .2, 1) forwards; }
.ilogo .dot { transform-origin: 16px 16px; transform: scale(0); animation: pop .5s 1.45s cubic-bezier(.2, 1.6, .4, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { transform: scale(1); } }
.iword { margin-top: 18px; font: 600 30px/1 "Fraunces CC", Georgia, serif; letter-spacing: -.015em; opacity: 0; animation: rise .8s 1.2s var(--ease) forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.icount { display: flex; align-items: baseline; gap: 8px; margin-top: 34px; font: 400 12px var(--mono); letter-spacing: .2em; color: rgba(243, 243, 241, .7); opacity: 0; animation: rise .6s 1.5s forwards; }
.icount b { font: 400 34px/1 var(--display); letter-spacing: -.06em; color: #f3f3f1; min-width: 2.2ch; text-align: right; }
.ibar { width: 180px; height: 1px; margin-top: 14px; background: rgba(255, 255, 255, .12); opacity: 0; animation: rise .6s 1.5s forwards; }
.ibar i { display: block; height: 100%; width: 0; background: #4ea3ea; transition: width .3s; }
.iskip { margin-top: 26px; font: 400 12px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(243, 243, 241, .65); opacity: 0; animation: rise .6s 2.2s forwards; }
.intro.gone { display: none; }

/* ---------- hero: proof strip and the scroll cue */
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.proof dt { font: 400 22px/1 var(--display); letter-spacing: -.05em; color: var(--ink); }
.proof dd { margin: 5px 0 0; font-size: 13px; line-height: 1.35; color: var(--muted); }
.proof-link { display: inline-block; margin-top: 12px; font: 400 12px var(--mono); letter-spacing: .04em; color: var(--accent-text); text-decoration: none; }
.cue { position: fixed; left: 50%; bottom: 22px; z-index: 15; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px;
  font: 400 12px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); text-shadow: 0 0 14px var(--glass); transition: opacity .6s; pointer-events: none; }
.cue i { width: 1px; height: 26px; background: linear-gradient(var(--ink), transparent); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.cue.hide { opacity: 0; }
@media (max-width: 760px) { .proof dt { font-size: 18px; } .proof dd { font-size: 12px; } .cue { bottom: 18px; } }
/* touch screens: the cue says swipe */
.cue .t { display: none; }
@media (hover: none) { .cue .d { display: none; } .cue .t { display: inline; } }

/* hero a little more compact so it sits comfortably under the logo */
.panel.hero { padding: 26px 32px 22px; }
.panel.hero h1 { font-size: 46px; margin-bottom: 14px; }
.panel.hero .row { margin-top: 18px; }
@media (max-width: 760px) { .panel.hero h1 { font-size: 28px; } .panel.hero { padding: 20px 20px 16px; } }
@media (max-width: 760px) { .panel.hero .note, .panel.hero .proof-link { display: none; } .panel.hero .proof { margin-top: 14px; padding-top: 12px; } }

/* ---------- split floors: the story on the left (on a soft frosted fade, no box), the evidence on a screen to the right */
:root { --scrim: rgba(238, 243, 248, .82); }
body.night { --scrim: rgba(7, 9, 13, .74); }
.panel.split {
  width: min(1120px, calc(100vw - 420px)); padding: 0; display: grid; grid-template-columns: minmax(300px, .8fr) 1.2fr; gap: 46px; align-items: center;
  background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; overflow: visible;
}
.panel.split::before { display: none; }
.split .story { position: relative; padding: 10px 0; }
.split .story::before {
  content: ""; position: absolute; inset: -90px -70px -90px -130px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 64% 62% at 48% 50%, var(--scrim) 0%, var(--scrim) 55%, transparent 86%);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  -webkit-mask-image: radial-gradient(ellipse 64% 62% at 48% 50%, #000 52%, transparent 86%); mask-image: radial-gradient(ellipse 64% 62% at 48% 50%, #000 52%, transparent 86%);
  transition: background .8s;
}
.split .story h2 { font-size: 44px; line-height: 1.04; margin-bottom: 18px; }
.split .story .lede { font-size: 15.5px; }
.split .story .cc-roles { margin: 18px 0 0; }
.split .story .row { margin-top: 22px; }
.split .screen-panel { position: relative; width: auto; padding: 14px 14px 12px; border-radius: 10px;
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(22px) saturate(1.35); backdrop-filter: blur(22px) saturate(1.35); transition: background .8s, border-color .8s; }
.split .screen-panel::before { content: ""; position: absolute; inset: -7px; pointer-events: none; --b: var(--accent);
  background:
    linear-gradient(var(--b), var(--b)) top left / 22px 1px no-repeat, linear-gradient(var(--b), var(--b)) top left / 1px 22px no-repeat,
    linear-gradient(var(--b), var(--b)) bottom right / 22px 1px no-repeat, linear-gradient(var(--b), var(--b)) bottom right / 1px 22px no-repeat;
  opacity: 0; transition: opacity .8s .3s, inset .9s .3s var(--ease); }
.panel.split.on .screen-panel::before { opacity: .95; inset: -9px; }
.split .screen h2 { font-size: 24px; }
.panel.split.on > .screen-panel { transition-delay: .18s; }
@media (max-width: 760px) {
  .panel.split { display: block; width: calc(100vw - 32px); }
  .split .story { padding: 18px 18px 14px; margin-bottom: 12px; border-radius: 10px; background: var(--glass); border: 1px solid var(--glass-edge);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  .split .story::before { display: none; }
  .split .story h2 { font-size: 24px; margin-bottom: 0; }
  .split .story .lede, .split .story .cc-roles, .split .story .row { display: none; }
  .split .screen-panel { padding: 8px; }
}

/* story headlines sized to the column; the kicker stays readable on the fade */
.split .story h2 { font-size: 38px; }
.split .story .kicker { color: var(--soft); }
.panel.contact h2 b { display: block; }

/* story backdrop v2: a soft horizontal wash from the left edge (no blob); blur does the work, a faint halo lifts the letters */
:root { --scrim: rgba(226, 235, 244, .66); }
body.night { --scrim: rgba(7, 9, 13, .78); }
.split .story::before {
  inset: -110px -90px -110px -260px;
  background: linear-gradient(90deg, var(--scrim) 0%, var(--scrim) 58%, transparent 100%);
  -webkit-backdrop-filter: blur(12px) saturate(1.1); backdrop-filter: blur(12px) saturate(1.1);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%), linear-gradient(90deg, #000 60%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%), linear-gradient(90deg, #000 60%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
body.day .split .story h2, body.day .split .story .lede, body.day .split .story .kicker { text-shadow: 0 0 22px rgba(240, 245, 250, .85), 0 0 2px rgba(240, 245, 250, .6); }
@media (max-width: 760px) { .split .story h2 { font-size: 24px; } body.day .split .story h2, body.day .split .story .kicker { text-shadow: none; } }

/* story text: a subtle shadow under the letters (day: tight and faint, plus the light halo; night: soft and dark) */
body.day .split .story h2 { text-shadow: 0 1px 1px rgba(11, 31, 51, .14), 0 3px 10px rgba(11, 31, 51, .10), 0 0 22px rgba(240, 245, 250, .85); }
body.day .split .story .lede, body.day .split .story .kicker { text-shadow: 0 1px 1px rgba(11, 31, 51, .10), 0 0 18px rgba(240, 245, 250, .8); }
body.night .split .story h2 { text-shadow: 0 2px 3px rgba(0, 0, 0, .45), 0 6px 22px rgba(0, 0, 0, .55); }
body.night .split .story .lede, body.night .split .story .kicker { text-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 4px 16px rgba(0, 0, 0, .45); }
.split .story .cc-roles span { box-shadow: 0 2px 10px rgba(11, 31, 51, .06); }
@media (max-width: 760px) { body.day .split .story h2, body.night .split .story h2 { text-shadow: none; } }

/* ---------- landing on a floor: a minimal, very smooth reveal
   the story's lines rise a few pixels and come into focus one after another, then the screen settles in */
:root { --reveal: cubic-bezier(.16, 1, .3, 1); }
.panel > * { transition: opacity 1s var(--reveal), transform 1.2s var(--reveal), filter 1s var(--reveal); }
.panel.split > .story { opacity: 1; transform: none; filter: none; }
.split .story > * { opacity: 0; transform: translateY(14px); filter: blur(6px); transition: opacity 1s var(--reveal), transform 1.2s var(--reveal), filter 1s var(--reveal); }
.panel.split.on .story > * { opacity: 1; transform: none; filter: none; }
.panel.split.on .story > :nth-child(1) { transition-delay: .05s; } .panel.split.on .story > :nth-child(2) { transition-delay: .12s; }
.panel.split.on .story > :nth-child(3) { transition-delay: .22s; } .panel.split.on .story > :nth-child(4) { transition-delay: .3s; }
.panel.split.on .story > :nth-child(5) { transition-delay: .38s; }
.split .story::before { opacity: 0; transition: opacity 1.2s var(--reveal); }
.panel.split.on .story::before { opacity: 1; }
.panel.split > .screen-panel { transform: translateY(18px) scale(.985); }
.panel.split.on > .screen-panel { transform: none; transition-delay: .2s; }
.panel:not(.on) > *, .panel.split:not(.on) .story > * { transition-duration: .45s; transition-delay: 0s; }   /* leaving: a quicker, quiet fade */
@media (prefers-reduced-motion: reduce) { .split .story > *, .panel > * { transition: opacity .3s; transform: none !important; filter: none !important; } }

/* ---------- other languages (js/i18n.js sets body[data-lang]) */
/* the no-wrap rule for italic phrases was tuned on the English lines; translated phrases are longer, so they wrap */
body:not([data-lang="en"]) h1 b, body:not([data-lang="en"]) h2 b { white-space: normal; }
body[data-lang="de"] p, body[data-lang="de"] dd, body[data-lang="de"] li { hyphens: auto; -webkit-hyphens: auto; }
/* Chinese and Japanese: Noto Sans after the Latin fonts (numbers and names stay in Space Mono/Grotesk), no tight tracking, no italics */
body[data-lang="zh"] { --display: "Space Mono", "Noto Sans SC", sans-serif; --text: "Space Grotesk", "Noto Sans SC", sans-serif; --mono: "Space Mono", "Noto Sans SC", sans-serif; }
body[data-lang="ja"] { --display: "Space Mono", "Noto Sans JP", sans-serif; --text: "Space Grotesk", "Noto Sans JP", sans-serif; --mono: "Space Mono", "Noto Sans JP", sans-serif; }
body[data-lang="zh"] :is(h1, h2, h3, dt, .floors li, .tabs button), body[data-lang="ja"] :is(h1, h2, h3, dt, .floors li, .tabs button) { letter-spacing: 0; }
body[data-lang="zh"] :is(h1, h2), body[data-lang="ja"] :is(h1, h2) { line-height: 1.3; font-weight: 500; }
body[data-lang="zh"] :is(h1, h2) b, body[data-lang="ja"] :is(h1, h2) b { font-style: normal; }
body[data-lang="zh"] p, body[data-lang="ja"] p { line-height: 1.75; line-break: strict; }

/* language switcher */
.langs { position: relative; }
.tool .globe { width: 10px; height: 10px; border: 1px solid currentColor; border-radius: 50%; position: relative; opacity: .8; }
.tool .globe::before { content: ""; position: absolute; inset: -1px 2.5px; border: 1px solid currentColor; border-radius: 50%; }
#langCode { letter-spacing: .12em; }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 132px; padding: 6px; display: flex; flex-direction: column;
  border: 1px solid var(--hair); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 18px 40px -20px rgba(0,0,0,.45); }
.lang-menu[hidden] { display: none; }
.lang-menu button { all: unset; cursor: pointer; padding: 9px 12px; font: 400 13px/1.1 var(--text); color: var(--muted); transition: color .2s, background-color .2s; }
.lang-menu button:hover, .lang-menu button:focus-visible { color: var(--ink); background: var(--hair); }
.lang-menu button[aria-checked="true"] { color: var(--ink); }
.lang-menu button[aria-checked="true"]::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 9px; vertical-align: middle; background: var(--accent); }
.lang-menu button[lang="zh-Hans"] { font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif; }
.lang-menu button[lang="ja"] { font-family: "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif; }
/* Japanese has no spaces: break between phrases, not inside words (Chromium; elsewhere the normal rules apply) */
body[data-lang="ja"] :is(h1, h2, h3, p, dt, dd, li) { word-break: auto-phrase; }
@media (max-width: 760px) { .tool .globe { display: none; } #lang { padding: 9px 10px; } }

/* narrator: Voice button and subtitles */
.tool[hidden] { display: none; }
.tool .mic { width: 6px; height: 10px; border: 1px solid currentColor; border-radius: 3px; position: relative; opacity: .85; }
.tool .mic::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 1px; height: 3px; background: currentColor; }
#voice[aria-pressed="true"] { --b: var(--accent); }
#voice[aria-pressed="true"] .mic { background: var(--accent); border-color: var(--accent); }
.subs { position: fixed; left: 50%; bottom: 34px; z-index: 24; transform: translate(-50%, 8px); max-width: min(760px, calc(100vw - 32px));
  padding: 10px 16px; text-align: center; font: 400 15px/1.45 var(--text); color: #fff; background: rgba(8, 10, 14, .62);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .4s, transform .4s var(--reveal, ease); }
.subs.on { opacity: 1; transform: translate(-50%, 0); }
.subs:empty { display: none; }
@media (max-width: 760px) { .subs { bottom: 86px; font-size: 14px; } }

/* golden hour: a low orange sun in the theme button */
body.golden .tool .sun { background: linear-gradient(#f3a14a 55%, transparent 55%); box-shadow: 0 0 0 3px rgba(243, 161, 74, .28); border-radius: 50%; }

/* golden hour: the panels take on the light, warm cream glass, espresso ink, an amber accent (the brand gold, deepened for contrast) */
body.golden {
  --accent: #b5652a; --gold: #c8964c;
  --ink: #2a1a10; --muted: rgba(42, 26, 16, .72); --soft: rgba(42, 26, 16, .82); --accent-text: #8c4818;
  --line: rgba(60, 34, 16, .14); --hair: rgba(60, 34, 16, .1);
  --glass: rgba(251, 240, 226, .86); --glass-edge: rgba(255, 246, 232, .72);
  --shadow: 0 40px 90px -36px rgba(80, 36, 10, .45);
  --solid: #2a1a10; --solid-ink: #fbf1e3;
  --bracket: rgba(60, 34, 16, .45);
  --frame: rgba(60, 34, 16, .1);
  --scrim: rgba(250, 232, 212, .64);
  background: #c9a389;
}
body.day.golden .split .story h2 { text-shadow: 0 1px 1px rgba(60, 30, 10, .14), 0 3px 10px rgba(60, 30, 10, .1), 0 0 22px rgba(252, 238, 222, .85); }
body.day.golden .split .story .lede, body.day.golden .split .story .kicker { text-shadow: 0 1px 1px rgba(60, 30, 10, .1), 0 0 18px rgba(252, 238, 222, .8); }

/* ---------- light on the glass (js/fx.js) */
.sheen::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .22), rgba(255, 255, 255, .06) 40%, transparent 70%);
  opacity: var(--hl, 0); transition: opacity .5s var(--ease); mix-blend-mode: soft-light; }
body.night .sheen::after { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(170, 205, 255, .12), rgba(170, 205, 255, .03) 40%, transparent 70%); mix-blend-mode: screen; }
.sheen > .sweep, .panel > .sweep { position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px; opacity: 0 !important; transform: none !important; filter: none !important;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .95) 50%, transparent 62%) no-repeat; background-size: 260% 100%; background-position: 130% 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
body.golden .sheen > .sweep { background-image: linear-gradient(115deg, transparent 38%, rgba(255, 214, 160, .95) 50%, transparent 62%); }
.sheen > .sweep.run, .panel > .sweep.run { animation: ccSweep 1.6s .35s cubic-bezier(.3, .1, .2, 1) both; }
@keyframes ccSweep { 0% { opacity: 0; background-position: 130% 0; } 15% { opacity: .9; } 85% { opacity: .6; } 100% { opacity: 0; background-position: -30% 0; } }

/* ---------- descent: faint streaks at the screen edges while travelling (--cc-speed set by app.js) */
.speedlines { position: fixed; inset: 0; z-index: 5; pointer-events: none; opacity: calc(var(--cc-speed, 0) * .55);
  background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(255, 255, 255, .5) 46px 47px, transparent 47px 91px, rgba(255, 255, 255, .28) 91px 92px, transparent 92px 137px);
  -webkit-mask: radial-gradient(ellipse 60% 70% at 50% 50%, transparent 55%, #000 100%); mask: radial-gradient(ellipse 60% 70% at 50% 50%, transparent 55%, #000 100%);
  background-size: 137px 100%; animation: ccStreak .5s linear infinite paused; visibility: hidden; }
.speedlines.moving { animation-play-state: running; visibility: visible; }
body.day .speedlines { background-image: repeating-linear-gradient(90deg, transparent 0 46px, rgba(11, 31, 51, .18) 46px 47px, transparent 47px 91px, rgba(11, 31, 51, .1) 91px 92px, transparent 92px 137px); }
@keyframes ccStreak { from { background-position: 0 0; } to { background-position: 0 -120px; } }
@media (prefers-reduced-motion: reduce) { .speedlines { display: none; } .sheen > .sweep.run { animation: none; } }

/* ---------- booking window and logo strip (js/extras.js) */
dialog.booking { position: fixed; inset: 0; margin: auto; width: min(960px, calc(100vw - 32px)); height: min(720px, calc(100vh - 64px)); height: min(720px, calc(100dvh - 64px)); padding: 0; border: 1px solid var(--glass-edge); border-radius: 12px; background: var(--glass); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); overflow: hidden; }
dialog.booking::backdrop { background: rgba(5, 8, 12, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog.booking iframe { width: 100%; height: 100%; border: 0; background: #fff; }
dialog.booking .close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; justify-content: center; padding: 0; font-size: 18px; }
.contact .logos { display: flex; flex-wrap: wrap; gap: 18px 26px; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.contact .logos img { height: 22px; width: auto; opacity: .7; filter: grayscale(1); }
body.night .contact .logos img { filter: grayscale(1) invert(1); }

/* opening: still until the page has finished its heavy work (app.js adds .go), so the animation never stalls midway;
   meanwhile the logo breathes softly (an opacity animation, which runs on the compositor even while the page works) */
.intro:not(.go) .ilogo .outer, .intro:not(.go) .ilogo .inner, .intro:not(.go) .ilogo .dot, .intro:not(.go) .iword,
.intro:not(.go) .icount, .intro:not(.go) .ibar { animation-play-state: paused; }
.intro:not(.go) .ilogo { animation: breathe 1.8s ease-in-out infinite; }
.intro:not(.go) .ilogo .outer { stroke-dashoffset: 0; opacity: .22; }
@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.ibar i { width: 100%; transform: scaleX(0); transform-origin: left center; transition: transform .3s; will-change: transform; }

/* ---------- accessibility: focus, hit areas, skip link, hidden text, reduced motion */
:root { --focus-halo: rgba(255, 255, 255, .7); }
body.night { --focus-halo: rgba(0, 0, 0, .75); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible,
[tabindex]:focus-visible, [role="tab"]:focus-visible, [role="menuitemradio"]:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--focus-halo); border-radius: inherit;
}
.tool:focus-visible, .arrows button:focus-visible { --b: var(--accent); }
#panels:focus, #panels:focus-visible { outline: none; box-shadow: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 100; padding: 10px 14px; font: 400 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--solid-ink); background: var(--solid); border: 1px solid var(--solid-ink); text-decoration: none; transform: translateY(-200%); }
.skip:focus, .skip:focus-visible { transform: none; }
.social a, .proof-link, .note a, .faq a, .team a { border-radius: 2px; }
.social a { display: inline-block; padding: 6px 0; line-height: 1.3; }
@media (max-width: 760px) { .tabs .tool { letter-spacing: .1em; } }

/* touch screens: every control gets a 44px hit area, the look stays the same */
@media (pointer: coarse) {
  .tool::after, .arrows button::after, .brand::after, .social a::after, .proof-link::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); background: none; margin: 0;
  }
  .brand, .proof-link, .social a { position: relative; }
  .floors li, #flList button { min-height: 44px; }
  .tabs { gap: 14px 10px; }
  .begin, .begin.small { min-height: 44px; }
  .lang-menu button { padding-top: 14px; padding-bottom: 14px; }
  dialog.booking .close { width: 44px; height: 44px; }
  input, textarea, select { min-height: 44px; }
}
/* desktop pointers: nothing under 32px tall */
@media (pointer: fine) {
  .tool, .begin, .arrows button, input, select { min-height: 32px; }
}

/* reduced motion: pulses, streaks, fades, the intro and the sheen all stand still (system setting or the site's own switch) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .speedlines, .cue i { display: none !important; }
}
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after {
  animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important;
}
html.reduce-motion .speedlines, html.reduce-motion .cue i { display: none !important; }
