/* ══════════════════════════════════════════
   ROOT & RESET
══════════════════════════════════════════ */
:root {
  --bg: #06060f;
  --surface: #0b0a18;
  --surface2: #11101e;
  --border: #1a1830;
  --accent: #8b4fc8;
  --accent2: #b06ef5;
  --accent3: #d4a8ff;
  --text: #c0b8d8;
  --text-dim: #6a6088;
  --text-bright: #ede8ff;
  --green: #00e87a;
  --nav-h: 68px;
}

@media (min-width: 2560px) { :root { --nav-h: 100px; } }

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Rig texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('/assets/images/rig4K.png');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

/* Subtle grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(139,79,200,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,79,200,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 1;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(6,6,15,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 clamp(32px, 5vw, 80px);
  z-index: 500;
}

.nav-logo {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(18px, 1.8vw, 32px);
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
  text-decoration: none;
}
.nav-logo span { color: var(--accent2); }
.nav-logo:hover span { color: var(--accent3); }

.nav-links {
  display: flex;
  gap: clamp(20px, 2.5vw, 40px);
  margin-left: auto;
  align-items: center;
}

.nav-link {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(10px, 0.9vw, 16px);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  user-select: none;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--accent2); border-bottom-color: var(--accent2); }

.nav-badge {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(9px, 0.85vw, 13px);
  letter-spacing: 2px;
  color: var(--green);
  border: 1px solid rgba(0,232,122,0.6);
  background: rgba(0,232,122,0.1);
  padding: 6px 16px;
  text-transform: uppercase;
  animation: blink 2.5s ease-in-out infinite;
  cursor: pointer;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ══════════════════════════════════════════
   PAGES
══════════════════════════════════════════ */
.page {
  display: none;
  min-height: 100vh;
  padding-top: var(--nav-h);
  position: relative;
  z-index: 2;
}
.page.active { display: block; animation: pgIn 0.3s ease; }
@keyframes pgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════
   SHARED
══════════════════════════════════════════ */
.eyebrow {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(9px, 0.8vw, 12px);
  letter-spacing: 5px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-h {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(32px, 3.5vw, 60px);
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 56px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: clamp(10px,1vw,14px) clamp(20px,2vw,32px);
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(10px,0.9vw,13px);
  letter-spacing: 3px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  padding: clamp(10px,1vw,14px) clamp(20px,2vw,32px);
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(10px,0.9vw,13px);
  letter-spacing: 3px;
  text-transform: uppercase;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
  text-decoration: none;
}
.btn-ghost:hover { border-color: var(--accent2); color: var(--accent2); transform: translateY(-2px); }

/* ══════════════════════════════════════════
   HOME — HERO
══════════════════════════════════════════ */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  padding: clamp(40px, 6vw, 100px) clamp(32px, 7vw, 120px);
  position: relative;
}

.hero-inner { max-width: 860px; width: 100%; }

.hero-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(11px, 1vw, 15px);
  letter-spacing: 5px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-tag::before { content: ''; width: 40px; height: 1px; background: var(--accent); }

.hero-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(64px, 10vw, 160px);
  font-weight: 700;
  color: var(--text-bright);
  line-height: 0.88;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-name .accent { color: var(--accent2); display: block; }

.hero-sub {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(12px, 1.1vw, 16px);
  color: var(--text-dim);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero-bio {
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.85;
  color: var(--text);
  max-width: 560px;
  margin-bottom: 48px;
  font-weight: 300;
  border-left: 2px solid var(--border);
  padding-left: 20px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero bottom bar */
.hero-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 16px clamp(32px, 7vw, 120px);
  gap: 32px;
  background: rgba(6,6,15,0.5);
}

.hero-bar-item {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(9px, 0.8vw, 11px);
  letter-spacing: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-bar-item span { color: var(--accent2); }

/* ══════════════════════════════════════════
   HOME — EXPERTISE
══════════════════════════════════════════ */
.expertise-section {
  padding: clamp(60px, 8vw, 120px) clamp(32px, 7vw, 120px);
  border-top: 1px solid var(--border);
}

.expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}

.expertise-item {
  background: var(--surface);
  padding: clamp(28px, 3vw, 48px);
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}
.expertise-item:hover { background: var(--surface2); }

.expertise-item::before {
  content: attr(data-num);
  position: absolute;
  top: 20px; right: 24px;
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(32px, 4vw, 64px);
  color: rgba(139,79,200,0.06);
  line-height: 1;
  font-weight: 700;
}

.ei-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(9px, 0.75vw, 11px);
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.ei-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(22px, 2.2vw, 36px);
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.ei-desc {
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.75;
  color: var(--text);
  max-width: 420px;
  font-weight: 300;
}

.ei-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}

.ei-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(8px, 0.7vw, 10px);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent2);
  border: 1px solid rgba(176,110,245,0.25);
  background: rgba(176,110,245,0.05);
  padding: 3px 10px;
}

/* ══════════════════════════════════════════
   HOME — BOTTOM ROW (Explore + Online)
══════════════════════════════════════════ */
.home-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
}

.home-bottom-col {
  padding: clamp(48px, 6vw, 100px) clamp(32px, 5vw, 80px);
}

.home-bottom-col:first-child {
  border-right: 1px solid var(--border);
}

.explore-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
}

.explore-item {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: clamp(16px, 1.5vw, 24px) clamp(20px, 2vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.explore-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.explore-item:hover::before { transform: scaleX(1); }
.explore-item:hover {
  background: var(--surface2);
  border-color: var(--accent);
  transform: translateY(-3px) translateX(4px);
}

.explore-item-left { display: flex; flex-direction: column; gap: 4px; }

.explore-cat {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(8px, 0.7vw, 10px);
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
}

.explore-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: 0.5px;
}

.explore-arrow {
  color: var(--text-dim);
  font-size: 14px;
  transition: color 0.15s, transform 0.15s;
}
.explore-item:hover .explore-arrow { color: var(--accent2); transform: translateX(4px); }

/* Online col */
.online-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.online-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: clamp(12px, 1.2vw, 18px) clamp(16px, 1.5vw, 24px);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}
.online-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.online-item:hover::before { transform: scaleX(1); }
.online-item:hover {
  border-color: var(--accent);
  background: var(--surface2);
  transform: translateY(-3px) translateX(4px);
}

