/* ═══════════════════════════════════════════════════════════════
   LCARS — Star Trek TNG Theme
   Library Computer Access/Retrieval System
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Antonio:wght@300;400;500;700&display=swap');

/* ── TOKENS ───────────────────────────────────────────────────── */
:root {
  --lc-bg:      #000000;
  --lc-panel:   #060810;
  --lc-orange:  #FF9900;
  --lc-tan:     #FFCC99;
  --lc-purple:  #9999CC;
  --lc-lav:     #CC99CC;
  --lc-blue:    #6699CC;
  --lc-teal:    #66CCCC;
  --lc-red:     #CC3333;
  --lc-gold:    #FFCC00;
  --lc-text:    #FFCC99;
  --lc-dim:     #886644;
  --lc-rail:    190px;
  --lc-elbow:   70px;  /* height of sidebar brand + topbar height */
  --lc-radius:  40px;
  --lc-font:    'Antonio', 'Trebuchet MS', sans-serif;
}

/* ── RESET ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body.theme-lcars {
  background: var(--lc-bg);
  color: var(--lc-text);
  font-family: var(--lc-font);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

/* ── SHELL — sidebar + main ───────────────────────────────────── */
.l-shell {
  display: grid;
  grid-template-columns: var(--lc-rail) 1fr;
  min-height: 100vh;
}

/* ── SIDEBAR ──────────────────────────────────────────────────── */
.l-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  background: var(--lc-bg);
}
.l-sidebar::-webkit-scrollbar { width: 0; }

/* Brand / Elbow block */
.l-sidebar-brand {
  background: var(--lc-orange);
  flex-shrink: 0;
  height: var(--lc-elbow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 16px;
  /* TOP-LEFT black curve (outer corner of the L-bracket) +
     BOTTOM-RIGHT curve (elbow connecting to content area) */
  border-radius: var(--lc-radius) 0 0 0;
  cursor: pointer;
}
.l-sidebar-brand a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.l-brand-title {
  font-family: var(--lc-font);
  font-size: 13px;
  font-weight: 700;
  color: var(--lc-bg);
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.1;
}
.l-brand-sub {
  font-size: 9px;
  color: rgba(0,0,0,.6);
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* Nav section */
.l-sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 0 20px;
  gap: 6px;
}

/* Pill links — rounded left, flush right (LCARS style) */
.l-nav-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 14px;
  border-radius: 20px 0 0 20px;
  margin-right: 0;
  font-family: var(--lc-font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--lc-bg);
  transition: filter .15s, opacity .15s;
  cursor: pointer;
}
.l-nav-pill:hover { filter: brightness(1.2); }
.l-nav-pill.active { filter: brightness(1.3); outline: 2px solid var(--lc-tan); outline-offset: -2px; }

.l-nav-pill-design  { background: var(--lc-purple); }
.l-nav-pill-create  { background: var(--lc-teal); }
.l-nav-pill-capture { background: var(--lc-blue); }
.l-nav-pill-about   { background: var(--lc-lav); }

/* Theme switcher pill */
.l-nav-theme-wrap { position: relative; padding: 0; }
.l-nav-theme-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 20px 0 0 20px;
  margin-right: 0;
  width: 100%;
  font-family: var(--lc-font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lc-bg);
  background: var(--lc-orange);
  border: none;
  cursor: pointer;
  transition: filter .15s;
}
.l-nav-theme-btn:hover { filter: brightness(1.2); }
.l-nav-dropdown {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  background: var(--lc-panel);
  border: 1px solid var(--lc-orange);
  min-width: 180px;
  z-index: 200;
  flex-direction: column;
}
.l-nav-dropdown.open { display: flex; }
.l-nav-dropdown a {
  display: block;
  padding: 8px 14px;
  font-family: var(--lc-font);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lc-tan);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,153,0,.15);
  transition: background .1s;
}
.l-nav-dropdown a:hover { background: rgba(255,153,0,.15); }

