* { margin:0; padding:0; box-sizing:border-box; }
html, body { width:100%; height:100%; overflow:hidden; background:#fff; font-family:'Inter',sans-serif; }

/* ── STATUE ── */
#statue-wrap { position:fixed; inset:0; display:flex; align-items:center; justify-content:center; z-index:1; pointer-events:none; }
#statue-inner { position:relative; width:560px; height:720px; transition:transform 1s cubic-bezier(0.16,1,0.3,1); pointer-events:auto; }
#threeCanvas { position:absolute; opacity:0; pointer-events:none; }
#glyphCanvas { position:absolute; top:0; left:0; }
#fade-b { position:absolute; bottom:0; left:0; right:0; height:200px; background:linear-gradient(to bottom,transparent,#fff); pointer-events:none; z-index:2; }
#fade-t { position:absolute; top:0; left:0; right:0; height:60px; background:linear-gradient(to top,transparent,#fff); pointer-events:none; z-index:2; }

/* ── LOGO (GIF) ── */
#logo {
  position:fixed; top:28px; left:40px; z-index:100;
  cursor:pointer; user-select:none;
  display:flex; align-items:center; gap:10px;
}
#logo img { width:44px; height:44px; display:block; }
#logo-text { font-family:'Space Mono',monospace; font-size:13px; font-weight:700; color:#111; letter-spacing:-0.02em; }
#logo-text span { color:#bbb; font-weight:400; font-size:11px; }

/* ── LANG TOGGLE ── */
#lang-btn {
  position:fixed; top:36px; right:40px; z-index:100;
  cursor:pointer; display:flex; align-items:center;
  width:36px; height:36px; justify-content:center;
}
#lang-btn svg { width:17px; height:17px; stroke:#ccc; fill:none; stroke-width:1.2; stroke-linecap:round; stroke-linejoin:round; transition:stroke 0.25s; }
#lang-btn:hover svg { stroke:#111; }

