@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&family=Share+Tech+Mono&display=swap');

/* ── CUSTOM PROPERTIES ────────────────────────────────────────────────────── */

:root {
  --lcars-orange:     #FF9900;
  --lcars-tan:        #FF9966;
  --lcars-yellow:     #FFCC66;
  --lcars-blue:       #9999FF;
  --lcars-light-blue: #99CCFF;
  --lcars-pink:       #FF99CC;
  --lcars-purple:     #CC99CC;
  --lcars-red:        #FF6666;
  --lcars-white:      #FFFFFF;
  --lcars-green:      #66FF99;
  --bg:               #000000;

  --sidebar-left-w:   220px;
  --sidebar-right-w:  200px;
  --elbow-bar-w:      18px;
  --elbow-radius:     32px;
  --header-bar-h:     36px;
  --footer-bar-h:     10px;
}

/* ── RESET ────────────────────────────────────────────────────────────────── */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: var(--lcars-orange);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ── APP SHELL ────────────────────────────────────────────────────────────── */

#app {
  display: flex;
  flex: 1;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* LEFT SIDEBAR                                                               */
/* ══════════════════════════════════════════════════════════════════════════ */

#lcars-left {
  width: var(--sidebar-left-w);
  flex-shrink: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Continuous vertical orange stripe down the left edge */
#lcars-left::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: var(--elbow-bar-w);
  background: var(--lcars-orange);
  z-index: 0;
  pointer-events: none;
}

/* ── TOP ELBOW ────────────────────────────────────────────────────────────── */

#left-top-elbow {
  position: relative;
  flex-shrink: 0;
  height: 72px;
  z-index: 1;
}

/* Orange filled rectangle that becomes the elbow shape */
#left-top-elbow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--lcars-orange);
  border-bottom-left-radius: var(--elbow-radius);
}

/* Black cutout covers interior, leaving only the L-shaped orange border */
#left-top-elbow::after {
  content: '';
  position: absolute;
  top: var(--elbow-bar-w);
  left: var(--elbow-bar-w);
  right: 0;
  bottom: 0;
  background: var(--bg);
  border-top-left-radius: var(--elbow-radius);
}

/* Site title inside the top elbow */
#lcars-site-title {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--elbow-bar-w);
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--bg);
  text-decoration: none;
  z-index: 2;
}

/* ── NAV PILLS ────────────────────────────────────────────────────────────── */

#lcars-nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 10px 14px 0;
  flex-shrink: 0;
}

.nav-pill {
  display: block;
  margin-left: var(--elbow-bar-w);
  padding: 7px 18px 7px 16px;
  border-radius: 0 999px 999px 0;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bg);
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.1s ease;
}

.nav-pill--home      { background: var(--lcars-blue);   }
.nav-pill--about     { background: var(--lcars-purple);  }
.nav-pill--portfolio { background: var(--lcars-pink);    }
.nav-pill--contact   { background: var(--lcars-tan);     }

.nav-pill:hover  { filter: brightness(1.25); transform: translateX(4px); }
.nav-pill.active { filter: brightness(1.4); box-shadow: 4px 0 14px rgba(255,255,255,0.25); }

/* ── LEFT STATUS ──────────────────────────────────────────────────────────── */

#left-status {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  padding: 14px 12px 14px calc(var(--elbow-bar-w) + 10px);
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow: hidden;
}

#left-status .lc-data-key { min-width: 9ch; }

/* ── BOTTOM ELBOW ─────────────────────────────────────────────────────────── */

#left-bottom-elbow {
  position: relative;
  flex-shrink: 0;
  height: 56px;
  z-index: 1;
}

#left-bottom-elbow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--lcars-tan);
  border-top-left-radius: var(--elbow-radius);
}

#left-bottom-elbow::after {
  content: '';
  position: absolute;
  top: 0;
  left: var(--elbow-bar-w);
  right: 0;
  bottom: var(--elbow-bar-w);
  background: var(--bg);
  border-bottom-left-radius: var(--elbow-radius);
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* MAIN CONTENT                                                               */
/* ══════════════════════════════════════════════════════════════════════════ */

#lcars-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

/* ── PAGE HEADER BAR ──────────────────────────────────────────────────────── */