.online-icon {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(14px, 1.2vw, 18px);
  color: var(--accent2);
  width: 28px;
  flex-shrink: 0;
}

.online-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }

.online-platform {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(9px, 0.75vw, 11px);
  letter-spacing: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.online-handle {
  font-size: clamp(13px, 1.1vw, 16px);
  color: var(--text-bright);
  font-weight: 500;
}

.online-arrow { color: var(--text-dim); font-size: 12px; transition: color 0.2s; }
.online-item:hover .online-arrow { color: var(--accent2); }

.open-to-work-note {
  background: rgba(0,232,122,0.05);
  border: 1px solid rgba(0,232,122,0.3);
  border-left: 4px solid var(--green);
  padding: clamp(24px, 2.5vw, 40px) clamp(24px, 2.5vw, 40px);
  position: relative;
  margin-top: 16px;
  animation: blink 3s ease-in-out infinite;
}
.otwn-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(12px, 1vw, 16px);
  letter-spacing: 4px;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.otwn-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(16px, 1.4vw, 22px);
  color: var(--text-bright);
  line-height: 1.6;
  font-weight: 500;
}

/* ══════════════════════════════════════════
   PORTFOLIO
══════════════════════════════════════════ */
.port-wrap {
  padding: clamp(48px, 6vw, 100px) clamp(32px, 7vw, 120px);
}

.port-header {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.showreel {
  aspect-ratio: 16/9;
  width: 100%;
  margin-bottom: 1px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.showreel-play {
  width: clamp(48px, 5vw, 72px);
  height: clamp(48px, 5vw, 72px);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: clamp(18px, 2vw, 28px);
  margin-bottom: 8px;
}

.showreel-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(10px, 0.9vw, 13px);
  letter-spacing: 4px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.showreel-sub {
  font-size: clamp(11px, 0.9vw, 13px);
  color: var(--text-dim);
  opacity: 0.5;
}

.reel-section {
  max-width: 960px;
  width: 100%;
  margin: 0 auto 56px;
}

.port-grid {
  display: grid;
  grid-template-columns: repeat(2, 480px);
  gap: 1px;
  background: var(--border);
}

.port-section-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(9px, 0.8vw, 11px);
  letter-spacing: 4px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 40px;
  margin-bottom: 16px;
}

.port-card {
  background: var(--surface);
  transition: all 0.2s ease;
  opacity: 0.45;
  position: relative;
  overflow: hidden;
  width: 480px;
}
.port-card.placeholder { cursor: default; }
.port-card:not(.placeholder) { opacity: 1; cursor: pointer; }
.port-card:not(.placeholder):hover { background: var(--surface2); }
.port-card:not(.placeholder):hover .pc-thumb img { transform: scale(1.05); }

.pc-thumb {
  aspect-ratio: 16/9;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(9px, 0.8vw, 11px);
  letter-spacing: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.pc-body { padding: clamp(20px, 2vw, 32px); }

.pc-cat {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(10px, 0.85vw, 12px);
  letter-spacing: 3px;
  color: var(--accent2);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.pc-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 6px;
}

.pc-desc { font-size: clamp(11px, 0.9vw, 13px); color: var(--text-dim); line-height: 1.6; }

/* ══════════════════════════════════════════
   PORTFOLIO FEATURED
══════════════════════════════════════════ */
.port-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--border);
  margin-bottom: 1px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.port-featured:hover .port-featured-img img { transform: scale(1.03); }
.port-featured:hover .port-featured-cta { opacity: 1; }

.port-featured-img {
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--border);
}
.port-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.port-featured-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  background: linear-gradient(to top, rgba(6,6,15,0.7) 0%, transparent 50%);
}
.port-featured-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(9px, 0.75vw, 11px);
  letter-spacing: 3px;
  color: var(--text-bright);
  background: rgba(139,79,200,0.6);
  padding: 4px 10px;
  text-transform: uppercase;
  align-self: flex-start;
}
.port-featured-cta {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(10px, 0.85vw, 13px);
  letter-spacing: 3px;
  color: var(--green);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease;
  align-self: flex-end;
}

.port-featured-body {
  background: var(--surface);
  padding: clamp(24px, 3vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.port-featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.port-featured-cat {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(10px, 0.85vw, 13px);
  letter-spacing: 3px;
  color: var(--accent2);
  text-transform: uppercase;
}
.port-featured-year {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(10px, 0.85vw, 13px);
  letter-spacing: 3px;
  color: var(--text-dim);
}
.port-featured-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.1;
}
.port-featured-desc {
  font-size: clamp(13px, 1vw, 15px);
  color: var(--text);
  line-height: 1.7;
}
.port-featured-stats {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  margin-top: 4px;
}
.pfs {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  border-right: 1px solid var(--border);
  gap: 4px;
}
.pfs:last-child { border-right: none; }
.pfs-val {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(12px, 1.1vw, 16px);
  color: var(--accent2);
  letter-spacing: 1px;
}
.pfs-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(8px, 0.65vw, 10px);
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
}
.pb-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.pb-link-ghost {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(11px, 0.9vw, 13px);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s;
}
.pb-link-ghost:hover { color: var(--accent2); }

/* ══════════════════════════════════════════
   PORTFOLIO BREAKDOWN PAGE
══════════════════════════════════════════ */
.port-breakdown-wrap {
  padding: clamp(48px, 6vw, 100px) clamp(32px, 7vw, 120px);
}

.pb-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 80px);
  align-items: center;
  margin-bottom: 64px;
}
.pb-desc {
  font-size: clamp(14px, 1vw, 16px);
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
}

.pb-specs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
  margin-bottom: 64px;
}
.pb-spec {
  background: var(--surface);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pb-spec-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(8px, 0.7vw, 10px);
  letter-spacing: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
}
.pb-spec-val {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 600;
  color: var(--text-bright);
}

.pb-section-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(9px, 0.8vw, 11px);
  letter-spacing: 4px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 16px;
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}