/* Sidebar status / bottom blocks */
.l-sidebar-status {
  flex-shrink: 0;
  padding: 12px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.l-status-block {
  padding: 5px 12px;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(0,0,0,.8);
  font-family: var(--lc-font);
  line-height: 1.3;
}
.l-sb-orange { background: var(--lc-orange); border-radius: 4px 0 0 4px; }
.l-sb-tan    { background: var(--lc-tan);    border-radius: 4px 0 0 4px; }
.l-sb-purple { background: var(--lc-purple); border-radius: 4px 0 0 4px; }
.l-sb-blue   { background: var(--lc-blue);   border-radius: 4px 0 0 4px; }
.l-sb-teal   { background: var(--lc-teal);   border-radius: 4px 0 0 4px; }
.l-sb-lav    { background: var(--lc-lav);    border-radius: 4px 0 0 4px; }

.l-sidebar-footer {
  flex-shrink: 0;
  padding: 12px 12px 16px;
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--lc-dim);
  text-transform: uppercase;
  line-height: 1.8;
}

/* ── MAIN CONTENT ─────────────────────────────────────────────── */
.l-main-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Top bar — aligns with sidebar elbow height */
.l-topbar {
  flex-shrink: 0;
  height: var(--lc-elbow);
  background: var(--lc-orange);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 24px;
}
.l-topbar-title {
  font-family: var(--lc-font);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--lc-bg);
  line-height: 1;
}
.l-topbar-sub {
  font-size: 10px;
  letter-spacing: .3em;
  color: rgba(0,0,0,.55);
  text-transform: uppercase;
}
.l-topbar-stardate {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: .2em;
  color: rgba(0,0,0,.6);
  text-align: right;
}

/* ── SECTION CONTAINERS ───────────────────────────────────────── */
.l-section {
  padding: 40px 36px;
  border-bottom: 1px solid rgba(255,153,0,.1);
}
.l-section:last-child { border-bottom: none; }

.l-section-alt {
  background: var(--lc-panel);
}

/* Section header chrome */
.l-section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--lc-orange);
}
.l-section-tag {
  font-size: 11px;
  letter-spacing: .25em;
  color: var(--lc-orange);
  text-transform: uppercase;
  flex-shrink: 0;
}
.l-section-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lc-tan);
  line-height: 1;
}
.l-section-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--lc-orange) 0%, transparent 100%);
}

/* Sub-section headers */
.l-subsection-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  margin-top: 32px;
}
.l-subsection-head:first-child { margin-top: 0; }
.l-sub-label {
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--lc-teal);
  text-transform: uppercase;
}
.l-sub-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--lc-tan);
}
.l-sub-line {
  flex: 1;
  height: 1px;
  background: rgba(102,204,204,.3);
}

/* ── TABS (LCARS function buttons) ────────────────────────────── */
.l-tabs {
  display: flex;
  gap: 3px;
  padding: 16px 36px 0;
  background: var(--lc-bg);
  border-bottom: 3px solid var(--lc-orange);
}
.l-tab {
  padding: 8px 20px;
  font-family: var(--lc-font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  background: rgba(255,153,0,.15);
  color: var(--lc-dim);
  transition: background .15s, color .15s;
}
.l-tab:hover { background: rgba(255,153,0,.3); color: var(--lc-tan); }
.l-tab.tab-active {
  background: var(--lc-orange);
  color: var(--lc-bg);
}

/* Panel visibility */
[data-panel] { display: none; }
[data-panel].panel-active { display: block; }

/* ── HERO ─────────────────────────────────────────────────────── */
.l-hero {
  position: relative;
  background: var(--lc-bg);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 36px;
}
.l-hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.l-hero-video-wrap iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 177.78vh; height: 100vh;
  min-width: 100%; min-height: 56.25vw;
  transform: translate(-50%,-50%);
  pointer-events: none;
  border: none;
}
.l-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 100%);
}
.l-hero-content {
  position: relative;
  z-index: 2;
}
.l-hero-tag {
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--lc-orange);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.l-hero-name {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--lc-tan);
  line-height: 1;
  margin-bottom: 6px;
}
.l-hero-tagline {
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--lc-purple);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.l-hero-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.l-hero-role {
  padding: 4px 12px;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  border-radius: 20px;
  color: var(--lc-bg);
}
.l-hero-role:nth-child(1) { background: var(--lc-orange); }
.l-hero-role:nth-child(2) { background: var(--lc-purple); }
.l-hero-role:nth-child(3) { background: var(--lc-teal); }
.l-hero-role:nth-child(4) { background: var(--lc-blue); }

