/* Direction A — UTILITY-ROOM v2
 * Refined workshop terminal. Warm dark + amber primary, deep green accents.
 * All rules scoped under .ur-root so this can sit on a design canvas next
 * to other directions without leaking. */

.ur-root {
  --bg: #0a0907;
  --bg-2: #110e09;
  --surface: rgba(17,14,9,0.88);
  --amber: #e8a030;
  --amber-bright: #ffb84d;
  --amber-dim: #7a5018;
  --green: #39d353;
  --green-dim: #1a5e2a;
  --text: #cfc4a8;
  --text-dim: #8a7a5a;
  --text-muted: #4a4535;
  --border: rgba(232,160,48,0.13);
  --border-bright: rgba(232,160,48,0.42);

  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Mono', ui-monospace, 'JetBrains Mono', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.7;
  min-height: 100%;
  overflow: hidden;
  isolation: isolate;
}

/* subtle warm-gradient base */
.ur-root::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(232,160,48,0.05), transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(232,160,48,0.025), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.ur-scanlines {
  position: absolute; inset: 0; z-index: 50; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.04) 2px, rgba(0,0,0,0.04) 4px);
}
.ur-vignette {
  position: absolute; inset: 0; z-index: 51; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.55) 100%);
}

/* full-viewport three.js canvas — fixed so it stays put while the page
   scrolls. Pointer-events off so it doesn't eat clicks. */
.ur-bg-canvas {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 1; pointer-events: none;
}

/* in-card hero wireframe stage — host for a small Three.js canvas.
   touch-action: none lets the canvas swallow drag gestures instead of
   the browser treating them as page scrolls on touch devices. */
.ur-wire-stage {
  width: 100%; height: 100%; display: block;
  cursor: grab; touch-action: none; user-select: none;
}
.ur-wire-stage.grabbing { cursor: grabbing; }
.ur-wire-stage canvas { width: 100% !important; height: 100% !important; display: block; }

.ur-corner-wire {
  position: absolute; z-index: 2; pointer-events: none;
}
.ur-corner-1 { top: 88px; right: 6%; }
.ur-corner-2 { top: 1100px; left: 4%; }
.ur-corner-3 { top: 2000px; right: 6%; }

/* ── prompt ──────────────────────────────────────────────────── */
.ur-prompt { font-family: inherit; font-size: 0.78rem; letter-spacing: 0; white-space: nowrap; }
.ur-u  { color: var(--green); }
.ur-h  { color: var(--amber); }
.ur-at, .ur-ps { color: var(--text-muted); }
.ur-cmd { color: var(--text); }
.ur-cur {
  display: inline-block; width: 0.55em; height: 1em;
  background: var(--amber); vertical-align: text-bottom;
  margin-left: 2px; animation: ur-blink 1.1s step-end infinite;
}
@keyframes ur-blink { 0%,100%{opacity:0.85} 50%{opacity:0} }

.ur-amber { color: var(--amber); }
.ur-dim   { color: var(--text-muted); }

/* ── nav ─────────────────────────────────────────────────────── */
.ur-nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 2.5rem;
  background: linear-gradient(to bottom, rgba(10,9,7,0.95) 70%, transparent);
  border-bottom: 1px solid var(--border);
}
.ur-nav ul { list-style: none; display: flex; gap: 1.8rem; padding: 0; margin: 0; }
.ur-nav a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  transition: color 0.15s;
}
.ur-nav a::before { content: './'; color: var(--amber-dim); }
.ur-nav a:hover { color: var(--amber); }

/* ── sys panel ───────────────────────────────────────────────── */
.ur-sys {
  position: absolute; bottom: 1.5rem; right: 1.75rem; z-index: 80;
  font-size: 0.6rem; line-height: 1.85; letter-spacing: 0.05em;
  color: var(--text-muted); text-align: right; opacity: 0.78;
}
.ur-sys-lbl { color: var(--amber-dim); margin-right: 0.5rem; }

/* ── ambient log ─────────────────────────────────────────────── */
.ur-ambient {
  position: absolute; bottom: 1.5rem; left: 1.75rem; z-index: 80;
  font-size: 0.58rem; line-height: 1.8; letter-spacing: 0.04em;
  color: var(--text-muted); max-width: 240px;
}
.ur-ambient-label { color: var(--amber-dim); margin-bottom: 0.3rem; letter-spacing: 0.1em; }
.ur-ambient-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity 0.6s; }

