
:root {
  --bg:#070707; --line:#2a2a2a; --ink:#e8e8e8; --dim:#7a7a7a;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); font-family: Syne, sans-serif; }
body { min-height: 100%; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .06em; }
.dim, .slash { color: var(--dim); }
.led { width:7px; height:7px; border-radius:50%; background:#3a3a3a; display:inline-block; }
.led.live { background:#d8d8d8; box-shadow:0 0 8px #fff; }
.switch { color: var(--dim); text-decoration:none; font-size:11px; border:1px solid var(--line); padding:6px 8px; }
.ident { display:flex; align-items:center; gap:8px; font-size:12px; }

#field, .grid-overlay { position:fixed; inset:0; pointer-events:none; }
#field { z-index:0; }
.grid-overlay {
  z-index:1;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size:34px 34px;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 78%);
}

.rail {
  position:sticky; top:0; z-index:20;
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:13px;
  padding:13px 34px; border-bottom:1px solid var(--line);
  background:rgba(7,7,7,.86); backdrop-filter:blur(12px);
}
.cats { display:flex; flex-wrap:wrap; justify-content:center; gap:4px; }
.tab {
  font-family:"IBM Plex Mono", monospace; font-size:11px; letter-spacing:.08em;
  color:var(--dim); background:transparent; border:1px solid transparent; padding:6px 10px; cursor:pointer;
}
.tab.on, .tab:hover { color:var(--ink); border-color:var(--line); background:#0d0d0d; }
.rail .switch { justify-self:end; }

main { position:relative; z-index:2; padding:55px 21px 21px; }
.hero { max-width:1000px; margin:0 auto 34px; text-align:left; }
.kicker { font-size:11px; color:var(--dim); margin-bottom:16px; }
h1 { font-size:clamp(28px, 4.2vw, 54px); line-height:1.02; font-weight:800; letter-spacing:-.03em; }
h1 span { color:#9a9a9a; display:block; margin-top:4px; font-weight:600; }

.deck-wrap { position:relative; height:min(58vh, 520px); display:grid; place-items:center; perspective:1600px; }
.deck { width:min(92vw, 1100px); height:100%; position:relative; transform-style:preserve-3d; }
.unit {
  position:absolute; inset:50% auto auto 50%;
  width:min(55vw, 420px); height:min(34vw, 258px);
  margin-left:calc(min(55vw, 420px) / -2);
  margin-top:calc(min(34vw, 258px) / -2);
  transform-style:preserve-3d;
  transition:transform .55s cubic-bezier(.2,.8,.2,1);
  cursor:pointer; will-change:transform;
}
.plate {
  height:100%; border:1px solid var(--line);
  background:linear-gradient(180deg,#121212,#0a0a0a);
  position:relative; overflow:hidden;
  box-shadow:0 30px 60px rgba(0,0,0,.45);
}
.ticks::before, .ticks::after {
  content:""; position:absolute; width:13px; height:13px; border:1px solid #4a4a4a; z-index:3;
}
.ticks::before { top:6px; left:6px; border-right:0; border-bottom:0; }
.ticks::after { right:6px; bottom:6px; border-left:0; border-top:0; }
.hud {
  position:absolute; top:10px; left:18px; right:18px;
  display:flex; justify-content:space-between; z-index:4; font-size:10px; color:var(--dim);
}
.stage {
  position:absolute; inset:0; display:flex; flex-direction:column; justify-content:flex-end;
  padding:21px;
  background:radial-gradient(400px 160px at 80% 0%, rgba(255,255,255,.06), transparent 50%),
    linear-gradient(180deg, transparent 30%, #050505 100%);
}
.code { font-family:"IBM Plex Mono", monospace; font-size:11px; color:var(--dim); margin-bottom:8px; }
.ttl { font-size:28px; line-height:.95; font-weight:700; letter-spacing:-.03em; }
.dsc { margin-top:8px; color:var(--dim); font-size:12px; max-width:34ch; }
.unit.soon .plate { background:repeating-linear-gradient(-45deg,#0c0c0c,#0c0c0c 8px,#101010 8px,#101010 16px); }
.nav-btn {
  position:absolute; top:50%; transform:translateY(-50%); z-index:5;
  width:42px; height:42px; border:1px solid var(--line); background:#0b0b0b; color:var(--ink); font-size:24px; cursor:pointer;
}
.prev { left:max(8px, calc(50% - 560px)); }
.next { right:max(8px, calc(50% - 560px)); }
.status-bar { display:flex; justify-content:center; gap:21px; margin-top:34px; font-size:11px; }

/* mobile */
body.mobile {
  padding: calc(12px + var(--safe-top)) 16px calc(24px + var(--safe-bot));
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.m-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.m-hero h1 {
  font-size: clamp(20px, 5.8vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  word-break: break-word;
  overflow-wrap: break-word;
}
.m-hero h1 span { color: #9a9a9a; display: block; margin-top: 4px; font-weight: 600; }
.m-cats {
  display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin: 0 -16px 16px; padding: 0 16px 8px; scrollbar-width: none;
}
.m-cats::-webkit-scrollbar { display: none; }
.m-cats .tab {
  flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--line);
  font-size: 10px; border-radius: 4px; background: #0a0a0a;
}
.m-cats .tab.on { color: var(--ink); border-color: #666; background: #161616; }

/* Mobile 3D Deck Carousel (Vertical 3D Reel - Full Extended Height) */
.m-deck-wrap {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 460px;
  height: min(68vh, 560px);
  max-height: 600px;
  margin: 2px 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  touch-action: pan-x;
  overflow: hidden;
}
.m-deck {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
}
.m-unit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92vw, 360px);
  height: min(62vh, 470px);
  margin-left: calc(min(92vw, 360px) / -2);
  margin-top: calc(min(62vh, 470px) / -2);
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.45s ease;
  cursor: pointer;
  will-change: transform, opacity;
}
.m-unit .plate {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #141417, #08080a);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Image Preview Slot for Portal Screenshot */
.img-box {
  width: 100%;
  height: min(32vh, 250px);
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: #09090b;
  flex-shrink: 0;
}
.preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, #0d0d10, #0d0d10 10px, #131318 10px, #131318 20px);
}

/* Narrow & Sleek Control Bar Docked at Bottom */
.m-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 12px;
  height: 38px;
  margin-top: auto;
  margin-bottom: 6px;
  background: rgba(15, 15, 18, 0.92);
  border-radius: 8px;
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.m-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.m-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
  transition: all 0.3s ease;
  cursor: pointer;
}
.m-dot.on {
  background: #ffffff;
  transform: scale(1.4);
  box-shadow: 0 0 8px #fff;
}
.m-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #111;
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.m-btn:active { background: #222; transform: scale(0.95); }

.m-note { color: var(--dim); font-size: 10px; text-align: center; padding-top: 2px; margin-bottom: 2px; }

/* Contact Trigger Button in Header */
.contact-trigger {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.contact-trigger:hover {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

/* Cyber vCard Modal Backdrop Overlay */
.cyber-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(5, 5, 8, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.cyber-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Picasso-Cybernetic vCard Container */
.cyber-vcard-card {
  width: min(88vw, 520px);
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none;
  background-color: #0b0b0f;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    repeating-linear-gradient(-45deg, rgba(12, 12, 16, 0.9), rgba(12, 12, 16, 0.9) 8px, rgba(18, 18, 24, 0.9) 8px, rgba(18, 18, 24, 0.9) 16px);
  background-size: 34px 34px, 34px 34px, auto;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  padding: 38px 24px 24px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cyber-vcard-card::-webkit-scrollbar { display: none; }
.cyber-modal-overlay.active .cyber-vcard-card {
  transform: translateY(0) scale(1);
}
.cyber-vcard-card .hud {
  position: absolute;
  top: 10px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  z-index: 4;
  font-size: 10px;
  color: var(--dim);
}

/* Full Card Width Cinematic Portrait Hero Stage */
.cyber-avatar-wrap {
  position: relative;
  width: 100%;
  height: 320px;
  margin: 14px 0 20px;
  cursor: pointer;
}
.cyber-polygon-frame {
  width: 100%;
  height: 100%;
  padding: 2px;
  background: linear-gradient(135deg, #ffffff, #888888, #222222);
  clip-path: polygon(0 0, 100% 0, 100% 82%, 82% 100%, 0 100%);
  position: relative;
}
.cyber-avatar-inner {
  width: 100%;
  height: 100%;
  background: #060608;
  clip-path: polygon(0 0, 100% 0, 100% 82%, 82% 100%, 0 100%);
  position: relative;
  overflow: hidden;
}
.vcard-avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%) contrast(1.15) brightness(0.95);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}
.vcard-avatar-img.primary {
  opacity: 1;
  z-index: 2;
  transform: scale(1);
}
.vcard-avatar-img.secondary {
  opacity: 0;
  z-index: 1;
  transform: scale(1.08);
}

.cyber-avatar-wrap:hover .vcard-avatar-img.primary,
.cyber-avatar-wrap.warping .vcard-avatar-img.primary {
  opacity: 0;
  transform: scale(0.92);
  filter: grayscale(100%) brightness(1.4) blur(3px);
}
.cyber-avatar-wrap:hover .vcard-avatar-img.secondary,
.cyber-avatar-wrap.warping .vcard-avatar-img.secondary {
  opacity: 1;
  transform: scale(1);
  filter: grayscale(100%) contrast(1.15) brightness(0.95);
}

.avatar-warp-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

/* Badge & Headings (Clean Regular Non-Bold Font) */
.cyber-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.cyber-vcard-header {
  text-align: center;
  margin-bottom: 16px;
}
.cyber-vcard-name {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 4px;
}
.cyber-vcard-title {
  font-size: 11px;
  font-weight: 400;
  color: var(--dim);
  letter-spacing: 1px;
}

/* Live Node Card (100% Monochrome Silver) */
.cyber-node-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.node-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pulse-green-dot,
.pulse-silver-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
  animation: pulseSilverDot 2s infinite;
}
@keyframes pulseSilverDot {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Contact Pills (Strict Monochrome & Clean Non-Bold Font) */
.cyber-pills-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.cyber-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.25s ease;
}
.cyber-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateX(3px);
}
.cyber-pill.wa {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}
.cyber-pill.wa:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}
.cyber-pill span.icon {
  font-size: 16px;
  filter: grayscale(100%) brightness(2) contrast(1.2);
}

/* Download VCF Button (Clean Non-Bold Font) */
.btn-cyber-vcf {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #ffffff, #d0d0d5);
  color: #000000;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}
.btn-cyber-vcf:hover {
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* Close Modal Button */
.cyber-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cyber-modal-close:hover {
  background: #ffffff;
  color: #000000;
}

@media (max-width: 860px) {
  html[data-view="d"] .nav-btn { display: none; }
  html[data-view="d"] .unit { width: 78vw; height: 48vw; margin-left: -39vw; margin-top: -24vw; }
}

/* ── Desktop Contact Card: Horizontal Two-Column Layout ── */
@media (min-width: 768px) {
  .cyber-vcard-card {
    width: min(92vw, 820px);
    max-height: 88vh;
    padding: 0;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 340px 1fr;
    grid-template-rows: auto;
    overflow: hidden;
  }
  .cyber-vcard-card .ticks { display: none; }
  .cyber-vcard-card .hud {
    position: absolute;
    top: 12px;
    left: auto;
    right: 18px;
    z-index: 10;
  }
  .cyber-vcard-card .hud .no { display: none; }

  .cyber-avatar-wrap {
    grid-column: 1;
    grid-row: 1 / -1;
    width: 100%;
    height: 100%;
    margin: 0;
    min-height: 480px;
  }
  .cyber-polygon-frame {
    border-radius: 0;
    clip-path: none;
  }
  .cyber-avatar-inner {
    clip-path: none;
    border-radius: 0;
  }

  .cyber-vcard-card > *:not(.cyber-avatar-wrap):not(.ticks):not(.hud):not(.cyber-modal-close) {
    grid-column: 2;
    padding-left: 28px;
    padding-right: 28px;
  }
  .cyber-vcard-header {
    padding-top: 40px;
    text-align: left;
  }
  .cyber-vcard-name {
    font-size: 30px;
  }
  .cyber-node-card {
    margin-left: 28px;
    margin-right: 28px;
  }
  .cyber-pills-wrap {
    padding-left: 28px;
    padding-right: 28px;
  }
  .btn-cyber-vcf {
    margin: 0 28px 28px;
    width: auto;
  }
  .cyber-modal-close {
    top: 14px;
    right: 14px;
    z-index: 20;
    width: 36px;
    height: 36px;
  }
}

/* ── Strict Monochrome Enforcement (Black & White / Silver) ── */
.feature-icon,
.spec-value,
.pitch-icon,
.card-hud,
.hero-badge,
.cat-badge,
.icon,
.cyber-pill span.icon,
.cyber-pill,
.cat-contact-link,
.cta-primary,
.cta-secondary,
.back-link,
.contact-trigger,
.m-note,
.placeholder,
[class*="icon"],
[class*="badge"],
[class*="spec"] {
  -webkit-filter: grayscale(100%) contrast(130%) brightness(1.2);
  filter: grayscale(100%) contrast(130%) brightness(1.2);
}
