/* ========================================
   j0rd.ai — Cinematic Reel Portfolio
   ======================================== */

:root {
  --bg: #0a0a0f;
  --bg-light: #12121a;
  --accent-purple: #a855f7;
  --accent-cyan: #06b6d4;
  --text: #f0f0f0;
  --text-muted: #999;
  --text-dim: #666;
  --glow-purple: 0 0 40px rgba(168, 85, 247, 0.3);
  --glow-cyan: 0 0 40px rgba(6, 182, 212, 0.3);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-purple) var(--bg);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  overflow-x: hidden;
  cursor: none;
  position: relative;
}

::selection {
  background: var(--accent-purple);
  color: var(--bg);
}

/* ── Custom Cursor ── */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--text);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease, background 0.3s ease;
  mix-blend-mode: difference;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(240, 240, 240, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: width 0.4s ease, height 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

body.cursor-hover .cursor-dot {
  transform: scale(0);
}

body.cursor-hover .cursor-ring {
  width: 80px;
  height: 80px;
  border-color: var(--accent-purple);
  background: rgba(168, 85, 247, 0.1);
}

body.cursor-hover .cursor-ring::after {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--accent-purple);
  font-size: 18px;
}

/* ── Film Grain Overlay ── */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.04;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 15, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.nav-logo {
  font-family: 'Space Mono', monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-logo .accent {
  color: var(--accent-purple);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--text);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: visible;
  padding-bottom: 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, var(--bg) 100%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Glitch Text Effect */
.glitch-text {
  font-family: 'Space Mono', monospace;
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 700;
  letter-spacing: -3px;
  position: relative;
  color: var(--text);
  animation: glitch-skew 4s infinite linear alternate-reverse;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-text::before {
  color: var(--accent-cyan);
  animation: glitch-1 3s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch-text::after {
  color: var(--accent-purple);
  animation: glitch-2 2s infinite linear alternate-reverse;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
  0%, 80% { transform: translate(0); }
  85% { transform: translate(-3px, 2px); }
  90% { transform: translate(3px, -1px); }
  95% { transform: translate(-2px, 1px); }
  100% { transform: translate(0); }
}

@keyframes glitch-2 {
  0%, 80% { transform: translate(0); }
  82% { transform: translate(2px, -2px); }
  88% { transform: translate(-3px, 1px); }
  94% { transform: translate(1px, 2px); }
  100% { transform: translate(0); }
}

@keyframes glitch-skew {
  0%, 90% { transform: skew(0deg); }
  92% { transform: skew(0.5deg); }
  94% { transform: skew(-0.3deg); }
  96% { transform: skew(0.2deg); }
  100% { transform: skew(0deg); }
}

/* ── Hero Three-Node Row ── */
.hero-node-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Side nodes (prompt + photo) — offset lower than center */
.hero-side-node {
  position: relative;
  background: var(--bg-light);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 12px;
  overflow: hidden;
  width: 260px;
  flex-shrink: 0;
  opacity: 0;
  animation: sideNodeAppear 0.8s 1.2s forwards;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease, box-shadow 0.3s ease;
  margin-top: 12rem;
}

.hero-side-node-left.prompt-expanded {
  width: 420px;
  transform: scale(1.05);
}

.hero-side-node-left.prompt-expanded .hero-prompt-body p {
  font-size: 0.85rem;
}

.hero-side-node:hover {
  border-color: var(--accent-purple);
  box-shadow: var(--glow-purple);
}

@keyframes sideNodeAppear {
  from { opacity: 0; transform: translateX(0) scale(0.9); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.hero-side-node-left {
  animation-name: sideNodeAppearLeft;
}

@keyframes sideNodeAppearLeft {
  from { opacity: 0; transform: translateX(30px) scale(0.9); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.hero-side-node-right {
  animation-name: sideNodeAppearRight;
}

@keyframes sideNodeAppearRight {
  from { opacity: 0; transform: translateX(-30px) scale(0.9); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.hero-prompt-body {
  padding: 1rem;
}

.hero-prompt-body p {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.3px;
  transition: font-size 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-photo-body {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo-placeholder {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.hero-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: opacity 0.3s ease;
}

/* Horizontal connecting lines between hero nodes */
.hero-node-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.hero-h-line {
  fill: none;
  stroke: #a855f7;
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6));
  animation: drawNoodle 1.4s 1.8s forwards;
}

@keyframes drawNoodle {
  to { opacity: 1; stroke-dashoffset: 0; }
}

/* Hover-spawned connector node below Hub */
.hero-connector-wrap {
  position: absolute;
  left: 50%;
  top: 100%;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-connector-wrap.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.hero-connector-noodle {
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 1.5rem;
  overflow: visible;
  pointer-events: none;
}

.hero-connector-node {
  background: var(--bg-light);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  color: var(--accent-purple);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  animation: nodePulse 2.5s ease-in-out infinite;
}

.hero-connector-node:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.3);
  transform: translateY(-2px);
}

.hero-connector-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.5rem;
  gap: 0.5rem;
}

.hero-connector-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Center node */
.hero-node-wrapper {
  position: relative;
  display: inline-block;
  opacity: 0;
  animation: nodeBoxAppear 1s 0.3s forwards;
  z-index: 2;
  margin: 0 3rem;
}

@keyframes nodeBoxAppear {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* The node border always visible */
.hero-node-border {
  position: absolute;
  inset: -15px -30px -15px -30px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 12px;
  pointer-events: none;
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.15), inset 0 0 30px rgba(168, 85, 247, 0.03);
  background: rgba(18, 18, 26, 0.6);
}

/* Make center node more square by adding internal padding */
.hero-node-wrapper {
  padding: 1rem 1.5rem;
  text-align: center;
}

/* Node header/footer always visible */
.hero-node-header,
.hero-node-footer {
  position: absolute;
  left: -30px;
  right: -30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
}

.hero-node-header {
  top: -15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transform: translateY(-100%);
}

.hero-node-footer {
  bottom: -15px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  transform: translateY(100%);
  justify-content: center;
}

.hero-node-footer .node-type {
  text-transform: none;
}

/* Bottom ports on hero node — hidden until connected */
.node-port-bottom {
  top: auto;
  bottom: -5px;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.4s ease 0.3s;
}

.node-port-left-branch { left: 30%; }
.node-port-right-branch { right: 30%; left: auto; transform: translateX(50%); }

.hero-node-wrapper.connected .node-port-bottom {
  opacity: 1;
}

/* Top ports on spawned nodes */
.node-port-top {
  left: 50%;
  top: -5px;
  bottom: auto;
  transform: translateX(-50%);
}

.node-port-bottom-center {
  left: 50%;
  bottom: -5px;
  top: auto;
  transform: translateX(-50%);
}

/* Subtitle & tagline inside the node box */
.hero-subtitle {
  font-size: clamp(0.85rem, 2vw, 1.2rem);
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 2px;
  margin-top: 0.75rem;
  text-align: center;
  opacity: 0;
  animation: fadeUp 0.8s 1s forwards;
}

.hero-tagline {
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.6rem, 1.2vw, 0.8rem);
  color: var(--accent-cyan);
  margin-top: 0.4rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  animation: fadeUp 0.8s 1.2s forwards;
}

/* Divider line inside the node box */
.hero-node-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
  margin: 1rem auto;
  opacity: 0;
  animation: fadeUp 0.8s 1.4s forwards;
}

/* Connect button inside node box */
.connect-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  opacity: 0;
  animation: fadeUp 0.8s 1.6s forwards;
}

.connect-btn svg {
  width: 64px;
  height: 64px;
}

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

/* ── Connect Button ── */
.connect-btn {
  display: block;
  background: none;
  border: none;
  color: var(--accent-purple);
  cursor: none;
  padding: 0;
  transition: transform 0.3s ease, color 0.3s ease;
  position: relative;
}

.connect-btn::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.1);
  animation: connectPulse 2s ease-in-out infinite;
}

.connect-btn:hover {
  transform: scale(1.1);
  color: var(--accent-cyan);
}

.connect-btn svg circle {
  transition: stroke 0.3s, opacity 0.3s;
}

.connect-btn:hover svg circle {
  stroke: var(--accent-cyan);
  opacity: 0.7;
}

.connect-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: fadeInOut 2.5s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes connectPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.3); opacity: 0; }
}

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