/* ── INTRO PANELS (home) ──────────────────────────────────────── */
.l-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--lc-orange);
  border: 2px solid var(--lc-orange);
}
.l-intro-panel {
  background: var(--lc-panel);
  padding: 24px 20px;
}
.l-intro-label {
  font-size: 9px;
  letter-spacing: .35em;
  color: var(--lc-orange);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.l-intro-text {
  font-size: 14px;
  color: var(--lc-text);
  line-height: 1.65;
  letter-spacing: .02em;
}

/* ── WORK GRID (home selected work) ──────────────────────────── */
.l-work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.l-work-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
  background: #111;
}
.l-work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
  filter: brightness(.75) saturate(.8);
}
.l-work-card:hover img { transform: scale(1.04); filter: brightness(.9) saturate(1); }
.l-work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity .3s;
}
.l-work-card:hover .l-work-overlay { opacity: 1; }
.l-work-num {
  font-size: 11px;
  letter-spacing: .25em;
  color: var(--lc-orange);
  margin-bottom: 4px;
}
.l-work-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lc-tan);
}
.l-work-client {
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--lc-teal);
  text-transform: uppercase;
}

/* ── LCARS DISPLAY PANELS ("PADD" style) ─────────────────────── */
.l-padd {
  background: var(--lc-panel);
  border: 1px solid rgba(255,153,0,.2);
  border-left: 4px solid var(--lc-orange);
  padding: 20px;
}
.l-padd-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.l-padd-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lc-orange);
  flex-shrink: 0;
  animation: l-blink 2s ease-in-out infinite;
}
.l-padd-label {
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--lc-orange);
  text-transform: uppercase;
}
.l-padd-body {
  font-size: 14px;
  color: var(--lc-text);
  line-height: 1.7;
  letter-spacing: .02em;
}
.l-padd-name {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lc-tan);
}
.l-padd-role {
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--lc-teal);
  text-transform: uppercase;
}

@keyframes l-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}

/* Testimonial / crew commendation grid */
.l-commend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3px;
  background: var(--lc-orange);
  padding: 2px;
}

/* ── PRESS / FEDERATION RECOGNITION ─────────────────────────── */
.l-press-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.l-press-item {
  padding: 6px 16px;
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--lc-bg);
  background: var(--lc-purple);
  border-radius: 20px;
}

/* ── PORTFOLIO THUMBS ────────────────────────────────────────── */
.l-thumb-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}
@media (max-width:1100px) { .l-thumb-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width:800px)  { .l-thumb-grid { grid-template-columns: repeat(3, 1fr); } }

.l-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: #0a0a14;
}
.l-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(.8) saturate(.7);
  transition: filter .3s, transform .3s;
}
.l-thumb:hover img { filter: brightness(1) saturate(1); transform: scale(1.05); }

/* Transporter energize overlay */
.l-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 3px,
    rgba(102,204,204,.5) 3px,
    rgba(102,204,204,.5) 4px
  );
  mix-blend-mode: screen;
}
.l-thumb.l-energizing::after {
  animation: l-energize .7s forwards;
}

