/*
Theme Name: Mostafa Portfolio
Theme URI: https://mostafaspace.com
Description: Sci-fi data visualization portfolio for Mostafa.
Version: 1.0.0
Author: Mostafa
*/

:root {
  --void: #01040c;
  --void-soft: #07101d;
  --panel: rgba(7, 16, 29, 0.56);
  --panel-strong: rgba(9, 18, 32, 0.74);
  --line: rgba(125, 235, 255, 0.18);
  --line-hot: rgba(255, 138, 31, 0.35);
  --cyan: #00f5ff;
  --purple: #9b5cff;
  --orange: #ff8a1f;
  --lime: #b6ff39;
  --pink: #ff4fd8;
  --text: #f5fbff;
  --muted: #a8bad2;
  --dim: #607088;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Fira Code", "SFMono-Regular", Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--void);
  color: var(--text);
  font-family: var(--font-sans);
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--void);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 245, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 78%, transparent);
}

a {
  color: inherit;
}

button,
a {
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #020610;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--cyan), var(--purple));
  border-radius: 8px;
}

#webgl-hero-root {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#ui-overlay-root {
  position: relative;
  z-index: 10;
  pointer-events: none;
}

#ui-overlay-root a,
#ui-overlay-root button,
#ui-overlay-root [data-interactive],
#ui-overlay-root .glass-panel,
#ui-overlay-root .project-tile {
  pointer-events: auto;
}

#global-overlay-root {
  position: relative;
  z-index: 100;
}

.scene-canvas,
.ambient-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
}

.scene-canvas {
  z-index: -1;
}

.ambient-backdrop {
  z-index: -2;
  overflow: hidden;
  background: #01040c;
  pointer-events: none;
}

.backdrop-gradient,
.reference-plate,
.background-video,
.scanline-field,
.darkness-overlay,
.depth-vignette {
  position: absolute;
  inset: 0;
}

.backdrop-gradient {
  background:
    radial-gradient(circle at 24% 18%, rgba(0, 245, 255, 0.18), transparent 34%),
    radial-gradient(circle at 82% 72%, rgba(255, 138, 31, 0.13), transparent 28%),
    linear-gradient(125deg, #01040c, #07101d 48%, #020610);
}

.reference-plate {
  background-position: center;
  background-size: cover;
  filter: saturate(1.35) contrast(1.12) brightness(0.55);
  mix-blend-mode: screen;
  opacity: 0.34;
  transform: scale(1.06);
}

.reference-plate-1 {
  animation: plateDriftA 24s ease-in-out infinite alternate;
}

.reference-plate-2 {
  opacity: 0.22;
  animation: plateDriftB 28s ease-in-out infinite alternate;
}

.background-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(0.8) brightness(0.42);
}

.scanline-field {
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035) 0,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 7px
  );
  opacity: 0.18;
}

.depth-vignette {
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(1, 4, 12, 0.65) 72%, rgba(1, 4, 12, 0.96) 100%),
    linear-gradient(to bottom, rgba(1, 4, 12, 0.08), rgba(1, 4, 12, 0.86));
}

.app-shell {
  color: var(--text);
}

.narrative-section {
  position: relative;
  display: flex;
  min-height: 118dvh;
  padding: 96px 24px;
  align-items: center;
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hero-section .section-inner {
  display: grid;
  width: min(1320px, 100%);
  grid-template-columns: minmax(320px, 0.78fr) minmax(520px, 1.22fr);
  gap: 34px;
  align-items: center;
}

.hero-content {
  position: relative;
  isolation: isolate;
}

.hero-content::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -34px -44px -38px -36px;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(1, 4, 12, 0.82), rgba(1, 4, 12, 0.66) 58%, transparent),
    radial-gradient(circle at 34% 48%, rgba(0, 0, 0, 0.56), transparent 72%);
  filter: blur(2px);
  pointer-events: none;
}

.kicker,
.mono {
  font-family: var(--font-mono);
}

.kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--lime);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 18px rgba(182, 255, 57, 0.8);
}

.hero-title,
.section-title {
  margin: 0;
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-title {
  max-width: 720px;
  font-size: 5.8rem;
  color: #f8fcff;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.45),
    0 0 34px rgba(0, 0, 0, 0.88),
    0 0 54px rgba(0, 245, 255, 0.16);
}

.section-title {
  font-size: 3.8rem;
}

.hero-role {
  margin: 18px 0 0;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow:
    0 0 14px rgba(0, 0, 0, 0.94),
    0 0 22px rgba(0, 245, 255, 0.56);
}

.hero-copy,
.section-copy {
  max-width: 680px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.hero-copy {
  margin: 28px 0 0;
  color: #d9e6f6;
  font-weight: 500;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.72),
    0 0 22px rgba(0, 0, 0, 0.95);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hud-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 620px;
  margin-top: 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 245, 255, 0.12);
}

.hud-cell {
  min-height: 82px;
  padding: 17px 18px;
  background: rgba(4, 11, 20, 0.72);
  backdrop-filter: blur(18px);
}

.hud-value {
  display: block;
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 800;
}