#page-header-bar {
  flex-shrink: 0;
  height: var(--header-bar-h);
  background: var(--lcars-orange);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.ph-cap-left {
  width: 70px;
  background: var(--lcars-tan);
  flex-shrink: 0;
}

.ph-sep {
  width: 6px;
  background: var(--bg);
  flex-shrink: 0;
}

.ph-title {
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--bg);
  text-transform: uppercase;
}

.ph-code {
  margin-left: auto;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: rgba(0,0,0,0.55);
  letter-spacing: 1px;
  white-space: nowrap;
}

/* ── CONTENT AREA ─────────────────────────────────────────────────────────── */

#content-area {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 22px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#content-area::-webkit-scrollbar { width: 4px; }
#content-area::-webkit-scrollbar-track { background: var(--bg); }
#content-area::-webkit-scrollbar-thumb { background: var(--lcars-orange); border-radius: 2px; }

/* ── PAGE FOOTER BAR ──────────────────────────────────────────────────────── */

#page-footer-bar {
  flex-shrink: 0;
  height: var(--footer-bar-h);
  display: flex;
}

.pf-seg-1 { flex: 4; background: var(--lcars-orange); }
.pf-seg-2 { flex: 1; background: var(--lcars-yellow); margin: 0 3px; }
.pf-seg-3 { flex: 2; background: var(--lcars-tan);    }

/* ══════════════════════════════════════════════════════════════════════════ */
/* RIGHT SIDEBAR                                                              */
/* ══════════════════════════════════════════════════════════════════════════ */

#lcars-right {
  width: var(--sidebar-right-w);
  flex-shrink: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Continuous vertical blue stripe down the right edge */
#lcars-right::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: var(--elbow-bar-w);
  background: var(--lcars-blue);
  z-index: 0;
  pointer-events: none;
}

/* ── RIGHT TOP ELBOW ──────────────────────────────────────────────────────── */

#right-top-elbow {
  position: relative;
  flex-shrink: 0;
  height: 72px;
  z-index: 1;
}

#right-top-elbow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--lcars-blue);
  border-bottom-right-radius: var(--elbow-radius);
}

#right-top-elbow::after {
  content: '';
  position: absolute;
  top: var(--elbow-bar-w);
  left: 0;
  right: var(--elbow-bar-w);
  bottom: 0;
  background: var(--bg);
  border-top-right-radius: var(--elbow-radius);
}

/* ── RIGHT PANELS ─────────────────────────────────────────────────────────── */

#lcars-right .lc-panel {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  margin-right: var(--elbow-bar-w);
}

#weather-panel {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

#weather-panel .lc-panel-body {
  flex: 1;
  overflow-y: auto;
  font-size: 11px;
}

#world-clock .lc-panel-body { font-size: 11px; }

/* ── RIGHT BOTTOM ELBOW ───────────────────────────────────────────────────── */

#right-bottom-elbow {
  position: relative;
  flex-shrink: 0;
  height: 56px;
  z-index: 1;
}

#right-bottom-elbow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--lcars-light-blue);
  border-top-right-radius: var(--elbow-radius);
}

#right-bottom-elbow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: var(--elbow-bar-w);
  bottom: var(--elbow-bar-w);
  background: var(--bg);
  border-bottom-right-radius: var(--elbow-radius);
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* LCARS PANEL COMPONENT                                                      */
/* ══════════════════════════════════════════════════════════════════════════ */

.lc-panel {
  display: flex;
  flex-direction: column;
  animation: lcarsActivate 0.35s ease both;
}

.lc-panel + .lc-panel { animation-delay: 0.07s; }
.lc-panel:nth-child(3) { animation-delay: 0.14s; }
.lc-panel:nth-child(4) { animation-delay: 0.21s; }

@keyframes lcarsActivate {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Panel header bar */
.lc-panel-header {
  display: flex;
  align-items: stretch;
  height: 28px;
  flex-shrink: 0;
}

.ph-label {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--lcars-orange);
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--bg);
  text-transform: uppercase;
}

.ph-end-cap {
  width: 44px;
  background: var(--lcars-tan);
  flex-shrink: 0;
}

.ph-end-cap-sm {
  width: 20px;
  background: var(--lcars-yellow);
  flex-shrink: 0;
  margin-left: 3px;
}