/* Universal framed image/embed block */
.pb-img-frame {
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  position: relative;
}
.pb-img-frame::before,
.pb-img-frame::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  z-index: 2;
  pointer-events: none;
}
.pb-img-frame::before {
  top: 0; left: 0;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}
.pb-img-frame::after {
  bottom: 0; right: 0;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}
.pb-img-frame img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}
.pb-img-frame:hover img { transform: scale(1.02); }
.pb-img-caption {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(9px, 0.75vw, 11px);
  letter-spacing: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
  padding: 8px 14px;
  background: var(--surface2);
  border-top: 1px solid var(--border);
}

/* Carousel */
.pb-carousel {
  position: relative;
  max-width: 50%;
  margin: 0 auto 64px;
}
.pb-carousel-track-wrap {
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  transition: height 0.35s ease;
  width: 100%;
}
.pb-carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  align-items: flex-start;
  width: 100%;
}
.pb-carousel-slide {
  min-width: 100%;
  max-width: 100%;
  width: 100%;
  flex-shrink: 0;
  border: none;
  overflow: hidden;
}
.pb-carousel-slide::before,
.pb-carousel-slide::after { display: none; }
.pb-carousel-slide img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}
.pb-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  background: rgba(6,6,15,0.8);
  border: 1px solid var(--border);
  color: var(--text-bright);
  font-size: clamp(16px, 1.5vw, 22px);
  width: clamp(36px, 3vw, 48px);
  height: clamp(36px, 3vw, 48px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.pb-carousel-btn:hover {
  background: rgba(139,79,200,0.3);
  border-color: var(--accent);
}
.pb-carousel-prev { left: -24px; }
.pb-carousel-next { right: -24px; }
.pb-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.pb-dot {
  width: 6px;
  height: 6px;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s;
}
.pb-dot.active { background: var(--accent); }

/* Sketchfab */
.pb-sketchfab {
  max-width: 50%;
  margin: 0 auto 64px;
}
.pb-sketchfab iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
}

/* Videos */
.pb-videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  margin-bottom: 64px;
}
.pb-video-frame iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
}


  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  margin-bottom: 64px;
}
.pb-note {
  background: var(--surface);
  padding: clamp(20px, 2vw, 32px);
}
.pb-note-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(20px, 2vw, 32px);
  color: var(--border);
  margin-bottom: 12px;
  line-height: 1;
}
.pb-note-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(15px, 1.2vw, 20px);
  font-weight: 600;
  color: var(--accent2);
  margin-bottom: 10px;
}
.pb-note-desc {
  font-size: clamp(12px, 0.9vw, 14px);
  color: var(--text);
  line-height: 1.65;
}



.lib-page {
  display: flex;
  min-height: calc(100vh - var(--nav-h));
  background: transparent;
}

.lib-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}

.lib-main { flex: 1; min-width: 0; }

.lib-topbar {
  position: sticky;
  top: var(--nav-h);
  background: rgba(6,6,15,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 14px 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 50;
}

.lib-breadcrumb {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.lib-content {
  padding: clamp(24px,3vw,56px);
  max-width: clamp(700px, 75vw, 1200px);
  margin: 0 auto;
}

/* Lib nav items */
.lni {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 28px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  border-left: 2px solid transparent;
  transition: all 0.15s ease;
  font-weight: 500;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.5px;
}
.lni:hover { color: var(--text-bright); background: rgba(139,79,200,0.08); border-left-color: var(--accent); transform: translateX(4px); }
.lni.active { color: var(--accent2); background: rgba(139,79,200,0.12); border-left-color: var(--accent2); }
.lni .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--text-dim); flex-shrink: 0; transition: background 0.15s; }
.lni:hover .dot, .lni.active .dot { background: var(--accent2); }

.lib-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  font-family: 'Share Tech Mono', monospace;
  transition: color 0.2s;
  user-select: none;
}
.lib-cat-header:hover { color: var(--accent); }
.lib-cat-header .arr { font-size: 9px; transition: transform 0.2s; }
.lib-cat-header.open .arr { transform: rotate(90deg); }

.lib-cat-items { display: none; flex-direction: column; }
.lib-cat-items.open { display: flex; }