.hud-label {
  display: block;
  margin-top: 7px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-initialize,
.btn-ghost {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border-radius: 6px;
  border: 1px solid rgba(182, 255, 57, 0.62);
  background: rgba(182, 255, 57, 0.06);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.btn-ghost {
  border-color: rgba(0, 245, 255, 0.36);
  background: rgba(0, 245, 255, 0.055);
  color: var(--cyan);
}

.btn-initialize::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(182, 255, 57, 0.28);
  transform: scale(0);
  transition: transform 420ms ease, opacity 420ms ease;
  opacity: 0;
}

.btn-initialize:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.18);
}

.btn-initialize:hover::after {
  transform: scale(14);
  opacity: 1;
}

.btn-initialize span,
.btn-ghost span,
.btn-initialize svg,
.btn-ghost svg {
  position: relative;
  z-index: 1;
}

.visual-stack {
  position: relative;
  min-height: 520px;
}

.visual-frame {
  position: absolute;
  width: min(460px, 88%);
  overflow: hidden;
  border: 1px solid rgba(0, 245, 255, 0.25);
  border-radius: 8px;
  background: rgba(5, 12, 24, 0.54);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(20px);
}

.visual-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(1.28) contrast(1.08);
}

.visual-frame-a {
  top: 8px;
  right: 0;
  animation: floatPlateA 7s ease-in-out infinite alternate;
}

.visual-frame-b {
  left: 0;
  bottom: 22px;
  animation: floatPlateB 8s ease-in-out infinite alternate;
}

.hero-dual-stack,
.hero-portrait-stack {
  min-height: 700px;
  perspective: 1300px;
}

.hero-dual-stack::before,
.hero-dual-stack::after,
.hero-portrait-stack::before,
.hero-portrait-stack::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-dual-stack::before,
.hero-portrait-stack::before {
  inset: 3% 0 4% 5%;
  border: 1px solid rgba(0, 245, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(rgba(0, 245, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.62;
  transform: perspective(900px) rotateY(-8deg) rotateX(5deg);
}

.hero-dual-stack::after,
.hero-portrait-stack::after {
  width: 94%;
  height: 76%;
  right: -5%;
  top: 12%;
  background:
    radial-gradient(circle at 58% 40%, rgba(0, 245, 255, 0.22), transparent 48%),
    radial-gradient(circle at 34% 64%, rgba(182, 255, 57, 0.12), transparent 42%),
    radial-gradient(circle at 82% 28%, rgba(255, 79, 216, 0.12), transparent 46%);
  filter: blur(20px);
}

.hero-operator-frame,
.hero-portrait-frame {
  top: 50%;
  width: min(450px, 49%);
  animation: heroPortraitFloat 8s ease-in-out infinite alternate;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.48),
    0 0 68px rgba(0, 245, 255, 0.2),
    -24px 0 82px rgba(182, 255, 57, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.055);
}

.hero-portrait-frame {
  right: 1%;
  width: min(500px, 88%);
  transform: translateY(-50%) rotateY(-4deg) rotateX(2deg);
}

.hero-operator-frame {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 36%),
    rgba(5, 12, 24, 0.62);
}

.human-frame {
  left: auto;
  right: 0.35%;
  top: 53%;
  z-index: 4;
  transform: translateY(-50%) rotateY(-7deg) rotateX(1deg) rotateZ(-0.9deg);
  animation: humanOperatorFloat 8.4s ease-in-out infinite alternate;
}

.robot-frame {
  left: 0.35%;
  right: auto;
  top: 53%;
  z-index: 3;
  width: min(450px, 49%);
  transform: translateY(-50%) rotateY(7deg) rotateX(1deg) rotateZ(0.9deg);
  animation: robotOperatorFloat 9s ease-in-out infinite alternate;
}

.human-frame img {
  object-position: 52% 48%;
}

.robot-frame img {
  object-position: 54% 48%;
}

.collab-core {
  position: absolute;
  z-index: 6;
  left: 51%;
  top: 52%;
  display: grid;
  width: 128px;
  height: 128px;
  place-items: center;
  color: var(--lime);
  transform: translate(-50%, -50%);
}

.collab-core::before,
.collab-core::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.collab-core::before {
  width: 260px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.8), rgba(182, 255, 57, 0.92), transparent);
  box-shadow: 0 0 28px rgba(0, 245, 255, 0.44);
  transform: rotate(-7deg);
}

.collab-core::after {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--lime);
  box-shadow:
    0 0 18px rgba(182, 255, 57, 0.9),
    0 0 48px rgba(0, 245, 255, 0.42);
}

.core-ring {
  position: absolute;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(0, 245, 255, 0.38);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(182, 255, 57, 0.18), transparent 62%);
  box-shadow: inset 0 0 24px rgba(0, 245, 255, 0.16), 0 0 30px rgba(0, 245, 255, 0.22);
  animation: corePulse 2.6s ease-in-out infinite alternate;
}

.core-label {
  position: absolute;
  bottom: -6px;
  left: 50%;
  padding: 5px 8px;
  border: 1px solid rgba(182, 255, 57, 0.28);
  border-radius: 4px;
  background: rgba(2, 7, 16, 0.84);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}

