:root {
  --void: #060514;
  --pane: #0d0c22;
  --pane-deep: #080717;
  --pane-raised: #171536;
  --bevel-hi: #b4c2ff;
  --bevel-mid: #636fa8;
  --bevel-lo: #23204a;
  --bevel-dark: #04030c;
  --ink: #f3efe6;
  --ink-muted: #b8c0e0;
  --cyan: #66ffff;
  --lilac: #d2a8ff;
  --sage: #74e89c;
  --amber: #ffd166;
  --title-a: #1d267d;
  --title-b: #146c7d;
  --font-serif: "Cinzel", Georgia, "Times New Roman", serif;
  --font-pixel: "VT323", "Courier New", monospace;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --font-body: Verdana, Tahoma, system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--void);
  color: var(--ink);
  scrollbar-color: var(--bevel-mid) var(--void);
}

::selection {
  background: var(--cyan);
  color: var(--void);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  /* Tiled sacred starfield + dotted ophanim eye lattice */
  background-color: var(--void);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Crect width='96' height='96' fill='%23060514'/%3E%3Ccircle cx='48' cy='48' r='30' fill='none' stroke='%231b1c42' stroke-width='1' stroke-dasharray='2 4'/%3E%3Cpath d='M22,48 Q48,30 74,48 Q48,66 22,48 Z' fill='none' stroke='%23192647' stroke-width='0.9'/%3E%3Ccircle cx='48' cy='48' r='2' fill='%2333497d'/%3E%3Ccircle cx='12' cy='16' r='1' fill='%2366ffff' opacity='0.35'/%3E%3Ccircle cx='82' cy='22' r='1.1' fill='%23d2a8ff' opacity='0.3'/%3E%3Ccircle cx='20' cy='80' r='1' fill='%2374e89c' opacity='0.28'/%3E%3Ccircle cx='78' cy='76' r='0.9' fill='%23ffd166' opacity='0.32'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--amber); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cyan);
  color: var(--void);
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-weight: 500;
  z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Classic 3D Windows / Netscape Beveled Box */
.win-box {
  background: var(--pane);
  border-top: 2px solid var(--bevel-hi);
  border-left: 2px solid var(--bevel-hi);
  border-right: 2px solid var(--bevel-lo);
  border-bottom: 2px solid var(--bevel-lo);
  box-shadow: 0 0 0 1px var(--bevel-dark), 0 10px 28px rgba(0, 0, 0, 0.55);
}

.win-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 10px;
  background: linear-gradient(90deg, #1b1d54, #14395c);
  border-bottom: 2px solid var(--bevel-lo);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #f4f7ff;
  text-transform: uppercase;
}

.win-titlebar-accent {
  background: linear-gradient(90deg, var(--title-a), var(--title-b));
}

.win-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.win-chrome {
  display: inline-flex;
  gap: 4px;
  flex-shrink: 0;
}

.win-chrome span,
.win-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 18px;
  background: #232559;
  color: var(--ink);
  border-top: 1px solid var(--bevel-hi);
  border-left: 1px solid var(--bevel-hi);
  border-right: 1px solid var(--bevel-dark);
  border-bottom: 1px solid var(--bevel-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
}

.win-close-btn {
  cursor: pointer;
  padding: 0;
}
.win-close-btn:hover { background: #48286e; color: var(--cyan); }

.win-body { padding: 16px; }

.bevel-well {
  background: var(--pane-deep);
  border-top: 2px solid var(--bevel-dark);
  border-left: 2px solid var(--bevel-dark);
  border-right: 2px solid var(--bevel-mid);
  border-bottom: 2px solid var(--bevel-mid);
  padding: 8px;
}

/* Beveled Interactive Buttons */
.bevel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 13px;
  background: var(--pane-raised);
  color: var(--ink);
  border-top: 2px solid var(--bevel-hi);
  border-left: 2px solid var(--bevel-hi);
  border-right: 2px solid var(--bevel-lo);
  border-bottom: 2px solid var(--bevel-lo);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.bevel-btn:hover {
  background: #252459;
  color: var(--cyan);
}

.bevel-btn:active,
.bevel-btn.is-active {
  border-top-color: var(--bevel-dark);
  border-left-color: var(--bevel-dark);
  border-right-color: var(--bevel-hi);
  border-bottom-color: var(--bevel-hi);
  background: #122845;
  color: var(--cyan);
}

.btn-primary {
  background: #16495c;
  color: #ffffff;
  border-top-color: #9ff7ff;
  border-left-color: #9ff7ff;
  border-right-color: #0b2633;
  border-bottom-color: #0b2633;
  font-weight: 500;
}
.btn-primary:hover {
  background: #1d647d;
  color: #ffffff;
}

.btn-secondary {
  background: #221d47;
  color: var(--ink);
}

/* Top Bar + Marquee */
.sys-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #0b0a1f;
  border-bottom: 2px solid var(--bevel-mid);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65);
}

