/* ==========================================================================
   CyclopsView Public Showcase — Zilo Living Organic + ASCII Eye Draw Backdrop
   ========================================================================== */
:root {
  --night: #080c16;
  --night-deep: #050810;
  --night-raised: rgba(16, 24, 40, 0.84);
  --night-card: rgba(16, 25, 43, 0.82);
  --night-hover: rgba(27, 40, 64, 0.92);
  --ink: rgba(74, 106, 146, 0.52);
  --ink-bright: rgba(127, 185, 199, 0.72);
  --dim: #a4bdd0;
  --text: #f0f8fc;
  --eye: #bfe6f0;
  --iris: #7fb9c7;
  --pupil: #ffffff;
  --lamp: #f2c166;
  --zilo: #c88cff;
  --linedraw: #a371f7;
  --linedraw-cyan: #79c0ff;
  --cyclops: #59cdd0;
  --studio: #58a6ff;
  --emerald: #46d160;
  --rose: #ff7eb6;
  --glyph: 'JetBrains Mono', 'DejaVu Sans Mono', monospace;
  --voice: 'Liberation Sans Narrow', 'Arial Narrow', 'DejaVu Sans Condensed', system-ui, sans-serif;
  --fit: 1;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--night-deep);
  color: var(--text);
  overflow-x: hidden;
  overflow-y: auto;
  font: 16px/1.48 var(--voice);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body[data-mode="rest"] {
  overflow: hidden;
  height: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a {
  color: var(--eye);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

:focus {
  outline: none;
}

:focus-visible, body.keys :focus {
  outline: 1px dashed var(--eye);
  outline-offset: 4px;
}

pre, code {
  margin: 0;
  font-family: var(--glyph);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   LIVING ZILO ORGANIC + ASCII EYE DRAW BACKGROUND LAYER
   ========================================================================== */
#living-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(circle at 50% 18%, #162340 0%, #090e1d 58%, #04070e 100%);
}

#living-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#ascii-bg-layer {
  position: absolute;
  inset: 0;
  font-family: var(--glyph);
  font-size: 12px;
  line-height: 1.18;
  color: rgba(191, 230, 240, 0.16);
  white-space: pre;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 58px 28px 24px 28px;
  mix-blend-mode: screen;
}

.ascii-wing {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  opacity: 0.9;
  text-shadow: 0 0 12px rgba(89, 205, 208, 0.32);
}

#special-entities-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  display: block;
}

/* ==========================================================================
   TOP PUBLIC HEADER BAR
   ========================================================================== */
.public-topbar {
  position: sticky;
  top: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 36px;
  background: rgba(8, 12, 22, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ink);
}

body[data-mode="rest"] .public-topbar {
  opacity: 0;
  pointer-events: none;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--glyph);
  font-size: 13.5px;
}

.brand-title {
  font-weight: 700;
  color: var(--eye);
  letter-spacing: .04em;
  cursor: pointer;
}

.coming-soon-global {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 999px;
  font-family: var(--glyph);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--lamp);
  background: rgba(242, 193, 102, 0.14);
  border: 1px solid rgba(242, 193, 102, 0.48);
  box-shadow: 0 0 14px rgba(242, 193, 102, 0.2);
}

.coming-soon-global .pulse-dot,
.coming-soon-badge .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 8px var(--lamp);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

.topbar-socials {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-family: var(--glyph);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  background: rgba(19, 28, 44, 0.85);
  border: 1px solid var(--ink-bright);
  text-decoration: none;
  transition: all .18s ease;
}

.social-pill:hover {
  text-decoration: none;
  transform: translateY(-1px);
  border-color: var(--eye);
  box-shadow: 0 0 14px rgba(191, 230, 240, 0.25);
}

.social-pill.yt-link {
  border-color: rgba(255, 110, 110, 0.45);
  color: #ffd6d6;
}