@keyframes l-energize {
  0%   { opacity: 0; background-position: 0 0; }
  15%  { opacity: 1; background: repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(102,204,204,.7) 2px, rgba(102,204,204,.7) 3px); }
  40%  { opacity: 1; background: repeating-linear-gradient(0deg, transparent 0, transparent 1px, rgba(255,153,0,.9) 1px, rgba(255,153,0,.9) 2px); }
  70%  { opacity: .8; background: repeating-linear-gradient(0deg, transparent 0, transparent 4px, rgba(255,255,255,.6) 4px, rgba(255,255,255,.6) 5px); }
  100% { opacity: 0; }
}

.l-thumb-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, transparent 100%);
  padding: 20px 8px 6px;
  opacity: 0;
  transition: opacity .25s;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--lc-tan);
}
.l-thumb:hover .l-thumb-caption { opacity: 1; }

/* ── PROJECT BLOCKS ──────────────────────────────────────────── */
.l-project {
  padding: 32px 36px;
  border-bottom: 1px solid rgba(255,153,0,.08);
}
.l-project-alt { background: var(--lc-panel); }
.l-project-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 10px;
}
.l-project-accent {
  width: 4px;
  min-height: 40px;
  border-radius: 2px;
  flex-shrink: 0;
}
.l-project-accent-orange { background: var(--lc-orange); }
.l-project-accent-purple { background: var(--lc-purple); }
.l-project-accent-teal   { background: var(--lc-teal); }
.l-project-accent-blue   { background: var(--lc-blue); }

.l-project-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lc-tan);
}
.l-project-meta {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lc-teal);
  margin-top: 2px;
}
.l-project-desc {
  font-size: 14px;
  color: var(--lc-text);
  line-height: 1.7;
  letter-spacing: .02em;
  margin-bottom: 20px;
  max-width: 760px;
}
.l-project-client {
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--lc-orange);
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── VIDEO GRID ──────────────────────────────────────────────── */
.l-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 3px;
}
.l-video-item {}
.l-video-frame {
  position: relative;
  padding-bottom: 56.25%;
  background: #000;
  border: 1px solid rgba(255,153,0,.2);
}
.l-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.l-video-info {
  padding: 10px 12px;
  background: var(--lc-panel);
  border-left: 3px solid var(--lc-orange);
}
.l-video-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lc-tan);
}
.l-video-role {
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--lc-teal);
  margin-top: 2px;
}
.l-video-desc {
  font-size: 13px;
  color: var(--lc-text);
  line-height: 1.6;
  margin-top: 4px;
  opacity: .85;
}

/* ── BEFORE / AFTER SLIDER ───────────────────────────────────── */
.l-slider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 3px;
  margin-top: 16px;
}
.ba-slider {
  position: relative;
  overflow: hidden;
  cursor: col-resize;
  aspect-ratio: 16/9;
  border: 1px solid rgba(255,153,0,.2);
}
.ba-after, .ba-before {
  position: absolute;
  inset: 0;
}
.ba-after img, .ba-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ba-before { clip-path: inset(0 50% 0 0); }
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--lc-orange);
  cursor: col-resize;
  transform: translateX(-50%);
}
.ba-handle::before {
  content: '◈';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  color: var(--lc-orange);
  font-size: 18px;
  text-shadow: 0 0 8px var(--lc-orange);
}
.ba-label {
  position: absolute;
  padding: 2px 8px;
  font-size: 8px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-family: var(--lc-font);
  background: rgba(0,0,0,.7);
}
.ba-lbl-after  { top: 6px; left: 6px;  color: var(--lc-teal); border: 1px solid var(--lc-teal); }
.ba-lbl-before { top: 6px; right: 6px; color: var(--lc-orange); border: 1px solid var(--lc-orange); }

