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

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #888888;
  --text-muted: #555555;
  --chain-ordinals: #f7931a;
  --chain-ethereum: #627eea;
  --chain-tezos: #2c7df7;
  --chain-solana: #9945ff;
  --font-mono: 'Space Mono', monospace;
  --panel-width: 320px;
}

html, body { height: 100%; background: var(--bg-primary); color: var(--text-primary); font-family: var(--font-mono); overflow: hidden; }

.container { display: flex; height: 100vh; overflow: hidden; }

.view { display: none; width: 100%; height: 100%; align-items: center; justify-content: center; position: relative; z-index: 1; }
.view.active { display: flex; }

.main-content {
  flex: 1;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-primary);
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.main-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 25%, var(--bg-primary) 78%);
  pointer-events: none;
  z-index: 0;
}

.menu-toggle { display: none; position: fixed; top: 1.5rem; left: 1.5rem; z-index: 1000; background: rgba(0,0,0,0.7); border: 1px solid var(--text-muted); color: #fff; padding: 0.5rem; cursor: pointer; border-radius: 4px; backdrop-filter: blur(4px); }

/* Lightbox */
.lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 2000; align-items: center; justify-content: center; flex-direction: column; }
.lightbox.active { display: flex; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--text-primary); font-size: 2rem; cursor: pointer; z-index: 2001; }
#lightbox-img { max-width: 90vw; max-height: 85vh; object-fit: contain; }
.lightbox-info { margin-top: 1rem; font-size: 0.75rem; color: var(--text-secondary); }