/* Panel body */
.lc-panel-body {
  padding: 14px 16px;
}

/* Panel footer */
.lc-panel-footer {
  height: 6px;
  background: var(--lcars-orange);
  opacity: 0.45;
  flex-shrink: 0;
}

/* Color variants */
.lc-panel--blue .ph-label     { background: var(--lcars-blue);       }
.lc-panel--blue .ph-end-cap   { background: var(--lcars-light-blue); }
.lc-panel--blue .lc-panel-footer { background: var(--lcars-blue); opacity: 0.45; }

.lc-panel--purple .ph-label   { background: var(--lcars-purple); }
.lc-panel--purple .ph-end-cap { background: var(--lcars-pink);   }
.lc-panel--purple .lc-panel-footer { background: var(--lcars-purple); opacity: 0.45; }

.lc-panel--pink .ph-label     { background: var(--lcars-pink); }
.lc-panel--pink .ph-end-cap   { background: var(--lcars-tan);  }
.lc-panel--pink .lc-panel-footer { background: var(--lcars-pink); opacity: 0.45; }

.lc-panel--yellow .ph-label   { background: var(--lcars-yellow); }
.lc-panel--yellow .ph-end-cap { background: var(--lcars-tan);    }
.lc-panel--yellow .lc-panel-footer { background: var(--lcars-yellow); opacity: 0.45; }

/* ══════════════════════════════════════════════════════════════════════════ */
/* DATA ROWS                                                                  */
/* ══════════════════════════════════════════════════════════════════════════ */

.lc-data-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
  line-height: 2;
}

.lc-data-key {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  color: var(--lcars-yellow);
  letter-spacing: 2px;
  text-transform: uppercase;
  min-width: 12ch;
  flex-shrink: 0;
}

.lc-data-val {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--lcars-white);
  word-break: break-word;
}

.lc-data-val a { color: var(--lcars-light-blue); text-decoration: none; }
.lc-data-val a:hover { color: var(--lcars-blue); }

.lc-val-orange { color: var(--lcars-orange); }
.lc-val-blue   { color: var(--lcars-blue);   }
.lc-val-green  { color: var(--lcars-green);  }
.lc-val-yellow { color: var(--lcars-yellow); }
.lc-val-tan    { color: var(--lcars-tan);    }

/* ══════════════════════════════════════════════════════════════════════════ */
/* SEGMENTED DIVIDER                                                          */
/* ══════════════════════════════════════════════════════════════════════════ */

.lc-divider {
  display: flex;
  gap: 3px;
  height: 6px;
  margin: 6px 0;
  flex-shrink: 0;
}

.lc-divider span { height: 100%; border-radius: 1px; }

.lc-divider--orange span:nth-child(1) { flex: 4; background: var(--lcars-orange); }
.lc-divider--orange span:nth-child(2) { flex: 1; background: var(--lcars-yellow); }
.lc-divider--orange span:nth-child(3) { flex: 2; background: var(--lcars-tan);    }

.lc-divider--blue span:nth-child(1) { flex: 3; background: var(--lcars-blue);       }
.lc-divider--blue span:nth-child(2) { flex: 1; background: var(--lcars-light-blue); }

.lc-divider--purple span:nth-child(1) { flex: 3; background: var(--lcars-purple); }
.lc-divider--purple span:nth-child(2) { flex: 1; background: var(--lcars-pink);   }

/* ══════════════════════════════════════════════════════════════════════════ */
/* PILL BUTTONS                                                               */
/* ══════════════════════════════════════════════════════════════════════════ */

.lc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg);
  background: var(--lcars-orange);
  transition: filter 0.15s;
}

.lc-btn:hover { filter: brightness(1.2); }

.lc-btn--blue   { background: var(--lcars-blue);   }
.lc-btn--tan    { background: var(--lcars-tan);     }
.lc-btn--yellow { background: var(--lcars-yellow);  }
.lc-btn--purple { background: var(--lcars-purple);  }
.lc-btn--pink   { background: var(--lcars-pink);    }

.lc-btn--ghost {
  background: transparent;
  border: 1px solid var(--lcars-orange);
  color: var(--lcars-orange);
  font-size: 8px;
  padding: 3px 10px;
}