/* Node flash effect */
@keyframes nodeFlash {
  0% { border-color: rgba(168, 85, 247, 0.25); box-shadow: none; }
  30% { border-color: #06b6d4; box-shadow: 0 0 40px rgba(6, 182, 212, 0.5), inset 0 0 20px rgba(6, 182, 212, 0.1); }
  100% { border-color: rgba(168, 85, 247, 0.25); box-shadow: none; }
}

.node-flash {
  animation: nodeFlash 0.6s ease-out;
}

/* Hub flash uses the border element */
@keyframes hubFlash {
  0% { border-color: rgba(168, 85, 247, 0.4); box-shadow: 0 0 40px rgba(168, 85, 247, 0.15), inset 0 0 30px rgba(168, 85, 247, 0.03); }
  30% { border-color: #06b6d4; box-shadow: 0 0 80px rgba(6, 182, 212, 0.5), inset 0 0 40px rgba(6, 182, 212, 0.1); }
  100% { border-color: rgba(168, 85, 247, 0.4); box-shadow: 0 0 40px rgba(168, 85, 247, 0.15), inset 0 0 30px rgba(168, 85, 247, 0.03); }
}

.hero-node-border.hub-flash {
  animation: hubFlash 0.6s ease-out;
}

/* Typing cursor blink for prompt */
#promptText::after {
  content: '▌';
  color: var(--accent-cyan);
  animation: cursorBlink 0.6s step-end infinite;
}

#promptText.typing-done::after {
  display: none;
}

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