.hero-operator-frame::before,
.hero-portrait-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 58% 34%, transparent 0 26%, rgba(0, 245, 255, 0.08) 47%, transparent 68%),
    linear-gradient(to bottom, rgba(1, 4, 12, 0.08), transparent 28%, rgba(1, 4, 12, 0.42)),
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 8px);
  opacity: 0.58;
}

.hero-operator-frame::after,
.hero-portrait-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(182, 255, 57, 0.14);
  border-radius: 5px;
  box-shadow:
    inset 0 0 42px rgba(0, 245, 255, 0.08),
    inset 0 -80px 90px rgba(1, 4, 12, 0.18);
}

.hero-operator-frame img,
.hero-portrait-frame img {
  aspect-ratio: 2 / 3;
  object-position: 52% 44%;
  filter: saturate(1.1) contrast(1.08) brightness(0.9);
}

.portrait-hud {
  position: absolute;
  z-index: 4;
  display: flex;
  min-width: 240px;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 245, 255, 0.24);
  border-radius: 6px;
  background: rgba(2, 7, 16, 0.72);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
  box-shadow: 0 0 26px rgba(0, 245, 255, 0.12);
}

.portrait-hud strong {
  color: var(--lime);
  font-size: 0.68rem;
  font-weight: 600;
}

.portrait-hud-a {
  left: 4%;
  top: 15%;
  animation: floatPlateB 8s ease-in-out infinite alternate;
}

.portrait-hud-b {
  right: 5%;
  top: 15%;
  bottom: auto;
  color: var(--orange);
  border-color: rgba(255, 138, 31, 0.28);
  animation: floatPlateA 8.5s ease-in-out infinite alternate;
}

.frame-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-top: 1px solid rgba(0, 245, 255, 0.16);
}

.section-header {
  margin-bottom: 34px;
}

.glass-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ecosystem-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.glass-panel,
.project-tile {
  position: relative;
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent 28%),
    radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--panel-accent, var(--cyan)) 13%, transparent), transparent 38%),
    var(--panel);
  backdrop-filter: blur(24px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 22px 70px rgba(0, 0, 0, 0.36),
    0 0 42px color-mix(in srgb, var(--panel-accent, var(--cyan)) 9%, transparent);
  overflow: hidden;
  transition: transform 240ms ease, border-color 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

.glass-panel::before,
.project-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent),
    linear-gradient(180deg, rgba(0, 245, 255, 0.1), transparent 34%);
  opacity: 0.38;
}

.glass-panel::after,
.project-tile::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 14px;
  width: 46px;
  height: 46px;
  border-top: 1px solid color-mix(in srgb, var(--panel-accent, var(--cyan)) 62%, transparent);
  border-right: 1px solid color-mix(in srgb, var(--panel-accent, var(--cyan)) 62%, transparent);
  opacity: 0.68;
  pointer-events: none;
}

.glass-panel:hover,
.project-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 245, 255, 0.45);
  background: var(--panel-strong);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 30px 84px rgba(0, 0, 0, 0.44),
    0 0 52px color-mix(in srgb, var(--panel-accent, var(--cyan)) 15%, transparent);
}

.panel-content {
  position: relative;
  z-index: 1;
}

.panel-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: var(--panel-accent, var(--cyan));
  background: color-mix(in srgb, currentColor 13%, transparent);
  box-shadow: 0 0 26px color-mix(in srgb, currentColor 23%, transparent);
}

.panel-title {
  margin: 0;
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.25;
}

.panel-text {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tech-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(0, 245, 255, 0.18);
  border-radius: 6px;
  background: rgba(0, 245, 255, 0.07);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background:
    linear-gradient(90deg, rgba(0, 245, 255, 0.08), transparent 52%, rgba(182, 255, 57, 0.08)),
    rgba(2, 7, 16, 0.76);
  border-top: 1px solid rgba(0, 245, 255, 0.14);
}

.os-card {
  min-height: 310px;
  background: rgba(234, 246, 255, 0.1);
}

.os-card .tech-row {
  margin-top: 20px;
}

.os-chrome {
  position: relative;
  display: flex;
  gap: 7px;
  margin-bottom: 24px;
}

.os-chrome span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--panel-accent, var(--cyan));
  opacity: 0.8;
}

.project-tile {
  padding: 0;
  color: inherit;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.clickable-card {
  cursor: pointer;
}

.clickable-card:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 5px;
}

.project-image {
  position: relative;
  aspect-ratio: 1 / 1;
  height: auto;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 245, 255, 0.08);
}

.project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 42%, rgba(1, 4, 12, 0.38)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 9px);
  opacity: 0.42;
  pointer-events: none;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05) brightness(0.84);
  transition: transform 450ms ease, filter 450ms ease;
}

.project-tile:hover img {
  transform: scale(1.04);
  filter: saturate(1.25) contrast(1.08) brightness(0.98);
}

.project-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-title {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.32;
}

.project-copy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.65;
}

.project-body .tech-row {
  margin-top: auto;
  padding-top: 14px;
}