/* DISPLAY MODE */
.display-mode { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: var(--bg-primary); background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 48px 48px; z-index: 3000; align-items: center; justify-content: center; flex-direction: column; cursor: none; }
.display-mode.active { display: flex; }
.display-mode:hover { cursor: default; }
.display-frame { background: #0e0e0e; border: 1px solid rgba(255,255,255,0.08); padding: 12px; display: flex; align-items: center; justify-content: center; max-width: calc(100vw - 40px); max-height: calc(100vh - 100px); }
#display-art { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; display: none; background: #000; border: 1px solid #1a1a1a; }
#display-iframe { width: min(calc(100vw - 80px), calc(100vh - 140px)); aspect-ratio: 1/1; max-height: calc(100vh - 140px); border: 1px solid #1a1a1a; display: none; pointer-events: none; background: #000; }
.display-controls { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.75rem; opacity: 0; transition: opacity 0.3s ease; z-index: 3001; }
.display-mode:hover .display-controls { opacity: 1; }
.display-btn { background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.6); padding: 0.5rem 0.75rem; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); }
.display-btn:hover { color: #fff; border-color: #fff; background: rgba(0,0,0,0.8); }
.display-info { position: fixed; bottom: 4rem; left: 50%; transform: translateX(-50%); text-align: center; font-size: 0.7rem; color: rgba(255,255,255,0.5); opacity: 0; transition: opacity 0.3s ease; z-index: 3001; pointer-events: none; }
.display-mode:hover .display-info { opacity: 1; }
.display-info #display-title { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.8); margin-bottom: 0.2rem; }
.display-info #display-collection { display: block; color: rgba(255,255,255,0.4); }

/* HOME VIEW */
#view-home { padding: 2rem; }
.art-container { width: 100%; max-width: 1000px; display: flex; flex-direction: column; align-items: center; cursor: pointer; position: relative; }
#featured-art { width: 100%; aspect-ratio: 1 / 1; max-height: 70vh; border: none; background: var(--bg-primary); object-fit: contain; }
#featured-iframe { display: none; width: min(100%, 70vh); aspect-ratio: 1 / 1; border: none; background: var(--bg-primary); }
#featured-iframe.active { display: block; }
.art-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.2rem 1rem; background: linear-gradient(transparent 0%, rgba(0,0,0,0.85) 60%); opacity: 1; pointer-events: auto; z-index: 2; overflow: hidden; box-sizing: border-box; }
.art-info #art-collection { text-decoration: none; color: rgba(255,255,255,0.7); display: block; font-size: 0.65rem; }
.art-info #art-collection:hover { color: #9b59b6; text-decoration: underline; }
.art-info h2 { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.2rem; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art-info p { font-size: 0.65rem; color: rgba(255,255,255,0.7); text-shadow: 0 1px 3px rgba(0,0,0,0.9); }
.art-info .chain-badge { text-shadow: none; }
.carousel-link { cursor: pointer; transition: color 0.2s ease; }
.carousel-link:hover { color: #9b59b6; }
.chain-badge { display: inline-block; font-size: 0.5rem; padding: 0.2rem 0.45rem; border: 1px solid var(--text-muted); color: var(--text-muted); margin-top: 0.5rem; letter-spacing: 0.08em; line-height: 1; }
.chain-badge[data-chain="ordinals"] { border-color: var(--chain-ordinals); color: var(--chain-ordinals); }
.chain-badge[data-chain="ethereum"] { border-color: var(--chain-ethereum); color: var(--chain-ethereum); }
.chain-badge[data-chain="tezos"] { border-color: var(--chain-tezos); color: var(--chain-tezos); }
.chain-badge[data-chain="solana"] { border-color: var(--chain-solana); color: var(--chain-solana); }
.chain-meta { display: inline-block; font-family: var(--font-mono); font-size: 0.5rem; font-weight: 400; color: var(--text-muted); margin-left: 0.5rem; letter-spacing: 0.03em; vertical-align: middle; }
.home-actions { position: absolute; bottom: 1rem; right: 1rem; display: flex; gap: 0.5rem; }
.home-actions button { background: rgba(0,0,0,0.5); border: 1px solid var(--text-muted); color: var(--text-secondary); padding: 0.5rem; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; }
.home-actions button:hover { color: var(--text-primary); border-color: var(--text-primary); }

/* DETAIL VIEW */
#view-detail { flex-direction: column; padding: 2rem; overflow-y: auto; overflow-x: hidden; box-sizing: border-box; max-width: 100vw; }
.detail-header { margin-bottom: 1rem; }
.back-btn { display: flex; align-items: center; gap: 0.5rem; background: transparent; border: none; color: var(--text-secondary); font-family: var(--font-mono); font-size: 0.75rem; cursor: pointer; }
.back-btn:hover { color: var(--text-primary); }
.detail-content { display: flex; gap: 3rem; flex: 1; align-items: flex-start; width: 100%; }
.detail-image-container { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 300px; max-height: calc(100vh - 120px); position: relative; background: #0e0e0e; border: 1px solid rgba(255,255,255,0.08); padding: 12px; overflow: hidden; }
#detail-image { max-width: 100%; max-height: calc(100vh - 150px); border: 1px solid #1a1a1a; background: #000; object-fit: contain; }
#detail-iframe { width: min(100%, calc(100vh - 150px)); aspect-ratio: 1 / 1; max-height: calc(100vh - 150px); border: 1px solid #1a1a1a; background: #000; }
#detail-video { border: 1px solid #1a1a1a; background: #000; }
#detail-video { max-width: 100%; max-height: calc(100vh - 120px); border: none; background: var(--bg-primary); object-fit: contain; }
.hidden { display: none !important; }
.play-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.6); border: none; border-radius: 50%; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s ease; }
.play-overlay:hover { background: rgba(0,0,0,0.8); }
.image-actions { position: absolute; bottom: 0.75rem; right: 0.75rem; display: flex; gap: 0.5rem; z-index: 10; }
.download-btn { background: rgba(0,0,0,0.5); border: 1px solid var(--text-muted); color: var(--text-secondary); padding: 0.5rem; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; }
.download-btn:hover { color: var(--text-primary); border-color: var(--text-primary); }
.detail-info { width: 300px; flex-shrink: 0; }
#detail-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.piece-indicator { font-weight: 400; font-size: 0.8rem; color: var(--text-secondary); margin-left: 0.5rem; }
.collection-stats { margin-bottom: 1rem; }
.detail-metadata { margin-top: 1.5rem; }
.detail-metadata:empty { display: none; }
.detail-metadata .artist-note { font-size: 0.7rem; line-height: 1.7; color: var(--text-muted); font-style: italic; }
.meta-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.75rem; }
.meta-label { color: var(--text-muted); }
.meta-value { color: var(--text-secondary); text-align: right; }

/* Piece Grid - thumbnail grid in detail view */
.piece-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 6px;
  max-height: 300px;
  overflow-y: auto;
  margin-top: 1rem;
}