/* ── ABOUT PAGE ──────────────────────────────────────────────── */
.l-about-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: start;
}
.l-profile-wrap {
  position: sticky;
  top: 20px;
}
.l-profile-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border: 3px solid var(--lc-orange);
  filter: saturate(.7);
}
.l-profile-tags {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 12px;
}
.l-profile-tag {
  padding: 5px 10px;
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lc-bg);
  border-radius: 4px 0 0 4px;
}
.l-profile-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 12px;
}
.l-profile-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--lc-tan);
  background: rgba(255,153,0,.08);
  border-left: 3px solid var(--lc-orange);
  transition: background .15s;
}
.l-profile-link:hover { background: rgba(255,153,0,.2); }
.l-profile-link span { font-size: 14px; color: var(--lc-orange); }

.l-about-section-title {
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--lc-orange);
  margin-bottom: 12px;
  margin-top: 28px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,153,0,.3);
}
.l-about-section-title:first-child { margin-top: 0; }
.l-about-bio {
  font-size: 15px;
  line-height: 1.75;
  color: var(--lc-text);
  letter-spacing: .02em;
}

/* Skill bars (LCARS gauge style) */
.l-skill-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.l-skill-name {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lc-tan);
  width: 170px;
  flex-shrink: 0;
}
.l-skill-bar {
  display: flex;
  gap: 3px;
  flex: 1;
}
.l-skill-pip {
  flex: 1;
  height: 12px;
  background: var(--lc-orange);
  border-radius: 2px;
}
.l-skill-pip.empty {
  background: rgba(255,153,0,.15);
}

/* Education */
.l-edu-item {
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid var(--lc-purple);
}
.l-edu-degree {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--lc-tan);
}
.l-edu-school {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lc-purple);
  margin-top: 2px;
}

/* Notable clients */
.l-notable-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.l-notable-item {
  padding: 8px 12px;
  background: rgba(255,153,0,.06);
  border-left: 2px solid var(--lc-orange);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.l-notable-client {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lc-tan);
}
.l-notable-desc {
  font-size: 11px;
  color: var(--lc-dim);
  letter-spacing: .03em;
}

/* Contact blocks */
.l-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2px;
  background: var(--lc-orange);
  padding: 2px;
  margin-top: 28px;
}
.l-contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: var(--lc-panel);
  text-decoration: none;
  transition: background .15s;
  border-bottom: 3px solid transparent;
}
.l-contact-card:hover { background: rgba(255,153,0,.1); border-bottom-color: var(--lc-orange); }
.l-contact-icon { font-size: 16px; color: var(--lc-orange); }
.l-contact-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--lc-tan);
}
.l-contact-sub {
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--lc-dim);
}

/* ── PAGE HEADER (inner pages) ───────────────────────────────── */
.l-page-head {
  background: var(--lc-panel);
  padding: 28px 36px 20px;
  border-bottom: 2px solid var(--lc-orange);
}
.l-page-breadcrumb {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lc-dim);
  margin-bottom: 6px;
}
.l-page-breadcrumb a { color: var(--lc-orange); text-decoration: none; }
.l-page-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lc-tan);
  line-height: 1;
}
.l-page-sub {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lc-teal);
  margin-top: 4px;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.l-footer {
  background: var(--lc-panel);
  padding: 20px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 3px solid var(--lc-orange);
  gap: 20px;
  flex-wrap: wrap;
}
.l-footer-brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lc-tan);
}
.l-footer-loc {
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--lc-dim);
  text-transform: uppercase;
  margin-top: 2px;
}
.l-footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.l-footer-links a {
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--lc-purple);
  text-decoration: none;
  transition: color .15s;
}
.l-footer-links a:hover { color: var(--lc-tan); }
.l-footer-copy {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lc-dim);
}