.node-label {
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--label-color) 42%, transparent);
  border-radius: 4px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--label-color) 10%, transparent), rgba(2, 7, 16, 0.9) 44%),
    rgba(2, 7, 16, 0.92);
  color: color-mix(in srgb, var(--label-color) 82%, #f5fbff);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-shadow: 0 0 10px color-mix(in srgb, var(--label-color) 70%, transparent);
  white-space: nowrap;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.055),
    0 0 16px color-mix(in srgb, var(--label-color) 18%, transparent);
  user-select: none;
  transform: translateZ(0);
}

.experience-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.experience-mini-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(255, 138, 31, 0.2);
  border-radius: 8px;
  background: rgba(7, 16, 29, 0.5);
  backdrop-filter: blur(20px);
}

.experience-mini-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.experience-mini-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.site-nav {
  position: fixed;
  z-index: 80;
  top: 18px;
  left: 50%;
  display: flex;
  width: min(1120px, calc(100vw - 32px));
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 16px;
  border: 1px solid rgba(0, 245, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 42%),
    rgba(4, 10, 20, 0.64);
  backdrop-filter: blur(22px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 54px rgba(0, 0, 0, 0.32),
    0 0 42px rgba(0, 245, 255, 0.08);
  transform: translateX(-50%);
  pointer-events: auto;
}

.site-mark,
.site-links a {
  color: var(--text);
  text-decoration: none;
}

.site-mark {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-links a {
  min-height: 36px;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease;
}

.site-links a:hover {
  color: var(--lime);
  background: rgba(182, 255, 57, 0.08);
}

.social-rail {
  position: fixed;
  z-index: 82;
  right: 20px;
  top: 50%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(-50%);
  pointer-events: auto;
}

.social-rail a,
.footer-socials a,
.contact-social-grid a {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 8px;
  background: rgba(4, 10, 20, 0.62);
  color: var(--muted);
  text-decoration: none;
  backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 14px 34px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.social-rail a:hover,
.footer-socials a:hover,
.contact-social-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(182, 255, 57, 0.48);
  background: rgba(7, 20, 28, 0.78);
  color: var(--lime);
}

.social-rail svg,
.footer-socials svg,
.contact-social-grid svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-to-top {
  position: fixed;
  z-index: 86;
  right: 20px;
  bottom: 24px;
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(182, 255, 57, 0.36);
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(182, 255, 57, 0.12), transparent 56%),
    rgba(4, 12, 22, 0.72);
  color: var(--lime);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 18px, 0) scale(0.92);
  transition: opacity 220ms ease, transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    0 0 24px rgba(182, 255, 57, 0.12);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  border-color: rgba(182, 255, 57, 0.68);
  background:
    linear-gradient(145deg, rgba(182, 255, 57, 0.18), transparent 56%),
    rgba(6, 18, 26, 0.86);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.055),
    0 0 34px rgba(182, 255, 57, 0.22);
  outline: none;
  transform: translate3d(0, -2px, 0) scale(1);
}

.back-to-top svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-page {
  position: relative;
  z-index: 10;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 132px 0 88px;
}