/* ── main ────────────────────────────────────────────────────── */
.ur-main {
  position: relative; z-index: 10;
  max-width: 880px;
  margin: 0 auto;
  padding: 7.5rem 2.5rem 2rem;
}

/* ── hero ────────────────────────────────────────────────────── */
.ur-hero { padding-bottom: 5rem; }
.ur-hero-inner { display: grid; grid-template-columns: 1fr 280px; gap: 3rem; align-items: start; }

.ur-resume-line { display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 0.4rem; }
.ur-resume-tag {
  font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
  animation: ur-fade 0.4s ease both;
}

.ur-boot-lines {
  margin: 0.4rem 0 1.2rem;
  font-size: 0.72rem; line-height: 1.85;
  letter-spacing: 0;
}
.ur-boot-line {
  white-space: pre-wrap;
  animation: ur-boot-in 0.22s ease-out both;
  color: var(--text-dim);
}
.ur-boot-tag {
  display: inline-block;
  width: 3.2em;
  color: var(--green);
  letter-spacing: 0;
}
.ur-boot-line.warn .ur-boot-tag { color: #cc7700; }
.ur-boot-line.dim, .ur-boot-line.dots { color: var(--text-muted); }
.ur-boot-line.dim .ur-boot-tag { color: var(--text-muted); }
@keyframes ur-boot-in {
  from { opacity: 0; transform: translateY(-2px); }
  to   { opacity: 1; transform: none; }
}

/* Hero body — name + pitch + nav. Conditionally rendered after the boot
   sequence completes; fades + lifts in so it doesn't pop. */
.ur-hero-body.shown {
  animation: ur-hero-rise 0.55s ease-out both;
}
.ur-hero-right.shown {
  animation: ur-fade 0.7s ease-out 0.15s both;
}
@keyframes ur-hero-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes ur-fade { from { opacity: 0; } to { opacity: 1; } }

.ur-name {
  font-family: 'VT323', 'IBM Plex Mono', monospace;
  font-size: 3.4rem; line-height: 1; letter-spacing: 0.04em;
  color: var(--amber-bright); margin: 0;
  text-shadow: 0 0 28px rgba(255,184,77,0.32);
}
.ur-role {
  font-size: 0.78rem; color: var(--text-dim);
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-top: 0.5rem;
}
.ur-pitch {
  font-size: 0.92rem; color: var(--text);
  line-height: 1.85; max-width: 480px;
  margin-top: 1.4rem;
}

/* ── quick nav — pill tiles, key glyph is a hint ──────────────── */
.ur-quick-hint {
  margin-top: 2.4rem; margin-bottom: 0.7rem;
  font-size: 0.66rem; letter-spacing: 0.04em;
  display: flex; align-items: baseline; gap: 0.8rem;
}
.ur-quick-hint-lbl { color: var(--amber-dim); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.6rem; }
.ur-quick-hint-sub { color: var(--text-muted); font-style: italic; }

.ur-quicknav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
  max-width: 720px;
}
.ur-jump {
  position: relative;
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  background: rgba(232,160,48,0.035);
  border: 1px solid var(--border);
  border-left: 2px solid var(--amber-dim);
  color: var(--text);
  text-decoration: none;
  font: inherit; font-size: inherit;
  cursor: pointer; text-align: left;
  transition: background 0.15s, border-color 0.15s, transform 0.08s;
}
.ur-jump:hover {
  background: rgba(232,160,48,0.08);
  border-color: var(--border-bright);
  border-left-color: var(--amber);
}
.ur-jump:active { transform: translateY(1px); }
.ur-jump:focus-visible {
  outline: 1px dashed var(--amber);
  outline-offset: 3px;
}
.ur-jump-arrow {
  color: var(--amber);
  font-size: 1rem; line-height: 1;
  transition: transform 0.15s, color 0.15s;
}
.ur-jump:hover .ur-jump-arrow {
  color: var(--amber-bright);
  transform: translateX(2px);
}
.ur-jump-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ur-jump-label {
  font-size: 0.85rem; letter-spacing: 0.02em;
  color: var(--text); line-height: 1.2;
}
.ur-jump:hover .ur-jump-label { color: var(--amber-bright); }
.ur-jump-sub {
  font-size: 0.62rem; color: var(--text-muted);
  letter-spacing: 0.04em; margin-top: 0.15rem;
}
.ur-jump-key {
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-family: inherit;
  color: var(--amber-dim);
  background: rgba(232,160,48,0.06);
  border: 1px solid rgba(232,160,48,0.18);
  padding: 0.05rem 0.4rem;
  border-radius: 2px;
  align-self: center;
  letter-spacing: 0;
  opacity: 0.7;
  transition: opacity 0.15s, color 0.15s, border-color 0.15s;
}
.ur-jump:hover .ur-jump-key {
  opacity: 1; color: var(--amber);
  border-color: rgba(232,160,48,0.4);
}