/* Border glow charge animation on connect */
@property --glow-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.hero-node-border.charging {
  border-color: transparent;
  background:
    linear-gradient(rgba(18, 18, 26, 0.6), rgba(18, 18, 26, 0.6)) padding-box,
    conic-gradient(
      from var(--glow-angle),
      rgba(168, 85, 247, 0.1) 0%,
      #a855f7 10%,
      #06b6d4 20%,
      rgba(168, 85, 247, 0.1) 30%
    ) border-box;
  animation: chargeRotate 1.2s linear forwards;
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.15), inset 0 0 30px rgba(168, 85, 247, 0.03);
}

@keyframes chargeRotate {
  0% { --glow-angle: 0deg; }
  100% { --glow-angle: 720deg; }
}

.hero-node-border.charged {
  border-color: transparent;
  background:
    linear-gradient(rgba(18, 18, 26, 0.6), rgba(18, 18, 26, 0.6)) padding-box,
    linear-gradient(135deg, #a855f7, #06b6d4, #a855f7) border-box;
  box-shadow:
    0 0 60px rgba(168, 85, 247, 0.4),
    0 0 120px rgba(6, 182, 212, 0.15),
    inset 0 0 40px rgba(168, 85, 247, 0.05);
  transition: box-shadow 0.5s ease;
}

/* Hide connect button after activation */
.hero-node-wrapper.connected .connect-wrap {
  opacity: 0 !important;
  pointer-events: none;
  transform: scale(0.8);
  transition: opacity 0.4s, transform 0.4s;
}

.hero-node-wrapper.connected .hero-node-divider {
  opacity: 0 !important;
  transition: opacity 0.4s;
}

/* ── Global Lines SVG (crosses sections) ── */
.global-lines-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  overflow: visible;
}