/* Lib embedded styles */
:root {
    --bg: #0a0810;
    --surface: #0f0d18;
    --surface2: #161224;
    --border: #2a2040;
    --accent: #9b59d0;
    --accent2: #c084fc;
    --accent3: #e040fb;
    --text: #c4b8d8;
    --text-dim: #5a4f72;
    --text-bright: #f0eaff;
    --green: #a855f7;
    --red: #e040fb;
    --yellow: #d4a8ff;
  }

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

  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* Grid background */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
      linear-gradient(rgba(155,89,208,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(155,89,208,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
  }

  /* Sidebar */
  .sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: var(--sidebar-width);
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
  }

  .logo {
    padding: 28px 24px 20px;
    border-bottom: 1px solid var(--border);
  }

  .logo-tag {
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 6px;
    font-family: 'Share Tech Mono', monospace;
  }

  .logo-name {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: 2px;
    text-transform: uppercase;
  }

  .logo-sub {
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 2px;
    margin-top: 4px;
    font-family: 'Share Tech Mono', monospace;
  }

  .search-box {
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }

  .search-box input {
    width: 100%;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 12px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
  }

  .search-box input:focus {
    border-color: var(--accent);
  }

  .search-box input::placeholder { color: var(--text-dim); }

  .nav { flex: 1; padding: 12px 0; }

  .nav-category {
    margin-bottom: 4px;
  }

  .nav-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-dim);
    font-weight: 600;
    user-select: none;
    transition: color 0.2s;
  }

  .nav-category-header:hover { color: var(--accent); }

  .nav-category-header .arrow {
    font-size: 10px;
    transition: transform 0.2s;
  }

  .nav-category-header.open .arrow { transform: rotate(90deg); }

  .nav-items {
    display: none;
    flex-direction: column;
  }

  .nav-items.open { display: flex; }

  .nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 28px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text);
    border-left: 2px solid transparent;
    transition: all 0.15s ease, transform 0.15s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
  }

  .nav-item:hover {
    color: var(--text-bright);
    background: rgba(155,89,208,0.08);
    border-left-color: var(--accent);
    transform: translateX(4px);
  }

  .nav-item.active {
    color: var(--accent);
    background: rgba(155,89,208,0.12);
    border-left-color: var(--accent);
  }

  .nav-item .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--text-dim);
    flex-shrink: 0;
    transition: background 0.15s;
  }

  .nav-item:hover .dot,
  .nav-item.active .dot { background: var(--accent); }

  .sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    color: var(--text-dim);
  }

  /* Main content */
  .main {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    position: relative;
    z-index: 1;
  }

  .topbar {
    position: sticky;
    top: 0;
    background: rgba(13,15,20,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 14px 40px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 50;
  }

  .breadcrumb {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .breadcrumb span { color: var(--accent); }

  .script-count {
    margin-left: auto;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: var(--text-dim);
    background: var(--surface2);
    padding: 4px 12px;
    border: 1px solid var(--border);
  }

  .content {
    padding: clamp(24px, 3vw, 60px);
    max-width: clamp(800px, 75vw, 1400px);
    margin: 0 auto;
  }

  /* Welcome screen */
  .welcome {
    display: none;
  }

  .welcome.active {
    display: block;
  }

  .welcome-header {
    margin-bottom: 48px;
  }

  .welcome-header h1 {
    font-size: clamp(36px, 4vw, 72px);
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 12px;
  }

  .welcome-header h1 span { color: var(--accent); }

  .welcome-header p {
    color: var(--text-dim);
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(11px, 1vw, 16px);
    letter-spacing: 1px;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
    width: 100%;
  }

  .stat-card {
    background: var(--surface);
    border: 1px solid rgba(192,132,252,0.3);
    padding: 24px;
    position: relative;
    overflow: hidden;
  }

  .stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #9b59d0, #c084fc);
  }

  .stat-number {
    font-size: 40px;
    font-weight: 700;
    color: #c084fc;
    font-family: 'Share Tech Mono', monospace;
    line-height: 1;
    margin-bottom: 6px;
    text-shadow: 0 0 20px rgba(192,132,252,0.4);
  }

  .stat-label {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #8b7aaa;
  }

  .recent-section h2 {
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
  }

  .recent-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .recent-item {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.2s ease, transform 0.2s ease;
  }

  .recent-item:hover {
    border-color: var(--accent);
    background: var(--surface2);
    transform: scaleY(1.03) translateX(4px);
    transform-origin: left center;
  }

  .recent-item-tag {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    color: var(--accent);
    background: rgba(0,212,255,0.1);
    padding: 3px 8px;
    white-space: nowrap;
    letter-spacing: 1px;
  }

  .recent-item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-bright);
    flex: 1;
  }

  .recent-item-arrow {
    color: var(--text-dim);
    font-size: 12px;
  }

  /* Script card */
  .script-card {
    display: none;
  }

  .script-card.active {
    display: block;
  }

  .card-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
  }

  .card-category {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 10px;
  }

  .card-title {
    font-size: clamp(28px, 3.5vw, 52px);
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-transform: uppercase;
  }

  .card-desc {
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
    max-width: 680px;
    font-weight: 400;
  }

  .tags {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
  }

  .tag {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    padding: 4px 10px;
    border: 1px solid;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  .tag-deformer { color: #c084fc; border-color: rgba(192,132,252,0.3); background: rgba(192,132,252,0.06); }
  .tag-mirror { color: #a78bfa; border-color: rgba(167,139,250,0.3); background: rgba(167,139,250,0.06); }
  .tag-weights { color: #d8b4fe; border-color: rgba(216,180,254,0.3); background: rgba(216,180,254,0.06); }
  .tag-python { color: #e9d5ff; border-color: rgba(233,213,255,0.3); background: rgba(233,213,255,0.06); }
  .tag-maya2022 { color: #9b59d0; border-color: rgba(155,89,208,0.3); background: rgba(155,89,208,0.06); }

  .section-label {
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #8b7aaa;
    margin-bottom: 12px;
    margin-top: 32px;
  }

  /* Code block */
  .code-wrap {
    position: relative;
    background: #0a0c10;
    border: 1px solid var(--border);
    border-top: 2px solid var(--accent);
  }

  .code-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--surface2);
    border-bottom: 1px solid var(--border);
  }

  .code-lang {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
  }

  .copy-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    padding: 4px 12px;
    cursor: pointer;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.2s;
  }

  .copy-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
  }

  .copy-btn.copied {
    border-color: var(--accent2);
    color: var(--accent2);
  }

  pre {
    padding: 20px 20px;
    overflow-x: auto;
    font-family: 'Space Mono', monospace;
    font-size: 12.5px;
    line-height: 1.8;
    color: var(--text);
  }

  /* Syntax highlight */
  .kw { color: #c792ea; }
  .fn { color: #82aaff; }
  .str { color: #c3e88d; }
  .cm { color: #546e7a; font-style: italic; }
  .kv { color: var(--accent); }
  .nb { color: var(--yellow); }

  /* Notes */
  .notes-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent2);
    padding: 20px 24px;
    margin-top: 8px;
  }

  .notes-box .note-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.6;
  }

  .notes-box .note-item:last-child { margin-bottom: 0; }

  .note-bullet {
    color: var(--accent2);
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    margin-top: 2px;
    flex-shrink: 0;
  }

  /* Params table */
  .params-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 8px;
  }

  .params-table th {
    text-align: left;
    padding: 10px 16px;
    background: var(--surface2);
    color: var(--text-dim);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
  }

  .params-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
  }

  .params-table tr:last-child td { border-bottom: none; }

  .params-table tr:hover td { background: rgba(255,255,255,0.02); }

  .param-name {
    font-family: 'Share Tech Mono', monospace;
    color: var(--accent);
    font-size: 12px;
    white-space: nowrap;
  }

  .param-type {
    color: var(--accent2);
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
  }

  .param-desc { color: var(--text); line-height: 1.5; }

  /* Scrollbar */
  ::-webkit-scrollbar { width: 6px; height: 6px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: var(--border); }
  ::-webkit-scrollbar-thumb:hover { background: var(--accent); }

  /* Responsive scaling */
  :root {
    --sidebar-width: 280px;
  }

  @media (min-width: 2560px) {
    :root { --sidebar-width: 360px; }
    body { font-size: 20px; }
    .logo-name { font-size: 32px; }
    .logo-tag, .logo-sub { font-size: 13px; }
    .nav-item { font-size: 16px; padding: 10px 20px 10px 36px; }
    .nav-category-header { font-size: 13px; padding: 10px 20px; }
    .sidebar-footer { font-size: 13px; }
    .search-box input { font-size: 16px; padding: 10px 16px; }
    .topbar { padding: 18px 60px; }
    .breadcrumb { font-size: 15px; }
    .script-count { font-size: 14px; padding: 6px 16px; }
    .content { padding: 60px; max-width: 1400px; }
    .welcome-header h1 { font-size: 72px; }
    .welcome-header p { font-size: 16px; }
    .stat-number { font-size: 56px; }
    .stat-label { font-size: 14px; letter-spacing: 4px; }
    .stat-card { padding: 32px; }
    .recent-item { padding: 20px 28px; }
    .recent-item-name { font-size: 18px; }
    .recent-item-tag { font-size: 12px; }
    .card-title { font-size: 52px; }
    .card-category { font-size: 13px; }
    .card-desc { font-size: 18px; }
    .section-label { font-size: 14px; }
    .code-lang { font-size: 13px; }
    .copy-btn { font-size: 12px; padding: 6px 16px; }
    pre { font-size: 15px; padding: 28px; }
    .params-table th { font-size: 13px; padding: 14px 20px; }
    .params-table td { font-size: 15px; padding: 14px 20px; }
    .notes-box { padding: 28px 32px; }
    .note-item { font-size: 16px; }
    .tag { font-size: 12px; padding: 5px 14px; }
    .conv-grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
    .conv-section { padding: 28px; }
    .conv-section-title { font-size: 13px; }
    .conv-row { font-size: 17px; }
    .conv-suffix { font-size: 15px; }
  }

  @media (min-width: 3840px) {
    :root { --sidebar-width: 560px; }
    body { font-size: 26px; }
    .logo-name { font-size: 42px; }
    .content { padding: 80px; max-width: 2000px; }
    .card-title { font-size: 72px; }
    pre { font-size: 20px; }
    .lni { font-size: 20px; padding: 14px 24px 14px 42px; }
    .lib-cat-header { font-size: 15px; padding: 14px 24px; }
    .conv-grid { grid-template-columns: 1fr 1fr 1fr 1fr; gap: 36px; }
    .conv-section { padding: 36px; }
    .conv-section-title { font-size: 16px; }
    .conv-row { font-size: 22px; padding: 10px 0; }
    .conv-suffix { font-size: 19px; }
  }

  @media (max-width: 1200px) {
    :root { --sidebar-width: 240px; }
    .content { padding: 28px; }
    .card-title { font-size: 28px; }
    .welcome-header h1 { font-size: 36px; }
    .stats-grid { grid-template-columns: 1fr 1fr 1fr; }
    .conv-grid { grid-template-columns: 1fr 1fr; }
  }
  .stat-glyph {
    font-size: 20px;
    color: rgba(192,132,252,0.4);
    margin-bottom: 8px;
    font-family: 'Share Tech Mono', monospace;
  }

  .home-search-wrap {
    margin-bottom: 36px;
  }

  .home-search {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    color: var(--text-bright);
    padding: 14px 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    letter-spacing: 1px;
  }

  .home-search:focus {
    background: var(--surface2);
    border-left-color: var(--accent2);
  }

  .home-search::placeholder { color: var(--text-dim); }

  .index-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
  }

  .index-header h2 {
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #8b7aaa;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }

  .last-updated {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 1px;
  }

  .recent-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
  }

  .recent-item-desc {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 400;
    letter-spacing: 0.3px;
    font-family: 'Share Tech Mono', monospace;
  }

  
  /* Script library card hovers */
  .lib-content .recent-item {
    cursor: pointer;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease, transform 0.2s ease;
  }

  .lib-content .recent-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #9b59d0, #c084fc);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
    z-index: 2;
  }

  .lib-content .recent-item:hover::before { transform: scaleX(1); }

  .lib-content .recent-item:hover {
    border-color: #9b59d0;
    background: var(--surface2);
    transform: translateY(-3px) translateX(4px);
  }

  .conv-section {
    transition: all 0.2s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
    cursor: default;
  }

  .conv-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #9b59d0, #c084fc);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }

  .conv-section:hover::before { transform: scaleX(1); }
  .conv-section:hover { border-color: #9b59d0; transform: translateY(-2px); }

  .stat-card {
    transition: all 0.2s ease, transform 0.2s ease;
  }
  .stat-card:hover { transform: translateY(-4px); border-color: rgba(192,132,252,0.6) !important; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .script-card.active, .welcome.active {
    animation: fadeIn 0.25s ease;
  }

/* ══════════════════════════════════════════
   SHOP
══════════════════════════════════════════ */
.shop-wrap {
  padding: clamp(48px, 6vw, 100px) clamp(32px, 7vw, 120px);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 48px;
  max-width: 60%;
  margin-left: auto;
  margin-right: auto;
}

.shop-card {
  background: var(--surface);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  opacity: 0.5;
  cursor: default;
  display: flex;
  flex-direction: column;
}

.shop-card-thumb {
  aspect-ratio: 16/9;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(9px, 0.8vw, 11px);
  letter-spacing: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.shop-card-body { padding: clamp(10px, 0.9vw, 14px); display: flex; flex-direction: column; flex: 1; }

.shop-card-cat {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(10px, 0.85vw, 12px);
  letter-spacing: 3px;
  color: var(--accent2);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.shop-card-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 6px;
}

.shop-card-desc {
  font-size: clamp(12px, 0.95vw, 14px);
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.shop-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 4px;
}

.shop-card-price {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(12px, 1.1vw, 15px);
  color: var(--text);
  letter-spacing: 1px;
}

.shop-card-badge {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(9px, 0.75vw, 11px);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 4px 10px;
}

.shop-buy-btn {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(11px, 0.95vw, 13px);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent2);
  border: 1px solid var(--accent);
  background: transparent;
  padding: 10px 24px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  position: relative;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.shop-buy-btn:hover {
  background: rgba(0,232,122,0.12);
  border-color: var(--green);
  color: var(--green);
  animation: blink 1.2s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(0,232,122,0.2);
}

.shop-notice-block {
  margin-top: 40px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  padding: 16px 20px;
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(9px, 0.8vw, 11px);
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
}




.shop-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(24px, 2vw, 40px);
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  background: rgba(139,79,200,0.05);
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(9px, 0.8vw, 11px);
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
}
.shop-notice::before {
  content: '//';
  color: var(--accent);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   SHOP CARD IMAGE THUMB
══════════════════════════════════════════ */
.shop-card--active {
  opacity: 1;
  cursor: pointer;
}
.shop-card--active:hover {
  background: var(--surface2);
}
.shop-card-thumb--img {
  position: relative;
  padding: 0;
  overflow: hidden;
}
.shop-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.shop-card--active:hover .shop-card-img {
  transform: scale(1.04);
}

/* corner brackets */
.shop-card-thumb--img::before,
.shop-card-thumb--img::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.shop-card-thumb--img::before {
  top: 10px; left: 10px;
  border-top: 2px solid var(--green);
  border-left: 2px solid var(--green);
}
.shop-card-thumb--img::after {
  bottom: 10px; right: 10px;
  border-bottom: 2px solid var(--green);
  border-right: 2px solid var(--green);
}
.shop-card--active:hover .shop-card-thumb--img::before,
.shop-card--active:hover .shop-card-thumb--img::after {
  opacity: 1;
}

/* scan line on hover */
.shop-card-thumb--img .shop-card-scan {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,232,122,0.5), transparent);
  z-index: 3;
  opacity: 0;
  transform: translateY(0);
  transition: opacity 0.2s;
}
.shop-card--active:hover .shop-card-scan {
  opacity: 1;
  animation: scanLine 1.8s linear infinite;
}
/* --thumb-h is set dynamically via JS ResizeObserver so it works at any resolution */
@keyframes scanLine {
  0%   { transform: translateY(0px); }
  100% { transform: translateY(var(--thumb-h, 160px)); }
}

.shop-card-thumb-tag {
  position: absolute;
  bottom: 8px;
  left: 10px;
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(8px, 0.7vw, 10px);
  letter-spacing: 2px;
  color: var(--text-bright);
  background: rgba(6,6,15,0.7);
  padding: 3px 8px;
  text-transform: uppercase;
  z-index: 2;
}

/* ══════════════════════════════════════════
   PRODUCT PAGE
══════════════════════════════════════════ */
.product-wrap {
  padding: clamp(48px, 6vw, 100px) clamp(32px, 7vw, 120px);
}
.product-back {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(13px, 1vw, 18px);
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  cursor: pointer;
  margin-bottom: 48px;
  display: inline-block;
  transition: color 0.2s;
}
.product-back:hover { color: var(--accent2); }

.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 80px);
  align-items: center;
  margin-bottom: 80px;
}
.product-tagline {
  font-size: clamp(15px, 1.1vw, 22px);
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 24px;
}
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.ptag {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(11px, 0.85vw, 16px);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent2);
  border: 1px solid var(--accent);
  padding: 4px 12px;
  background: rgba(139,79,200,0.05);
}
.product-buy-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}
.product-price {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(22px, 2vw, 36px);
  color: var(--text-bright);
  letter-spacing: 2px;
}
.product-buy-btn {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(13px, 1vw, 18px);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent2);
  border: 1px solid var(--accent);
  background: rgba(139,79,200,0.08);
  padding: 14px 32px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.product-buy-btn:hover {
  background: rgba(0,232,122,0.12);
  border-color: var(--green);
  color: var(--green);
  animation: blink 1.2s ease-in-out infinite;
  box-shadow: 0 0 16px rgba(0,232,122,0.2);
}
.product-license {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(12px, 0.85vw, 16px);
  letter-spacing: 2px;
  color: var(--text-bright);
  text-transform: uppercase;
  opacity: 0.7;
}
.product-img-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}
.product-img-wrap::before,
.product-img-wrap::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  z-index: 2;
}
.product-img-wrap::before {
  top: 12px; left: 12px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}