.piece-thumb {
  aspect-ratio: 1 / 1;
  background: var(--bg-tertiary);
  border: 1px solid transparent;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  padding: 0;
}
.piece-thumb:hover { border-color: var(--text-muted); }
.piece-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.piece-thumb iframe { width: 400%; height: 400%; border: none; pointer-events: none; transform: scale(0.25); transform-origin: top left; }
.piece-thumb.piece-thumb-placeholder { background: linear-gradient(135deg, var(--bg-tertiary) 0%, #1a1a1a 100%); display: flex; align-items: center; justify-content: center; }
.piece-thumb.piece-thumb-placeholder .piece-thumb-label { position: static; background: none; font-size: 0.6rem; white-space: normal; padding: 8px; color: var(--text-muted); }
.piece-thumb.piece-thumb-placeholder:hover .piece-thumb-label { color: var(--text-secondary); }
.piece-thumb-actions { position: absolute; bottom: 4px; right: 4px; display: flex; gap: 2px; opacity: 0; transition: opacity 0.2s ease; z-index: 2; }
.piece-thumb:hover .piece-thumb-actions { opacity: 1; }
.piece-thumb-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 3px 6px; background: rgba(0,0,0,0.7); color: var(--text-secondary); font-size: 0.55rem; font-family: var(--font-mono); text-align: center; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.piece-display-btn { background: rgba(0,0,0,0.7); border: 1px solid var(--text-muted); color: var(--text-secondary); padding: 3px 5px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; }
.piece-display-btn:hover { color: var(--text-primary); border-color: var(--text-primary); background: rgba(0,0,0,0.9); }

/* Marketplace Links */
.marketplace-links { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.detail-link { font-size: 0.75rem; font-family: var(--font-mono); color: var(--text-secondary); border: 1px solid var(--text-muted); padding: 0.75rem 1rem; text-decoration: none; transition: all 0.2s ease; background: transparent; cursor: pointer; display: inline-flex; align-items: center; }
.detail-link:hover { color: var(--text-primary); border-color: var(--text-primary); }

/* Panel collapse toggle */
.panel-collapse {
  position: fixed;
  right: var(--panel-width);
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  background: var(--bg-secondary);
  border: 1px solid rgba(255,255,255,0.06);
  border-right: none;
  color: var(--text-muted);
  padding: 12px 4px;
  cursor: pointer;
  border-radius: 4px 0 0 4px;
  transition: right 0.3s ease, color 0.2s ease;
  display: flex;
  align-items: center;
}
.panel-collapse:hover { color: var(--text-primary); }
.panel-collapse svg { transition: transform 0.3s ease; }
.panel-collapsed .panel-collapse { right: 0; }
.panel-collapsed .panel-collapse svg { transform: rotate(180deg); }

/* SIDE PANEL / TIMELINE */
.timeline-panel { width: var(--panel-width); background: var(--bg-secondary); border-left: 1px solid rgba(255,255,255,0.06); display: flex; flex-direction: column; height: 100vh; transition: margin-right 0.3s ease, opacity 0.3s ease; }
.panel-collapsed .timeline-panel { margin-right: calc(-1 * var(--panel-width)); opacity: 0; pointer-events: none; }

/* Scrollbar */
.timeline::-webkit-scrollbar { width: 4px; }
.timeline::-webkit-scrollbar-track { background: transparent; }
.timeline::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }
.timeline::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }
.piece-grid::-webkit-scrollbar { width: 4px; }
.piece-grid::-webkit-scrollbar-track { background: transparent; }
.piece-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }
#view-detail::-webkit-scrollbar { width: 6px; }
#view-detail::-webkit-scrollbar-track { background: transparent; }
#view-detail::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 3px; }
#view-detail::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.12); }
.panel-header { padding: 2rem 1.5rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.home-link { text-decoration: none; color: inherit; }
.site-title { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; color: #cccccc; letter-spacing: 0.1em; }
.tagline { font-size: 0.65rem; color: var(--text-muted); margin-top: 0.35rem; letter-spacing: 0.03em; }
.panel-nav { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; flex-wrap: nowrap; overflow-x: auto; }
.panel-nav-link { font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-muted); text-decoration: none; cursor: pointer; transition: color 0.2s ease; white-space: nowrap; }
.panel-nav-link:hover { color: var(--text-primary); }
.panel-nav-dropdown { position: relative; }
.panel-nav-menu { display: none; position: absolute; top: 100%; left: 0; margin-top: 0.4rem; background: var(--bg-secondary); border: 1px solid rgba(255,255,255,0.08); padding: 0.4rem 0; z-index: 100; min-width: 140px; }
.panel-nav-dropdown:hover .panel-nav-menu { display: block; }
.panel-nav-menu a { display: block; padding: 0.4rem 0.75rem; font-family: var(--font-mono); font-size: 0.55rem; color: var(--text-secondary); text-decoration: none; transition: color 0.2s ease, background 0.2s ease; }
.panel-nav-menu a:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.timeline { flex: 1; overflow-y: auto; padding: 0.5rem 0; }
.timeline-year { padding: 1.25rem 1.5rem 0.5rem; font-size: 0.75rem; font-weight: 700; color: var(--text-primary); letter-spacing: 0.05em; }
.timeline-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1.5rem; cursor: pointer; border-left: 2px solid transparent; transition: all 0.2s ease; }
.timeline-item:hover { background: rgba(255,255,255,0.03); border-left-color: var(--text-muted); }
.timeline-item .chain-badge { margin-top: 0; flex-shrink: 0; }
.timeline-title { flex: 1; font-size: 0.7rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timeline-count { font-size: 0.6rem; color: var(--text-muted); min-width: 24px; text-align: right; flex-shrink: 0; }
.panel-footer { padding: 1rem 1.5rem; border-top: 1px solid rgba(255,255,255,0.06); }
.chain-legend { display: flex; gap: 0.75rem; margin-bottom: 0.5rem; }
.legend-item { font-size: 0.55rem; color: var(--text-muted); cursor: pointer; transition: opacity 0.2s, text-decoration 0.1s; user-select: none; }
.legend-item:hover { opacity: 0.8; }
.legend-item[data-chain="ordinals"] { color: var(--chain-ordinals); }
.legend-item[data-chain="ethereum"] { color: var(--chain-ethereum); }
.legend-item[data-chain="tezos"] { color: var(--chain-tezos); }
.legend-item[data-chain="solana"] { color: var(--chain-solana); }
.chain-legend-active .legend-item { opacity: 0.35; }
.chain-legend-active .legend-item.active { opacity: 1; text-decoration: underline; }
.copyright { font-size: 0.55rem; color: var(--text-muted); }

/* Search Bar */
.search-container { padding: 12px 1.5rem 10px; border-bottom: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; gap: 6px; position: sticky; top: 0; z-index: 10; background: var(--bg-secondary); }
#search-input { flex: 1; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 4px; color: #fff; font-family: var(--font-mono); font-size: 0.65rem; padding: 8px 12px; outline: none; transition: border-color 0.2s ease; }
#search-input::placeholder { color: rgba(255,255,255,0.2); }
#search-input:focus { border-color: rgba(255,255,255,0.25); }
#search-clear { background: none; border: none; color: rgba(255,255,255,0.4); cursor: pointer; font-size: 18px; line-height: 1; padding: 0 2px; transition: color 0.2s; }
#search-clear:hover { color: #fff; }
.search-results { padding: 4px 0; }
.search-result-item { display: flex; align-items: center; gap: 8px; padding: 7px 14px; cursor: pointer; font-size: 11px; font-family: 'Space Mono', monospace; border-bottom: 1px solid rgba(255,255,255,0.04); transition: background 0.15s; }
.search-result-item:hover { background: rgba(255,255,255,0.05); }
.result-collection-name { opacity: 0.45; font-size: 10px; }
.search-empty { padding: 16px 14px; opacity: 0.35; font-family: 'Space Mono', monospace; font-size: 10px; }

/* MOBILE */
@media (max-width: 768px) {
  .panel-collapse { display: none; }
  .menu-toggle { display: block; }
  .container { flex-direction: column; }
  .timeline-panel { position: fixed; top: 0; left: -100%; width: 80%; z-index: 999; }
  .timeline-panel.open { left: 0; }
  .detail-content { flex-direction: column; }
  #view-detail { padding: 1rem; }
  .detail-info { width: 100%; box-sizing: border-box; overflow: visible; }
  .marketplace-links { flex-wrap: wrap; }
  .detail-image-container { height: auto; min-height: 300px; }
  #detail-image, #detail-iframe, #detail-video { max-height: 60vh; }
  .art-info { padding: 0.8rem 0.7rem; }
  .art-info h2 { font-size: 0.7rem; }
  .art-info #art-collection { font-size: 0.55rem; }
  .art-info .chain-badge { font-size: 0.4rem; margin-top: 0.3rem; }
  .piece-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 8px; max-height: none; }
  .piece-thumb-label { font-size: 0.5rem; padding: 2px 4px; }
}

