:root {
  color-scheme: dark;
  --ink: #e9f1ed;
  --muted: #92a7a1;
  --line: rgba(210, 235, 225, .14);
  --mint: #7cddbe;
  --gold: #e4bd7e;
  --font: "Aptos", "Segoe UI Variable", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #071013;
  color: var(--ink);
  font: 14px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }

#bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #071013;
  object-fit: cover;
  z-index: 0;
}
#bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 13, 16, .87) 0, rgba(5, 13, 16, .38) 44%, rgba(5, 13, 16, .12) 70%),
    linear-gradient(0deg, rgba(5, 13, 16, .92), transparent 45%);
}
#bg-overlay::after {
  position: absolute;
  inset: 0;
  opacity: .17;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 100% 4px;
  content: "";
}

#top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 15;
  display: flex;
  min-height: 70px;
  align-items: center;
  gap: 26px;
  padding: 11px max(20px, 3.5vw);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 15, 18, .8);
  transition: background .2s;
}
.brand-lockup {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand-lockup .mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid #4e756b;
  color: var(--mint);
  font: 400 19px/1 var(--mono);
}
.brand-lockup strong {
  color: var(--ink);
  font: 600 10px/1.35 var(--mono);
  letter-spacing: .13em;
}
.brand-lockup small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .14em;
}
.nav-links {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 1px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.top-btn {
  display: flex;
  min-height: 40px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 2px;
  color: #adbfba;
  text-decoration: none;
  font-size: 11px;
  white-space: nowrap;
  transition: color .16s, background .16s;
}
.top-btn .nav-index { color: #526a65; font: 8px/1 var(--mono); }
.top-btn .icon { color: var(--mint); font: 14px/1 var(--mono); }
.top-btn:hover { background: rgba(124, 221, 190, .08); color: var(--ink); }
.nav-controls { display: flex; flex: 0 0 auto; gap: 6px; }
.nav-controls button {
  min-width: 34px;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(6, 15, 18, .54);
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
}
.nav-controls button:hover { border-color: #56736c; color: var(--ink); }

#hero {
  position: relative;
  z-index: 4;
  display: flex;
  min-height: 100dvh;
  align-items: center;
  padding: 110px max(24px, 8vw) 145px;
  pointer-events: none;
}
.hero-copy { max-width: 620px; pointer-events: auto; }
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--mint);
  font: 600 9px/1.4 var(--mono);
  letter-spacing: .19em;
}
.hero-kicker::before { width: 29px; height: 1px; background: var(--gold); content: ""; }
.hero-copy h1 {
  max-width: 580px;
  color: #f3f8f5;
  font: 400 clamp(54px, 8vw, 112px)/.87 var(--display);
  letter-spacing: -.065em;
  text-wrap: balance;
}
.hero-copy h1 em { color: var(--mint); font-style: italic; }
.hero-copy > p {
  max-width: 430px;
  margin-top: 28px;
  color: #adc0ba;
  font-size: 13px;
  line-height: 1.85;
}
.hero-rule {
  display: grid;
  max-width: 510px;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 38px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.hero-rule span { color: var(--muted); font: 9px/1.5 var(--mono); letter-spacing: .1em; }
.hero-rule strong { display: block; margin-top: 4px; color: var(--ink); font-size: 10px; font-weight: 500; letter-spacing: .03em; }

#bottom-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 15;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 12px max(20px, 3.5vw) 13px;
  border-top: 1px solid var(--line);
  background: rgba(6, 15, 18, .84);
}
.ip-row { display: flex; min-width: 0; gap: 9px; }
.ip-mini {
  min-width: 210px;
  padding: 7px 10px;
  border-left: 1px solid #405b54;
  background: rgba(255, 255, 255, .025);
  color: #bdcbc7;
  font: 10px/1.55 var(--mono);
  word-break: break-all;
}
.ip-mini .ip-label { margin-bottom: 3px; color: var(--mint); font-size: 8px; letter-spacing: .13em; }
#bottom-bar footer { color: #657a74; font: 9px/1.5 var(--mono); letter-spacing: .04em; }

#sound-toggle,
#video-toggle {
  position: fixed;
  right: max(20px, 3.5vw);
  z-index: 20;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(6, 15, 18, .72);
  color: var(--ink);
  cursor: pointer;
}
#sound-toggle { bottom: 95px; }
#video-toggle { bottom: 141px; font-size: 11px; }

#drawer-trigger {
  position: fixed;
  top: 85px;
  right: 0;
  z-index: 25;
  display: flex;
  width: 26px;
  height: calc(100% - 220px);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#drawer-handle { width: 2px; height: 43px; background: #526b65; transition: background .2s, height .2s; }
#drawer-trigger:hover #drawer-handle { height: 70px; background: var(--mint); }
#drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 28;
  opacity: 0;
  background: rgba(2, 8, 10, .48);
  pointer-events: none;
  transition: opacity .22s;
}
#drawer-backdrop.open { opacity: 1; pointer-events: auto; }
#drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 30;
  display: flex;
  width: 250px;
  height: 100%;
  flex-direction: column;
  padding: 22px 18px;
  border-left: 1px solid var(--line);
  background: rgba(7, 17, 20, .97);
  transform: translateX(100%);
  transition: transform .25s cubic-bezier(.2, .75, .25, 1);
}
#drawer-panel.open { transform: translateX(0); }
#drawer-panel h3 { margin-bottom: 24px; color: var(--mint); font: 600 10px/1.5 var(--mono); letter-spacing: .13em; }
.clock-drawer { margin-bottom: 9px; padding: 14px; border: 1px solid #21362f; background: #0c1a1d; }
.clock-drawer .city { color: var(--muted); font: 9px/1.5 var(--mono); letter-spacing: .09em; }
.clock-drawer .time { margin-top: 5px; color: var(--ink); font: 13px/1.4 var(--mono); }
#drawer-close { align-self: flex-end; margin-bottom: 14px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 18px; }

@media (max-width: 1050px) {
  .brand-lockup small { display: none; }
  .top-btn { padding-inline: 8px; }
  .top-btn .nav-index { display: none; }
}
@media (max-width: 760px) {
  body { overflow: auto; }
  #top-nav { min-height: 62px; gap: 12px; padding: 9px 14px; }
  .brand-lockup strong { display: none; }
  .brand-lockup .mark { width: 28px; height: 28px; }
  .nav-links { gap: 2px; }
  .top-btn { min-height: 38px; padding: 7px 8px; }
  .top-btn .icon { display: none; }
  .nav-controls button { min-width: 30px; padding: 0 5px; font-size: 10px; }
  #hero { min-height: calc(100dvh - 0px); padding: 110px 20px 170px; }
  .hero-copy h1 { font-size: clamp(52px, 17vw, 78px); }
  .hero-copy > p { max-width: 330px; margin-top: 22px; }
  .hero-rule { grid-template-columns: repeat(2, 1fr); gap: 13px; margin-top: 26px; }
  #bottom-bar { align-items: stretch; flex-direction: column; gap: 8px; padding: 9px 14px 11px; }
  .ip-row { width: 100%; }
  .ip-mini { min-width: 0; flex: 1; }
  #bottom-bar footer { text-align: right; }
  #sound-toggle { bottom: 128px; right: 15px; }
  #video-toggle { bottom: 172px; right: 15px; }
  #drawer-trigger { display: none; }
}
@media (max-width: 430px) {
  .hero-copy h1 { font-size: 55px; }
  .hero-rule { display: none; }
  .hero-copy > p { margin-top: 22px; font-size: 12px; }
  .ip-mini { padding-left: 7px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