.lc-btn--ghost:hover { background: rgba(255,153,0,0.12); }

/* ══════════════════════════════════════════════════════════════════════════ */
/* STATUS INDICATOR                                                           */
/* ══════════════════════════════════════════════════════════════════════════ */

.lc-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lcars-orange);
  animation: lcBlink 1.4s step-end infinite;
  vertical-align: middle;
  margin-right: 5px;
}

.lc-status-dot--green  { background: var(--lcars-green); }
.lc-status-dot--blue   { background: var(--lcars-blue);  }

.lc-blink { animation: lcBlink 1.2s step-end infinite; }
.lc-cursor {
  display: inline-block;
  color: var(--lcars-orange);
  animation: lcBlink 0.85s step-end infinite;
}

@keyframes lcBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.08; }
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* BOOT TERMINAL (home page)                                                  */
/* ══════════════════════════════════════════════════════════════════════════ */

#boot-terminal {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

#boot-terminal::-webkit-scrollbar { width: 3px; }
#boot-terminal::-webkit-scrollbar-thumb { background: var(--lcars-orange); }

.lc-line {
  line-height: 1.75;
  font-family: 'Share Tech Mono', monospace;
  animation: lcLineIn 0.07s ease both;
}

.lc-line--system  { color: var(--lcars-orange); font-size: 12px; letter-spacing: 0.5px; }
.lc-line--dim     { color: rgba(255,153,0,0.45); font-size: 11px; }
.lc-line--data    { color: var(--lcars-yellow); font-size: 12px; }
.lc-line--body    { color: var(--lcars-white);  font-size: 12px; }
.lc-line--nav     { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0; }

@keyframes lcLineIn {
  from { opacity: 0; transform: translateX(5px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* SYSTEM STATS (home page)                                                   */
/* ══════════════════════════════════════════════════════════════════════════ */

.sysstat-block { display: flex; flex-direction: column; gap: 8px; }

.sysstat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.6;
}

.ss-key {
  font-family: 'Orbitron', sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--lcars-yellow);
  min-width: 10ch;
  flex-shrink: 0;
  text-transform: uppercase;
}

.ss-val {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--lcars-orange);
}

.ss-bar { color: var(--lcars-blue); letter-spacing: -1px; }

/* ══════════════════════════════════════════════════════════════════════════ */
/* WORLD CLOCK                                                                */
/* ══════════════════════════════════════════════════════════════════════════ */

.clock-zone { padding: 6px 0 7px; }

.clock-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--lcars-yellow);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.clock-time {
  font-family: 'Orbitron', sans-serif;
  font-size: 17px;
  font-weight: 900;
  color: var(--lcars-orange);
  letter-spacing: 1px;
  line-height: 1.2;
}

.clock-date {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  color: var(--lcars-yellow);
  letter-spacing: 1px;
  margin-top: 2px;
}

.clock-toggle-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 6px;
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* WEATHER PANEL                                                              */
/* ══════════════════════════════════════════════════════════════════════════ */

.w-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  line-height: 1.9;
}

.w-key {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  color: var(--lcars-yellow);
  letter-spacing: 2px;
  min-width: 5ch;
  flex-shrink: 0;
  text-transform: uppercase;
}

.w-val {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--lcars-white);
}

.w-val.amber { color: var(--lcars-tan); }
.w-val.dim   { color: rgba(255,153,0,0.5); }

.w-spacer { height: 6px; }

.w-footer {
  padding: 4px 12px 6px;
  font-size: 9px;
  color: rgba(255,153,0,0.4);
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 1px;
  border-top: 1px solid rgba(153,153,255,0.2);
  flex-shrink: 0;
}

.w-toggle-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 4px;
}