.product-img-wrap::after {
  bottom: 12px; right: 12px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}
.product-img-wrap .shop-card-scan {
  opacity: 1;
  animation: scanLine 3s linear infinite;
}
.product-hero-img {
  width: 100%;
  display: block;
  border: none;
}

/* Curvelib includes section spacing */
.product-includes-grid--2col {
  grid-template-columns: repeat(2, 1fr) !important;
}
#page-product-curvelib .product-includes-section {
  margin-bottom: 0;
}
/* Curvelib includes 2-col grid */

/* Space between Included Files and Gallery title */
#page-product-curvelib .product-gallery-section {
  margin-top: 16px;
}

/* Vertically center hero text column with image */
#page-product-curvelib .product-hero {
  align-items: center;
}

.curvelib-img-wrap {
  overflow: visible !important;
  background: transparent;
  border: none !important;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.curvelib-img-wrap::before,
.curvelib-img-wrap::after {
  display: none !important;
}
.curvelib-img-wrap .shop-card-scan {
  display: none;
}
.curvelib-hero-img {
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 75vh;
  display: block;
  border: 1px solid var(--border);
  object-fit: unset;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}




.product-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-bottom: 80px;
}
.product-feature {
  background: var(--surface);
  padding: clamp(20px, 2vw, 32px);
  transition: background 0.2s;
}
.product-feature:hover { background: var(--surface2); }
.pf-icon {
  font-size: clamp(18px, 1.4vw, 26px);
  color: var(--accent);
  margin-bottom: 12px;
}
.pf-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(17px, 1.4vw, 26px);
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 8px;
}
.pf-desc {
  font-size: clamp(14px, 1vw, 18px);
  color: var(--text);
  line-height: 1.6;
}