/* ── cheatsheet (the easter egg) ─────────────────────────────── */
.ur-cheat-scrim {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(5,4,3,0.7);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  animation: ur-fade-in 0.18s ease-out;
}
@keyframes ur-fade-in { from { opacity: 0; } to { opacity: 1; } }
.ur-cheat {
  background: var(--bg-2);
  border: 1px solid var(--border-bright);
  box-shadow: 0 0 60px rgba(232,160,48,0.12), 0 20px 60px rgba(0,0,0,0.5);
  width: 100%; max-width: 480px;
  font-family: inherit;
}
.ur-cheat-bar {
  background: rgba(232,160,48,0.08);
  border-bottom: 1px solid var(--border);
  padding: 0.45rem 0.9rem;
  display: flex; align-items: center; gap: 0.45rem;
}
.ur-cheat-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid var(--amber-dim); opacity: 0.6;
}
.ur-cheat-title {
  flex: 1;
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-left: 0.4rem;
}
.ur-cheat-close {
  background: none; border: 0; cursor: pointer;
  color: var(--text-muted); font-size: 1.1rem;
  line-height: 1; padding: 0 0.25rem;
  transition: color 0.15s;
}
.ur-cheat-close:hover { color: var(--amber); }

.ur-cheat-body { padding: 1.5rem 1.75rem 1.6rem; }
.ur-cheat-section-head {
  font-size: 0.6rem; letter-spacing: 0.16em;
  color: var(--amber); margin-top: 1.2rem; margin-bottom: 0.4rem;
}
.ur-cheat-section-head:first-of-type { margin-top: 1rem; }
.ur-cheat-line {
  font-size: 0.78rem; color: var(--text);
  line-height: 1.85; padding-left: 1rem;
}
.ur-cheat-table {
  width: 100%; border-collapse: collapse;
  margin-top: 0.4rem; padding-left: 1rem;
}
.ur-cheat-table td {
  padding: 0.28rem 0.4rem 0.28rem 1rem;
  font-size: 0.78rem; vertical-align: middle;
}
.ur-cheat-table td:first-child { width: 80px; padding-left: 1rem; }
.ur-kbd {
  font-family: inherit; font-size: 0.7rem;
  background: rgba(232,160,48,0.08);
  border: 1px solid var(--border-bright);
  color: var(--amber); padding: 0.1rem 0.5rem;
  border-radius: 2px; letter-spacing: 0;
}
.ur-cheat-foot {
  margin-top: 1.5rem; padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  font-size: 0.66rem; color: var(--text-muted);
  font-style: italic;
}

/* CRT tube vibe: very slight corner rounding, inset shadow for the
   curved-glass edge-darkening, and a tighter scanline overlay so the
   monogram reads through real phosphor lines (denser than the page
   scanlines, which are 4px-period; this window's are 2px). */
.ur-wire-frame {
  border: 1px solid var(--border);
  background: rgba(11,9,6,0.5);
  padding: 0.5rem;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 13px;
  box-shadow:
    inset 0 0 36px rgba(0,0,0,0.55),         /* curved-glass vignette */
    inset 0 0 6px rgba(232,160,48,0.08);     /* faint amber rim glow */
}
.ur-wire-frame > svg { max-width: 100%; max-height: 100%; }
.ur-wire-frame::before {
  content: '◢'; position: absolute; top: 4px; right: 8px;
  font-size: 0.6rem; color: var(--amber-dim);
  z-index: 3;
}
/* Scanline + soft radial vignette overlay. Pointer-events: none so
   pointer drags on the canvas still reach it. */