.page-hero {
  min-height: 58dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-kicker {
  margin-bottom: 14px;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-hero h1,
.page-section h2 {
  margin: 0;
  color: var(--text);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.page-hero h1 {
  max-width: 820px;
  font-size: 5rem;
}

.page-hero p {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.page-section {
  margin-top: 42px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2,
.page-copy-large h2 {
  font-size: 2.25rem;
}

.page-copy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.skills-matrix {
  align-items: stretch;
}

.page-glass {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent 34%),
    rgba(7, 16, 29, 0.62);
  padding: 28px;
  backdrop-filter: blur(24px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 76px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.page-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 245, 255, 0.08), transparent 28%, rgba(255, 138, 31, 0.06)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 14px);
  opacity: 0.28;
  pointer-events: none;
}

.page-glass h3 {
  margin: 0;
  font-size: 1.1rem;
}

.skill-matrix-card {
  min-height: 178px;
  padding: 26px;
}

.skill-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.skill-card-head span {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.skill-matrix-card .tech-row {
  position: relative;
  z-index: 1;
}

.page-glass p,
.page-rich-text,
.timeline-card p {
  color: var(--muted);
  line-height: 1.72;
}

.page-copy-large p {
  margin: 18px 0 0;
}

.page-stats {
  display: grid;
  gap: 14px;
}

.page-stats div {
  min-height: 78px;
  border-bottom: 1px solid rgba(0, 245, 255, 0.12);
}

.page-stats strong {
  display: block;
  color: var(--cyan);
  font-size: 1.45rem;
}

.page-stats span {
  display: block;
  margin-top: 8px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.page-card-list {
  display: grid;
  gap: 16px;
}

.timeline-card {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(0, 245, 255, 0.16);
  border-radius: 8px;
  background: rgba(7, 16, 29, 0.56);
  backdrop-filter: blur(24px);
}

.timeline-card-large {
  padding: 30px;
}

.timeline-card h2,
.timeline-card h3 {
  margin: 0;
  line-height: 1.25;
}

.timeline-card h2 {
  font-size: 1.55rem;
}

.timeline-card h3 {
  font-size: 1.2rem;
}

.timeline-node {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 22px rgba(0, 245, 255, 0.8);
}

.page-rich-text p:first-child {
  margin-top: 0;
}

.page-project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.project-actions a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(0, 245, 255, 0.22);
  border-radius: 6px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-decoration: none;
  text-transform: uppercase;
}

.project-actions a:hover {
  border-color: rgba(182, 255, 57, 0.5);
  color: var(--lime);
  background: rgba(182, 255, 57, 0.08);
}

.site-footer {
  position: relative;
  z-index: 10;
  display: grid;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 28px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(0, 245, 255, 0.16);
  border-radius: 8px;
  background: rgba(4, 10, 20, 0.58);
  backdrop-filter: blur(22px);
}

.footer-kicker {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.site-footer p {
  max-width: 660px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.contact-social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.contact-social-grid a {
  width: auto;
  min-height: 48px;
  grid-template-columns: auto 1fr;
  gap: 10px;
  justify-content: start;
  padding: 0 12px;
}

.contact-social-grid span {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.project-single-page {
  width: min(1260px, calc(100% - 36px));
}

.project-hero {
  display: grid;
  min-height: 68dvh;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 32px;
  align-items: center;
}

.project-hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--text);
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.92;
}

.project-hero p {
  max-width: 660px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.project-hero-visual {
  position: relative;
  min-height: 480px;
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(0, 245, 255, 0.12), transparent 36%),
    rgba(4, 10, 20, 0.54);
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.project-hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  filter: saturate(1.14) contrast(1.08) brightness(0.86);
}

.project-hero-hud {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(2, 7, 16, 0.66);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  backdrop-filter: blur(18px);
}

.project-single-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.project-gallery-panel,
.project-spec-panel,
.project-overview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 10, 20, 0.6);
  padding: 22px;
  backdrop-filter: blur(24px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 24px 72px rgba(0, 0, 0, 0.34);
}

.project-slider {
  position: relative;
}

.project-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.project-slider-header h2 {
  margin: 6px 0 0;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.25;
}

.project-slider-controls {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 5px;
  border: 1px solid rgba(0, 245, 255, 0.18);
  border-radius: 8px;
  background: rgba(1, 4, 12, 0.46);
  backdrop-filter: blur(18px);
}

.slider-btn {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(0, 245, 255, 0.24);
  border-radius: 7px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent),
    rgba(0, 245, 255, 0.07);
  color: var(--cyan);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.slider-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(182, 255, 57, 0.52);
  background: rgba(182, 255, 57, 0.09);
  color: var(--lime);
}

.slider-btn svg,
.thumb-video-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.thumb-video-mark svg {
  fill: currentColor;
  stroke: none;
}

.slider-count {
  min-width: 78px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-align: center;
  letter-spacing: 0.04em;
}

.slider-count span {
  color: var(--text);
}

.project-slider-stage {
  position: relative;
  min-height: clamp(360px, 58vw, 720px);
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 16% 12%, rgba(0, 245, 255, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent 44%),
    rgba(1, 4, 12, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    0 34px 90px rgba(0, 0, 0, 0.42),
    0 0 58px rgba(0, 245, 255, 0.08);
  overflow: hidden;
  isolation: isolate;
}

.project-slider-stage::before,
.project-slider-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.project-slider-stage::before {
  background:
    linear-gradient(to bottom, transparent 50%, rgba(1, 4, 12, 0.44)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 12px);
  opacity: 0.38;
}

.project-slider-stage::after {
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 70px rgba(0, 245, 255, 0.08);
}

.slider-progress {
  position: absolute;
  z-index: 7;
  left: 18px;
  right: 18px;
  top: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.slider-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0.1);
  transform-origin: left;
  background: linear-gradient(90deg, var(--cyan), var(--lime), var(--orange));
  box-shadow: 0 0 18px rgba(0, 245, 255, 0.7);
  transition: transform 320ms ease;
}

.project-media-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.018);
  pointer-events: none;
  transition: opacity 340ms ease, transform 520ms ease;
}

.project-media-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

.media-lightbox-trigger,
.project-media-slide img,
.project-media-slide video {
  display: block;
  width: 100%;
  height: 100%;
}

.media-lightbox-trigger {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.project-media-slide img,
.project-media-slide video {
  object-fit: contain;
  background: rgba(1, 4, 12, 0.84);
}

.project-media-slide figcaption {
  position: absolute;
  z-index: 6;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(0, 245, 255, 0.18);
  border-radius: 7px;
  background: rgba(2, 7, 16, 0.68);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
}

.project-slider-thumbs {
  display: grid;
  grid-auto-columns: minmax(118px, 150px);
  grid-auto-flow: column;
  gap: 10px;
  margin-top: 14px;
  padding-bottom: 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.slider-thumb {
  position: relative;
  height: 82px;
  border: 1px solid rgba(0, 245, 255, 0.16);
  border-radius: 8px;
  background: rgba(1, 4, 12, 0.68);
  color: var(--muted);
  cursor: pointer;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.slider-thumb:hover,
.slider-thumb.is-active {
  transform: translateY(-2px);
  border-color: rgba(182, 255, 57, 0.5);
  color: var(--lime);
}

.slider-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  filter: saturate(0.9) brightness(0.7);
  transition: opacity 180ms ease, filter 180ms ease;
}

.slider-thumb.is-active img,
.slider-thumb:hover img {
  opacity: 0.95;
  filter: saturate(1.16) brightness(0.96);
}

.slider-thumb > span:not(.thumb-video-mark) {
  position: absolute;
  right: 8px;
  bottom: 7px;
  z-index: 2;
  color: currentColor;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.9);
}

.thumb-video-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 42%),
    rgba(255, 79, 216, 0.08);
  color: var(--pink);
}