.product-gallery-section { margin-bottom: 80px; }

.product-gallery-wrap {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  max-width: 1720px;
  width: 100%;
  margin: 0 auto;
  border: 1px solid var(--border);
  background: rgba(6,6,15,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  padding-left: 180px;
}

/* accent corner brackets */
.product-gallery-wrap::before,
.product-gallery-wrap::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  z-index: 3;
  pointer-events: none;
}
.product-gallery-wrap::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}
.product-gallery-wrap::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.product-gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 180px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: rgba(13, 11, 26, 0.5);
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: scroll;
  overflow-x: hidden;
  z-index: 2;
}

.product-gallery {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-gallery-main-img {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
  flex-shrink: 0;
}
.product-gallery-main-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.product-gallery-main-img iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.product-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  flex-shrink: 0;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.product-thumb:hover { opacity: 0.75; }
.product-thumb.active {
  opacity: 1;
  background: var(--surface);
}
.product-thumb.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  z-index: 2;
}
.thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(12px, 1.2vw, 18px);
  color: var(--text-bright);
  background: rgba(0,0,0,0.45);
  pointer-events: none;
}

/* gallery label bar */
.product-gallery-label {
  border-top: 1px solid var(--border);
  padding: 8px 14px;
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(9px, 0.75vw, 11px);
  letter-spacing: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface2);
}
.product-gallery-label::before {
  content: '//';
  color: var(--accent);
}