/* Forecast */
.fc-section { margin-top: 6px; }
.fc-header {
  font-family: 'Orbitron', sans-serif;
  font-size: 7px;
  letter-spacing: 3px;
  color: var(--lcars-yellow);
  margin-bottom: 6px;
}
.fc-day-row {
  display: flex;
  gap: 4px;
  font-size: 10px;
  align-items: baseline;
  line-height: 1.5;
}
.fc-name { color: var(--lcars-orange); font-weight: 700; min-width: 3ch; }
.fc-lo   { color: var(--lcars-light-blue); min-width: 6ch; text-align: right; }
.fc-sep  { color: rgba(255,153,0,0.4); }
.fc-hi   { color: var(--lcars-tan);    min-width: 6ch; }
.fc-bar-row {
  display: flex;
  gap: 4px;
  font-size: 9px;
  align-items: center;
  line-height: 1.4;
  font-family: 'Share Tech Mono', monospace;
}
.fc-bar      { color: var(--lcars-blue); letter-spacing: -1px; }
.fc-rain-bar { color: var(--lcars-light-blue); letter-spacing: -1px; margin-left: 2px; }
.fc-rain-pct { color: rgba(255,153,0,0.5); min-width: 4ch; text-align: right; }
.fc-gap { height: 5px; }

/* ══════════════════════════════════════════════════════════════════════════ */
/* SKILL TAGS (about page)                                                    */
/* ══════════════════════════════════════════════════════════════════════════ */

.lc-skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
}

.lc-skill-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--bg);
  background: var(--lcars-blue);
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.lc-skill-tag:nth-child(3n+2) { background: var(--lcars-purple); }
.lc-skill-tag:nth-child(3n)   { background: var(--lcars-tan);    }

/* ══════════════════════════════════════════════════════════════════════════ */
/* CONTACT FORM                                                               */
/* ══════════════════════════════════════════════════════════════════════════ */

.cf-form { display: flex; flex-direction: column; gap: 16px; }

.cf-field { display: flex; flex-direction: column; gap: 5px; }

.cf-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--lcars-yellow);
  text-transform: uppercase;
}

.cf-input,
.cf-textarea {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--lcars-purple);
  color: var(--lcars-orange);
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  padding: 6px 4px;
  outline: none;
  caret-color: var(--lcars-orange);
  transition: border-color 0.15s;
  resize: vertical;
}

.cf-input::placeholder,
.cf-textarea::placeholder { color: rgba(204,153,204,0.4); }

.cf-input:focus,
.cf-textarea:focus { border-color: var(--lcars-orange); }

.cf-textarea { min-height: 80px; }

.cf-status {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--lcars-orange);
  letter-spacing: 1px;
  min-height: 1.5em;
}

.cf-status--error        { color: var(--lcars-red); }
.cf-status--transmitting { color: var(--lcars-yellow); }

.cf-success {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--lcars-green);
  line-height: 1.9;
}

/* Contact page two-panel layout */
.contact-panels {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.contact-panels .lc-panel { flex: 1; }
.contact-panels .lc-panel:first-child { flex: 0 0 auto; min-width: 220px; max-width: 280px; }

/* ══════════════════════════════════════════════════════════════════════════ */
/* PORTFOLIO CARDS                                                            */
/* ══════════════════════════════════════════════════════════════════════════ */

.lc-card-code {
  font-size: 9px;
  color: rgba(255,153,0,0.35);
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-family: 'Share Tech Mono', monospace;
}

.lc-card-desc {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--lcars-white);
  line-height: 1.8;
  margin-bottom: 10px;
}

.lc-card-stack {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--lcars-yellow);
  letter-spacing: 1px;
  margin-bottom: 14px;
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* BIO TEXT                                                                   */
/* ══════════════════════════════════════════════════════════════════════════ */

.lc-bio-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--lcars-white);
  line-height: 1.85;
  margin-bottom: 12px;
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* MOBILE (≤ 768px)                                                           */
/* ══════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════ */
/* SHIP SYSTEMS MONITOR                                                       */
/* ══════════════════════════════════════════════════════════════════════════ */