.hero-line-path {
  fill: none;
  stroke: url(#lineGradDown);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: var(--line-length, 500);
  stroke-dashoffset: var(--line-length, 500);
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-line-path.drawn {
  stroke-dashoffset: 0;
}

/* ── Node Graph ── */
.node-graph-section {
  position: relative;
  z-index: 20;
  padding: 2rem 3rem 2rem;
}

.node-container {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 7rem;
}

.node-row {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  justify-content: center;
}

.node-row-reveal {
  gap: 5rem;
}

.node {
  display: block;
  position: relative;
  background: var(--bg-light);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 12px;
  padding: 0;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  cursor: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease, transform 0.6s ease;
}

/* Nodes that start visible (row 1) */
.node-visible {
  opacity: 1;
  transform: none;
  animation: nodeAppear 0.8s 2s both;
}

@keyframes nodeAppear {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Nodes that spawn on click (row 2+) */
.node-spawn {
  opacity: 0;
  transform: translateY(30px) scale(0.85);
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease, box-shadow 0.3s ease;
}

.node-spawn.spawned {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Spawn rows hidden until activated */
.node-row-spawn {
  display: none;
}

.node-row-spawn.row-active {
  display: flex;
}

/* Floating animation for spawned nodes */
.node-row-spawn.row-active .node-spawn:nth-child(1),
.node-row-spawn.row-active .node-cluster:nth-child(1) .node-spawn {
  animation: nodeFloat1 5s ease-in-out infinite;
}
.node-row-spawn.row-active .node-spawn:nth-child(2),
.node-row-spawn.row-active .node-cluster:nth-child(2) .node-spawn {
  animation: nodeFloat2 6s ease-in-out infinite;
}

@keyframes nodeFloat1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes nodeFloat2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Node cluster — parent node with hover-spawned children */
.node-cluster {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cluster-children {
  display: flex;
  gap: 3.5rem;
  margin-top: 10rem;
  opacity: 0;
  transform: translateY(-15px);
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.node-cluster.cluster-open .cluster-children {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.cluster-noodles {
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.cluster-noodle-path {
  fill: none;
  stroke: #a855f7;
  stroke-width: 2.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.4));
  opacity: 0;
  transition: opacity 0.5s ease 0.1s;
}

.node-cluster.cluster-open .cluster-noodle-path {
  opacity: 0.8;
}

.node-child {
  width: 240px;
  flex-shrink: 0;
  font-size: 0.9em;
}

/* Spawnable node hint */
.node-spawn.can-spawn {
  animation: nodePulse 2.5s ease-in-out infinite;
}

.node-spawn.can-spawn::after {
  content: 'Click to expand';
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.3s;
}

.node-spawn.can-spawn:hover::after {
  opacity: 0.7;
}

@keyframes nodePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
  50% { box-shadow: 0 0 20px 4px rgba(168, 85, 247, 0.2); }
}

.node:hover {
  border-color: var(--accent-purple);
  box-shadow: var(--glow-purple), inset 0 0 30px rgba(168, 85, 247, 0.03);
}

.node-primary {
  width: calc(50vw - 4rem);
  max-width: 600px;
  flex-shrink: 0;
}

.node-primary .node-header {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(6, 182, 212, 0.1));
}

.node-ticker-box {
  flex: 1;
  max-width: 550px;
}

.node-spawn {
  width: calc(50vw - 4rem);
  max-width: 600px;
  flex-shrink: 0;
}

.node-header {
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.node-type {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.node-body {
  padding: 1.25rem 1rem;
}

.node-body h3 {
  font-family: 'Space Mono', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 0.4rem;
}

.node-body p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Ticker inside node box */
.node-body-ticker {
  padding: 0.75rem 0;
  overflow: hidden;
}

.node-ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 25s linear infinite;
}

.node-ticker-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-right: 0.75rem;
}

.node-ticker-content span {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.ticker-dot {
  display: inline-block;
  width: 4px !important;
  height: 4px !important;
  background: var(--accent-purple);
  border-radius: 50%;
  flex-shrink: 0;
}

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

.node-footer {
  padding: 0.5rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
}

.node-status {
  font-size: 0.65rem;
  color: #4ade80;
  letter-spacing: 1px;
}

/* Node connection ports */
.node-port {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--bg);
  border: 2px solid var(--accent-purple);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  transition: background 0.3s, box-shadow 0.3s;
}

.node-port-left { left: -5px; }
.node-port-right { right: -5px; }

.node:hover .node-port {
  background: var(--accent-purple);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

/* Staggered spawn delays */
.node-spawn[data-spawn-delay="0"].spawned { transition-delay: 0s; }
.node-spawn[data-spawn-delay="1"].spawned { transition-delay: 0.3s; }

/* ── Image Card Nodes (Pipeline, Legacy, Creator, Workflow) ── */
.node-image-card {
  width: calc(50vw - 4rem);
  max-width: 600px;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.node-image-card .node-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.7) saturate(0.85);
  transition: filter 0.4s ease, transform 0.6s ease;
}

.node-image-card:hover .node-bg-img {
  filter: brightness(0.55) saturate(1);
  transform: scale(1.05);
}

.node-image-card .node-image-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 15, 0.6) 0%,
    rgba(10, 10, 15, 0.1) 40%,
    rgba(10, 10, 15, 0.1) 60%,
    rgba(10, 10, 15, 0.75) 100%
  );
}

.node-image-card .node-header {
  background: rgba(10, 10, 15, 0.5);
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
  backdrop-filter: blur(4px);
}

.node-image-card .node-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem 1rem;
}