.thumb-3d {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(10px, 0.9vw, 14px);
  letter-spacing: 2px;
  font-style: normal;
  background: rgba(139,79,200,0.5);
}

.product-includes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}
.product-include {
  background: var(--surface);
  padding: clamp(20px, 2vw, 32px);
}
.pi-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(12px, 0.85vw, 16px);
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.pi-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(18px, 1.4vw, 26px);
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 8px;
}
.pi-desc {
  font-size: clamp(14px, 1vw, 18px);
  color: var(--text);
  line-height: 1.6;
}

.product-cta {
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  padding: clamp(32px, 4vw, 64px);
  text-align: center;
  background: rgba(139,79,200,0.04);
}
.product-cta-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(22px, 2.2vw, 36px);
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 24px;
}



.about-wrap {
  padding: clamp(48px, 6vw, 100px) clamp(32px, 7vw, 120px);
}

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(40px, 6vw, 100px);
  margin-top: 8px;
}

.about-photo-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.about-photo {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--accent);
  filter: grayscale(10%);
}

.about-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 1px;
}

.about-handle {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(10px, 0.9vw, 13px);
  color: var(--accent);
  letter-spacing: 3px;
  margin-top: -12px;
}

.about-links { display: flex; flex-direction: column; gap: 6px; width: 100%; }

.alink {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(9px, 0.8vw, 11px);
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.2s;
}
.alink:hover { border-color: var(--accent2); color: var(--accent2); transform: translateX(4px); }
.alink-icon { color: var(--accent2); font-size: 13px; }

.about-content { display: flex; flex-direction: column; gap: 40px; }

.about-section-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(9px, 0.8vw, 11px);
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.about-section-title::before { content: ''; width: 20px; height: 1px; background: var(--accent); }

.about-text {
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.9;
  color: var(--text);
  font-weight: 300;
  margin-bottom: 12px;
}

.skill-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.chip {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(8px, 0.7vw, 10px);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent2);
  border: 1px solid rgba(176,110,245,0.3);
  background: rgba(176,110,245,0.05);
  padding: 4px 12px;
}

.lang-list { display: flex; flex-direction: column; gap: 8px; }

.lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(10px, 1vw, 16px) clamp(14px, 1.5vw, 20px);
  background: var(--surface);
  border: 1px solid var(--border);
}

.lang-name {
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 500;
  color: var(--text-bright);
}