.social-pill.yt-link:hover {
  border-color: #ff6e6e;
  box-shadow: 0 0 14px rgba(255, 110, 110, 0.3);
}

.social-pill.gh-link {
  border-color: rgba(126, 231, 135, 0.48);
  color: #d2fedb;
}

.social-pill.gh-link:hover {
  border-color: #7ee787;
  box-shadow: 0 0 14px rgba(126, 231, 135, 0.32);
}

.social-icon {
  font-size: 12px;
  color: var(--eye);
}

.social-pill.yt-link .social-icon {
  color: #ff6e6e;
}

.social-pill.gh-link .social-icon {
  color: #7ee787;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  font-family: var(--glyph);
  font-size: 12.5px;
  color: var(--dim);
  background: rgba(19, 28, 44, 0.72);
  border: 1px solid var(--ink);
  border-radius: 3px;
  transition: all .18s ease;
}

.nav-pill:hover, .nav-pill.active {
  color: var(--text);
  border-color: var(--hue, var(--eye));
  background: rgba(191, 230, 240, 0.12);
  box-shadow: 0 0 16px rgba(191, 230, 240, 0.16);
}

.nav-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hue, var(--eye));
  box-shadow: 0 0 6px var(--hue, var(--eye));
}

/* ==========================================================================
   WORLD STAGE (REST & HOME FRONT PAGE) — EXPANDED TO FILL WIDE SCREENS
   ========================================================================== */
#world {
  position: relative;
  z-index: 10;
  transition: opacity .28s ease;
}

body[data-mode="place"] #world {
  display: none;
}

.stage-wrap {
  position: relative;
  width: 100%;
  height: calc(615px * var(--fit, 1) + 36px);
  padding-top: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: visible;
  margin-bottom: 12px;
}

body[data-mode="rest"] .stage-wrap {
  height: 100vh;
  align-items: center;
  padding-top: 0;
}

.stage {
  position: relative;
  width: 1380px;
  height: 615px;
  transform: scale(var(--fit));
  transform-origin: 50% 0%;
  flex: none;
}

body[data-mode="rest"] .stage {
  transform-origin: 50% 50%;
}

