/* ============== MUSAI // CYBERPUNK SYSTEM ============== */
:root {
  --void: #03050a;
  --void-2: #060912;
  --void-3: #0b0f1f;
  --ink: #e8eaf2;
  --ink-dim: #8a92ad;
  --ink-faint: #4a5170;
  --magenta: #ff2bd6;
  --cyan: #00f0ff;
  --lime: #c6ff00;
  --amber: #ffb300;
  --red: #ff3355;
  --grid: rgba(0, 240, 255, 0.08);
  --grid-strong: rgba(0, 240, 255, 0.22);
  --scan: rgba(0, 240, 255, 0.04);

  --f-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --f-tech: "Rajdhani", "Space Grotesk", sans-serif;
  --f-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
}

/* ---- Per-language script fallbacks (CJK / Devanagari / Cyrillic) ---- */
html[data-lang="KO"] {
  --f-display: "Space Grotesk", "Noto Sans KR", sans-serif;
  --f-tech: "Rajdhani", "Noto Sans KR", sans-serif;
  --f-mono: "JetBrains Mono", "Noto Sans KR", ui-monospace, monospace;
}
html[data-lang="JA"] {
  --f-display: "Space Grotesk", "Noto Sans JP", sans-serif;
  --f-tech: "Rajdhani", "Noto Sans JP", sans-serif;
  --f-mono: "JetBrains Mono", "Noto Sans JP", ui-monospace, monospace;
}
html[data-lang="ZH"] {
  --f-display: "Space Grotesk", "Noto Sans SC", sans-serif;
  --f-tech: "Rajdhani", "Noto Sans SC", sans-serif;
  --f-mono: "JetBrains Mono", "Noto Sans SC", ui-monospace, monospace;
}
/* ---- Line breaking per language ---- */
h1, h2, h3, .section-title, .building-title, .contact-cta, .service-title { text-wrap: balance; }
p, .hero-sub, .service-desc, .building-desc, .contact-text, .ssh-hint { text-wrap: pretty; }
/* Korean: break between words, never inside one */
html[lang="ko"] body { word-break: keep-all; overflow-wrap: break-word; }
/* Japanese: break at natural phrase boundaries where supported */
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] .section-title,
html[lang="ja"] .building-title, html[lang="ja"] .contact-cta, html[lang="ja"] .service-title { word-break: auto-phrase; }
/* Chinese / Japanese: keep punctuation off line starts */
html[lang^="zh"] body, html[lang="ja"] body { line-break: strict; }
/* Long compound words: hyphenate body copy instead of overflowing */
html[lang="de"] p, html[lang="pl"] p, html[lang="ru"] p, html[lang="fr"] p, html[lang="id"] p, html[lang="vi"] p { hyphens: auto; }
html[lang="de"] .section-title, html[lang="pl"] .section-title, html[lang="ru"] .section-title { overflow-wrap: break-word; hyphens: auto; }