.lang-badge {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(8px, 0.7vw, 10px);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid;
}
.lb-native { color: #c084fc; border-color: rgba(192,132,252,0.4); background: rgba(192,132,252,0.06); }
.lb-fluent { color: #a78bfa; border-color: rgba(167,139,250,0.4); background: rgba(167,139,250,0.06); }
.lb-reading { color: #9988bb; border-color: rgba(153,136,187,0.4); background: rgba(153,136,187,0.06); }

/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
.contact-wrap {
  padding: clamp(48px, 6vw, 100px) clamp(32px, 7vw, 120px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  margin-top: 8px;
}

.contact-links { display: flex; flex-direction: column; gap: 8px; }

.clink {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: clamp(14px, 1.5vw, 20px) clamp(16px, 1.8vw, 24px);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}
.clink:hover { border-color: var(--accent2); transform: translateX(5px); }

.clink-icon {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(16px, 1.5vw, 22px);
  color: var(--accent2);
  width: 28px;
  flex-shrink: 0;
  text-align: center;
}

.clink-meta { display: flex; flex-direction: column; gap: 3px; }

.clink-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(8px, 0.7vw, 10px);
  letter-spacing: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.clink-value {
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 500;
  color: var(--text-bright);
}

.clink-arr { margin-left: auto; color: var(--text-dim); font-size: 12px; transition: all 0.2s; }
.clink:hover .clink-arr { color: var(--accent2); transform: translateX(4px); }

.contact-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  padding: clamp(28px, 3vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-panel-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 1px;
}

.contact-panel-text {
  font-size: clamp(13px, 1.1vw, 16px);
  color: var(--text);
  line-height: 1.85;
  font-weight: 300;
}

.contact-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.ctag {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(8px, 0.7vw, 10px);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */

  .timeline { display: flex; flex-direction: column; gap: 0; }

  .tl-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 20px;
    padding: clamp(16px, 1.5vw, 24px) 0;
    border-bottom: 1px solid var(--border);
    position: relative;
  }
  .tl-item:last-child { border-bottom: none; }

  .tl-year {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(9px, 0.8vw, 11px);
    letter-spacing: 2px;
    color: var(--accent);
    padding-top: 4px;
    text-align: right;
    flex-shrink: 0;
  }

  .tl-body { display: flex; flex-direction: column; gap: 4px; }

  .tl-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(15px, 1.3vw, 20px);
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: 0.5px;
  }

  .tl-sub {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(9px, 0.8vw, 11px);
    letter-spacing: 2px;
    color: var(--accent2);
    text-transform: uppercase;
  }

  .tl-desc {
    font-size: clamp(12px, 1vw, 14px);
    color: var(--text-bright);
    line-height: 1.7;
    margin-top: 6px;
    font-weight: 300;
  }


  /* Universal card hover animation */
  .recent-item, .stat-card, .port-card:not(.placeholder), .shop-card,
  .contact-panel, .clink, .alink, .online-item, .explore-item,
  .lib-content .recent-item {
    transition: all 0.2s ease, transform 0.2s ease !important;
    position: relative;
    overflow: hidden;
  }

  .recent-item::before, .port-card:not(.placeholder)::before,
  .lib-content .recent-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
    z-index: 1;
  }

  .recent-item:hover::before, .port-card:not(.placeholder):hover::before,
  .lib-content .recent-item:hover::before {
    transform: scaleX(1);
  }

  .recent-item:hover, .lib-content .recent-item:hover {
    border-color: var(--accent) !important;
    background: var(--surface2) !important;
    transform: translateY(-3px) translateX(4px) !important;
  }

  .port-card:not(.placeholder):hover {
    border-color: var(--accent) !important;
    transform: translateY(-4px) !important;
  }

  @media (max-width: 1100px) {
  .expertise-grid { grid-template-columns: 1fr; }
  .home-bottom { grid-template-columns: 1fr; }
  .home-bottom-col:first-child { border-right: none; border-bottom: 1px solid var(--border); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (min-width: 2560px) {
  .lib-sidebar { width: 460px; font-size: 20px; }
  .lni { font-size: 16px; padding: 10px 20px 10px 34px; }
  .lib-cat-header { font-size: 12px; padding: 10px 20px; letter-spacing: 4px; }
  .conv-grid { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
  .conv-section { padding: 32px; }
  .conv-section-title { font-size: 14px; letter-spacing: 4px; margin-bottom: 18px; }
  .conv-row { font-size: 18px; padding: 8px 0; }
  .conv-suffix { font-size: 16px; padding: 3px 14px; }
  .hero-bar-item { font-size: 13px; }
}

/* ══════════════════════════════════════════
   MOBILE NAV — Hamburger
══════════════════════════════════════════ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  padding: 8px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text);
  transition: all 0.25s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(6,6,15,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 490;
  flex-direction: column;
  padding: 24px clamp(20px,5vw,40px);
  gap: 4px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.nav-drawer.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-drawer .nav-link {
  font-size: 14px;
  letter-spacing: 3px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  border-top: none;
  color: var(--text);
}
.nav-drawer .nav-link:last-of-type { border-bottom: none; }
.nav-drawer .nav-badge { margin-top: 16px; align-self: flex-start; }

/* ══════════════════════════════════════════
   MOBILE — ≤ 768px
══════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Nav */
  .nav-hamburger { display: flex; }
  .nav-links { display: none; }
  .nav-drawer { display: flex; }

  /* Hero */
  .hero {
    padding: 32px 24px 100px;
    min-height: auto;
  }
  .hero-inner { max-width: 100%; }
  .hero-bar {
    flex-direction: column;
    gap: 10px;
    padding: 16px 24px;
    position: relative;
  }
  .hero-bar-item:last-child { margin-left: 0 !important; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { width: 100%; justify-content: center; }

  /* Expertise */
  .expertise-section { padding: 40px 24px; }
  .expertise-grid { grid-template-columns: 1fr; gap: 1px; }

  /* Home bottom */
  .home-bottom { grid-template-columns: 1fr; }
  .home-bottom-col { padding: 40px 24px; }
  .home-bottom-col:first-child { border-right: none; border-bottom: 1px solid var(--border); }

  /* Portfolio */
  .port-wrap { padding: 32px 24px; }
  .port-grid { grid-template-columns: 1fr; width: 100%; }
  .port-card { width: 100%; }
  .port-featured { grid-template-columns: 1fr; }
  .port-featured-img { border-right: none; border-bottom: 1px solid var(--border); }
  .reel-section { margin-bottom: 32px; }

  /* Portfolio breakdown */
  .port-breakdown-wrap { padding: 32px 24px; }
  .pb-hero { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
  .pb-specs { grid-template-columns: repeat(2, 1fr); }
  .pb-carousel { max-width: 100%; }
  .pb-carousel-prev { left: -12px; }
  .pb-carousel-next { right: -12px; }
  .pb-sketchfab { max-width: 100%; }
  .pb-videos { grid-template-columns: 1fr; }
  .pb-notes-grid { grid-template-columns: 1fr 1fr; }

  /* Shop */
  .shop-wrap { padding: 32px 24px; }
  .shop-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  /* Product page */
  .product-wrap { padding: 32px 24px; }
  .product-hero { grid-template-columns: 1fr; gap: 32px; }
  .product-features-grid { grid-template-columns: 1fr; }

  /* Gallery — vertical stack on mobile */
  .product-gallery-wrap {
    flex-direction: column;
    padding-left: 0;
  }
  .product-gallery-thumbs {
    position: relative;
    top: unset; left: unset; bottom: unset;
    width: 100%;
    height: auto;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: none;
    border-top: 1px solid var(--border);
    order: 2;
  }
  .product-thumb {
    width: 120px;
    flex-shrink: 0;
    aspect-ratio: 16/9;
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
  .product-gallery {
    order: 1;
    width: 100%;
  }
  .product-gallery-main-img {
    aspect-ratio: 16/9;
    width: 100%;
  }

  /* About */
  .about-wrap { padding: 32px 24px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-sidebar { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
  .about-photo { max-width: 120px; }

  /* Contact */
  .contact-wrap { padding: 32px 24px; }
  .contact-grid { grid-template-columns: 1fr; }

  /* Script Library */
  .lib-page { flex-direction: column; }
  .lib-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    top: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: 260px;
  }
  .lib-content { padding: 24px; }

  /* Section headings */
  .section-h { margin-bottom: 32px; }

  /* Hero bar items wrap */
  .hero-bar { flex-wrap: wrap; }
}

/* ══════════════════════════════════════════
   MOBILE — ≤ 480px (small phones)
══════════════════════════════════════════ */
@media (max-width: 480px) {
  .pb-notes-grid { grid-template-columns: 1fr; }
  .pb-specs { grid-template-columns: repeat(2, 1fr); }
  .product-buy-row { flex-wrap: wrap; gap: 12px; }
  .shop-notice { flex-direction: column; gap: 6px; }
}