/* The Eye: at REST in the centre, at Home in the sky above the places. */
.eye {
  --eye-lid: #e8fcff;
  --eye-iris: #64f2f8;
  --eye-glow: #59cdd0;
  position: absolute;
  left: 50%;
  top: 50%;
  padding: 18px 36px;
  transform: translate(-50%, -50%);
  transition: top .55s cubic-bezier(.2, .7, .2, 1), transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease;
  border-radius: 999px;
  background: radial-gradient(ellipse at 50% 50%, rgba(12, 24, 46, 0.84) 0%, rgba(89, 205, 208, 0.16) 46%, rgba(200, 140, 255, 0.08) 68%, rgba(5, 8, 16, 0) 82%);
  box-shadow: 0 0 48px rgba(89, 205, 208, 0.24), inset 0 0 28px rgba(191, 230, 240, 0.12);
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.eye pre {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: .03em;
  text-align: left;
  white-space: pre;
  color: var(--eye-lid);
  text-shadow: 0 0 14px var(--eye-glow), 0 0 28px rgba(89, 205, 208, 0.45);
  filter: drop-shadow(0 0 10px var(--eye-glow));
}

body[data-mode="home"] .eye {
  top: 158px;
  transform: translate(-50%, -50%) scale(.95);
}

body[data-mode="home"] .eye.eye-pulsing {
  transform: translate(-50%, -50%) scale(1.06);
}

.lid {
  color: var(--eye-lid);
  text-shadow: 0 0 12px var(--eye-lid), 0 0 26px var(--eye-glow);
}
.iris {
  color: var(--eye-iris);
  text-shadow: 0 0 14px var(--eye-iris), 0 0 28px var(--eye-glow);
}
.pupil {
  color: #ffffff;
  text-shadow: 0 0 14px #ffffff, 0 0 26px #f2c166, 0 0 42px var(--eye-glow);
}
.eye:hover {
  box-shadow: 0 0 64px var(--eye-glow), inset 0 0 34px rgba(191, 230, 240, 0.24);
}
.eye:hover .lid { color: #ffffff; }

.rest-hint {
  position: absolute;
  left: 0;
  right: 0;
  top: 472px;
  text-align: center;
  color: var(--eye);
  font-family: var(--glyph);
  font-size: 13.5px;
  letter-spacing: .06em;
  opacity: .85;
  transition: opacity .35s ease;
  pointer-events: none;
}

body[data-mode="home"] .rest-hint,
body[data-mode="place"] .rest-hint {
  opacity: 0;
}

/* Home: a small town on the Eye's horizon. */
.home {
  position: absolute;
  inset: 0;
}
.home[hidden] {
  display: none;
}

.hero-headline {
  position: absolute;
  left: 0;
  right: 0;
  top: 282px;
  text-align: center;
  pointer-events: none;
}

.hero-headline .tagline {
  font-family: var(--glyph);
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--eye);
  opacity: 0.95;
  text-shadow: 0 0 14px rgba(191, 230, 240, 0.55);
}

.horizon {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 488px;
  color: rgba(127, 185, 199, 0.48);
  font-size: 12.5px;
  white-space: pre;
  overflow: hidden;
  pointer-events: none;
}

.street {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 304px;
  height: 245px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 28px;
  transform-origin: 50% 100%;
}

.place {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  min-width: 198px;
  padding: 12px 16px 8px;
  border-radius: 5px;
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.place:hover, .place:focus-visible {
  background: rgba(19, 28, 44, 0.78);
  border-color: var(--hue, var(--eye));
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(191, 230, 240, 0.15);
}

.place pre {
  margin-bottom: 14px;
  font-size: 13.5px;
  line-height: 1.15;
  color: #7998ba;
  white-space: pre;
  transition: filter .2s ease;
}

.place:hover pre, .place:focus-visible pre {
  filter: brightness(1.45);
}

.place.opening pre {
  filter: brightness(1.9);
}

.place .label {
  display: block;
  height: 44px;
  text-align: center;
  transition: opacity .8s ease;
}

.place .name {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .01em;
}

.place .status {
  display: inline-block;
  margin-top: 3px;
  padding: 1px 8px;
  border-radius: 99px;
  font-family: var(--glyph);
  font-size: 10.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--lamp);
  background: rgba(242, 193, 102, 0.13);
  border: 1px solid rgba(242, 193, 102, 0.38);
}

.gap { width: 54px; flex: none; }

/* Glyph roles inside places. */
.g-accent { color: var(--hue); }
.g-lit { color: var(--hue); text-shadow: 0 0 9px var(--hue); }
.g-dark { color: #4a627e; }
.g-query { color: var(--lamp); }
.g-lamp { color: var(--lamp); text-shadow: 0 0 9px rgba(242, 193, 102, .8); }
.g-dust { color: #3a4a5f; }

.whisper {
  position: absolute;
  left: 0;
  right: 0;
  top: 566px;
  margin: 0;
  text-align: center;
  font-size: 16.5px;
  color: var(--dim);
  min-height: 1.5em;
  transition: opacity .8s ease;
}
.whisper strong {
  color: var(--eye);
  font-weight: 700;
}

/* ==========================================================================
   FRONT PAGE SECTIONS — WIDE & FULL-PAGE LAYOUT
   ========================================================================== */
.front-content {
  width: min(1720px, calc(100% - 64px));
  margin: 0 auto;
  padding: 0 12px 92px;
}

body[data-mode="rest"] .front-content {
  display: none;
}

.front-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
}

.front-section-title h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: .02em;
  color: var(--text);
}

.front-section-title span {
  font-family: var(--glyph);
  font-size: 12.5px;
  color: var(--eye);
}

/* Project Showcase Cards on Front Page — 5 Across on Wide Screens */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 48px;
}