html[data-lang="TW"] {
  --f-display: "Space Grotesk", "Noto Sans TC", sans-serif;
  --f-tech: "Rajdhani", "Noto Sans TC", sans-serif;
  --f-mono: "JetBrains Mono", "Noto Sans TC", ui-monospace, monospace;
}
html[data-lang="TH"] {
  --f-display: "Space Grotesk", "Noto Sans Thai", sans-serif;
  --f-tech: "Rajdhani", "Noto Sans Thai", sans-serif;
  --f-mono: "JetBrains Mono", "Noto Sans Thai", ui-monospace, monospace;
}
html[data-lang="VI"] {
  --f-display: "Space Grotesk", "Noto Sans", sans-serif;
  --f-tech: "Noto Sans", sans-serif;
  --f-mono: "JetBrains Mono", "Noto Sans", ui-monospace, monospace;
}
html[data-lang="RU"] {
  --f-display: "Space Grotesk", "Noto Sans", sans-serif;
  --f-tech: "Rajdhani", "Noto Sans", sans-serif;
  --f-mono: "JetBrains Mono", "Noto Sans", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--f-display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body {
  min-height: 100vh;
}

/* ----------- GLOBAL CHROME ----------- */
.scanlines {
  pointer-events: none;
  position: fixed; inset: 0;
  z-index: 200;
  background-image: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(0, 240, 255, 0.03) 3px,
    transparent 4px
  );
  opacity: 0.6;
}
.vignette {
  pointer-events: none;
  position: fixed; inset: 0;
  z-index: 199;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(3,5,10,0.6) 100%);
}
.noise {
  pointer-events: none;
  position: fixed; inset: 0;
  z-index: 198;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* ----------- NAV ----------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(3,5,10,0.8) 0%, rgba(3,5,10,0) 100%);
  border-bottom: 1px solid rgba(0, 240, 255, 0.12);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
}
.nav-logo img { height: 28px; }
.nav-logo .tag {
  color: var(--cyan);
  border-left: 1px solid var(--ink-faint);
  padding-left: 12px;
  font-size: 10px;
}
.nav-links {
  display: flex; gap: 4px;
  list-style: none; align-items: center;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  position: relative;
  display: inline-flex; align-items: baseline; gap: 7px;
  padding: 7px 12px; border-radius: 6px;
  letter-spacing: 0.12em;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links .nl-i {
  color: var(--cyan); font-size: 9px; opacity: 0.65;
  transition: opacity 0.2s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 1px;
  background: linear-gradient(90deg, var(--magenta), var(--cyan));
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.2,0.8,0.2,1);
}
.nav-links a:hover { color: #fff; background: rgba(0,240,255,0.08); }
.nav-links a:hover .nl-i { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active-link { color: var(--cyan); }
.nav-links a.active-link .nl-i { opacity: 1; }
.nav-links a.active-link::after { transform: scaleX(1); }
.nav-status {
  display: flex; align-items: center; gap: 16px;
  color: var(--ink-dim);
}
.nav-status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

/* ----------- NAV RIGHT: LANGUAGE SELECT + BURGER ----------- */
.nav-right { display: flex; align-items: center; gap: 14px; }

.lang-select { position: relative; }
.lang-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, rgba(0,240,255,0.14), rgba(10,18,38,0.7));
  border: 1px solid var(--cyan);
  border-radius: 999px; padding: 8px 14px;
  color: #eafdff; font-family: var(--f-mono); font-size: 12px;
  letter-spacing: 0.12em; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0,240,255,0.18), 0 0 16px -5px var(--cyan);
  animation: langPulse 3.2s ease-in-out infinite;
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}
@keyframes langPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(0,240,255,0.18), 0 0 14px -6px var(--cyan); }
  50% { box-shadow: 0 0 0 1px rgba(0,240,255,0.35), 0 0 22px -3px var(--cyan); }
}
.lang-trigger:hover {
  border-color: #fff;
  background: linear-gradient(180deg, rgba(0,240,255,0.24), rgba(10,18,38,0.7));
  box-shadow: 0 0 0 1px rgba(0,240,255,0.4), 0 0 22px -2px var(--cyan);
  transform: translateY(-1px);
}
.lang-select.open .lang-trigger { border-color: var(--cyan); box-shadow: 0 0 24px -2px var(--cyan); animation: none; }
.lang-globe { width: 16px; height: 16px; color: var(--cyan); flex: none; filter: drop-shadow(0 0 6px rgba(0,240,255,0.6)); }
.lang-code { font-weight: 700; letter-spacing: 0.18em; }
.lang-caret { width: 13px; height: 13px; color: var(--ink-dim); transition: transform 0.25s ease; }
.lang-select.open .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 190px; list-style: none; margin: 0; padding: 6px;
  background: rgba(6,10,20,0.97); backdrop-filter: blur(14px);
  border: 1px solid rgba(0,240,255,0.25); border-radius: 10px;
  box-shadow: 0 24px 50px -18px rgba(0,0,0,0.8), 0 0 0 1px rgba(0,240,255,0.06);
  opacity: 0; transform: translateY(-8px) scale(0.98); pointer-events: none;
  transform-origin: top right; transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 120; max-height: 70vh; overflow-y: auto;
}
.lang-select.open .lang-menu { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.lang-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 9px 12px; border-radius: 6px; cursor: pointer;
  font-family: var(--f-mono); font-size: 13px; color: var(--ink);
  transition: background 0.16s ease, color 0.16s ease;
}
.lang-opt .lo-name { letter-spacing: 0.02em; }
.lang-opt em {
  font-style: normal; font-size: 10px; letter-spacing: 0.16em;
  color: var(--ink-faint); transition: color 0.16s ease;
}
.lang-opt:hover { background: rgba(0,240,255,0.1); color: #fff; }
.lang-opt:hover em { color: var(--cyan); }
.lang-opt.active { color: var(--cyan); background: rgba(0,240,255,0.06); }
.lang-opt.active em { color: var(--cyan); }

.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 0 9px;
  background: rgba(10,18,38,0.6); border: 1px solid rgba(0,240,255,0.28);
  border-radius: 8px; cursor: pointer;
}
.nav-burger span {
  display: block; height: 2px; width: 100%; background: var(--cyan);
  border-radius: 2px; transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-scrim {
  position: fixed; inset: 0; z-index: 98; background: rgba(2,4,9,0.6);
  backdrop-filter: blur(2px); opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-scrim.open { opacity: 1; pointer-events: auto; }

/* ----------- HERO SCRIM (text legibility) ----------- */
.hero-scrim {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(960px, 94%); height: min(620px, 86%);
  z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(3,5,12,0.8) 0%, rgba(3,5,12,0.62) 42%, rgba(3,5,12,0) 76%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 52%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, #000 52%, transparent 80%);
}

/* ----------- HUD CORNERS ----------- */
.hud-corners {
  pointer-events: none;
  position: fixed; inset: 0; z-index: 50;
}
.hud-corners .c {
  position: absolute;
  width: 32px; height: 32px;
  border: 1px solid var(--cyan);
  opacity: 0.4;
}
.hud-corners .tl { top: 64px; left: 16px; border-right: none; border-bottom: none; }
.hud-corners .tr { top: 64px; right: 16px; border-left: none; border-bottom: none; }
.hud-corners .bl { bottom: 16px; left: 16px; border-right: none; border-top: none; }
.hud-corners .br { bottom: 16px; right: 16px; border-left: none; border-top: none; }

.side-rail {
  position: fixed;
  z-index: 50;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  pointer-events: none;
}
.side-rail.left { left: 16px; top: 50%; transform: translateY(-50%) rotate(-90deg); transform-origin: left center; }
.side-rail.right { right: 16px; bottom: 16%; }

/* ----------- HERO ----------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  width: 100%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-video-wrap {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-video-wrap video,
.hero-video-wrap .video-fallback {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.9;
}
.hero-building {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.25) saturate(1.4) brightness(0.55) hue-rotate(-12deg);
  opacity: 1;
  z-index: 0;
}
.hero-building-scan {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg,
    transparent 0px, transparent 3px,
    rgba(0, 240, 255, 0.05) 4px, transparent 5px);
}
.hero-building-scan::before {
  content: ""; position: absolute; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 240, 255, 0.18) 50%, transparent 100%);
  animation: heroScanLine 8s linear infinite;
}
@keyframes heroScanLine {
  0% { transform: translateY(-140px); }
  100% { transform: translateY(100vh); }
}
.hero-video-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(3,5,10,0.18) 0%, rgba(3,5,10,0.02) 40%, var(--void) 100%),
    radial-gradient(ellipse at 30% 40%, rgba(255, 43, 214, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(0, 240, 255, 0.09) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 0 24px;
  max-width: 1400px;
  width: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-tagline {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
  display: inline-flex; align-items: center; gap: 12px;
}
.hero-tagline::before, .hero-tagline::after {
  content: ""; width: 40px; height: 1px;
  background: var(--cyan);
}
.hero-title {
  font-family: var(--f-tech);
  font-weight: 600;
  font-size: clamp(60px, 12vw, 200px);
  line-height: 0.85;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 24px;
  position: relative;
  opacity: 0;
  animation: fadeUp 1s 0.6s forwards;
}
.hero-logo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 1.2s 0.5s forwards;
  filter: drop-shadow(0 0 24px rgba(0, 240, 255, 0.4));
}
.hero-logo {
  display: block;
  width: clamp(280px, 60vw, 760px);
  height: auto;
  position: relative;
}
.hero-logo-wrap .glitch-a,
.hero-logo-wrap .glitch-b {
  position: absolute; top: 0; left: 0;
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero-logo-wrap .glitch-a {
  filter: drop-shadow(0 0 0 #ff2bd6);
  animation: logoGlitchA 5s infinite steps(1);
  opacity: 0.7;
}
.hero-logo-wrap .glitch-b {
  filter: drop-shadow(0 0 0 #00f0ff);
  animation: logoGlitchB 4.3s infinite steps(1);
  opacity: 0.7;
}
@keyframes logoGlitchA {
  0%, 92%, 100% { transform: translate(0); opacity: 0; }
  93% { transform: translate(-4px, 1px); opacity: 0.8; }
  95% { transform: translate(3px, -2px); opacity: 0.8; }
  97% { transform: translate(-2px, 2px); opacity: 0.8; }
}
@keyframes logoGlitchB {
  0%, 90%, 100% { transform: translate(0); opacity: 0; }
  91% { transform: translate(3px, -1px); opacity: 0.8; }
  93% { transform: translate(-3px, 1px); opacity: 0.8; }
  95% { transform: translate(2px, 2px); opacity: 0.8; }
}
.hero-title .glitch {
  position: relative;
  display: inline-block;
  background: linear-gradient(180deg, #fff 0%, #b8c2dd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-title .glitch::before,
.hero-title .glitch::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0; width: 100%;
  -webkit-text-fill-color: initial;
}
.hero-title .glitch::before {
  color: var(--magenta);
  animation: glitch-1 4s infinite linear alternate-reverse;
  mix-blend-mode: screen;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}
.hero-title .glitch::after {
  color: var(--cyan);
  animation: glitch-2 3s infinite linear alternate-reverse;
  mix-blend-mode: screen;
  clip-path: polygon(0 66%, 100% 66%, 100% 100%, 0 100%);
}
@keyframes glitch-1 {
  0%, 92%, 100% { transform: translate(0); }
  93% { transform: translate(-3px, 1px); }
  95% { transform: translate(2px, -1px); }
  97% { transform: translate(-1px, 2px); }
}
@keyframes glitch-2 {
  0%, 90%, 100% { transform: translate(0); }
  91% { transform: translate(2px, 1px); }
  93% { transform: translate(-2px, -1px); }
  95% { transform: translate(3px, 0); }
}
.hero-sub {
  font-family: var(--f-display);
  font-size: clamp(16px, 1.6vw, 22px);
  color: var(--ink-dim);
  max-width: 720px;
  margin: 0 auto 40px;
  line-height: 1.5;
  opacity: 0;
  animation: fadeUp 1s 0.9s forwards;
}
.hero-sub b { color: var(--ink); font-weight: 500; }
.hero-cta {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s 1.2s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----------- BUTTONS ----------- */
.btn {
  position: relative;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 28px;
  border: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 12px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: all 0.3s ease;
  overflow: hidden;
}
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--magenta) 0%, var(--cyan) 100%);
  z-index: -2;
}
.btn::after {
  content: ""; position: absolute; inset: 1px;
  background: var(--void);
  clip-path: inherit;
  z-index: -1;
  transition: opacity 0.3s ease;
}
.btn:hover { color: var(--void); }
.btn:hover::after { opacity: 0; }
.btn .arrow { transition: transform 0.3s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn.ghost::before { background: var(--cyan); opacity: 0.6; }
.btn.ghost { color: var(--cyan); }
.btn.ghost:hover { color: var(--void); }

/* ----------- SECTION ----------- */
section {
  position: relative;
  padding: 140px 0 120px;
  z-index: 3;
}
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  section { padding: 80px 0; }
}
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 80px;
  gap: 40px;
  flex-wrap: wrap;
}
.section-num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.3em;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.section-num::before {
  content: ""; width: 24px; height: 1px;
  background: var(--cyan);
}
.section-title {
  font-family: var(--f-tech);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  max-width: 900px;
}
.section-title .accent { color: var(--magenta); }
.section-title .accent-c { color: var(--cyan); }
.section-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: right;
  line-height: 1.6;
}

