/* ==========================================================================
   TESTUJE.ONLINE — VESTRA STAGING ENVIRONMENT | MARIUSZ KAŁMUK
   Awwwards SOTD High-Craft Dark UI + Kinetic Swiss Grid + Matrix Stream
   ========================================================================== */

:root {
  /* Core Surfaces */
  --bg-void: #040608;
  --bg-deep: #070b0f;
  --surface-glass: rgba(11, 17, 23, 0.62);
  --surface-glass-hover: rgba(16, 26, 35, 0.78);

  /* Accents — Cyber Emerald & Surgical Cyan */
  --emerald-bright: #00ff9d;
  --emerald-core: #10b981;
  --emerald-dim: rgba(0, 255, 157, 0.14);
  --emerald-glow: rgba(0, 255, 157, 0.35);
  --cyan-accent: #38bdf8;

  /* Typography Colors */
  --text-primary: #f4f7f9;
  --text-secondary: #94a3b8;
  --text-muted: #526377;

  /* Structural Hairlines */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-active: rgba(0, 255, 157, 0.38);

  /* Fonts */
  --font-display: 'Syne', sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  cursor: none;
}

@media (hover: none) and (pointer: coarse) {
  html,
  body {
    cursor: auto;
  }
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

/* ==========================================================================
   CUSTOM RETICLE CURSOR
   ========================================================================== */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--emerald-bright);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px var(--emerald-bright);
  transition: width 0.2s var(--ease-out-expo), height 0.2s var(--ease-out-expo), background-color 0.2s;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(0, 255, 157, 0.42);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease-out-expo), height 0.35s var(--ease-out-expo),
    border-color 0.25s, background-color 0.25s, border-radius 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cursor-coords {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--emerald-bright);
  opacity: 0.65;
  white-space: nowrap;
  pointer-events: none;
}

body.cursor-hover .cursor-dot {
  width: 10px;
  height: 10px;
  background-color: #ffffff;
}

body.cursor-hover .cursor-ring {
  width: 58px;
  height: 58px;
  border-color: var(--emerald-bright);
  background-color: rgba(0, 255, 157, 0.06);
}

/* ==========================================================================
   MATRIX CANVAS & ATMOSPHERIC OVERLAYS
   ========================================================================== */
#matrix-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
}

.ambient-vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, rgba(4, 6, 8, 0.35) 0%, rgba(4, 6, 8, 0.88) 78%, rgba(4, 6, 8, 0.97) 100%),
    radial-gradient(circle at 50% 42%, rgba(0, 255, 157, 0.06) 0%, transparent 55%);
  transition: opacity 1.2s var(--ease-out-expo);
}

body.is-loading .ambient-vignette {
  opacity: 0.25;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.18) 3px,
    rgba(0, 0, 0, 0.18) 4px
  );
  opacity: 0.45;
}

/* ==========================================================================
   BOOT OVERLAY (INITIAL MATRIX SEQUENCE HUD)
   ========================================================================== */
.boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.85s var(--ease-out-expo), transform 0.85s var(--ease-out-expo), visibility 0.85s;
}

body.is-revealed .boot-overlay {
  opacity: 0;
  transform: scale(1.06);
  visibility: hidden;
}

.boot-terminal {
  width: min(380px, 86vw);
  padding: 24px 28px;
  background: rgba(5, 8, 11, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 255, 157, 0.32);
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 255, 157, 0.12);
}

.boot-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.boot-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 10px var(--emerald-bright);
  animation: pulseDot 1s infinite alternate;
}

.boot-code {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--emerald-bright);
  text-transform: uppercase;
}

.boot-progress-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 10px;
}

.boot-counter {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.boot-percent {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--emerald-bright);
}

.boot-bar-track {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-bottom: 12px;
}

.boot-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--emerald-core), var(--emerald-bright), #ffffff);
  box-shadow: 0 0 12px var(--emerald-bright);
  transition: width 0.08s linear;
}

.boot-log {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   100VH ARCHITECTURAL FRAME & SWISS GRID
   ========================================================================== */
.viewport-frame {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(16px, 2.6vh, 32px) clamp(18px, 3.2vw, 48px);
  overflow: hidden;
}

/* Exposed Hairline Grid */
.grid-lines {
  position: absolute;
  inset: clamp(16px, 2.6vh, 32px) clamp(18px, 3.2vw, 48px);
  pointer-events: none;
  z-index: 0;
  border: 1px solid var(--border-subtle);
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 1.2s var(--ease-out-expo) 0.1s, transform 1.2s var(--ease-out-expo) 0.1s;
}

body.is-revealed .grid-lines {
  opacity: 1;
  transform: scale(1);
}

.grid-line-v {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-subtle);
}
.grid-line-v.line-1 { left: 25%; }
.grid-line-v.line-2 { left: 50%; }
.grid-line-v.line-3 { left: 75%; }

.grid-line-h {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-subtle);
}
.grid-line-h.line-h-top { top: 64px; }
.grid-line-h.line-h-bottom { bottom: 54px; }

