/* ═══════════ CSS VARIABLES ═══════════ */
:root {
  --bg: hsl(30, 8%, 8%);
  --bg-card: hsl(30, 6%, 12%);
  --bg-elevated: hsl(30, 6%, 15%);
  
  --text: hsl(36, 20%, 88%);
  --text-secondary: hsl(36, 15%, 70%);
  --text-muted: hsl(30, 10%, 45%);
  
  --border: hsl(30, 6%, 18%);
  --border-hover: hsl(30, 6%, 28%);
  
  --coral: hsl(4, 60%, 58%);
  --warm: hsl(36, 40%, 60%);
  --sage: hsl(140, 20%, 45%);
  --sky: hsl(200, 35%, 55%);
  --clay: hsl(20, 30%, 40%);
  
  --font-sans: 'Space Grotesk', -apple-system, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

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

html { 
  scroll-behavior: smooth; 
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  width: 100%;
}

a { color: inherit; text-decoration: none; }

/* ═══════════ NOISE TEXTURE ═══════════ */
.noise-bg::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ═══════════ NAV ═══════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: hsla(30, 8%, 8%, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 28px;
  height: 34px;
}

.nav-logo-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
}

.nav-logo-text span { color: var(--coral); }

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

.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.nav-link:hover {
  color: var(--text);
  background: var(--bg-card);
}

.nav-link.active {
  color: var(--sage);
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: var(--sage);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
  flex-direction: column;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════ HERO ═══════════ */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 100px 24px 60px;
  position: relative;
  width: 100%;
}

.hero-content {
  max-width: 640px;
  width: 100%;
}

.hero h1 {
  font-size: clamp(2.2rem, 7vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.hero-accent {
  color: var(--coral);
  font-weight: 600;
  font-size: 0.65em;
  letter-spacing: 0;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 440px;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-press {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s;
}

.hero-press:hover { color: var(--text); }

.hero-wrapped {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-bottom: 28px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: #ffb21f;
  color: #142321;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  text-decoration: none;
  transition: transform 0.2s;
}
.hero-wrapped:hover { transform: translateY(-2px); }
.hero-wrapped:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.hero-wrapped-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: #142321;
  color: #ffb21f;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--coral);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px hsla(4, 60%, 58%, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.hero-side {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.4;
}

.hero-line {
  width: 1px;
  height: 96px;
  background: var(--border);
  margin-top: 12px;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; height: 32px; }
  50% { opacity: 1; height: 40px; }
}

/* ═══════════ STUDIO ═══════════ */
.studio {
  padding: 60px 24px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.studio-header {
  margin-bottom: 32px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 12px;
}

.studio-header h2 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 400px;
}

/* ═══════════ OFFICE GRID ═══════════ */
.office-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  width: 100%;
}

.app-list.app-list--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

/* ═══════════ FEATURED PROJECTS ═══════════ */
.studio-featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 36px;
}

.featured-card {
  --card-accent: var(--coral);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.featured-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 0% 0%, var(--card-accent) 0%, transparent 55%);
  opacity: 0.06;
  pointer-events: none;
  transition: opacity 0.2s;
}

.featured-card:hover {
  border-color: var(--card-accent);
  transform: translateY(-2px);
}

.featured-card:hover::before {
  opacity: 0.12;
}

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

.featured-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.featured-status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
}

.featured-card.is-wip .featured-status {
  color: hsl(36, 90%, 60%);
  border-color: hsl(36 90% 55% / 0.35);
  background: hsl(36 90% 55% / 0.08);
}

.featured-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.1;
  margin-top: 4px;
}

.featured-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.featured-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-cta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--card-accent);
  margin-top: 4px;
}

.featured-card:hover .featured-cta span {
  display: inline-block;
  transform: translateX(3px);
  transition: transform 0.2s;
}

/* ═══════════ STUDIO MORE ═══════════ */
.studio-subhead {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Category groups — same taxonomy /projects/ uses, in miniature. */
.studio-group + .studio-group {
  margin-top: 22px;
}

.studio-group-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.studio-group-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.studio-group-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

/* Sits next to .wip-badge on a tile, so it borrows that pill shape. */
.play-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: hsl(150 60% 45% / 0.15);
  color: hsl(150 60% 45%);
  border: 1px solid hsl(150 60% 45% / 0.3);
  border-radius: 20px;
  padding: 2px 7px;
  margin-left: 6px;
  vertical-align: middle;
}

.room {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  transition: border-color 0.2s;
  width: 100%;
  min-width: 0; /* Important for grid children */
}

.room:hover {
  border-color: var(--border-hover);
}

.room-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Meeting Room */
.room-meeting {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  min-height: 340px;
}

.meeting-floor {
  flex: 1;
  position: relative;
  background: var(--bg-elevated);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: visible;
  min-height: 180px;
}