.lc-sysmon {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lc-sysmon-top {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* ── Warp core ────────────────────────────────────────────────────────────── */

.lc-warp-core {
  flex-shrink: 0;
  position: relative;
  width: 140px;
  height: 140px;
}

/* Expanding wave rings — burst outward from centre and fade */
.warp-wave {
  position: absolute;
  top: 50%; left: 50%;
  margin-top: -68px; margin-left: -68px;
  width: 136px; height: 136px;
  border-radius: 50%;
  border: 1.5px solid var(--lcars-blue);
  animation: warpWave 3.6s ease-out infinite;
  pointer-events: none;
}
.warp-wave:nth-child(2) { border-color: var(--lcars-orange); animation-delay: 1.2s; }
.warp-wave:nth-child(3) { border-color: var(--lcars-purple); animation-delay: 2.4s; }

@keyframes warpWave {
  0%   { transform: scale(0.06); opacity: 1; }
  55%  { opacity: 0.5; }
  100% { transform: scale(1);    opacity: 0; }
}

/* Static pulsing rings */
.warp-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px solid;
}

.warp-ring--1 { width: 24px;  height: 24px;  border-color: var(--lcars-yellow); animation: warpRingGlow 2s ease-in-out infinite; }
.warp-ring--2 { width: 50px;  height: 50px;  border-color: var(--lcars-orange); animation: warpRingGlow 2s ease-in-out infinite 0.33s; }
.warp-ring--3 { width: 76px;  height: 76px;  border-color: var(--lcars-blue);   animation: warpRingGlow 2s ease-in-out infinite 0.66s; }
.warp-ring--4 { width: 102px; height: 102px; border-color: var(--lcars-purple); animation: warpRingGlow 2s ease-in-out infinite 1s; }

@keyframes warpRingGlow {
  0%, 100% { opacity: 0.85; }
  50%       { opacity: 0.2;  }
}

/* Warp core centre dot */
.warp-core-dot {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--lcars-yellow);
  box-shadow: 0 0 6px 2px var(--lcars-yellow), 0 0 18px 5px var(--lcars-orange);
  animation: warpCorePulse 1.6s ease-in-out infinite alternate;
}

@keyframes warpCorePulse {
  from { box-shadow: 0 0 4px 1px var(--lcars-yellow), 0 0 10px 3px var(--lcars-orange); }
  to   { box-shadow: 0 0 12px 5px var(--lcars-yellow), 0 0 28px 10px var(--lcars-orange); }
}

/* ── System status bars ───────────────────────────────────────────────────── */

.lc-sysmon-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.sm-row { display: flex; flex-direction: column; gap: 3px; }

.sm-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.sm-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--lcars-yellow);
  text-transform: uppercase;
}

.sm-pct {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--lcars-orange);
}

.sm-track {
  height: 5px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  overflow: hidden;
}

.sm-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease;
}

.sm-fill--blue   { background: var(--lcars-blue);   }
.sm-fill--orange { background: var(--lcars-orange);  }
.sm-fill--green  { background: var(--lcars-green);   }
.sm-fill--purple { background: var(--lcars-purple);  }
.sm-fill--pink   { background: var(--lcars-pink);    }
.sm-fill--tan    { background: var(--lcars-tan);     }

/* ── Scrolling telemetry strip ────────────────────────────────────────────── */

.lc-telemetry {
  overflow: hidden;
  white-space: nowrap;
  height: 24px;
  display: flex;
  align-items: center;
  background: rgba(153,153,255,0.05);
  border-top: 1px solid rgba(153,153,255,0.2);
  border-bottom: 1px solid rgba(153,153,255,0.2);
}

.lc-telemetry-track {
  display: inline-block;
  animation: telemetryScroll 40s linear infinite;
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--lcars-yellow);
  padding-left: 100%;
}

@keyframes telemetryScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

@media (max-width: 768px) {
  #app { flex-direction: column; }

  #lcars-left {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 8px 12px;
    gap: 10px;
    border-bottom: 3px solid var(--lcars-orange);
    position: relative;
  }

  /* Hide vertical stripe on mobile */
  #lcars-left::before { display: none; }

  #left-top-elbow,
  #left-bottom-elbow,
  #left-status { display: none; }

  #lcars-site-title {
    position: static;
    height: auto;
    font-size: 13px;
    color: var(--lcars-orange);
    padding: 0;
  }

  #lcars-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0;
  }

  .nav-pill {
    border-radius: 999px;
    margin-left: 0;
    padding: 5px 12px;
    font-size: 8px;
  }

  #lcars-right { display: none; }

  .contact-panels { flex-direction: column; }
  .contact-panels .lc-panel:first-child { min-width: 0; max-width: none; }

  #content-area { padding: 14px 14px 30px; }
}

@media (max-width: 480px) {
  .ph-cap-left, .ph-sep { display: none; }
  .ph-title { font-size: 11px; letter-spacing: 2px; }
  .ph-code  { display: none; }
}