/* ----------- ABOUT ----------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }
.about-text p {
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin-bottom: 24px;
}
.about-text p strong { color: var(--ink); font-weight: 500; }
.about-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--ink-faint);
  border: 1px solid var(--ink-faint);
}
.stat {
  background: var(--void-2);
  padding: 32px;
  position: relative;
  transition: background 0.3s ease;
}
.stat:hover { background: var(--void-3); }
.stat .num {
  font-family: var(--f-tech);
  font-size: 56px;
  font-weight: 600;
  color: var(--cyan);
  line-height: 1;
  display: flex; align-items: baseline; gap: 4px;
}
.stat .num .unit { font-size: 20px; color: var(--magenta); }
.stat .label {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-top: 12px;
}
.stat::before {
  content: ""; position: absolute; top: 8px; right: 8px;
  width: 8px; height: 8px;
  border: 1px solid var(--cyan);
}

/* ----------- SERVICES ----------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-faint);
  border: 1px solid var(--ink-faint);
}
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  background: var(--void-2);
  padding: 40px 32px 32px;
  position: relative;
  min-height: 360px;
  display: flex; flex-direction: column;
  transition: background 0.4s ease;
  overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 43, 214, 0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover { background: var(--void-3); }
.service-card { transition: background 0.4s ease, transform 0.25s ease; will-change: transform; }
.stat { will-change: transform; transition: background 0.3s ease, transform 0.25s ease; }
.service-num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.3em;
  margin-bottom: 24px;
}
.service-icon {
  width: 56px; height: 56px;
  margin-bottom: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--cyan);
  position: relative;
  transition: all 0.3s ease;
}
.service-card:hover .service-icon {
  border-color: var(--magenta);
  box-shadow: 0 0 24px rgba(255, 43, 214, 0.5);
}
.service-icon svg { width: 28px; height: 28px; stroke: var(--cyan); transition: stroke 0.3s ease; }
.service-card:hover .service-icon svg { stroke: var(--magenta); }
.service-icon::before, .service-icon::after {
  content: ""; position: absolute;
  width: 6px; height: 6px;
  border: 1px solid var(--cyan);
}
.service-icon::before { top: -3px; left: -3px; border-right: none; border-bottom: none; }
.service-icon::after { bottom: -3px; right: -3px; border-left: none; border-top: none; }
.service-title {
  font-family: var(--f-tech);
  font-size: 28px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
  position: relative;
}
.service-desc {
  font-family: var(--f-display);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin-bottom: 20px;
  position: relative;
}
.service-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: auto;
  position: relative;
}
.service-tags span {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-faint);
  border: 1px solid var(--ink-faint);
  padding: 4px 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ----------- PORTFOLIO ----------- */