/* ── ICON NAV ── */
#nav { position:fixed; right:40px; top:50%; transform:translateY(-50%); z-index:100; display:flex; flex-direction:column; gap:28px; align-items:center; }
.nav-icon { width:36px; height:36px; display:flex; align-items:center; justify-content:center; cursor:pointer; position:relative; }
.nav-icon svg { width:17px; height:17px; stroke:#ccc; fill:none; stroke-width:1.2; stroke-linecap:round; stroke-linejoin:round; transition:stroke 0.25s; }
.nav-icon:hover svg, .nav-icon.active svg { stroke:#111; }
.nav-icon::before { content:attr(data-tip); position:absolute; right:46px; top:50%; transform:translateY(-50%); font-family:'Space Mono',monospace; font-size:9px; letter-spacing:0.1em; color:#999; white-space:nowrap; opacity:0; transition:opacity 0.2s; pointer-events:none; }
.nav-icon:hover::before { opacity:1; }

/* ── CONTENT ── */
#content { position:fixed; inset:0; z-index:50; display:flex; align-items:center; justify-content:flex-start; padding:0 0 0 9vw; opacity:0; pointer-events:none; transition:opacity 0.5s ease; }
#content.visible { opacity:1; pointer-events:auto; }
#content-box { max-width:380px; transform:translateY(14px); transition:transform 0.5s cubic-bezier(0.16,1,0.3,1); }
#content.visible #content-box { transform:translateY(0); }
#content-label { font-family:'Space Mono',monospace; font-size:9px; letter-spacing:0.2em; color:#bbb; text-transform:uppercase; margin-bottom:18px; }
#content-body h2 { font-size:19px; font-weight:400; line-height:1.45; color:#111; margin-bottom:16px; letter-spacing:-0.01em; }
#content-body p { font-size:12.5px; color:#666; line-height:1.9; font-weight:300; margin-bottom:12px; }
#content-body .tag { display:inline-block; font-family:'Space Mono',monospace; font-size:9px; letter-spacing:0.1em; color:#aaa; border:1px solid #ebebeb; padding:3px 8px; margin:3px 3px 3px 0; }
.sys-card { border-top:1px solid #f0f0f0; padding:13px 0; }
.sys-card:last-of-type { border-bottom:1px solid #f0f0f0; }
.sys-card-name { font-family:'Space Mono',monospace; font-size:9px; font-weight:700; letter-spacing:0.12em; color:#111; margin-bottom:3px; }
.sys-card-desc { font-size:11.5px; color:#888; line-height:1.6; margin-bottom:5px; }
.sys-card-price { font-family:'Space Mono',monospace; font-size:10px; color:#333; }
.port-item { border-bottom:1px solid #f5f5f5; padding:11px 0; }
.port-item:first-child { border-top:1px solid #f5f5f5; }
.port-name { font-family:'Space Mono',monospace; font-size:10px; font-weight:700; color:#111; margin-bottom:3px; }
.port-desc { font-size:11.5px; color:#888; line-height:1.6; }
.port-tags { margin-top:5px; }
#content-body { max-height:72vh; overflow-y:auto; padding-right:6px; }
#content-body::-webkit-scrollbar { width:1px; }
#content-body::-webkit-scrollbar-thumb { background:#e0e0e0; }

/* ── FOOTER / TAGLINE ── */
#tagline { position:fixed; bottom:26px; left:40px; z-index:100; display:flex; flex-direction:row; flex-wrap:nowrap; align-items:center; gap:16px; transition:opacity 0.4s; }
#tagline.hidden { opacity:0; }
#tagline-text { font-size:9px; color:#ccc; letter-spacing:0.1em; font-weight:300; white-space:nowrap; }
#footer { position:fixed; bottom:26px; right:40px; z-index:100; font-size:9px; color:#ccc; letter-spacing:0.1em; font-weight:300; }
#footer a { color:#ccc; text-decoration:none; margin-left:12px; transition:color 0.2s; }
#footer a:hover { color:#888; }
#close-hint { position:fixed; bottom:26px; left:40px; z-index:101; font-family:'Space Mono',monospace; font-size:9px; color:#ccc; letter-spacing:0.1em; cursor:pointer; opacity:0; transition:opacity 0.4s, color 0.2s; pointer-events:none; }
#close-hint.visible { opacity:1; pointer-events:auto; }
#close-hint:hover { color:#888; }

/* ── SOCIALS ── */
#socials { display:flex; align-items:center; gap:14px; }
#socials a { display:flex; align-items:center; justify-content:center; color:#d0d0d0; transition:color 0.25s; text-decoration:none; }
#socials a:hover { color:#888; }
#socials svg { width:12px; height:12px; stroke:currentColor; fill:none; stroke-width:1.3; stroke-linecap:round; stroke-linejoin:round; }

/* ── EASTER EGG ── */
#egg { display:none; position:fixed; inset:0; z-index:999; background:#080808; align-items:center; justify-content:center; flex-direction:column; gap:14px; font-family:'Space Mono',monospace; }
#egg.on { display:flex; }
#egg h1 { font-size:34px; color:#00ff88; animation:flicker 2.5s infinite; }
#egg p { color:#444; font-size:10px; letter-spacing:0.12em; }
#egg-close { margin-top:24px; font-size:9px; color:#1f1f1f; cursor:pointer; transition:color 0.2s; letter-spacing:0.1em; }
#egg-close:hover { color:#555; }
@keyframes flicker{0%,100%{opacity:1}92%{opacity:1}93%{opacity:0.05}94%{opacity:1}96%{opacity:0.15}97%{opacity:1}}

/* ── LOADING ── */
#loading { position:fixed; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; background:#fff; z-index:500; gap:16px; font-family:'Space Mono',monospace; font-size:10px; letter-spacing:0.2em; color:#ccc; text-transform:uppercase; transition:opacity 0.6s ease; }
#loading.fade { opacity:0; pointer-events:none; }
.bar { width:80px; height:1px; background:#eee; overflow:hidden; }
.fill { height:100%; background:#111; width:0%; transition:width 0.3s ease; }

.port-grid { display:flex; flex-direction:column; gap:6px; }
.port-card {
  display:flex; gap:12px; align-items:center;
  cursor:pointer; padding:8px 10px;
  border:1px solid #f2f2f2; border-radius:2px;
  transition:border-color 0.2s, background 0.15s;
}
.port-card:hover { border-color:#ddd; background:#fafafa; }
.port-card-thumb {
  width:96px; height:50px; flex-shrink:0;
  overflow:hidden; background:#f5f5f5; border-radius:1px;
  display:flex; align-items:center; justify-content:center;
}
.port-card-thumb img { width:100%; height:100%; object-fit:cover; object-position:left center; }
.port-card-info { flex:1; min-width:0; }
.port-name { font-family:'Space Mono',monospace; font-size:9px; font-weight:700; color:#111; margin-bottom:4px; letter-spacing:0.04em; }
.port-tags { display:flex; flex-wrap:wrap; gap:3px; }

/* LIGHTBOX */
#flow-lb {
  position:fixed; inset:0; z-index:300;
  background:rgba(252,252,252,0.82);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  display:none; align-items:center; justify-content:center; gap:40px;
}
#flow-lb.on { display:flex; }
#flow-lb-left {
  display:flex; flex-direction:column; align-items:center; gap:16px;
  max-width:62vw;
}
#flow-lb-title {
  font-family:'Space Mono',monospace; font-size:9px;
  color:#aaa; letter-spacing:0.15em; text-transform:uppercase;
  align-self:flex-start;
}
#flow-lb-img {
  max-width:62vw; max-height:76vh;
  object-fit:contain;
  filter:drop-shadow(0 2px 24px rgba(0,0,0,0.12));
}
#flow-lb-nav {
  display:flex; gap:24px; align-items:center;
}
.flow-nav-btn {
  font-family:'Space Mono',monospace; font-size:9px;
  color:#bbb; cursor:pointer; letter-spacing:0.1em;
  transition:color 0.2s; user-select:none;
}
.flow-nav-btn:hover { color:#333; }
#flow-lb-counter { font-family:'Space Mono',monospace; font-size:9px; color:#ddd; }

#flow-lb-right {
  width:260px; flex-shrink:0;
  display:flex; flex-direction:column; gap:16px;
}
#flow-lb-desc-title {
  font-family:'Space Mono',monospace; font-size:10px; font-weight:700;
  color:#111; line-height:1.4;
}
#flow-lb-desc {
  font-size:11.5px; color:#666; line-height:1.85;
  font-weight:300; max-height:65vh; overflow-y:auto;
  padding-right:4px;
}
#flow-lb-desc::-webkit-scrollbar { width:1px; }
#flow-lb-desc::-webkit-scrollbar-thumb { background:#e0e0e0; }
#flow-lb-close {
  font-family:'Space Mono',monospace; font-size:9px;
  color:#ccc; cursor:pointer; letter-spacing:0.1em;
  transition:color 0.2s; align-self:flex-start;
  margin-top:8px;
}
#flow-lb-close:hover { color:#888; }