/* ABOUT PAGE */
.about-page {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-primary);
}

.about-back {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 10;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  background: rgba(0,0,0,0.5);
  padding: 0.4rem 0.6rem;
  backdrop-filter: blur(4px);
}
.about-back:hover { color: var(--text-primary); }

.about-hero {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}

.about-hero-img, .about-hero-iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: none;
  pointer-events: none;
}

.about-hero-feather { display: none; }

.about-content {
  width: 460px;
  min-width: 460px;
  overflow-y: auto;
  padding: 3rem 2.5rem 4rem;
  text-align: center;
  border-left: 1px solid rgba(255,255,255,0.06);
  background-color: var(--bg-primary);
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.about-header { margin-bottom: 2.5rem; }

.about-title {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #cccccc;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.about-subtitle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #777777;
  letter-spacing: 0.03em;
}

.about-statement { margin-bottom: 2rem; }

.about-statement-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #777777;
  margin-bottom: 1.5rem;
}

.about-statement p {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.9;
  color: #a0a0a0;
  margin-bottom: 1.2rem;
  text-align: left;
}

.about-statement p:last-child { margin-bottom: 0; color: var(--text-primary); font-weight: 700; }

.about-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 2rem 0;
}

.about-interview { margin-bottom: 2rem; }

.about-interview-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.6rem 1rem;
  display: inline-block;
  transition: all 0.2s ease;
}
.about-interview-link:hover { color: #9b59b6; border-color: #9b59b6; }

.about-placeholder {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.about-footer { padding-top: 1rem; margin-top: auto; border-top: 1px solid rgba(255,255,255,0.06); }

/* Mobile about */
@media (max-width: 768px) {
  .about-page { flex-direction: column; height: auto; min-height: 100vh; overflow-y: auto; }
  .about-hero { height: 50vh; flex: none; }
  .about-content { width: 100%; min-width: 0; border-left: none; padding: 2rem 1.5rem 3rem; }
}

/* ARTICLES PAGE */
html:has(.articles-page), body:has(.articles-page) { overflow: auto; height: auto; }
html:has(.about-page), body:has(.about-page) { overflow: auto; height: auto; }
.articles-page {
  min-height: 100vh;
  background-color: var(--bg-primary);
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  padding: 3rem 2rem 4rem;
}

.articles-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #cccccc;
  letter-spacing: 0.12em;
}

.articles-header {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  padding-left: 2rem;
}

.articles-list {
  max-width: 700px;
  margin: 0 auto;
}

.article-item {
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 0.75rem;
}

.article-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-family: var(--font-mono);
  transition: background 0.2s ease;
  list-style: none;
}