.portfolio {
  background: linear-gradient(180deg, var(--void) 0%, var(--void-2) 50%, var(--void) 100%);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.work {
  position: relative;
  overflow: hidden;
  background: var(--void-3);
  border: 1px solid rgba(0, 240, 255, 0.2);
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease;
  min-height: 280px;
}
.work:hover { border-color: var(--magenta); transform: translateY(-4px); }
.work .img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
  filter: saturate(1.02) contrast(1.02) brightness(0.9);
}
.work:hover .img { transform: scale(1.05); filter: saturate(1.12) contrast(1.05) brightness(1); }
.work::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(3,5,10,0.95) 100%),
    repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(0,240,255,0.04) 4px);
  z-index: 1;
}
.work-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px;
  z-index: 2;
}
.work-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.work-tag::before {
  content: ""; width: 6px; height: 6px;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}
.work-title {
  font-family: var(--f-tech);
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.work-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-dim);
}
.work .corner-tag {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--magenta);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 2;
  border: 1px solid var(--magenta);
  padding: 4px 8px;
  background: rgba(3,5,10,0.6);
}

.work.large { grid-column: span 7; min-height: 480px; }
.work.med   { grid-column: span 5; min-height: 480px; }
.work.s1    { grid-column: span 4; min-height: 320px; }
.work.s2    { grid-column: span 4; min-height: 320px; }
.work.s3    { grid-column: span 4; min-height: 320px; }
.work.wide  { grid-column: span 8; min-height: 360px; }
.work.tall  { grid-column: span 4; min-height: 360px; }

/* ----------- PORTFOLIO FILTER BAR ----------- */
.portfolio-filter {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 22px;
}
.pf-chip {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-dim);
  background: rgba(10,18,38,0.6);
  border: 1px solid rgba(0,240,255,0.22);
  border-radius: 999px; padding: 9px 16px;
  cursor: pointer; position: relative; overflow: hidden;
  transition: color .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease, transform .2s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.pf-chip .pf-n {
  font-size: 9px; color: var(--ink-faint);
  border: 1px solid rgba(0,240,255,0.25); border-radius: 999px;
  padding: 1px 6px; transition: color .25s ease, border-color .25s ease;
}
.pf-chip:hover { color: var(--ink); border-color: var(--cyan); transform: translateY(-2px); }
.pf-chip.active {
  color: var(--void); background: linear-gradient(90deg, var(--cyan), #7fe9ff);
  border-color: var(--cyan); box-shadow: 0 0 20px -4px var(--cyan);
}
.pf-chip.active .pf-n { color: var(--void); border-color: rgba(3,5,10,0.4); }
.pf-status {
  margin-left: auto; font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.2em; color: var(--ink-faint); text-transform: uppercase;
}
.pf-status b { color: var(--cyan); }
@media (max-width: 560px) { .pf-status { margin-left: 0; width: 100%; } }

.work.filtered-out { display: none; }

/* ----------- PORTFOLIO WALL (uniform square cover grid) ----------- */
.portfolio-wall {
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.portfolio-wall .work {
  grid-column: auto;
  aspect-ratio: 1 / 1;
  min-height: 0;
}
.portfolio-wall .work-info { padding: 16px; }
.portfolio-wall .work-tag {
  font-size: 9px;
  letter-spacing: 0.22em;
  margin-bottom: 6px;
}
.portfolio-wall .work-title {
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0.005em;
  margin-bottom: 4px;
  text-shadow: 0 2px 12px rgba(3,5,10,0.7);
}
.portfolio-wall .work-meta { font-size: 10px; }

@media (max-width: 1100px) {
  .portfolio-wall { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .work { grid-column: span 12 !important; min-height: 280px !important; }
  .portfolio-wall { grid-template-columns: repeat(2, 1fr); }
  .portfolio-wall .work { grid-column: auto !important; min-height: 0 !important; }
}
@media (max-width: 440px) {
  .portfolio-wall { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ----------- PORTFOLIO WALL — INTERACTIVE STATES ----------- */
.portfolio-wall .work {
  border-color: rgba(0,240,255,0.16);
  border-radius: 4px;
  transform-style: preserve-3d;
  transform:
    perspective(900px)
    rotateX(calc(var(--ry, 0) * 1deg))
    rotateY(calc(var(--rx, 0) * 1deg))
    translateZ(0);
  transition: transform .35s cubic-bezier(0.2,0.8,0.2,1), border-color .3s ease, box-shadow .35s ease, opacity .35s ease, filter .35s ease;
  will-change: transform;
}
/* default: covers sit slightly recessed */
.portfolio-wall .work .img { filter: saturate(0.85) contrast(1.02) brightness(0.72); }
.portfolio-wall .work::before {
  background:
    linear-gradient(180deg, transparent 42%, rgba(3,5,10,0.92) 100%),
    repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(0,240,255,0.04) 4px);
  transition: background .35s ease;
}
/* meta hidden until hover, title nudges down to make room */
.portfolio-wall .work-info { transform: translateY(14px); transition: transform .35s cubic-bezier(0.2,0.8,0.2,1); }
.portfolio-wall .work-meta {
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s ease .04s, transform .3s ease .04s;
}
.portfolio-wall .work-tag::before { transition: box-shadow .3s ease; }

/* scanline sweep element */
.portfolio-wall .work .sweep {
  content: ""; position: absolute; left: 0; right: 0; top: -60%; height: 60%;
  z-index: 2; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(0,240,255,0.14) 60%, transparent);
}

/* hover state */
.portfolio-wall .work:hover {
  border-color: var(--cyan);
  box-shadow: 0 18px 44px -16px rgba(0,240,255,0.6), 0 0 0 1px rgba(0,240,255,0.4) inset;
  z-index: 5;
}
.portfolio-wall .work:hover .img { filter: saturate(1.18) contrast(1.06) brightness(1.05); transform: scale(1.07); }
.portfolio-wall .work:hover::before {
  background:
    linear-gradient(180deg, rgba(0,240,255,0.04) 0%, transparent 30%, rgba(3,5,10,0.94) 100%),
    repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(0,240,255,0.05) 4px);
}
.portfolio-wall .work:hover .work-info { transform: translateY(0); }
.portfolio-wall .work:hover .work-meta { opacity: 1; transform: translateY(0); }
.portfolio-wall .work:hover .work-title { color: #eafdff; }
.portfolio-wall .work:hover .sweep {
  opacity: 1;
  animation: workSweep .7s cubic-bezier(0.4,0,0.2,1);
}
@keyframes workSweep {
  0% { top: -60%; opacity: 0; }
  25% { opacity: 1; }
  100% { top: 110%; opacity: 0; }
}

/* spotlight: dim siblings when the wall is hovered */


/* true index-based stagger (overrides the 6-child cap for the wall) */
.portfolio-wall.reveal-stagger > * { transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2,0.8,0.2,1); }
.portfolio-wall.reveal-stagger.in > * { transition-delay: calc(var(--si, 0) * 32ms); }

@media (prefers-reduced-motion: reduce) {
  .portfolio-wall .work { transform: none !important; }
  .portfolio-wall .work:hover .sweep { animation: none; }
}

/* ----------- STUDIO TABS ----------- */
.studio-select-head {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px;
  margin-bottom: 14px;
  font-family: var(--f-mono); text-transform: uppercase;
}
.studio-select-head .ssh-arrow {
  color: var(--cyan); font-size: 14px;
  animation: sshNudge 1.4s ease-in-out infinite;
}
.studio-select-head .ssh-label {
  color: var(--ink); font-size: 13px; letter-spacing: 0.28em; font-weight: 500;
}
.studio-select-head .ssh-hint {
  color: var(--ink-dim); font-size: 11px; letter-spacing: 0.1em; text-transform: none;
}
@keyframes sshNudge {
  0%, 100% { transform: translateX(0); opacity: 0.6; }
  50% { transform: translateX(4px); opacity: 1; }
}

.studio-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}
@media (max-width: 720px) { .studio-tabs { grid-template-columns: 1fr 1fr; } }
.studio-tab {
  background: linear-gradient(165deg, rgba(10,18,38,0.92), rgba(6,10,20,0.92));
  border: 1px solid rgba(0,240,255,0.22);
  border-radius: 5px;
  color: var(--ink-dim);
  padding: 18px 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease, color .25s ease;
  position: relative; overflow: hidden;
}
.studio-tab::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 125%, rgba(0,240,255,0.18), transparent 70%);
  opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.studio-tab .tn { color: var(--ink-faint); font-size: 10px; position: relative; }