.crosshair {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
  color: var(--emerald-bright);
  opacity: 0.55;
  transform: translate(-50%, -50%);
}
.ch-tl { top: 64px; left: 25%; }
.ch-tr { top: 64px; left: 75%; }
.ch-bl { bottom: 54px; left: 25%; }
.ch-br { bottom: 54px; left: 75%; }

/* ==========================================================================
   TOP BAR (HUD HEADER)
   ========================================================================== */
.hud-header {
  position: relative;
  z-index: 5;
  height: 64px;
  padding: 0 clamp(14px, 2vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.25s, background-color 0.25s, transform 0.25s;
  cursor: none;
}

.brand-logo:hover {
  border-color: var(--border-active);
  background: rgba(0, 255, 157, 0.06);
}

.status-beacon {
  position: relative;
  width: 8px;
  height: 8px;
  display: inline-flex;
}

.beacon-core {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 8px var(--emerald-bright);
}

.beacon-ping {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--emerald-bright);
  animation: beaconPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.brand-domain {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

.copy-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(0, 255, 157, 0.12);
  color: var(--emerald-bright);
  transition: background-color 0.2s, color 0.2s;
}

.hud-divider {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.env-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}

.hud-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.telemetry-clock {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  background: rgba(7, 11, 15, 0.5);
  font-family: var(--font-mono);
}

.clock-label {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.clock-value {
  font-size: 11px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.hud-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  background: rgba(11, 17, 23, 0.65);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: none;
  transition: all 0.25s var(--ease-out-expo);
}

.hud-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-active);
  background: rgba(0, 255, 157, 0.08);
  transform: translateY(-1px);
}

.hud-btn-accent {
  border-color: rgba(0, 255, 157, 0.28);
  color: var(--emerald-bright);
}

.hud-btn-accent:hover {
  background: rgba(0, 255, 157, 0.16);
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.2);
}

.btn-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 6px var(--emerald-bright);
}

/* ==========================================================================
   CENTER STAGE (HERO SECTION)
   ========================================================================== */
.hero-stage {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(16px, 4vw, 64px);
  perspective: 1200px;
}

.hero-container {
  width: min(1060px, 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}

/* Eyebrow Pill */
.hero-eyebrow-wrap {
  margin-bottom: clamp(12px, 2vh, 22px);
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 16px;
  background: rgba(0, 255, 157, 0.05);
  border: 1px solid rgba(0, 255, 157, 0.26);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.eyebrow-index {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--emerald-bright);
}

.eyebrow-sep {
  width: 14px;
  height: 1px;
  background: rgba(0, 255, 157, 0.4);
}

.eyebrow-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-primary);
}

/* Monumental Headline */
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6.3vw, 6.1rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin-bottom: clamp(18px, 3vh, 32px);
}

.title-line {
  display: block;
}

.title-line-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.24em;
  margin-top: 0.06em;
}

.word-light {
  color: var(--text-primary);
}

.word-italic {
  font-weight: 600;
  color: rgba(244, 247, 249, 0.72);
  position: relative;
}

.word-pre {
  font-weight: 600;
  font-size: 0.72em;
  color: var(--text-secondary);
  letter-spacing: -0.02em;
}

.word-vestra {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #ffffff 0%, #c8ffe8 38%, var(--emerald-bright) 78%, var(--cyan-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 48px rgba(0, 255, 157, 0.24);
  cursor: none;
}

.word-vestra::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 2px;
  background: linear-gradient(90deg, var(--emerald-bright), transparent);
  opacity: 0.75;
}

.vestra-sup {
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 1vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--emerald-bright);
  padding: 4px 9px;
  border: 1px solid rgba(0, 255, 157, 0.3);
  border-radius: 4px;
  background: rgba(0, 255, 157, 0.06);
  transform: translateY(-0.9em);
}

/* Stream Bar */
.hero-stream-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(18px, 3vh, 32px);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.stream-code {
  color: var(--emerald-core);
  white-space: nowrap;
}

.stream-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.09);
  position: relative;
  overflow: hidden;
}

.stream-pulse {
  position: absolute;
  top: 0;
  left: -25%;
  width: 25%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--emerald-bright), transparent);
  animation: streamScan 3.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.stream-coords {
  white-space: nowrap;
  color: var(--text-secondary);
}

/* ==========================================================================
   IDENTITY & TELEMETRY BENTO CARDS (MARIUSZ KAŁMUK & VESTRA)
   ========================================================================== */
.identity-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(12px, 1.8vw, 22px);
}

.identity-card {
  position: relative;
  padding: clamp(16px, 2.2vh, 24px) clamp(18px, 2.2vw, 28px);
  background: var(--surface-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.35s var(--ease-out-expo), background-color 0.35s var(--ease-out-expo),
    transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo);
}

.identity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 157, 0.5), transparent);
  opacity: 0.4;
  transition: opacity 0.35s;
}

.identity-card:hover {
  border-color: var(--border-active);
  background: var(--surface-glass-hover);
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 30px rgba(0, 255, 157, 0.08);
}