.node-image-card .node-body h3 {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.node-image-card .node-body p {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.node-image-card .node-footer {
  background: rgba(10, 10, 15, 0.5);
  border-top: 1px solid rgba(168, 85, 247, 0.2);
  backdrop-filter: blur(4px);
}

/* ── Logo Scroll Card (Legacy node) ── */
.node-logo-card {
  width: calc(50vw - 4rem);
  max-width: 600px;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.node-logo-scroll-body {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}

.logo-scroll-track {
  display: flex;
  width: max-content;
  animation: logoScroll 25s linear infinite;
}

.logo-scroll-content {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 0.8rem 1rem;
  padding: 1rem 1.5rem;
  flex-shrink: 0;
  width: calc(50vw - 4rem);
  max-width: 600px;
}

.logo-scroll-content img {
  width: 100%;
  height: 55px;
  object-fit: contain;
  opacity: 0.5;
  filter: brightness(0.8);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.node-logo-card:hover .logo-scroll-content img {
  opacity: 0.8;
  filter: brightness(1);
}

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

.logo-scroll-overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1rem 0.5rem;
  background: linear-gradient(transparent, rgba(10, 10, 15, 0.9));
  z-index: 2;
}

.logo-scroll-overlay-text h3 {
  font-family: 'Space Mono', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 0.3rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.logo-scroll-overlay-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Child nodes with images — smaller square */
.node-child.node-image-card {
  width: 240px;
}

@media (max-width: 768px) {
  .hero-node-row { flex-direction: column; gap: 2rem; }
  .hero-side-node { width: 100%; }
  .hero-node-wrapper { margin: 0; }
  .hero-node-lines { display: none; }
  .node-graph-section { padding: 3rem 1.5rem; }
  .node-row { flex-direction: column; gap: 3rem; }
  .node-primary, .node-ticker-box, .node-spawn { width: 100%; max-width: none; }
  .node-port { display: none; }
  .global-lines-svg { display: none; }
  .portfolio-node-row { flex-direction: column; gap: 1.5rem; }
  .portfolio-side-node, .portfolio-center-node { width: 100%; max-width: 320px; }
  .portfolio-noodles-svg { display: none; }
}

/* ── Portfolio Gallery ── */
.portfolio-section {
  padding: 6rem 2rem 4rem;
  position: relative;
  z-index: 20;
  overflow: visible;
}

/* Portfolio node row — AI Creations | Portfolio | Edited for TV */
.portfolio-node-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  margin-bottom: 3rem;
  position: relative;
}

.portfolio-side-node {
  width: 420px;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.portfolio-side-node:hover {
  transform: translateY(-2px);
}

.portfolio-side-node .node-body h3 {
  font-size: 1.4rem;
}

.portfolio-center-node {
  width: 120px;
  flex-shrink: 0;
  border-color: var(--accent-purple);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
}

.portfolio-center-node .node-header {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(6, 182, 212, 0.1));
  padding: 0.4rem 0.7rem;
}

.portfolio-center-node .node-body {
  padding: 0.75rem 0.7rem;
}

.portfolio-center-node .node-body h3 {
  font-size: 0.75rem;
}

.portfolio-center-node .node-body p {
  font-size: 0.55rem;
  line-height: 1.4;
}

.portfolio-center-node .node-footer {
  padding: 0.3rem 0.7rem;
}

.portfolio-noodles-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 30;
  overflow: visible;
}

/* Ports on sides for portfolio nodes */
.portfolio-side-node .node-port-right,
.portfolio-center-node .node-port-left,
.portfolio-center-node .node-port-right,
.portfolio-side-node .node-port-left {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--accent-purple);
  background: var(--bg);
  top: 50%;
  transform: translateY(-50%);
}

.portfolio-side-node .node-port-right,
.portfolio-center-node .node-port-right {
  right: -5px;
}

.portfolio-side-node .node-port-left,
.portfolio-center-node .node-port-left {
  left: -5px;
}

.portfolio-side-node.noodle-active {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.3);
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  padding: 0 1rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--accent-purple);
  color: var(--text);
}