.media-lightbox-lock {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.media-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.media-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 18%, rgba(0, 245, 255, 0.14), transparent 34%),
    radial-gradient(circle at 78% 72%, rgba(255, 79, 216, 0.12), transparent 32%),
    rgba(1, 4, 12, 0.92);
  backdrop-filter: blur(18px);
}

.media-lightbox-shell {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1720px, calc(100vw - 16px));
  height: min(1120px, calc(100dvh - 16px));
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(0, 245, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 34%),
    rgba(3, 8, 17, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 36px 120px rgba(0, 0, 0, 0.64),
    0 0 72px rgba(0, 245, 255, 0.12);
  overflow: hidden;
  transform: translateY(12px) scale(0.985);
  transition: transform 260ms ease;
}

.media-lightbox.is-open .media-lightbox-shell {
  transform: translateY(0) scale(1);
}

.media-lightbox-toolbar {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 18px;
  border-bottom: 1px solid rgba(0, 245, 255, 0.14);
  background:
    linear-gradient(90deg, rgba(0, 245, 255, 0.08), transparent 40%),
    rgba(1, 4, 12, 0.56);
}

.media-lightbox-title {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.media-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.media-lightbox-actions button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(0, 245, 255, 0.24);
  border-radius: 7px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent),
    rgba(0, 245, 255, 0.07);
  color: var(--cyan);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.media-lightbox-actions button:hover {
  transform: translateY(-1px);
  border-color: rgba(182, 255, 57, 0.52);
  background: rgba(182, 255, 57, 0.09);
  color: var(--lime);
}

.media-lightbox-actions svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.media-lightbox-actions span {
  min-width: 54px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-align: center;
}

.media-lightbox-close {
  border-color: rgba(255, 79, 216, 0.32) !important;
  color: var(--pink) !important;
}

.media-lightbox-viewport {
  position: relative;
  display: grid;
  min-height: 0;
  align-items: start;
  justify-items: center;
  width: 100%;
  height: 100%;
  padding: 14px;
  overflow: hidden;
  cursor: zoom-in;
  touch-action: none;
}

.media-lightbox-viewport::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 92px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--lime), transparent);
  opacity: 0;
  transform: scaleX(0.35);
  box-shadow: 0 0 24px rgba(0, 245, 255, 0.72);
  transition: opacity 180ms ease;
  animation: lightboxLoading 900ms ease-in-out infinite alternate;
}

.media-lightbox.is-loading .media-lightbox-viewport::before {
  opacity: 1;
}

.media-lightbox-viewport.is-zoomed {
  cursor: grab;
}

.media-lightbox-viewport.is-zoomed:active {
  cursor: grabbing;
}

.media-lightbox-viewport img {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: initial;
  user-select: none;
  will-change: transform;
  transform-origin: top center;
  transition: transform 120ms ease;
  filter: saturate(1.08) contrast(1.04);
}

.media-lightbox.is-loading .media-lightbox-viewport img {
  opacity: 0.12;
}

@keyframes lightboxLoading {
  from { transform: scaleX(0.28); }
  to { transform: scaleX(1); }
}