.article-summary::-webkit-details-marker { display: none; }
.article-summary::marker { display: none; content: ''; }

.article-summary:hover { background: rgba(255,255,255,0.03); }

.article-name {
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 700;
}

.article-meta {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-body {
  padding: 1.5rem 1.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  background: rgba(10, 10, 10, 0.85);
}

.article-subtitle {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  text-align: center;
  font-style: italic;
}

.qa { margin-bottom: 2rem; }
.qa:last-child { margin-bottom: 0; }

.q {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-style: italic;
}

.a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

.article-inline-img {
  width: 100%;
  max-width: 500px;
  margin: 1.5rem auto;
  display: block;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0e0e0e;
  padding: 8px;
}

.article-inline-img img,
.article-inline-img iframe {
  width: 100%;
  aspect-ratio: 1/1;
  border: 1px solid #1a1a1a;
  display: block;
  background: #000;
}

.article-inline-art {
  width: 100%;
  max-width: 500px;
  margin: 1.5rem auto;
  display: block;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0e0e0e;
  padding: 8px;
  text-align: center;
}
.article-inline-art iframe {
  width: 100%;
  aspect-ratio: 1/1;
  border: 1px solid #1a1a1a;
  display: block;
  background: #000;
}
.article-art-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}

.x-article-list { display: flex; flex-direction: column; gap: 0.5rem; }
.x-article-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: var(--font-mono);
}
.x-article-link:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); }
.x-article-icon { font-size: 1rem; color: var(--text-primary); }
.x-article-title { font-size: 0.75rem; color: var(--text-secondary); flex: 1; }
.x-article-date { font-size: 0.6rem; color: var(--text-muted); }

.article-share {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.article-share a {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.2s ease;
}
.article-share a:hover { color: var(--text-primary); border-color: var(--text-primary); }

.article-placeholder {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

.articles-footer {
  max-width: 700px;
  margin: 3rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

@media (max-width: 768px) {
  .articles-page { padding: 3rem 1rem 3rem; }
  .articles-header { padding-left: 1rem; }
  .article-body { padding: 1rem 1rem 1.5rem; }
}