.filter-btn.active {
  background: rgba(168, 85, 247, 0.15);
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.portfolio-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  background: var(--bg-light);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-purple);
  box-shadow: var(--glow-purple);
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.portfolio-card:hover img {
  transform: scale(1.05);
}

.portfolio-card .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-card:hover .play-overlay {
  opacity: 1;
}

.play-overlay svg {
  width: 48px;
  height: 48px;
  color: white;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.portfolio-card .card-category {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.portfolio-card.hidden {
  opacity: 0;
  transform: scale(0.95);
  visibility: hidden;
  position: absolute;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s 0.35s;
}

.portfolio-card:not(.hidden) {
  opacity: 1;
  transform: scale(1);
  visibility: visible;
  position: relative;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s 0s;
}

/* ── Reel Showcase — Film Strip ── */
.reel-section {
  padding: 10rem 0 0;
  position: relative;
  z-index: 20;
}

.reel-heading {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 2rem;
}

.reel-heading h2 {
  font-family: 'Space Mono', monospace;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -1px;
}

.reel-heading p {
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.film-strip-wrapper {
  position: relative;
  padding: 2rem 0;
  overflow: hidden;
}

/* Sprocket Holes */
.sprocket-holes {
  height: 20px;
  display: flex;
  gap: 40px;
  justify-content: center;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.sprocket-holes::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(168, 85, 247, 0.15);
  top: 50%;
}

.sprocket-holes.top { margin-bottom: 1rem; }
.sprocket-holes.bottom { margin-top: 1rem; }

.film-strip {
  display: flex;
  gap: 2rem;
  padding: 0 4rem;
  transition: transform 0.1s linear;
  will-change: transform;
}

.film-frame {
  flex-shrink: 0;
  width: 380px;
  cursor: none;
  transition: transform 0.4s ease;
}

.film-frame:hover {
  transform: translateY(-8px);
}

.frame-thumbnail {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/9;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.frame-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    hsl(var(--hue), 50%, 12%) 0%,
    hsl(var(--hue), 60%, 25%) 50%,
    hsl(var(--hue), 40%, 10%) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.4s ease;
}

.film-frame:hover .frame-placeholder {
  filter: brightness(1.3);
}

.frame-icon {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease, transform 0.3s ease;
}

.film-frame:hover .frame-icon {
  color: var(--accent-purple);
  transform: scale(1.2);
}

.frame-info {
  padding: 1rem 0.25rem;
}

.frame-info h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.frame-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-family: 'Space Mono', monospace;
  letter-spacing: 1px;
}

/* ── About ── */
.about-section {
  padding: 8rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text h2 {
  font-family: 'Space Mono', monospace;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.about-text p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.skill-tag {
  padding: 0.4rem 1rem;
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 100px;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-purple);
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--accent-purple);
  box-shadow: var(--glow-purple);
}

.about-card {
  background: var(--bg-light);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.card-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-family: 'Space Mono', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ── Contact ── */
.contact-section {
  padding: 8rem 3rem 3rem;
  text-align: center;
  position: relative;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.06), transparent 70%);
  pointer-events: none;
}

.contact-content h2 {
  font-family: 'Space Mono', monospace;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--text), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-content > p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 1rem;
  margin-bottom: 2.5rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.magnetic-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.magnetic-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.magnetic-btn:hover {
  border-color: var(--accent-purple);
  box-shadow: var(--glow-purple);
}

.magnetic-btn:hover::before {
  opacity: 0.1;
}

.magnetic-btn span,
.magnetic-btn svg {
  position: relative;
  z-index: 1;
}

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 0;
  margin-top: 6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  cursor: auto;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
  z-index: 2;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--accent-purple);
  transform: rotate(90deg);
}