.open-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 99px;
  font-family: var(--glyph);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #7ee787;
  background: rgba(63, 185, 80, 0.16);
  border: 1px solid rgba(126, 231, 135, 0.48);
}

.open-source-badge .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7ee787;
  box-shadow: 0 0 8px #7ee787;
  animation: pulse-glow 2s infinite ease-in-out;
}

.showcase-card {
  background: var(--night-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--ink);
  border-top: 3px solid var(--hue, var(--eye));
  border-radius: 5px;
  padding: 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  cursor: pointer;
}

.showcase-card:hover {
  transform: translateY(-4px);
  border-color: var(--hue, var(--eye));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.55), 0 0 24px rgba(191, 230, 240, 0.14);
}

.showcase-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 99px;
  font-family: var(--glyph);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--lamp);
  background: rgba(242, 193, 102, 0.14);
  border: 1px solid rgba(242, 193, 102, 0.45);
}

.showcase-card h3 {
  margin: 8px 0 8px;
  font-size: 24px;
  color: var(--text);
}

.showcase-card p {
  margin: 0;
  color: var(--dim);
  font-size: 15px;
  line-height: 1.54;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.mini-tag {
  padding: 3px 9px;
  background: rgba(8, 12, 22, 0.8);
  border: 1px solid var(--ink);
  border-radius: 3px;
  font-family: var(--glyph);
  font-size: 11.5px;
  color: var(--text);
}

.enter-place-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  background: rgba(14, 21, 34, 0.88);
  border: 1px solid var(--ink);
  border-radius: 3px;
  font-family: var(--glyph);
  font-size: 12.5px;
  color: var(--hue, var(--eye));
  transition: background .15s, border-color .15s;
}

.showcase-card:hover .enter-place-btn {
  background: rgba(191, 230, 240, 0.12);
  border-color: var(--hue, var(--eye));
}

/* Live Screenshots Gallery & Place Screenshot Showcases */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 48px;
}

.screenshots-grid.single-shot {
  grid-template-columns: 1fr;
}

.screenshot-card {
  background: var(--night-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--ink-bright);
  border-top: 3px solid var(--shot-hue, var(--eye));
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.52);
}

.screenshot-card:hover {
  transform: translateY(-4px);
  border-color: var(--shot-hue, var(--eye));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.65), 0 0 24px rgba(191, 230, 240, 0.16);
}

.screenshot-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(10, 16, 29, 0.94);
  border-bottom: 1px solid var(--ink);
  font-family: var(--glyph);
  font-size: 12px;
}

.screenshot-bar-title {
  color: var(--text);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.screenshot-zoom-hint {
  color: var(--shot-hue, var(--eye));
  font-size: 11px;
}

.screenshot-img-link {
  display: block;
  position: relative;
  background: #04070e;
  overflow: hidden;
  cursor: zoom-in;
}

.screenshot-img-link img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  object-position: top center;
  transition: transform .28s ease;
}

.screenshots-grid.single-shot .screenshot-img-link img {
  max-height: 680px;
  object-fit: contain;
}

.screenshot-card:hover .screenshot-img-link img {
  transform: scale(1.015);
}

.screenshot-caption {
  padding: 14px 18px;
  font-size: 14.5px;
  line-height: 1.52;
  color: var(--dim);
  border-top: 1px solid var(--ink);
  background: rgba(8, 13, 24, 0.88);
}

.screenshot-caption strong {
  color: var(--text);
}

/* Lightbox Modal for Full-Resolution Screenshot Inspection */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(3, 6, 12, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  cursor: zoom-out;
}

.lightbox-modal[hidden] {
  display: none !important;
}

.lightbox-modal img {
  max-width: min(1680px, 95vw);
  max-height: 84vh;
  border: 1px solid var(--ink-bright);
  border-radius: 6px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85);
}