.ur-wire-frame::after {
  content: ''; position: absolute; inset: 0;
  pointer-events: none; z-index: 2;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 110% 110% at center, transparent 55%, rgba(0,0,0,0.35) 100%),
    repeating-linear-gradient(
      0deg,
      transparent 0, transparent 1px,
      rgba(0,0,0,0.22) 1px, rgba(0,0,0,0.22) 2px
    );
}
.ur-wire-caption {
  font-size: 0.62rem; color: var(--amber-dim);
  letter-spacing: 0.06em; margin-top: 0.5rem;
  text-align: right;
}
.ur-wire-sub { display: block; color: var(--text-muted); }

/* ── sections ────────────────────────────────────────────────── */
.ur-section { padding: 3.5rem 0; border-top: 1px solid var(--border); }
.ur-section-head { margin-bottom: 1.8rem; }
.ur-section-body { padding-left: 1.5rem; border-left: 2px solid var(--border-bright); }

/* ── about ───────────────────────────────────────────────────── */
.ur-about-prose p {
  font-size: 0.88rem; line-height: 1.95; color: var(--text);
  max-width: 580px; margin: 0 0 0.9rem;
}
.ur-disc { margin-top: 2.5rem; }
.ur-disc-head {
  font-size: 0.66rem; letter-spacing: 0.1em;
  color: var(--amber-dim); margin-bottom: 0.6rem;
}
.ur-disc-table { width: 100%; border-collapse: collapse; }
.ur-disc-table td {
  padding: 0.4rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.7rem; letter-spacing: 0.04em;
  vertical-align: top;
}
.ur-disc-name { color: var(--text); width: 200px; }
.ur-disc-name::before { content: '> '; color: var(--amber-dim); }
.ur-disc-sub { color: var(--text-muted); font-style: italic; }

/* ── exhibits ────────────────────────────────────────────────── */
.ur-ls-total { color: var(--text-muted); font-size: 0.7rem; margin-bottom: 0.6rem; }
.ur-ls { display: flex; flex-direction: column; gap: 0; }

.ur-ex { border-bottom: 1px solid var(--border); }
.ur-ex.open { border-bottom-color: var(--border-bright); }

.ur-ex-row {
  width: 100%; background: none; border: 0; padding: 0.55rem 0;
  font: inherit; cursor: pointer; text-align: left;
  display: grid; grid-template-columns: 100px 70px 50px 90px 1fr auto 16px;
  gap: 0.8rem; align-items: center; color: var(--text-dim);
  transition: background 0.15s;
}
.ur-ex-row:hover { background: rgba(232,160,48,0.04); }
.ur-ex-perm { font-size: 0.68rem; color: var(--amber-dim); }
.ur-ex-owner, .ur-ex-size, .ur-ex-date { font-size: 0.68rem; }
.ur-ex-name { font-size: 0.82rem; color: var(--text); letter-spacing: 0.02em; }
.ur-ex-status { font-size: 0.62rem; letter-spacing: 0.12em; }
.ur-ex-status.ok   { color: var(--green); }
.ur-ex-status.warn { color: #cc7700; }
.ur-ex-status.dim  { color: var(--text-muted); }
.ur-ex-caret { font-size: 0.55rem; color: var(--amber-dim); }

.ur-ex-body {
  padding: 1.25rem 0 1.75rem 0.5rem;
  border-left: 1px dashed var(--border);
  margin-left: 0.5rem;
  padding-left: 1.5rem;
}
.ur-ex-title {
  font-family: 'VT323', monospace;
  font-size: 2rem; line-height: 1.1; letter-spacing: 0.04em;
  color: var(--amber-bright);
  text-shadow: 0 0 16px rgba(255,184,77,0.2);
}
.ur-ex-tagline {
  font-size: 0.75rem; color: var(--text-dim); font-style: italic;
  margin: 0.3rem 0 1rem; padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.ur-ex-desc {
  font-size: 0.82rem; line-height: 1.9; color: var(--text);
  max-width: 580px; margin-bottom: 1.5rem;
}

.ur-ex-grid {
  display: grid; grid-template-columns: 1fr 1fr 1.4fr;
  gap: 1.5rem; margin-bottom: 1.2rem;
}
.ur-ex-mini-head {
  font-size: 0.6rem; letter-spacing: 0.12em;
  color: var(--amber-dim); margin-bottom: 0.4rem; text-transform: lowercase;
}
.ur-ex-list { list-style: none; padding: 0; margin: 0; }
.ur-ex-list li { font-size: 0.7rem; color: var(--text-dim); padding: 0.15rem 0; }
.ur-ex-list li::before { content: '· '; color: var(--amber-dim); }
.ur-ex-value { font-size: 0.78rem; color: var(--text); }

.ur-ex-shot { }
.ur-shot-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  background: rgba(11,9,6,0.6);
  border: 1px solid var(--border-bright);
}
.ur-shot-grid {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, transparent, transparent 8px, rgba(232,160,48,0.06) 8px, rgba(232,160,48,0.06) 9px),
    repeating-linear-gradient(45deg,  transparent, transparent 8px, rgba(232,160,48,0.04) 8px, rgba(232,160,48,0.04) 9px);
}
.ur-shot-cap {
  position: absolute; bottom: 6px; left: 8px;
  font-size: 0.55rem; color: var(--amber-dim);
  letter-spacing: 0.08em;
}