/* ── LIGHTBOX — TRANSPORTER EFFECT ──────────────────────────── */
#lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,6,.95);
  align-items: center;
  justify-content: center;
}
#lb-overlay.lb-open { display: flex; }
body.lb-active { overflow: hidden; }
#lb-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
#lb-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
  border: 3px solid var(--lc-orange);
  box-shadow: 0 0 40px rgba(255,153,0,.4), 0 0 80px rgba(102,204,204,.2);
}
/* Transporter materialize animation */
#lb-overlay.lb-open #lb-img {
  animation: l-materialize .9s cubic-bezier(.2,.8,.4,1) forwards;
}
@keyframes l-materialize {
  0%   { opacity: 0; filter: blur(24px) brightness(4) saturate(0); clip-path: inset(100% 0 0 0); }
  25%  { opacity: .6; filter: blur(12px) brightness(2.5) saturate(.3); clip-path: inset(60% 0 0 0); }
  55%  { opacity: .85; filter: blur(5px) brightness(1.5) saturate(.7); clip-path: inset(20% 0 0 0); }
  80%  { opacity: .95; filter: blur(1px) brightness(1.1) saturate(.9); clip-path: inset(2% 0 0 0); }
  100% { opacity: 1; filter: blur(0) brightness(1) saturate(1); clip-path: inset(0 0 0 0); }
}

#lb-caption {
  text-align: center;
  font-family: var(--lc-font);
  font-size: 10px;
  color: var(--lc-tan);
  line-height: 1.8;
  letter-spacing: .12em;
}
#lb-title {
  color: var(--lc-orange);
  margin-bottom: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .2em;
}
#lb-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: 2px solid var(--lc-orange);
  color: var(--lc-orange);
  font-family: var(--lc-font);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 14px;
  transition: background .15s, color .15s;
}
#lb-close:hover { background: var(--lc-orange); color: var(--lc-bg); }

/* ── MOBILE ───────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .l-shell {
    grid-template-columns: 1fr;
  }
  .l-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 220px;
    height: 100%;
    transition: left .3s;
    z-index: 500;
    box-shadow: 4px 0 20px rgba(0,0,0,.8);
  }
  .l-sidebar.nav-open { left: 0; }
  .l-mobile-header {
    display: flex !important;
    align-items: center;
    padding: 0 16px;
    height: 56px;
    background: var(--lc-orange);
    flex-shrink: 0;
  }
  .l-mobile-title {
    font-family: var(--lc-font);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--lc-bg);
    flex: 1;
  }
  .l-hamburger {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
  }
  .l-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--lc-bg);
  }
  .l-main-wrap .l-topbar { display: none; }

  .l-hero { min-height: 260px; }
  .l-hero-name { font-size: 32px; }
  .l-intro-grid { grid-template-columns: 1fr; }
  .l-work-grid { grid-template-columns: repeat(2, 1fr); }
  .l-about-grid { grid-template-columns: 1fr; }
  .l-profile-img { max-width: 180px; }
  .l-section { padding: 28px 20px; }
  .l-project { padding: 24px 20px; }
  .l-tabs { padding: 12px 20px 0; }
  .l-footer { padding: 16px 20px; }
  .l-thumb-grid { grid-template-columns: repeat(3, 1fr); }
  .l-notable-list { grid-template-columns: 1fr; }
  .l-page-head { padding: 20px 20px 16px; }
  .l-page-title { font-size: 24px; }
}

.l-mobile-header { display: none; }
.l-hamburger { display: none; }

/* Overlay for mobile nav */
.l-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 499;
}
.l-nav-overlay.active { display: block; }

@media (max-width: 480px) {
  .l-section { padding: 20px 14px; }
  .l-work-grid { grid-template-columns: 1fr; }
  .l-thumb-grid { grid-template-columns: repeat(2, 1fr); }
  .l-page-title { font-size: 20px; }
  .l-hero-name { font-size: 26px; }
  .l-tabs { padding: 8px 14px 0; }
  .l-notable-item { grid-template-columns: 1fr; }
  .l-footer { flex-direction: column; gap: 16px; }
}
@media (max-width: 360px) {
  .l-section { padding: 16px 10px; }
  .l-thumb-grid { grid-template-columns: repeat(2, 1fr); }
  .l-sidebar { width: 200px; }
  .l-page-title { font-size: 17px; }
}