.lightbox-caption {
  margin-top: 12px;
  font-family: var(--glyph);
  font-size: 13px;
  color: var(--eye);
  text-align: center;
}

/* About the Cyclops Eye Team Section — Full Width, Balanced 3x2 Pillar Grid */
.team-banner {
  background: linear-gradient(135deg, rgba(18, 28, 48, 0.9) 0%, rgba(10, 17, 32, 0.94) 100%);
  backdrop-filter: blur(14px);
  border: 1px solid var(--ink-bright);
  border-left: 4px solid var(--eye);
  border-radius: 6px;
  padding: 34px 38px;
  display: grid;
  grid-template-columns: 1.55fr 0.45fr;
  gap: 32px;
  align-items: stretch;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.5);
}

.team-kicker {
  font-family: var(--glyph);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--eye);
  margin-bottom: 10px;
}

.team-banner h2 {
  margin: 0 0 14px;
  font-size: 32px;
  color: var(--text);
}

.team-banner p {
  margin: 0 0 14px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--dim);
}

.team-banner p strong {
  color: var(--text);
}

.team-banner p em {
  color: var(--eye);
  font-style: normal;
}

.team-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.team-pillar {
  background: rgba(7, 11, 21, 0.78);
  border: 1px solid var(--ink);
  border-top: 2px solid var(--pillar-hue, var(--eye));
  border-radius: 4px;
  padding: 14px 16px;
}

.team-pillar strong {
  display: block;
  font-family: var(--glyph);
  font-size: 13px;
  color: var(--pillar-hue, var(--eye));
  margin-bottom: 6px;
}

.team-pillar span {
  display: block;
  font-size: 14px;
  line-height: 1.48;
  color: var(--dim);
}

.team-ascii-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.team-ascii-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 8, 16, 0.9);
  border: 1px solid var(--ink);
  border-radius: 5px;
  padding: 20px;
  text-align: center;
  font-family: var(--glyph);
  font-size: 12.5px;
  line-height: 1.25;
  color: var(--eye);
  text-shadow: 0 0 12px rgba(191, 230, 240, 0.38);
  white-space: pre;
  overflow-x: auto;
}

.team-creed-box {
  background: rgba(200, 140, 255, 0.08);
  border: 1px solid rgba(200, 140, 255, 0.38);
  border-radius: 5px;
  padding: 16px 18px;
  font-family: var(--glyph);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text);
}

.team-creed-box strong {
  color: var(--zilo);
  display: block;
  margin-bottom: 4px;
  letter-spacing: .06em;
}

.team-socials-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.team-social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: rgba(7, 11, 21, 0.88);
  border: 1px solid var(--ink-bright);
  border-radius: 5px;
  text-decoration: none;
  transition: all .18s ease;
}

.team-social-btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  background: rgba(19, 28, 44, 0.92);
  border-color: var(--eye);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 16px rgba(191, 230, 240, 0.22);
}

.team-social-btn.yt-btn {
  border-color: rgba(255, 110, 110, 0.45);
}

.team-social-btn.yt-btn:hover {
  border-color: #ff6e6e;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 16px rgba(255, 110, 110, 0.28);
}

.team-social-btn.gh-btn {
  grid-column: 1 / -1;
  border-color: rgba(126, 231, 135, 0.48);
}

.team-social-btn.gh-btn:hover {
  border-color: #7ee787;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 16px rgba(126, 231, 135, 0.28);
}

.team-social-btn .social-glyph {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-family: var(--glyph);
  font-size: 15px;
  font-weight: 700;
  background: rgba(191, 230, 240, 0.12);
  color: var(--eye);
  flex: none;
}

.team-social-btn.yt-btn .social-glyph {
  background: rgba(255, 110, 110, 0.15);
  color: #ff6e6e;
}

.team-social-btn.gh-btn .social-glyph {
  background: rgba(126, 231, 135, 0.15);
  color: #7ee787;
}