.ur-ex-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ur-tag {
  font-size: 0.55rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--amber-dim);
  border: 1px solid rgba(232,160,48,0.22);
  padding: 0.18rem 0.55rem;
  background: rgba(232,160,48,0.04);
}

/* ── availability ────────────────────────────────────────────── */
.ur-avail-status {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.72rem; margin-bottom: 1.8rem;
}
.ur-avail-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 10px var(--green);
  animation: ur-pulse 2.4s ease-in-out infinite;
}
@keyframes ur-pulse { 0%,100%{opacity:0.55} 50%{opacity:1} }
.ur-avail-note { color: var(--text-dim); margin-left: 0.6rem; }

.ur-offers {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.ur-offer {
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber-dim);
  padding: 1.1rem 1.2rem;
  background: rgba(232,160,48,0.025);
  transition: border-color 0.2s;
}
.ur-offer:hover { border-left-color: var(--amber); }
.ur-offer-head {
  display: flex; justify-content: space-between;
  font-size: 0.58rem; letter-spacing: 0.12em;
  margin-bottom: 0.7rem;
}
.ur-offer-id { color: var(--amber); }
.ur-offer-rate { color: var(--text-muted); }
.ur-offer-title {
  font-size: 0.88rem; color: var(--text);
  margin-bottom: 0.6rem; letter-spacing: 0.01em;
}
.ur-offer-body {
  font-size: 0.72rem; line-height: 1.8; color: var(--text-dim);
  margin: 0;
}

/* ── contact ─────────────────────────────────────────────────── */
.ur-contact { padding-top: 0.6rem; }
.ur-contact-email {
  display: inline-block;
  font-family: 'VT323', monospace;
  font-size: 1.8rem; letter-spacing: 0.03em;
  color: var(--amber-bright);
  text-shadow: 0 0 12px rgba(255,184,77,0.25);
  text-decoration: none; border-bottom: 1px solid var(--border-bright);
  padding-bottom: 0.2rem; margin-bottom: 1rem;
  white-space: nowrap; max-width: 100%; overflow-wrap: normal;
}
.ur-contact-email:hover { color: #fff; }
.ur-contact-row { font-size: 0.74rem; color: var(--text); margin: 0.3rem 0; }
.ur-contact-elsewhere {
  display: grid; grid-template-columns: repeat(3, max-content);
  gap: 0.4rem 1.6rem; margin-top: 1.2rem;
  font-size: 0.7rem;
}
.ur-elsewhere .ur-dim { letter-spacing: 0; }

/* ── footer ──────────────────────────────────────────────────── */
.ur-footer {
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.66rem; color: var(--text-muted);
}