.identity-card:hover::before {
  opacity: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.meta-label {
  color: var(--text-muted);
}

.meta-id {
  color: var(--emerald-bright);
  background: rgba(0, 255, 157, 0.08);
  padding: 2px 7px;
  border-radius: 3px;
}

.meta-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--emerald-bright);
}

.dot-online {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 8px var(--emerald-bright);
}

.card-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar-monogram {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.18), rgba(56, 189, 248, 0.08));
  border: 1px solid rgba(0, 255, 157, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--emerald-bright);
  box-shadow: inset 0 0 16px rgba(0, 255, 157, 0.12);
}

.owner-name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 4px;
}

.owner-role {
  font-size: clamp(0.78rem, 1vw, 0.88rem);
  color: var(--text-secondary);
  font-weight: 400;
}

/* Telemetry Metrics */
.telemetry-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 4px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 10px;
  background: rgba(4, 6, 8, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 5px;
}

.metric-key {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-highlight {
  color: var(--emerald-bright);
}

/* ==========================================================================
   BOTTOM BAR (HUD FOOTER)
   ========================================================================== */
.hud-footer {
  position: relative;
  z-index: 5;
  height: 54px;
  padding: 0 clamp(14px, 2vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-center {
  color: rgba(0, 255, 157, 0.65);
  letter-spacing: 0.15em;
  font-size: 9px;
}

.footer-copy strong {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   CHOREOGRAPHED REVEAL ANIMATIONS
   ========================================================================== */
.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition:
    opacity 0.95s var(--ease-out-expo),
    transform 0.95s var(--ease-out-expo),
    filter 0.95s var(--ease-out-expo);
  transition-delay: var(--delay, 0s);
}

body.is-revealed .reveal-item {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ==========================================================================
   KEYFRAMES
   ========================================================================== */
@keyframes pulseDot {
  0% { opacity: 0.4; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1.15); }
}

@keyframes beaconPing {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

@keyframes streamScan {
  0% { left: -25%; }
  100% { left: 105%; }
}

/* ==========================================================================
   RESPONSIVE ADAPTATION (KEEPING 100VH LOCKED)
   ========================================================================== */
@media (max-width: 900px) {
  .env-tag,
  .hud-header .hud-divider,
  .footer-center,
  .stream-coords {
    display: none;
  }

  .identity-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .grid-line-v.line-1,
  .grid-line-v.line-3,
  .crosshair {
    display: none;
  }
}

@media (max-width: 600px) {
  .viewport-frame {
    padding: 10px 12px;
  }

  .grid-lines {
    inset: 10px 12px;
  }

  .telemetry-clock,
  #toggle-rain-btn,
  .copy-badge {
    display: none;
  }

  .hud-header {
    height: 46px;
    padding: 0 10px;
  }

  .brand-domain {
    font-size: 12px;
  }

  .hud-btn {
    padding: 6px 10px;
    font-size: 9px;
  }

  .grid-line-h.line-h-top { top: 46px; }
  .grid-line-h.line-h-bottom { bottom: 38px; }

  .hero-stage {
    padding: 0 12px;
  }

  .hero-eyebrow-wrap {
    margin-bottom: 10px;
  }

  .eyebrow-pill {
    padding: 5px 11px;
    gap: 8px;
    max-width: 100%;
  }

  .eyebrow-index,
  .eyebrow-text {
    font-size: 8.5px;
    letter-spacing: 0.1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-title {
    font-size: clamp(1.95rem, 9.2vw, 2.75rem);
    line-height: 1.02;
    margin-bottom: 14px;
  }

  .vestra-sup {
    font-size: 0.6rem;
    padding: 3px 6px;
    transform: translateY(-0.35em);
  }

  .hero-stream-bar {
    margin-bottom: 14px;
    font-size: 9px;
    gap: 10px;
  }

  .identity-card {
    padding: 12px 14px;
  }

  .card-meta {
    margin-bottom: 8px;
    font-size: 9px;
  }

  .avatar-monogram {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

  .owner-name {
    font-size: 1.1rem;
    margin-bottom: 2px;
  }

  .owner-role {
    font-size: 0.74rem;
    line-height: 1.3;
  }

  .telemetry-metrics {
    gap: 6px;
  }

  .metric-item {
    padding: 6px 8px;
    gap: 3px;
  }

  .metric-key {
    font-size: 8px;
  }

  .metric-val {
    font-size: 10.5px;
  }

  .hud-footer {
    height: 38px;
    padding: 0 10px;
    justify-content: center;
    font-size: 9px;
    text-align: center;
  }

  .footer-left {
    display: none;
  }
}

/* Extra-short mobile viewports (e.g. iPhone SE or landscape / browser toolbars open) */
@media (max-height: 680px) {
  .hero-stream-bar {
    display: none;
  }

  .hero-eyebrow-wrap {
    margin-bottom: 8px;
  }

  .hero-title {
    margin-bottom: 10px;
  }

  .identity-grid {
    gap: 8px;
  }

  .identity-card {
    padding: 10px 12px;
  }

  .card-meta {
    margin-bottom: 6px;
  }
}