.team-social-btn strong {
  display: block;
  font-family: var(--glyph);
  font-size: 12px;
  color: var(--text);
}

.team-social-btn small {
  display: block;
  font-size: 11.5px;
  color: var(--dim);
  margin-top: 2px;
}

/* ==========================================================================
   PROJECT PLACE PAGES — EXPANDED FULL-PAGE WIDTH
   ========================================================================== */
#place-viewport {
  position: relative;
  z-index: 50;
}

#place-viewport[hidden] {
  display: none;
}

.place-page {
  min-height: 100vh;
  width: min(1720px, calc(100% - 64px));
  margin: 0 auto;
  padding: 22px 12px 84px;
  display: none;
  animation: place-enter .24s cubic-bezier(.2, .7, .2, 1);
}

.place-page.active {
  display: block;
}

@keyframes place-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.place-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 0 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--ink);
}

.place-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--glyph);
  font-size: 13px;
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: var(--night-raised);
  border: 1px solid var(--ink);
  border-radius: 3px;
  color: var(--eye);
  font-family: var(--glyph);
  font-size: 12.5px;
  transition: background .15s, border-color .15s;
}

.back-home-btn:hover {
  background: var(--night-hover);
  border-color: var(--eye);
}

/* Place Hero Banner */
.place-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 30px 34px;
  background: var(--night-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--ink);
  border-left: 4px solid var(--hue, var(--eye));
  border-radius: 5px;
  margin-bottom: 26px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.place-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--glyph);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--hue, var(--eye));
  margin-bottom: 8px;
}

.place-title {
  margin: 0 0 12px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--text);
}

.place-subtitle {
  margin: 0 0 18px;
  font-size: 16.5px;
  line-height: 1.58;
  color: var(--dim);
  max-width: 1060px;
}

.place-subtitle strong {
  color: var(--text);
}

.place-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(5, 8, 16, 0.82);
  border: 1px solid var(--ink);
  border-radius: 3px;
  font-family: var(--glyph);
  font-size: 12px;
  color: var(--text);
}

.pill-accent {
  border-color: var(--hue, var(--eye));
  color: var(--hue, var(--eye));
}

.place-hero-art {
  padding: 18px 24px;
  background: rgba(5, 8, 16, 0.9);
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-family: var(--glyph);
  font-size: 13.5px;
  line-height: 1.18;
  color: var(--hue, var(--eye));
  text-shadow: 0 0 10px var(--hue, var(--eye));
  white-space: pre;
}

/* Interactive Instrument / Live Surface Box */
.instrument-shell {
  background: var(--night-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--ink);
  border-radius: 5px;
  margin-bottom: 30px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.48);
}

.instrument-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(5, 8, 16, 0.9);
  border-bottom: 1px solid var(--ink);
  font-family: var(--glyph);
  font-size: 12.5px;
}

.instrument-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

.instrument-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.ctrl-btn {
  padding: 5px 12px;
  font-family: var(--glyph);
  font-size: 12px;
  color: var(--dim);
  background: rgba(18, 27, 45, 0.9);
  border: 1px solid var(--ink);
  border-radius: 3px;
  transition: all .15s;
}

.ctrl-btn:hover {
  color: var(--text);
  border-color: var(--ink-bright);
}

.ctrl-btn.active {
  color: var(--night-deep);
  background: var(--hue, var(--eye));
  border-color: var(--hue, var(--eye));
  font-weight: 700;
}

.instrument-canvas-wrap {
  position: relative;
  width: 100%;
  background: rgba(4, 7, 14, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.logical-canvas {
  width: 100%;
  max-width: 1240px;
  aspect-ratio: 987 / 540;
  max-height: 500px;
  background: #04070e;
  border: 1px solid var(--ink);
  border-radius: 3px;
  display: block;
}

.instrument-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(5, 8, 16, 0.9);
  border-top: 1px solid var(--ink);
  font-family: var(--glyph);
  font-size: 12.5px;
  color: var(--dim);
}

.slider-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.slider-group input[type="range"] {
  width: 96px;
  accent-color: var(--hue, var(--eye));
  cursor: pointer;
}

.phrase-banner {
  letter-spacing: .14em;
  color: var(--eye);
  font-weight: 700;
}

/* Section Grids & Cards */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
}