.lightbox-content {
  width: 80vw;
  max-width: 960px;
  aspect-ratio: 16/9;
  transform: scale(0.9);
  transition: transform 0.4s ease;
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-placeholder {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  background: var(--bg-light);
}

.lightbox-placeholder p {
  font-family: 'Space Mono', monospace;
  font-size: 1.2rem;
}

.lightbox-placeholder span {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 1. Scroll Progress Bar ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  z-index: 10001;
  pointer-events: none;
  transition: width 0.05s linear;
}

/* ── 2. Nav Link Underline Animation ── */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ── 4. Portfolio Card Staggered Entrance ── */
@keyframes portfolioCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.portfolio-card {
  animation: portfolioCardFadeIn 0.6s ease both;
}

.portfolio-card:nth-child(1) { animation-delay: 0s; }
.portfolio-card:nth-child(2) { animation-delay: 0.07s; }
.portfolio-card:nth-child(3) { animation-delay: 0.14s; }
.portfolio-card:nth-child(4) { animation-delay: 0.21s; }
.portfolio-card:nth-child(5) { animation-delay: 0.28s; }
.portfolio-card:nth-child(6) { animation-delay: 0.35s; }
.portfolio-card:nth-child(7) { animation-delay: 0.42s; }
.portfolio-card:nth-child(8) { animation-delay: 0.49s; }
.portfolio-card:nth-child(9) { animation-delay: 0.56s; }
.portfolio-card:nth-child(10) { animation-delay: 0.63s; }
.portfolio-card:nth-child(11) { animation-delay: 0.70s; }
.portfolio-card:nth-child(12) { animation-delay: 0.77s; }

/* ── 5. Play Button Scale-In on Hover ── */
.play-overlay svg {
  transform: scale(0.6);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .play-overlay svg {
  transform: scale(1);
}

/* ── 6. Status Dot Pulse ── */
@keyframes statusDotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.node-status {
  animation: statusDotPulse 2.5s ease-in-out infinite;
}

/* ── 7. Easter Egg Floating Node Label ── */
.easter-egg-node {
  position: fixed;
  pointer-events: none;
  z-index: 9995;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: var(--bg-light);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
  animation: easterEggFloat 1.5s ease-out forwards;
}

@keyframes easterEggFloat {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-80px) scale(0.7);
  }
}

/* ── 9. Gradient Divider Above Portfolio Filters ── */
.portfolio-filters {
  position: relative;
}

.portfolio-filters::before {
  content: '';
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 500px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-purple), var(--accent-cyan), transparent);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }

  .nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  .film-frame {
    width: 300px;
  }

  .film-strip {
    padding: 0 2rem;
  }

  .about-section {
    padding: 5rem 1.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-section {
    padding: 5rem 1.5rem 2rem;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