.studio-tab .tt {
  font-family: var(--f-tech); font-size: 19px; font-weight: 700;
  letter-spacing: 0.04em; color: var(--ink); position: relative;
}
.studio-tab .tgo {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 9px; letter-spacing: 0.22em; position: relative;
}
.studio-tab .tgo.sel { color: var(--cyan); }
.studio-tab .tgo.sel em { font-style: normal; transition: transform .25s ease; }
.studio-tab .tgo.live { display: none; color: var(--magenta); }

.studio-tab:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px -10px rgba(0,240,255,0.45);
  color: var(--ink);
}
.studio-tab:hover::before { opacity: 1; }
.studio-tab:hover .tgo.sel em { transform: translateX(4px); }

.studio-tab.active {
  border-color: var(--cyan);
  background: linear-gradient(165deg, rgba(0,240,255,0.15), rgba(255,43,214,0.08));
  box-shadow: 0 0 0 1px var(--cyan), 0 12px 34px -12px rgba(0,240,255,0.6);
}
.studio-tab.active::before { opacity: 1; }
.studio-tab.active .tn { color: var(--magenta); }
.studio-tab.active .tt { color: var(--cyan); }
.studio-tab.active .tgo.sel { display: none; }
.studio-tab.active .tgo.live { display: inline-flex; }
.studio-tab.active::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: 3px; background: linear-gradient(90deg, var(--magenta), var(--cyan));
  box-shadow: 0 0 14px var(--cyan);
}
.studios-stack { position: relative; }
.studio-card { display: none; }
.studio-card.active { display: block; animation: studioIn 0.5s ease; }
@keyframes studioIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.studio-photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
  transition: transform 0.6s ease;
}
img.studio-photo {
  width: 100%; height: 100%;
  object-fit: cover;
}
.studio-feature-img {
  position: absolute; inset: 0; z-index: 0;
}
.studio-card:hover .studio-photo { transform: scale(1.04); }
.placeholder-tag {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--f-mono); font-size: 11px; color: rgba(255,255,255,0.4);
  letter-spacing: 0.2em; z-index: 1;
  border: 1px dashed rgba(255,255,255,0.2);
  padding: 8px 12px;
}
.studio-coord {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--cyan); letter-spacing: 0.2em;
  margin-bottom: 10px;
}