.spec-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.spec-list div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.spec-list dt {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.spec-list dd {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.icon-cloud {
  margin-top: 26px;
}

.icon-cloud h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.icon-chip {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  margin: 0 7px 8px 0;
  padding: 0 10px;
  border: 1px solid rgba(0, 245, 255, 0.18);
  border-radius: 6px;
  background: rgba(0, 245, 255, 0.07);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.icon-chip img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.project-overview {
  margin-top: 22px;
}

.project-rich-text {
  max-width: 900px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.project-rich-text p:first-child {
  margin-top: 0;
}

.project-rich-text ul {
  padding-left: 1.25rem;
}

.project-rich-text li {
  margin: 0.4rem 0;
}

.contact-form-shell input,
.contact-form-shell textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(0, 245, 255, 0.22);
  border-radius: 6px;
  background: rgba(1, 4, 12, 0.55);
  color: var(--text);
  padding: 12px;
}

.contact-form-shell label,
.contact-form-shell p {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  line-height: 1.5;
}

.contact-form-shell .mdl-cell > p {
  margin: 0;
}

.contact-form-shell .wpcf7-form-control-wrap {
  display: block;
  margin-top: 8px;
}

.contact-form-shell input:focus,
.contact-form-shell textarea:focus {
  border-color: rgba(0, 245, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.12), 0 0 26px rgba(0, 245, 255, 0.12);
  outline: none;
}

.contact-form-shell textarea {
  min-height: 132px;
}

.contact-form-shell input[type="submit"],
.contact-form-shell button[type="submit"],
.contact-form-shell .wpcf7-submit {
  display: inline-flex !important;
  width: auto !important;
  min-width: 160px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(182, 255, 57, 0.62) !important;
  border-radius: 6px;
  background: rgba(182, 255, 57, 0.06) !important;
  color: var(--lime) !important;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0 24px;
  text-transform: uppercase;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.contact-form-shell button[type="submit"] br {
  display: none;
}

.contact-form-shell input[type="submit"]:hover,
.contact-form-shell button[type="submit"]:hover,
.contact-form-shell .wpcf7-submit:hover {
  transform: translateY(-2px);
  background: rgba(182, 255, 57, 0.12) !important;
  box-shadow: 0 0 30px rgba(182, 255, 57, 0.16);
}

.contact-form-shell .wpcf7-spinner {
  filter: hue-rotate(100deg) saturate(1.4);
}

.contact-form-shell .wpcf7-not-valid-tip,
.contact-form-shell .wpcf7-response-output {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: #01040c;
  pointer-events: none;
}

.preloader-panel {
  width: min(440px, calc(100vw - 48px));
  border: 1px solid rgba(0, 245, 255, 0.24);
  border-radius: 8px;
  background: rgba(4, 10, 20, 0.78);
  padding: 30px;
  text-align: center;
  backdrop-filter: blur(24px);
}

.preloader-count {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1;
}

.preloader-label {
  margin-top: 12px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.preloader-track {
  height: 2px;
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.preloader-fill {
  height: 100%;
  width: 100%;
  transform-origin: left;
  background: linear-gradient(90deg, var(--cyan), var(--lime), var(--orange));
  box-shadow: 0 0 22px rgba(0, 245, 255, 0.55);
}

.cursor-layer {
  position: fixed;
  inset: 0;
  z-index: 2400;
  pointer-events: none;
}

.media-lightbox-lock .cursor-layer {
  display: none;
}

.cursor-dot,
.cursor-ring,
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 999px;
  pointer-events: none;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: var(--text);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.6);
}

.cursor-ring {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid rgba(0, 245, 255, 0.55);
}

.cursor-glow {
  width: 80px;
  height: 80px;
  margin: -40px 0 0 -40px;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.28), transparent 66%);
  opacity: 0;
}

@keyframes plateDriftA {
  from { transform: scale(1.06) translate3d(-2%, -1%, 0); }
  to { transform: scale(1.16) translate3d(2%, 2%, 0); }
}

@keyframes plateDriftB {
  from { transform: scale(1.12) translate3d(3%, 1%, 0); }
  to { transform: scale(1.03) translate3d(-3%, -2%, 0); }
}

@keyframes floatPlateA {
  from { transform: translate3d(0, -8px, 0) rotate(1deg); }
  to { transform: translate3d(-14px, 14px, 0) rotate(-1deg); }
}

@keyframes floatPlateB {
  from { transform: translate3d(0, 12px, 0) rotate(-2deg); }
  to { transform: translate3d(16px, -12px, 0) rotate(1deg); }
}

@keyframes heroPortraitFloat {
  from { transform: translateY(-50%) translate3d(0, -10px, 0) rotateY(-5deg) rotateX(2deg); }
  to { transform: translateY(-50%) translate3d(-14px, 14px, 0) rotateY(-2deg) rotateX(0deg); }
}

@keyframes humanOperatorFloat {
  from { transform: translateY(-50%) translate3d(0, -8px, 0) rotateY(-8deg) rotateX(1deg) rotateZ(-0.9deg); }
  to { transform: translateY(-50%) translate3d(8px, 8px, 0) rotateY(-4deg) rotateX(0deg) rotateZ(-0.2deg); }
}

@keyframes robotOperatorFloat {
  from { transform: translateY(-50%) translate3d(0, 8px, 0) rotateY(8deg) rotateX(1deg) rotateZ(0.9deg); }
  to { transform: translateY(-50%) translate3d(-8px, -8px, 0) rotateY(4deg) rotateX(0deg) rotateZ(0.2deg); }
}

@keyframes corePulse {
  from { transform: scale(0.92) rotate(0deg); opacity: 0.74; }
  to { transform: scale(1.08) rotate(18deg); opacity: 1; }
}

@keyframes heroPortraitFloatMobile {
  from { transform: translate(-50%, -50%) translate3d(0, -8px, 0) rotate(0.5deg); }
  to { transform: translate(-50%, -50%) translate3d(0, 10px, 0) rotate(-0.5deg); }
}

@media (max-width: 1100px) {
  .hero-section .section-inner,
  .glass-grid,
  .ecosystem-grid,
  .project-grid,
  .experience-strip,
  .page-project-grid,
  .project-hero,
  .project-single-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-title {
    font-size: 4.6rem;
  }

  .section-title {
    font-size: 3.1rem;
  }

  .visual-stack {
    min-height: 420px;
  }

  .hero-dual-stack {
    min-height: 590px;
  }

  .hero-portrait-stack {
    min-height: 540px;
  }

  .hero-operator-frame {
    width: min(365px, 49%);
  }

  .human-frame {
    left: auto;
    right: 0.35%;
    top: 53%;
  }

  .robot-frame {
    left: 0.35%;
    right: auto;
    top: 53%;
    width: min(365px, 49%);
  }

  .collab-core {
    width: 108px;
    height: 108px;
  }

  .collab-core::before {
    width: 210px;
  }

  .hero-portrait-frame {
    top: 48%;
    right: 0;
    width: min(440px, 88%);
  }
}

@media (max-width: 760px) {
  .narrative-section {
    padding: 82px 18px;
  }

  .hero-section .section-inner,
  .glass-grid,
  .ecosystem-grid,
  .project-grid,
  .hud-strip,
  .experience-strip,
  .page-copy-grid,
  .page-grid,
  .page-project-grid,
  .project-hero,
  .project-single-grid,
  .site-footer,
  .contact-social-grid {
    grid-template-columns: 1fr;
  }

  .social-rail {
    right: 12px;
    bottom: 12px;
    top: auto;
    flex-direction: row;
    transform: none;
  }

  .social-rail a {
    width: 38px;
    height: 38px;
  }

  .back-to-top {
    right: 12px;
    bottom: 64px;
    width: 42px;
    height: 42px;
  }

  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px;
  }

  .site-links {
    width: 100%;
    flex-wrap: wrap;
  }

  .site-links a {
    padding: 8px 9px;
  }

  .site-page {
    width: min(100% - 28px, 1180px);
    padding-top: 150px;
  }

  .page-hero h1 {
    font-size: 3.2rem;
  }

  .project-hero {
    min-height: auto;
    gap: 24px;
  }

  .project-hero h1 {
    font-size: 3.4rem;
  }

  .project-hero-visual,
  .project-hero-visual img {
    min-height: 320px;
  }

  .project-slider-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-slider-controls {
    width: 100%;
    justify-content: space-between;
  }

  .project-slider-stage {
    min-height: 300px;
  }

  .project-media-slide figcaption {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .project-slider-thumbs {
    grid-auto-columns: minmax(96px, 122px);
  }

  .slider-thumb {
    height: 70px;
  }

  .media-lightbox {
    padding: 4px;
  }

  .media-lightbox-shell {
    width: calc(100vw - 8px);
    height: calc(100dvh - 8px);
  }

  .media-lightbox-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px;
  }

  .media-lightbox-actions {
    width: 100%;
    justify-content: space-between;
  }

  .media-lightbox-actions button {
    width: 42px;
    height: 42px;
  }

  .media-lightbox-actions span {
    min-width: 48px;
  }

  .media-lightbox-viewport {
    padding: 8px;
  }

  .footer-socials {
    justify-content: flex-start;
  }

  .hero-title {
    font-size: 3.4rem;
  }

  .section-title {
    font-size: 2.45rem;
  }

  .hero-role {
    font-size: 0.9rem;
  }

  .hero-copy {
    line-height: 1.58;
  }

  .hud-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
  }

  .hud-cell {
    min-height: 74px;
    padding: 14px 11px;
  }

  .hud-value {
    font-size: 1.22rem;
  }

  .hud-label {
    font-size: 0.58rem;
    line-height: 1.35;
  }

  .visual-stack {
    min-height: 390px;
  }

  .visual-frame {
    width: 92%;
  }

  .hero-portrait-stack {
    min-height: 560px;
  }

  .hero-dual-stack {
    min-height: 960px;
    margin-top: 18px;
  }

  .hero-dual-stack::before {
    inset: 2% 0 2% 0;
    transform: none;
  }

  .hero-dual-stack::after {
    width: 100%;
    right: 0;
    top: 14%;
  }

  .hero-operator-frame {
    width: min(370px, 90%);
  }

  .human-frame {
    left: 50%;
    top: 78%;
    transform: translate(-50%, -50%) rotateZ(-0.8deg);
    animation: none;
  }

  .robot-frame {
    left: 50%;
    right: auto;
    top: 31%;
    width: min(370px, 90%);
    transform: translate(-50%, -50%) rotateZ(0.8deg);
    animation: none;
  }

  .hero-operator-frame img {
    aspect-ratio: 4 / 5;
  }

  .collab-core {
    left: 50%;
    top: 55%;
    width: 94px;
    height: 94px;
  }

  .collab-core::before {
    width: 250px;
    transform: rotate(88deg);
  }

  .core-ring {
    width: 56px;
    height: 56px;
  }

  .core-label {
    bottom: -2px;
    font-size: 0.5rem;
  }

  .hero-portrait-frame {
    left: 50%;
    right: auto;
    top: 48%;
    width: min(360px, 84%);
    transform: translate(-50%, -50%);
    animation: heroPortraitFloatMobile 7s ease-in-out infinite alternate;
  }

  .portrait-hud {
    display: none;
  }

  .glass-panel,
  .project-tile {
    min-height: auto;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-layer {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