.section-head h2 {
  margin: 0;
  font-size: 23px;
  color: var(--text);
  letter-spacing: .02em;
}

.section-head .section-tag {
  font-family: var(--glyph);
  font-size: 12.5px;
  color: var(--dim);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.card {
  background: var(--night-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--ink);
  border-radius: 5px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-accent-top {
  border-top: 2px solid var(--hue, var(--eye));
}

.card-kicker {
  font-family: var(--glyph);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--hue, var(--eye));
}

.card h3 {
  margin: 0;
  font-size: 19px;
  color: var(--text);
}

.card p {
  margin: 0;
  color: var(--dim);
  font-size: 15px;
  line-height: 1.52;
}

/* Studio Interactive Cockpit Simulator */
.studio-sim {
  background: var(--night-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--ink);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 28px;
}

.studio-ws-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(5, 8, 16, 0.9);
  border-bottom: 1px solid var(--ink);
  overflow-x: auto;
  font-family: var(--glyph);
  font-size: 12px;
}

.studio-ws-tab {
  padding: 6px 12px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  color: var(--dim);
  background: rgba(18, 27, 45, 0.85);
  white-space: nowrap;
}

.studio-ws-tab.active {
  color: var(--text);
  border-color: var(--ws-accent, var(--studio));
  background: rgba(88, 166, 255, 0.16);
}

.studio-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 9px 16px;
  background: rgba(14, 21, 34, 0.9);
  border-bottom: 1px solid var(--ink);
  font-family: var(--glyph);
  font-size: 12.5px;
  color: var(--dim);
}

.studio-grid {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: rgba(4, 7, 14, 0.85);
  min-height: 310px;
}

.studio-grid.layout-1 { grid-template-columns: 1fr; }
.studio-grid.layout-2 { grid-template-columns: 1fr 1fr; }
.studio-grid.layout-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }

.studio-pane {
  background: rgba(10, 16, 28, 0.92);
  border: 1px solid var(--ink);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.studio-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(18, 27, 45, 0.95);
  border-bottom: 1px solid var(--ink);
  font-family: var(--glyph);
  font-size: 12px;
}

.studio-pane-body {
  padding: 16px;
  font-family: var(--glyph);
  font-size: 13px;
  line-height: 1.52;
  color: var(--text);
  flex: 1;
  overflow: auto;
  white-space: pre-wrap;
}

.studio-draft-shelf {
  border-top: 1px solid var(--ink);
  background: rgba(14, 21, 34, 0.92);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.studio-draft-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--glyph);
  font-size: 12.5px;
}

.studio-draft-input {
  width: 100%;
  min-height: 54px;
  background: rgba(5, 8, 16, 0.9);
  border: 1px solid var(--ink);
  border-radius: 3px;
  color: var(--text);
  font-family: var(--glyph);
  font-size: 13px;
  padding: 8px 12px;
  resize: vertical;
}

/* Cyclops CLI + Ecosystem Interactive Split */
.cyclops-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  padding: 16px;
  background: rgba(4, 7, 14, 0.86);
}

.eco-canvas {
  width: 100%;
  height: 250px;
  background: #04070e;
  border: 1px solid var(--ink);
  border-radius: 3px;
  display: block;
}

@media (max-width: 1280px) {
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .team-pillars { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .place-hero, .team-banner, .cyclops-split,
  .showcase-grid, .team-pillars, .screenshots-grid,
  .studio-grid.layout-2, .studio-grid.layout-4 {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eye, .place .label, .whisper, .rail .anchor svg .blinker {
    transition: none;
    animation: none;
  }
}