/* ----------- STUDIO ----------- */
.studio-shell {
  position: relative;
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: var(--void-2);
  overflow: hidden;
}
.studio-shell::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 36px;
  background: linear-gradient(90deg, var(--void-3), var(--void-2));
  border-bottom: 1px solid rgba(0,240,255,0.2);
}
.studio-shell::after {
  content: "// STUDIO_FEED_LIVE / 166 DONGGWANG-RO SEOCHO-GU / 44.1KHZ / 32-BIT FLOAT";
  position: absolute; top: 10px; left: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.15em;
  z-index: 2;
}
.studio-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  padding-top: 36px;
}
@media (max-width: 900px) { .studio-grid { grid-template-columns: 1fr; } }
.studio-feature {
  position: relative;
  min-height: 520px;
  background-size: cover;
  background-position: center;
  border-right: 1px solid rgba(0,240,255,0.2);
  overflow: hidden;
}
@media (max-width: 900px) { .studio-feature { border-right: none; border-bottom: 1px solid rgba(0,240,255,0.2); } }
.studio-feature::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(3,5,10,0.4) 0%, rgba(3,5,10,0.85) 100%),
    radial-gradient(circle at 30% 60%, rgba(255, 43, 214, 0.2) 0%, transparent 50%);
}
.studio-feature::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,240,255,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0,240,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.studio-cap {
  position: absolute; bottom: 32px; left: 32px; right: 32px;
  z-index: 2;
}
.studio-cap h3 {
  font-family: var(--f-tech);
  font-size: 40px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.studio-cap p {
  color: var(--ink-dim);
  max-width: 500px;
  font-size: 16px;
  line-height: 1.6;
}
.studio-side {
  display: flex; flex-direction: column;
}
.studio-row {
  flex: 1;
  padding: 32px;
  border-bottom: 1px solid rgba(0,240,255,0.2);
  display: flex; flex-direction: column; justify-content: center;
}
.studio-row:last-child { border-bottom: none; }
.studio-row .label {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.studio-row .value {
  font-family: var(--f-tech);
  font-size: 22px;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.studio-row .desc {
  color: var(--ink-dim);
  font-size: 13px;
  line-height: 1.5;
}
.studio-row .bar {
  margin-top: 14px;
  height: 4px;
  background: var(--void-3);
  position: relative;
  overflow: hidden;
}
.studio-row .bar i {
  position: absolute; top: 0; left: 0; bottom: 0;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 12px var(--cyan);
}

/* waveform */
.waveform {
  display: flex; align-items: center; gap: 2px; height: 60px; margin-top: 16px;
}
.waveform i {
  display: block;
  width: 3px;
  background: var(--cyan);
  animation: wave 1.4s infinite ease-in-out;
}

@keyframes wave {
  0%, 100% { height: 12%; opacity: 0.4; }
  50% { height: 100%; opacity: 1; }
}

/* ----------- PORTFOLIO ARCHIVE ----------- */
.portfolio-archive {
  margin-top: 48px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: var(--void-2);
  overflow: hidden;
}
.portfolio-archive[hidden] { display: none; }
.archive-head {
  padding: 14px 24px;
  background: var(--void-3);
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
  font-family: var(--f-mono); font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.2em; text-transform: uppercase;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.archive-head .archive-l:first-child { color: var(--cyan); }
.archive-list {
  list-style: none;
  font-family: var(--f-mono);
  font-size: 12px;
}
.archive-list li {
  display: grid;
  grid-template-columns: 60px 1.6fr 1fr 1.2fr 60px;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.06);
  letter-spacing: 0.1em; text-transform: uppercase;
  align-items: center;
  transition: background 0.2s ease, color 0.2s ease;
  color: var(--ink-dim);
}
.archive-list li:last-child { border-bottom: none; }
.archive-list li:hover { background: rgba(0, 240, 255, 0.04); color: var(--ink); }
.archive-list .y { color: var(--cyan); font-weight: 500; }
.archive-list .t { color: var(--ink); font-family: var(--f-tech); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; }
.archive-list .lg { color: var(--magenta); text-align: right; font-weight: 500; }
@media (max-width: 720px) {
  .archive-list li { grid-template-columns: 50px 1fr 40px; font-size: 11px; }
  .archive-list .g, .archive-list .s { display: none; }
}
.portfolio-toggle-wrap {
  display: flex; justify-content: center;
  margin-top: 32px;
}
#portfolio-toggle .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
#portfolio-toggle.open .arrow { transform: rotate(180deg); }

/* ----------- CONTACT ----------- */
.contact {
  position: relative;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(255, 43, 214, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(0, 240, 255, 0.15) 0%, transparent 60%),
    var(--void);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-cta {
  font-family: var(--f-tech);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 600;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}
.contact-cta .blink { color: var(--magenta); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.contact-text {
  color: var(--ink-dim);
  font-size: 18px;
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 32px;
}
.contact-form {
  background: var(--void-2);
  border: 1px solid rgba(0,240,255,0.2);
  padding: 40px;
  position: relative;
}
.contact-form::before {
  content: "// TRANSMISSION_FORM"; position: absolute; top: 12px; left: 16px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 0.2em;
}
.contact-form .row {
  display: flex; flex-direction: column;
  margin-top: 24px;
}
.contact-form label {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 8px;
}
.contact-form input, .contact-form textarea, .contact-form select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink-faint);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 15px;
  padding: 10px 0;
  outline: none;
  transition: border-color 0.2s ease;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  border-color: var(--cyan);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form select { appearance: none; cursor: pointer; }
.contact-form .row-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
@media (max-width: 600px) { .contact-form .row-pair { grid-template-columns: 1fr; } }
.contact-form .submit {
  margin-top: 32px;
  width: 100%;
  justify-content: center;
}
.contact-info {
  margin-top: 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  font-family: var(--f-mono); font-size: 12px;
}
.contact-info .field .l { color: var(--ink-faint); letter-spacing: 0.2em; text-transform: uppercase; font-size: 10px; margin-bottom: 6px; }
.contact-info .field .v { color: var(--cyan); }

/* ----------- FOOTER ----------- */
footer {
  border-top: 1px solid rgba(0,240,255,0.15);
  padding: 32px 48px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.2em; text-transform: uppercase;
  flex-wrap: wrap; gap: 16px;
}
footer .l { display: flex; align-items: center; gap: 16px; }
footer .l img { height: 16px; }
footer .links { display: flex; gap: 20px; }
footer .links a { color: var(--ink-dim); text-decoration: none; transition: color 0.2s ease; }
footer .links a:hover { color: var(--cyan); }

/* ----------- SCROLL REVEAL ----------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.0s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.40s; }

/* ----------- BUILDING SHOWCASE ----------- */
.building-showcase {
  position: relative;
  margin: 80px 0 0;
  height: 720px;
  overflow: hidden;
  background: #000;
}
@media (max-width: 900px) { .building-showcase { height: 560px; margin: 48px 0 0; } }
@media (max-width: 600px) { .building-showcase { height: 480px; } }
.building-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.15) saturate(1.2) brightness(0.85) hue-rotate(-8deg);
  transform: scale(1.08);
  transition: transform 0.6s ease;
}
.building-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(0, 240, 255, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(255, 43, 214, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, rgba(3,5,10,0.35) 0%, rgba(3,5,10,0.85) 100%);
  z-index: 1;
}
.building-scan {
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg,
    transparent 0px, transparent 3px,
    rgba(0, 240, 255, 0.04) 4px, transparent 5px);
}
.building-scan::before {
  content: ""; position: absolute; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 240, 255, 0.18) 50%, transparent 100%);
  animation: scanLine 6s linear infinite;
}
@keyframes scanLine {
  0% { transform: translateY(-100px); }
  100% { transform: translateY(720px); }
}
.building-frame {
  position: absolute; inset: 24px;
  border: 1px solid rgba(0, 240, 255, 0.4);
  z-index: 3;
  pointer-events: none;
}
.building-frame::before, .building-frame::after,
.building-frame > span {
  content: "";
  position: absolute;
  width: 24px; height: 24px;
  border: 2px solid var(--cyan);
}
.building-frame::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.building-frame::after { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.building-info {
  position: absolute;
  top: 60px; left: 60px; right: 60px; bottom: 60px;
  z-index: 4;
  display: flex; flex-direction: column; justify-content: space-between;
  pointer-events: none;
}
@media (max-width: 720px) {
  .building-frame { inset: 14px; }
  .building-info { top: 32px; left: 28px; right: 28px; bottom: 32px; }
}
.building-meta {
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  align-self: flex-start;
  background: rgba(3,5,10,0.6);
  border: 1px solid rgba(0,240,255,0.2);
  padding: 14px 18px;
  backdrop-filter: blur(8px);
}
.bm-row { display: flex; gap: 12px; align-items: center; }
.bm-l { color: var(--ink-faint); min-width: 70px; }
.bm-v { color: var(--cyan); }
.bm-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); margin-right: 6px; vertical-align: middle; animation: pulse 1.6s infinite; }
.building-cap {
  align-self: flex-start;
  max-width: 600px;
}
.building-tag {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--magenta); letter-spacing: 0.3em;
  margin-bottom: 14px;
}
.building-title {
  font-family: var(--f-tech);
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.building-desc {
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.55;
  max-width: 480px;
}
.building-readout {
  position: absolute;
  right: 60px; bottom: 60px;
  z-index: 4;
  font-family: var(--f-mono); font-size: 11px;
  background: rgba(3,5,10,0.6);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 16px 18px;
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column; gap: 6px;
  letter-spacing: 0.1em;
}
@media (max-width: 900px) { .building-readout { display: none; } }
.br-item { display: flex; gap: 14px; align-items: center; }
.br-l { color: var(--ink-faint); min-width: 50px; letter-spacing: 0.2em; }
.br-v { color: var(--cyan); letter-spacing: 0.05em; }

/* ----------- SMOOTH SCROLL ----------- */
html { scroll-behavior: smooth; }

/* ----------- RESPONSIVE ----------- */
@media (max-width: 1100px) {
  .nav-links { gap: 2px; }
  .nav-links a { padding: 7px 9px; letter-spacing: 0.08em; }
  .container { padding: 0 32px; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .nav-links .nl-i { display: none; }
}
@media (max-width: 900px) {
  .nav { padding: 14px 18px; }
  .nav-logo .tag { display: none; }
  .nav-logo img { height: 22px; }
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: 0;
    width: min(330px, 84vw); height: 100vh;
    flex-direction: column; align-items: stretch; justify-content: center;
    gap: 4px; padding: 88px 24px 32px;
    background: rgba(5,8,16,0.98); backdrop-filter: blur(16px);
    border-left: 1px solid rgba(0,240,255,0.18);
    transform: translateX(105%); transition: transform 0.38s cubic-bezier(0.76,0,0.24,1);
    z-index: 99;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 16px; padding: 13px 14px; letter-spacing: 0.1em; }
  .nav-links a::after { display: none; }
  .side-rail { display: none; }
  .hud-corners { display: none; }
  .hero { min-height: 600px; height: 100vh; }
  .hero-tagline { font-size: 10px; letter-spacing: 0.25em; }
  .hero-tagline::before, .hero-tagline::after { width: 20px; }
  .hero-sub { font-size: 15px; padding: 0 8px; }
  .hero-cta { gap: 10px; }
  .btn { padding: 13px 20px; font-size: 11px; }
  .ticker-track { font-size: 22px; }
  .ticker-track span { padding: 0 24px; gap: 24px; }
  .section-head { margin-bottom: 48px; }
  .section-meta { text-align: left; }
  .about-text p { font-size: 16px; }
  .stat { padding: 22px; }
  .stat .num { font-size: 40px; }
  .service-card { min-height: 280px; padding: 28px 22px 22px; }
  .service-title { font-size: 22px; }
  .studio-cap h3 { font-size: 26px; }
  .studio-feature { min-height: 360px; }
  .studio-row { padding: 22px; }
  .contact-form { padding: 28px 20px; }
  .contact-info { grid-template-columns: 1fr; gap: 16px; }
  footer { padding: 24px 20px; }
}
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 280px; justify-content: center; }
  .ticker-track { font-size: 18px; }
  .hero-logo { width: 80vw; }
  .studio-tab { padding: 16px 12px; }
  .studio-tab .tt { font-size: 14px; }
}
@media (hover: none) and (pointer: coarse) {
  input, textarea, select { font-size: 16px !important; }
}
.ticker {
  position: relative;
  border-top: 1px solid rgba(0,240,255,0.15);
  border-bottom: 1px solid rgba(0,240,255,0.15);
  padding: 18px 0;
  background: var(--void-2);
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  animation: ticker 50s linear infinite;
  font-family: var(--f-tech);
  font-size: 32px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ticker-track span {
  padding: 0 40px;
  display: inline-flex; align-items: center; gap: 40px;
}
.ticker-track span::after {
  content: "◆"; color: var(--magenta); font-size: 16px;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ----------- ABOUT PHOTO STRIP ----------- */
.about-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 72px;
}
@media (max-width: 900px) { .about-strip { grid-template-columns: 1fr; } }
.about-strip figure {
  position: relative;
  border: 1px solid rgba(0, 240, 255, 0.2);
  overflow: hidden;
  margin: 0;
  height: 250px;
}
.about-strip img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05) brightness(0.85);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}
.about-strip figure:hover img { transform: scale(1.06); filter: saturate(1.2) contrast(1.1) brightness(1); }
.about-strip figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 12px 14px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-transform: uppercase;
  background: linear-gradient(180deg, transparent, rgba(3,5,10,0.92));
}