.sys-topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-sigil { color: var(--lilac); flex-shrink: 0; }

.brand-word {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #ffffff;
}
.brand-dot { color: var(--cyan); }

.top-nav {
  display: flex;
  gap: 6px;
}

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

.lang-switch { display: inline-flex; gap: 4px; }
.lang-btn { padding: 6px 9px; font-size: 11px; }

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  background: var(--void);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-pixel);
  font-size: 16px;
  line-height: 1;
}

.marquee-bar {
  overflow: hidden;
  background: #070616;
  border-top: 1px solid var(--bevel-lo);
  padding: 4px 0;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 32px;
  font-family: var(--font-pixel);
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--sage);
  animation: marquee-scroll 34s linear infinite;
}

.marquee-bar:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Main Frameset Grid */
.shrine-shell {
  max-width: 1320px;
  margin: 20px auto 40px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.shrine-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 96px;
}

.sidebar-identity { text-align: center; }

.emblem-medallion {
  display: inline-flex;
  padding: 8px;
  background: var(--pane-deep);
  border: 1px solid var(--bevel-mid);
  margin-bottom: 10px;
}

.sidebar-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.sidebar-loc {
  margin: 4px 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.sidebar-email {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  word-break: break-all;
}

.dir-list {
  list-style: none;
  margin: 0;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dir-list a,
.dir-link-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 5px 6px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.dir-list a:hover,
.dir-link-btn:hover {
  background: #171b42;
  border-color: var(--bevel-mid);
  color: var(--cyan);
}

.dir-bullet { color: var(--lilac); font-size: 10px; }
.dir-sep { height: 1px; background: var(--bevel-lo); margin: 4px 0; }

/* 88x31 Classic Micro-Badges */
.micro-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.micro-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 2px 4px;
  font-family: var(--font-pixel);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.45);
  border-left: 1px solid rgba(255,255,255,0.45);
  border-right: 1px solid rgba(0,0,0,0.7);
  border-bottom: 1px solid rgba(0,0,0,0.7);
}
.mb-cyan { background: #0e3847; color: #b8ffff; }
.mb-lilac { background: #311d54; color: #e9d4ff; }
.mb-sage { background: #143b2a; color: #b7ffd0; }
.mb-amber { background: #473210; color: #ffe6a8; }

.lcd-wrap { text-align: center; }
.lcd-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.lcd-screen {
  display: inline-block;
  padding: 3px 14px;
  background: #030a07;
  border-top: 2px solid #000000;
  border-left: 2px solid #000000;
  border-right: 2px solid var(--bevel-mid);
  border-bottom: 2px solid var(--bevel-mid);
  font-family: var(--font-pixel);
  font-size: 26px;
  letter-spacing: 0.18em;
  color: #5ff7b8;
  text-shadow: 0 0 8px rgba(95, 247, 184, 0.55);
}

/* Main Column */
.shrine-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* Hero Featured Vision */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.hero-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #18173c 0%, #070614 100%);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 220ms ease;
}

.hero-thumbs {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.thumb-btn {
  padding: 3px;
  background: var(--pane-deep);
  border-top: 2px solid var(--bevel-hi);
  border-left: 2px solid var(--bevel-hi);
  border-right: 2px solid var(--bevel-lo);
  border-bottom: 2px solid var(--bevel-lo);
  cursor: pointer;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.72;
  transition: opacity 150ms ease;
}

.thumb-btn:hover img,
.thumb-btn.is-active img { opacity: 1; }

.thumb-btn.is-active {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan);
}

.hero-title {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.12;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(102, 255, 255, 0.25);
}

.hero-tagline {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
}

.dither-rule {
  border: 0;
  height: 4px;
  margin: 16px 0;
  background: repeating-linear-gradient(
    90deg,
    var(--cyan) 0 4px,
    var(--lilac) 4px 8px,
    var(--sage) 8px 12px,
    var(--amber) 12px 16px,
    transparent 16px 20px
  );
  opacity: 0.7;
}

.hero-work-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.spec-chip {
  display: inline-block;
  padding: 3px 9px;
  background: #1a1940;
  border: 1px solid var(--bevel-mid);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lilac);
}

.hero-price {
  font-family: var(--font-pixel);
  font-size: 28px;
  line-height: 1;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.hero-work-name {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
}

.hero-work-desc {
  margin: 0 0 18px;
  color: #ddd9d0;
  font-size: 13.5px;
  line-height: 1.62;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--bevel-mid);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.hero-specs strong { color: var(--cyan); display: block; font-weight: 500; }