.message-ticker {
  font-size: 11px;
  color: var(--text-secondary);
  padding: 6px 10px;
  background: var(--bg);
  border-radius: 6px;
  margin-bottom: 8px;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.message-ticker:empty {
  display: none;
}

.message-ticker-inner {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  animation: ticker-scroll 15s linear infinite;
}

.message-ticker:hover .message-ticker-inner,
.message-ticker.paused .message-ticker-inner {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

.message-ticker .sender {
  color: var(--warm);
  margin-right: 4px;
}

.meeting-input {
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 20;
  width: 100%;
}

.meeting-input input {
  flex: 1;
  min-width: 0; /* Allow shrinking */
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s;
}

.meeting-input input::placeholder { color: var(--text-muted); }
.meeting-input input:focus { border-color: var(--coral); }

.meeting-input button {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--coral);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.meeting-input button:hover,
.meeting-input button:active { background: hsl(4, 60%, 50%); }

.room-plant {
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-size: 24px;
  opacity: 0.2;
  pointer-events: none;
}

/* ItsyBit avatars */
.itsybit {
  position: absolute;
  width: 32px;
  height: 40px;
  cursor: pointer;
  transition: left 0.3s ease-out, top 0.3s ease-out;
  z-index: 10;
}

.itsybit img {
  width: 100%;
  height: 100%;
}

.itsybit .avatar-emoji {
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.itsybit.flipped img {
  transform: scaleX(-1);
}

.itsybit.boss {
  filter: drop-shadow(0 0 4px var(--coral));
}

.itsybit.inactive {
  filter: grayscale(1);
  opacity: 0.5;
}

.message-bubble {
  position: absolute;
  bottom: 100%;
  left: 0;
  background: white;
  color: var(--bg);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  white-space: nowrap;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  margin-bottom: 4px;
  pointer-events: none;
}

.itsybit:hover {
  z-index: 100;
}

.message-bubble.expanded,
.itsybit:hover .message-bubble {
  white-space: normal;
  max-width: 200px;
  min-width: 80px;
  overflow: visible;
  z-index: 101;
  word-wrap: break-word;
}

.itsybit.leaving {
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.5s, transform 0.5s;
}

/* Lounge */
.app-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.app-item:hover {
  border-color: var(--border);
  transform: translateX(4px);
}

.app-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.app-info {
  display: flex;
  flex-direction: column;
  min-width: 0; /* Allow text truncation */
}

.app-name {
  font-size: 14px;
  font-weight: 600;
}

.app-desc {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Lobby */
.lobby-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.visitor-avatars {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.visitor-avatar {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border: 2px solid var(--bg-card);
  margin-left: -6px;
}

.visitor-avatar:first-child { margin-left: 0; }

.visitor-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: var(--sage);
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  animation: pulse-dot 2s ease-in-out infinite;
}

.visitor-overflow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 8px;
}

.visitor-count {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Doorbell */
.doorbell-btn {
  margin-top: 12px;
  padding: 8px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.doorbell-btn:hover {
  background: var(--coral);
  border-color: var(--coral);
  transform: scale(1.05);
}

.doorbell-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Declaw debug overlay */
#declaw-overlay {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 280px;
  max-height: 200px;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid var(--coral);
  border-radius: 8px;
  font-family: monospace;
  font-size: 10px;
  z-index: 9999;
  overflow: hidden;
}

.declaw-header {
  background: var(--coral);
  color: white;
  padding: 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.declaw-header button {
  background: none;
  border: none;
  color: white;
  font-size: 14px;
  cursor: pointer;
}

.declaw-log {
  padding: 8px;
  max-height: 160px;
  overflow-y: auto;
  color: #0f0;
}

.declaw-log div {
  margin-bottom: 2px;
  word-break: break-all;
}

#declaw-overlay.minimized .declaw-log {
  display: none;
}

#declaw-overlay.minimized {
  max-height: none;
}

/* Jail for spammers */
.itsybit.jailed {
  filter: grayscale(50%);
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.jail-message {
  text-align: center;
  color: var(--coral);
  font-size: 12px;
  margin-top: 8px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.doorbell-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--bg-card);
  border: 1px solid var(--coral);
  padding: 16px 24px;
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
}

.doorbell-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ═══════════ BLOG SECTION ═══════════ */
.blog-section {
  padding: 60px 24px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s;
  min-width: 0;
}

.blog-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.blog-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.blog-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tag-devlog { background: hsl(262, 32%, 55%, 0.15); color: hsl(262, 32%, 65%); }
.tag-blog { background: hsl(200, 35%, 55%, 0.15); color: hsl(200, 35%, 65%); }
.tag-ai { background: hsl(15, 70%, 50%, 0.15); color: hsl(15, 70%, 60%); }
.tag-project { background: hsl(36, 40%, 60%, 0.15); color: hsl(36, 40%, 70%); }

.blog-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.35;
}

.blog-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.blog-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.blog-thumb {
  aspect-ratio: 16/10;
  background: var(--bg-elevated);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.blog-thumb-logo {
  height: 96px;
  width: auto;
}

/* ═══════════ FOOTER ═══════════ */
footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--coral); }

footer > p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ═══════════ MOBILE ═══════════ */
@media (max-width: 768px) {
  nav { 
    padding: 12px 16px; 
  }
  
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 72px 16px 24px;
    flex-direction: column;
    gap: 4px;
    background: hsla(30, 8%, 8%, 0.97);
    backdrop-filter: blur(20px);
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links .nav-link {
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 10px;
  }
  
  .hero { 
    padding: 80px 16px 40px; 
    min-height: auto; 
  }
  
  .hero h1 { 
    font-size: 2rem; 
  }
  
  .hero-sub {
    font-size: 16px;
  }
  
  .hero-side,
  .scroll-indicator { 
    display: none; 
  }
  
  .studio { 
    padding: 32px 16px; 
  }
  
  .studio-header { 
    margin-bottom: 20px; 
  }
  
  .office-grid { 
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .room { 
    padding: 16px; 
  }
  
  .room-lounge { 
    order: 1; 
  }
  
  .room-meeting { 
    min-height: 50vh;
    order: 2;
  }
  
  .meeting-floor { 
    min-height: 35vh;
  }
  
  .room-lobby { 
    order: 3; 
  }

  .room-labs {
    order: 4;
  }

  .studio-featured {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 24px;
  }

  .featured-card {
    padding: 18px;
  }

  .featured-name {
    font-size: 1.4rem;
  }

  .app-item {
    padding: 10px;
  }
  
  .blog-section { 
    padding: 32px 16px; 
  }
  
  .blog-grid { 
    grid-template-columns: 1fr; 
  }
  
  .blog-card.featured { 
    grid-column: auto; 
    grid-template-columns: 1fr; 
  }
  
  .blog-card { 
    padding: 16px; 
  }
  
  .blog-thumb {
    display: none;
  }
  
  footer {
    padding: 32px 16px;
  }
  
  .footer-links {
    gap: 16px;
  }
}

/* Whiteboard */
.whiteboard {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  min-height: 126px;
  height: auto;
  z-index: 10;
}

.whiteboard-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.whiteboard-content {
  position: absolute;
  top: 14px;
  left: 8px;
  right: 8px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 4px;
  overflow: hidden;
}

.whiteboard-label {
  font-size: 9px;
  color: #999;
  margin-bottom: 2px;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.whiteboard-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  max-width: 100%;
}

.whiteboard-emoji {
  font-size: 20px;
  line-height: 1;
}

.whiteboard-text {
  font-size: 11px;
  font-weight: 600;
  color: #333;
  font-family: 'Space Grotesk', sans-serif;
  text-align: center;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.whiteboard-text.long {
  font-size: 8px;
  line-height: 1.4;
}

/* Labs room */
.room-labs {
  /* same visual as lounge — just a standard room card */
}

/* WIP badge */
.wip-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: hsl(36 90% 55% / 0.15);
  color: hsl(36, 90%, 55%);
  border: 1px solid hsl(36 90% 55% / 0.3);
  border-radius: 20px;
  padding: 2px 7px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Lobby layout */
.room-lobby {
  overflow: visible;
}

.lobby-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lobby-info {
  flex: 1;
}

/* Harry bot avatar */
.harry-bot {
  flex-shrink: 0;
  position: relative;
}

.harry-avatar {
  width: 120px;
  height: auto;
  image-rendering: pixelated;
  cursor: pointer;
}

.harry-tooltip {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  opacity: 1;
  visibility: visible;
  transition: all 0.2s;
  margin-top: 8px;
}

.harry-bot:hover .harry-tooltip {
  opacity: 1;
  visibility: visible;
}

.harry-bot.jailed .harry-tooltip {
  display: none !important;
  pointer-events: none;
}

.harry-tooltip:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: white;
}

.harry-bubble {
  position: absolute;
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
  background: white;
  color: #333;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  max-width: 280px;
  min-width: 200px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  margin-right: 10px;
  display: none;
  z-index: 100;
}

.harry-bubble.show {
  display: block;
  animation: bubble-pop 0.3s ease-out;
}

@keyframes bubble-pop {
  0% { transform: translateX(-50%) scale(0.8); opacity: 0; }
  100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

/* ── Company Store ──────────────────────────── */
.store-section {
  padding: 60px 24px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.store-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.store-items {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.store-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s;
}

.store-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.store-item-type {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.store-item-slogan {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

.store-cta {
  align-self: center;
}

@media (max-width: 600px) {
  .store-items { flex-direction: column; align-items: stretch; }
  .store-item { max-width: 100%; }
}