/* ----------- LOCATION MAP ----------- */
.map-shell {
  position: relative;
  height: 720px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: var(--void-2);
  overflow: hidden;
}
#map-canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.map-hud {
  position: absolute; top: 20px; left: 20px;
  z-index: 5;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
}
.map-status {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(3,5,10,0.7);
  border: 1px solid rgba(0,240,255,0.25);
  padding: 10px 14px;
  backdrop-filter: blur(6px);
}
.map-status .dim { color: var(--ink-faint); }
.floor-rail {
  position: absolute; left: 20px; bottom: 20px;
  z-index: 5;
  display: flex; flex-direction: column-reverse; gap: 6px;
}
.floor-rail[hidden] { display: none; }
.floor-btn {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  background: rgba(3,5,10,0.72);
  border: 1px solid rgba(0,240,255,0.25);
  padding: 9px 14px;
  cursor: pointer;
  display: flex; gap: 12px; align-items: center;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  backdrop-filter: blur(6px);
  text-transform: uppercase;
  text-align: left;
}
.floor-btn b {
  font-family: var(--f-tech);
  font-size: 15px;
  min-width: 26px;
  color: var(--cyan);
  font-weight: 600;
}
.floor-btn:hover { border-color: var(--cyan); color: var(--ink); }
.floor-btn.active { border-color: var(--magenta); color: var(--magenta); background: rgba(255,43,214,0.08); }
.floor-btn.active b { color: var(--magenta); }
.floor-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 430px;
  z-index: 6;
  background: rgba(4,7,15,0.93);
  border-left: 1px solid rgba(0,240,255,0.25);
  backdrop-filter: blur(12px);
  padding: 28px;
  overflow-y: auto;
  animation: panelIn 0.35s ease;
}
.floor-panel[hidden] { display: none; }
@keyframes panelIn {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.fp-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.fp-id { font-family: var(--f-tech); font-size: 44px; font-weight: 600; color: var(--cyan); line-height: 1; }
.fp-name { font-family: var(--f-mono); font-size: 11px; color: var(--magenta); letter-spacing: 0.25em; margin-top: 8px; text-transform: uppercase; }
.fp-close {
  background: none;
  border: 1px solid var(--ink-faint);
  color: var(--ink-dim);
  width: 34px; height: 34px;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}
.fp-close:hover { border-color: var(--magenta); color: var(--magenta); }
.fp-svg { border: 1px solid rgba(0,240,255,0.15); background: rgba(0,240,255,0.02); margin-bottom: 16px; }
.fp-svg svg { display: block; width: 100%; height: auto; }
.fp-desc { font-size: 14px; color: var(--ink-dim); line-height: 1.6; margin-bottom: 16px; }
.fp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fp-tags span {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-faint);
  border: 1px solid var(--ink-faint);
  padding: 4px 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.map-addr {
  position: absolute; right: 20px; bottom: 20px;
  z-index: 5;
  text-align: right;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.15em;
  background: rgba(3,5,10,0.7);
  border: 1px solid rgba(0,240,255,0.2);
  padding: 12px 16px;
  backdrop-filter: blur(6px);
  line-height: 1.7;
  text-transform: uppercase;
}
.map-addr .hl { color: var(--cyan); }
@media (max-width: 900px) {
  .map-shell { height: 560px; }
  .floor-panel { width: 100%; border-left: none; }
  .map-addr { display: none; }
  .floor-btn span { display: none; }
  .floor-rail { flex-direction: row; flex-wrap: wrap; right: 20px; }
}


/* ----------- PORTFOLIO LINKS ----------- */
a.work { display: block; text-decoration: none; color: inherit; }
.work-go {
  position: absolute; top: 13px; right: 14px; z-index: 3;
  font-family: var(--f-mono); font-size: 15px; line-height: 1;
  color: var(--cyan); opacity: 0; transform: translate(-4px, 4px);
  transition: opacity .3s ease, transform .3s ease;
  text-shadow: 0 0 10px rgba(0,240,255,.6); pointer-events: none;
}
.work:hover .work-go { opacity: 1; transform: translate(0,0); }

/* ----------- INTRO LOADER ----------- */
html.intro-lock, html.intro-lock body { overflow: hidden; }
#intro {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
#intro.intro-done { display: none; }
.intro-panel {
  position: absolute; left: 0; right: 0; height: 50.5%;
  background: var(--void);
  transition: transform .5s cubic-bezier(.76,0,.24,1);
  will-change: transform;
}
.intro-panel.top { top: 0; border-bottom: 1px solid rgba(0,240,255,.18); }
.intro-panel.bottom { bottom: 0; border-top: 1px solid rgba(0,240,255,.18); }
.intro-panel::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(0,240,255,.025) 4px);
}
.intro-core {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  transition: opacity .25s ease, transform .35s ease;
}
.intro-logo {
  width: min(340px, 58vw); height: auto; display: block;
  opacity: 0; transform: translateY(12px);
  animation: introLogo .5s cubic-bezier(.2,.8,.2,1) .05s forwards;
  filter: drop-shadow(0 0 22px rgba(0,240,255,.35));
}
.intro-bar {
  width: min(300px, 52vw); height: 2px;
  background: rgba(0,240,255,.14); position: relative; overflow: hidden;
}
.intro-bar > i {
  position: absolute; left: 0; top: 0; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--magenta), var(--cyan));
  box-shadow: 0 0 10px var(--cyan);
}
.intro-meta {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--ink-dim);
  display: flex; gap: 18px; align-items: center;
}
.intro-pct { color: var(--cyan); font-variant-numeric: tabular-nums; }
#intro.intro-out .intro-core { opacity: 0; transform: scale(1.05); }
#intro.intro-out .intro-panel { transition-delay: .08s; }
#intro.intro-out .intro-panel.top { transform: translateY(-100%); }
#intro.intro-out .intro-panel.bottom { transform: translateY(100%); }
@keyframes introLogo { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .intro-logo { animation: none; opacity: 1; transform: none; }
  .intro-panel { transition: none; }
}
