/* 
  Muhammet Faik Duman - Premium Portfolio Design System
  Luxury Dark Obsidian & Cream White Theme
  Fully Responsive & Highly Accessible
*/

/* ─── TOKENS & CSS VARIABLES ─────────────────────────────── */
:root {
  color-scheme: dark;
  --bg: #050506;
  --bg-gradient: linear-gradient(180deg, #050506 0%, #090806 44%, #030303 100%);
  --bg2: #0b0b0d;
  --bg3: #141416;
  --card: rgba(255, 255, 255, 0.035);
  --card-hover: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-hover: rgba(229, 57, 53, 0.34);
  --text: #f5f4f0;
  --muted: #9d9a92;
  --muted2: #d6d2c9;
  --gold: #d7a84a;
  --gold-rgb: 215, 168, 74;
  --accent: #e53935;
  --accent-rgb: 229, 57, 53;
  --cyan: #64d8ff;
  --cyan-rgb: 100, 216, 255;
  --gold-gradient: linear-gradient(135deg, #f8df92 0%, #d7a84a 48%, #e53935 100%);
  --gold-glow: rgba(215, 168, 74, 0.16);
  --r: 8px;
  --r-inner: 8px;
  --w: 1200px;
  --nh: 72px;
  --sh: 0 18px 54px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f8fb;
  --bg-gradient: linear-gradient(180deg, #f8fbff 0%, #f2f4f7 100%);
  --bg2: #ffffff;
  --bg3: #e9eef4;
  --card: rgba(255, 255, 255, 0.78);
  --card-hover: rgba(255, 255, 255, 0.94);
  --line: rgba(12, 18, 28, 0.1);
  --line-hover: rgba(189, 43, 39, 0.28);
  --text: #111316;
  --muted: #5f6670;
  --muted2: #303640;
  --gold: #a97625;
  --gold-rgb: 169, 118, 37;
  --accent: #bd2b27;
  --accent-rgb: 189, 43, 39;
  --cyan: #0e7aa5;
  --cyan-rgb: 14, 122, 165;
  --gold-gradient: linear-gradient(135deg, #b98a3b 0%, #a97625 48%, #bd2b27 100%);
  --gold-glow: rgba(169, 118, 37, 0.12);
  --sh: 0 10px 40px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* ─── BASE RESET & SETUP ─────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nh) + 40px);
}

body {
  font-family: 'Inter', 'Manrope', system-ui, sans-serif;
  background: var(--bg);
  background-image: var(--bg-gradient);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Subtle technical page texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.42;
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg, rgba(var(--accent-rgb), 0.07), transparent 42%, rgba(var(--cyan-rgb), 0.05));
  pointer-events: none;
  z-index: -1;
}

img {
  display: block;
  max-width: 100%;
  border-radius: var(--r-inner);
}

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

button, input, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

ul {
  list-style: none;
}

::selection {
  background: var(--gold);
  color: #030303;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--r-inner);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 100px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--gold);
  color: #030303;
  font-weight: 800;
  border-radius: var(--r-inner);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 20px;
}

/* ─── FLOATING CRYSTAL NAVBAR ────────────────────────────── */
.site-header, .header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), var(--w));
  height: 64px;
  border-radius: 8px;
  background: rgba(9, 9, 9, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  transition: var(--transition);
}

html[data-theme="light"] .site-header,
html[data-theme="light"] .header {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

/* Sticky scroll state */
body.is-scrolled .site-header,
body.is-scrolled .header {
  top: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
  background: rgba(9, 9, 9, 0.9);
}
html[data-theme="light"] body.is-scrolled .site-header,
html[data-theme="light"] body.is-scrolled .header {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: contain;
  padding: 3px;
  background: #050506;
  border: 1px solid rgba(var(--gold-rgb), 0.42);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.18), 0 10px 24px rgba(0, 0, 0, 0.28);
  transition: var(--transition);
}
.brand:hover img {
  transform: translateY(-1px) scale(1.04);
}
.brand strong {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
}
.brand small {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 500;
}

.site-nav, .navbar {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a, .navbar a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  transition: var(--transition);
  position: relative;
}
.site-nav a:hover, .navbar a:hover {
  color: var(--text);
}
.site-nav a.active, .navbar a.active {
  color: var(--gold);
  background: rgba(var(--gold-rgb), 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  padding: 2px;
  border-radius: 8px;
}
.lang-btn {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  cursor: pointer;
  color: var(--muted);
  transition: var(--transition);
}
.lang-btn.is-active {
  background: var(--gold);
  color: #030303;
}

.theme-toggle, .mobile-toggle, .nav-toggle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  cursor: pointer;
  color: var(--muted);
  transition: var(--transition);
}
.theme-toggle:hover, .mobile-toggle:hover, .nav-toggle:hover {
  border-color: var(--line-hover);
  background: rgba(var(--gold-rgb), 0.1);
  color: var(--gold);
}

.mobile-toggle, .nav-toggle {
  display: none;
}

/* ─── TYPOGRAPHY & HEADINGS ────────────────────────────── */
.section {
  width: min(calc(100% - 40px), var(--w));
  margin: 0 auto;
  padding: 120px 0;
  position: relative;
  isolation: isolate;
}

.section:not(.hero)::before {
  content: "";
  position: absolute;
  inset: 24px 50% 24px auto;
  width: 100vw;
  transform: translateX(50%);
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 5, 6, 0.88), rgba(5, 5, 6, 0.93)),
    url("../images/SiyahTema.png") center center / cover no-repeat;
  border-top: 1px solid rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
}

.section:not(.hero)::after {
  content: "";
  position: absolute;
  inset: 24px 50% 24px auto;
  width: 100vw;
  transform: translateX(50%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.72;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%);
}

html[data-theme="light"] .section:not(.hero)::before {
  background:
    linear-gradient(180deg, rgba(246, 248, 251, 0.82), rgba(246, 248, 251, 0.9)),
    url("../images/BeyazTema.png") center center / cover no-repeat;
  border-color: rgba(12, 18, 28, 0.08);
}

html[data-theme="light"] .section:not(.hero)::after {
  opacity: 0.64;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 16%, transparent 84%, var(--bg) 100%);
}

#contact {
  padding-bottom: 110px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 64px;
}

.section-heading h2, .page-hero h1 {
  display: block;
  width: 100%;
  min-width: 0;
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 16px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  text-wrap: wrap;
  background: linear-gradient(135deg, var(--text) 45%, var(--gold) 78%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 600px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--gold);
  background: rgba(var(--gold-rgb), 0.09);
  border: 1px solid rgba(var(--gold-rgb), 0.24);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
  box-shadow: 0 0 15px rgba(var(--gold-rgb), 0.05);
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Available for work live pulsing indicator */
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: greenPulse 1.5s infinite alternate;
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  min-height: 46px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary, .btn:not(.btn-secondary):not(.btn-ghost):not(.small-link):not(.detail-toggle):not(.lang-btn) {
  background: var(--gold-gradient);
  color: #030303;
  box-shadow: 0 4px 20px rgba(var(--gold-rgb), 0.25);
}

.btn-primary:hover, .btn:not(.btn-secondary):not(.btn-ghost):not(.small-link):not(.detail-toggle):not(.lang-btn):hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(var(--gold-rgb), 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--line);
  color: var(--text);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  background: rgba(var(--gold-rgb), 0.05);
}

.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--card);
}

/* ─── HERO SECTION ───────────────────────────────────────── */
.hero {
  min-height: 92vh;
  min-height: clamp(760px, 92svh, 980px);
  display:grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  gap: 48px;
  align-items: center;
  padding: calc(var(--nh) + 84px) max(20px, calc((100% - var(--w)) / 2)) 96px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 46%, rgba(var(--gold-rgb), 0.16) 0%, transparent 33%),
    radial-gradient(circle at 86% 20%, rgba(var(--cyan-rgb), 0.12) 0%, transparent 30%),
    linear-gradient(90deg, rgba(5, 5, 6, 0.98) 0%, rgba(5, 5, 6, 0.88) 50%, rgba(5, 5, 6, 0.72) 100%);
}

html[data-theme="light"] .hero {
  background:
    radial-gradient(circle at 75% 46%, rgba(var(--gold-rgb), 0.18) 0%, transparent 34%),
    radial-gradient(circle at 86% 20%, rgba(var(--cyan-rgb), 0.12) 0%, transparent 30%),
    linear-gradient(90deg, rgba(246, 248, 251, 0.99) 0%, rgba(246, 248, 251, 0.9) 50%, rgba(246, 248, 251, 0.72) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.hero h1 {
  font-size: 4.75rem;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 24px;
  width: 100%;
  max-width: 780px;
  text-wrap: balance;
}

.hero h1 span, .hero h1 em {
  font-style: normal;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--muted2);
  line-height: 1.6;
  margin-bottom: 16px;
  width: 100%;
  max-width: 690px;
  overflow-wrap: anywhere;
}

.hero-text {
  font-size: 0.95rem;
  color: var(--muted2);
  line-height: 1.8;
  width: 100%;
  max-width: 620px;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* ─── ABOUT PAGE & SECTION ───────────────────────────────── */
.hero-showcase {
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.rocket-stage {
  position: relative;
  width: min(100%, 620px);
  min-height: 500px;
  margin-left: auto;
  isolation: isolate;
  overflow: hidden;
}

.rocket-stage::before {
  content: "";
  position: absolute;
  inset: 4% 2% 8%;
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, #000 0 54%, transparent 78%);
  opacity: 0.9;
  transform: perspective(760px) rotateX(58deg) translateY(12%);
  z-index: 0;
}

.rocket-stage::after {
  content: "";
  position: absolute;
  inset: 10% 6% 5%;
  background:
    linear-gradient(90deg, transparent 0 49%, rgba(var(--gold-rgb), 0.26) 49.8% 50.2%, transparent 51% 100%),
    linear-gradient(0deg, transparent 0 49%, rgba(var(--cyan-rgb), 0.18) 49.8% 50.2%, transparent 51% 100%);
  opacity: 0.62;
  z-index: 1;
}

.rocket-canvas {
  position: absolute;
  inset: -1% -3% 5% -3%;
  width: 106%;
  height: 100%;
  display: block;
  z-index: 3;
}

.rocket-fallback {
  position: absolute;
  inset: 12% 0 14%;
  width: min(66%, 360px);
  height: auto;
  max-height: 72%;
  margin: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 42px rgba(var(--gold-rgb), 0.28));
  opacity: 0.92;
  z-index: 2;
  animation: floatImage 4s infinite ease-in-out;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.rocket-stage.is-loaded .rocket-fallback {
  opacity: 0;
  visibility: hidden;
}

.rocket-loader {
  position: absolute;
  left: 50%;
  bottom: 14%;
  transform: translateX(-50%);
  z-index: 4;
  padding: 7px 12px;
  border: 1px solid rgba(var(--gold-rgb), 0.24);
  border-radius: 8px;
  background: rgba(5, 5, 6, 0.68);
  color: var(--muted2);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rocket-stage.is-loaded .rocket-loader,
.rocket-stage.has-error .rocket-loader {
  display: none;
}

.rocket-scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(var(--cyan-rgb), 0.12) 50%, transparent 100%);
  height: 34%;
  opacity: 0.42;
  mix-blend-mode: screen;
  z-index: 5;
  animation: scanDrift 5s ease-in-out infinite;
  pointer-events: none;
}

.rocket-orbit {
  position: absolute;
  left: 50%;
  top: 48%;
  border: 1px solid rgba(var(--gold-rgb), 0.24);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  z-index: 2;
  pointer-events: none;
}

.rocket-orbit--one {
  width: min(82%, 480px);
  aspect-ratio: 1 / 0.46;
  animation: orbitSpin 16s linear infinite;
}

.rocket-orbit--two {
  width: min(62%, 360px);
  aspect-ratio: 1 / 0.52;
  border-color: rgba(var(--cyan-rgb), 0.18);
  animation: orbitSpin 22s linear infinite reverse;
}

.rocket-hud {
  position: absolute;
  z-index: 6;
  min-width: 152px;
  padding: 10px 12px;
  border-left: 1px solid rgba(var(--gold-rgb), 0.58);
  background: linear-gradient(90deg, rgba(5, 5, 6, 0.78), rgba(5, 5, 6, 0.22));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

html[data-theme="light"] .rocket-hud,
html[data-theme="light"] .rocket-loader {
  background: rgba(255, 255, 255, 0.72);
}

.rocket-hud span,
.console-row span {
  display: block;
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.rocket-hud strong,
.console-row strong {
  display: block;
  margin-top: 6px;
  color: var(--muted2);
  font-size: 0.78rem;
  line-height: 1.25;
}

.rocket-hud--top {
  top: 6%;
  right: 8%;
}

.rocket-hud--left {
  left: 0;
  top: 38%;
}

.rocket-hud--right {
  right: 2%;
  bottom: 22%;
}

.rocket-console {
  width: min(100%, 620px);
  margin-left: auto;
  margin-top: -8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
}

.console-row {
  padding: 16px 18px;
  background: rgba(5, 5, 6, 0.5);
}

html[data-theme="light"] .console-row {
  background: rgba(255, 255, 255, 0.64);
}

.console-tags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 14px 18px 18px;
  background: rgba(255, 255, 255, 0.018);
}

.console-tags span {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted2);
  font-size: 0.68rem;
  font-weight: 800;
}

.tools-section {
  width: 100%;
  padding: 78px 0 64px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.018) 46%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(90deg, rgba(var(--gold-rgb), 0.08), transparent 28%, transparent 72%, rgba(var(--cyan-rgb), 0.05));
  border-top: 1px solid rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
}

html[data-theme="light"] .tools-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(12, 18, 28, 0.026) 46%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(90deg, rgba(var(--gold-rgb), 0.08), transparent 28%, transparent 72%, rgba(var(--cyan-rgb), 0.06));
  border-color: rgba(12, 18, 28, 0.06);
}

.tools-heading {
  width: min(calc(100% - 40px), var(--w));
  margin: 0 auto 30px;
}

.tools-heading .eyebrow {
  margin-bottom: 14px;
}

.tools-heading h2 {
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.55rem;
  line-height: 1.06;
  font-weight: 900;
}

.tool-marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.tool-marquee-track {
  --tool-gap: 28px;
  --tool-shift: 14px;
  width: max-content;
  display: flex;
  align-items: center;
  gap: var(--tool-gap);
  padding: 10px 0;
  animation: toolsMarquee 30s linear infinite;
  will-change: transform;
}

.tool-marquee:hover .tool-marquee-track {
  animation-play-state: paused;
}

.tool-chip {
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.028);
  color: var(--muted2);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  font-size: 2rem;
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.tool-chip:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--gold-rgb), 0.32);
  background: rgba(var(--gold-rgb), 0.08);
  color: var(--gold);
}

.tool-chip span {
  color: inherit;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1;
}

html[data-theme="light"] .tool-chip {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(12, 18, 28, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.tools-divider {
  display: block;
  width: 98px;
  height: 2px;
  margin: 34px auto 0;
  background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), 0.72), transparent);
  opacity: 0.9;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 32px;
  align-items: start;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 36px;
  box-shadow: var(--sh);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(var(--gold-rgb), 0.2);
  transform: translateY(-4px);
}

.about-card {
  padding: 30px 0 30px 28px;
  border-left: 1px solid rgba(var(--gold-rgb), 0.45);
  position: relative;
}

.about-card::before {
  content: "";
  position: absolute;
  top: 30px;
  left: -1px;
  width: 1px;
  height: 72px;
  background: linear-gradient(180deg, var(--gold), rgba(var(--accent-rgb), 0.8));
  box-shadow: 0 0 18px rgba(var(--gold-rgb), 0.22);
}

.about-kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.about-card h3 {
  max-width: 520px;
  margin-bottom: 18px;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.55rem;
  line-height: 1.22;
  font-weight: 800;
}

.about-card p {
  max-width: 620px;
  font-size: 0.98rem;
  line-height: 1.82;
  color: var(--muted2);
}

.about-proof {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  max-width: 620px;
}

.about-proof span {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.about-proof span:last-child {
  border-bottom: 1px solid var(--line);
}

.about-proof strong {
  min-width: 116px;
  color: var(--text);
  font-weight: 800;
}

.focus-list {
  display: grid;
  gap: 14px;
}

.focus-list article {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.006));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "icon text";
  column-gap: 16px;
  row-gap: 6px;
  align-items: start;
  transition: var(--transition);
}

.focus-list article:hover {
  border-color: rgba(var(--gold-rgb), 0.3);
  background: rgba(var(--gold-rgb), 0.03);
  transform: translateX(4px);
}

.focus-list i {
  grid-area: icon;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(var(--gold-rgb), 0.08);
  border: 1px solid rgba(var(--gold-rgb), 0.2);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 1.1rem;
  box-shadow: 0 0 15px rgba(var(--gold-rgb), 0.05);
}

.focus-list h3 {
  grid-area: title;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0;
  font-family: 'Space Grotesk', sans-serif;
}

.focus-list p {
  grid-area: text;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.68;
  max-width: 540px;
}

/* ─── SKILLS GRID ────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.skill-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  transition: var(--transition);
}

.skill-card:hover {
  border-color: rgba(var(--gold-rgb), 0.4);
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(var(--gold-rgb), 0.08);
}

.skill-card i {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(var(--gold-rgb), 0.08);
  border: 1px solid rgba(var(--gold-rgb), 0.2);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(var(--gold-rgb), 0.05);
}

.skill-card h3 {
  font-size: 1rem;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 8px;
}

.skill-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ─── FEATURED PROJECTS GRID ─────────────────────────────── */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.featured-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}

.featured-card:hover {
  border-color: rgba(var(--gold-rgb), 0.4);
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(var(--gold-rgb), 0.08);
}

.featured-card img {
  width: 100%;
  height: 178px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.12) 0%, rgba(var(--gold-rgb), 0.05) 100%);
  border-bottom: 1px solid var(--line);
  transition: var(--transition);
}

.featured-card:nth-child(2) img {
  object-position: center 42%;
}

.featured-card:nth-child(3) img {
  object-position: center 30%;
}

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

.featured-card span {
  display: block;
  margin: 20px 20px 6px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0;
}

.featured-card h3 {
  padding: 0 20px;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 10px;
  font-family: 'Space Grotesk', sans-serif;
}

.featured-card p {
  padding: 0 20px 24px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ─── FILTERS & ALL PROJECTS GRID ────────────────────────── */
.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.category-strip span {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted2);
  background: rgba(255, 255, 255, 0.02);
}

.archive-overview {
  padding-top: 0;
}

.archive-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.archive-stats article {
  min-height: 132px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.018);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

html[data-theme="light"] .archive-stats article {
  background: rgba(255, 255, 255, 0.62);
}

.archive-stats strong {
  color: var(--gold);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.15rem;
  line-height: 1;
}

.archive-stats span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(12px);
  flex-wrap: wrap;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.is-active {
  background: var(--gold-gradient);
  border-color: transparent;
  color: #030303;
  box-shadow: 0 4px 15px rgba(var(--gold-rgb), 0.2);
}

.project-count {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-grid--archive {
  align-items: stretch;
}

.project-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.project-card:hover {
  border-color: rgba(var(--gold-rgb), 0.4);
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(var(--gold-rgb), 0.08);
}

.project-card.is-hidden {
  display: none !important;
}

.project-cover {
  height: 172px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.12), transparent 56%),
    radial-gradient(circle at center, rgba(var(--gold-rgb), 0.1) 0%, transparent 70%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}

.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.project-cover--contain img {
  object-fit: contain;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.76), rgba(var(--accent-rgb), 0.1)),
    #050506;
}

.project-card:hover .project-cover--contain img {
  transform: scale(1.02);
}

.project-cover--poster img {
  object-position: center 30%;
}

.project-cover--icon i {
  font-size: 2.5rem;
  color: var(--gold);
  opacity: 0.8;
  filter: drop-shadow(0 0 15px rgba(var(--gold-rgb), 0.3));
}

.project-card>*:not(.project-cover) {
  padding-left: 24px;
  padding-right: 24px;
}

.project-tag {
  display: inline-block;
  margin-top: 20px;
  margin-bottom: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0;
}

.project-card h3 {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 8px;
  font-family: 'Space Grotesk', sans-serif;
}

.project-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
  flex-grow: 1;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 16px 0 0;
  padding: 0;
}

.tech-list li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted2);
  background: rgba(255, 255, 255, 0.015);
  transition: var(--transition);
}

.project-card:hover .tech-list li {
  border-color: rgba(var(--gold-rgb), 0.2);
  color: var(--gold);
  background: rgba(var(--gold-rgb), 0.03);
}

.project-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  padding-bottom: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.link-slot, .detail-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.01);
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
  min-height: 32px;
}

.detail-toggle:hover, .link-slot:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(var(--gold-rgb), 0.05);
}

.detail-toggle[aria-expanded="true"] {
  background: var(--gold);
  border-color: transparent;
  color: #030303;
}

.project-detail {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
}

.project-detail h4 {
  color: var(--muted2);
  font-size: 0.78rem;
  font-weight: 800;
  margin: 12px 0 4px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.project-detail h4:first-child {
  margin-top: 0;
}

/* ─── TIMELINE ───────────────────────────────────────────── */
.timeline, .timeline-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  align-items: start;
  transition: var(--transition);
}

.timeline-item:hover {
  border-color: rgba(var(--gold-rgb), 0.25);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.timeline-marker, .timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(var(--gold-rgb), 0.15);
  margin-top: 8px;
  justify-self: center;
  position: relative;
}

/* Decorative joining lines */
.timeline-item:not(:last-child) .timeline-marker::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 150px;
  background: linear-gradient(to bottom, var(--line) 0%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}

.timeline-label {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0;
  padding: 4px 10px;
  border: 1.5px solid rgba(var(--gold-rgb), 0.25);
  background: rgba(var(--gold-rgb), 0.04);
  border-radius: 100px;
}

.timeline-item h3, .timeline-content h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
  font-family: 'Space Grotesk', sans-serif;
}

.timeline-item p, .timeline-content p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ─── CONTACT SECTION & BUTTONS ──────────────────────────── */
.contact-section {
  padding-bottom: 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.contact-button {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: var(--transition);
  cursor: pointer;
}

.contact-button:hover {
  border-color: rgba(var(--gold-rgb), 0.4);
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(var(--gold-rgb), 0.08);
}

.contact-button i {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(var(--gold-rgb), 0.08);
  border: 1px solid rgba(var(--gold-rgb), 0.2);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(var(--gold-rgb), 0.05);
}

.contact-button span {
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
}

.contact-button strong {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  overflow-wrap: anywhere;
  text-align: left;
}

/* ─── ABOUT PAGE SPECIFIC LAYOUT ─────────────────────────── */
.page-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  padding-top: calc(var(--nh) + 80px);
  padding-bottom: 60px;
  width: min(calc(100% - 40px), var(--w));
  margin: 0 auto;
}

.page-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  max-width: 100%;
}

.page-hero-copy h1,
.page-hero-copy p {
  max-width: 100%;
}

.page-hero-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--sh);
  background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.08) 0%, rgba(var(--gold-rgb), 0.01) 100%);
}

.page-hero-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: contrast(1.05) brightness(0.95);
}

.about-motion-panel {
  min-height: 460px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(var(--gold-rgb), 0.075), rgba(var(--accent-rgb), 0.03) 48%, rgba(var(--cyan-rgb), 0.045)),
    rgba(255, 255, 255, 0.018);
  box-shadow: var(--sh);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

html[data-theme="light"] .about-motion-panel {
  background:
    linear-gradient(135deg, rgba(var(--gold-rgb), 0.14), rgba(var(--accent-rgb), 0.04) 48%, rgba(var(--cyan-rgb), 0.09)),
    rgba(255, 255, 255, 0.72);
}

.motion-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, #000 0 48%, transparent 76%);
  -webkit-mask-image: radial-gradient(circle at center, #000 0 48%, transparent 76%);
  opacity: 0.52;
  z-index: -1;
}

.motion-network {
  position: absolute;
  inset: 6%;
  width: 88%;
  height: 88%;
  overflow: visible;
}

.motion-path {
  fill: none;
  stroke: rgba(var(--gold-rgb), 0.72);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(var(--gold-rgb), 0.18));
}

.motion-path--inner {
  stroke: rgba(var(--cyan-rgb), 0.62);
  stroke-width: 1.5;
}

.motion-path--axis {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-dasharray: 8 14;
  stroke-width: 1.25;
}

.motion-nodes circle {
  fill: var(--bg2);
  stroke: var(--gold);
  stroke-width: 3;
  filter: drop-shadow(0 0 8px rgba(var(--gold-rgb), 0.34));
}

.motion-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  aspect-ratio: 1;
  border: 1px solid rgba(var(--gold-rgb), 0.24);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  pointer-events: none;
}

.motion-ring--outer {
  width: 72%;
  border-style: dashed;
}

.motion-ring--inner {
  width: 46%;
  border-color: rgba(var(--cyan-rgb), 0.22);
}

.motion-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 138px;
  min-height: 98px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(var(--gold-rgb), 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
    rgba(5, 5, 6, 0.72);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32), 0 0 32px rgba(var(--gold-rgb), 0.08);
}

html[data-theme="light"] .motion-core {
  background: rgba(255, 255, 255, 0.86);
}

.motion-core span {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.motion-core strong {
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.16rem;
  line-height: 1;
}

.motion-chip {
  position: absolute;
  min-width: 74px;
  padding: 8px 12px;
  border: 1px solid rgba(var(--gold-rgb), 0.26);
  border-radius: 8px;
  background: rgba(5, 5, 6, 0.64);
  color: var(--muted2);
  font-size: 0.74rem;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

html[data-theme="light"] .motion-chip {
  background: rgba(255, 255, 255, 0.78);
}

.motion-chip--unity {
  left: 12%;
  top: 20%;
}

.motion-chip--web {
  right: 12%;
  top: 24%;
}

.motion-chip--data {
  left: 14%;
  bottom: 20%;
}

.motion-chip--rocket {
  right: 12%;
  bottom: 18%;
}

.motion-meter {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.72fr 0.9fr;
  gap: 8px;
}

.motion-meter span {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(var(--gold-rgb), 0.16), rgba(var(--gold-rgb), 0.88));
  transform-origin: left center;
  animation: motionMeterPulse 2.8s ease-in-out infinite;
}

.motion-meter span:nth-child(2) {
  animation-delay: 0.35s;
  background: linear-gradient(90deg, rgba(var(--cyan-rgb), 0.12), rgba(var(--cyan-rgb), 0.72));
}

.motion-meter span:nth-child(3) {
  animation-delay: 0.7s;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.12), rgba(var(--accent-rgb), 0.68));
}

.about-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.about-motion-card {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008)),
    rgba(255, 255, 255, 0.01);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

html[data-theme="light"] .about-motion-card {
  background: rgba(255, 255, 255, 0.72);
}

.about-motion-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0 28%, rgba(var(--gold-rgb), 0.08) 42%, transparent 56%),
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 220% 100%, 100% 36px;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.about-motion-card:hover {
  border-color: rgba(var(--gold-rgb), 0.34);
  background: rgba(var(--gold-rgb), 0.035);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28), 0 0 18px rgba(var(--gold-rgb), 0.06);
}

.about-motion-card:hover::before {
  opacity: 1;
  animation: motionPanelSweep 1.4s ease forwards;
}

.about-motion-icon {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(var(--gold-rgb), 0.24);
  border-radius: 8px;
  background: rgba(var(--gold-rgb), 0.07);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 1.24rem;
  box-shadow: 0 0 18px rgba(var(--gold-rgb), 0.08);
}

.about-motion-card h3 {
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  line-height: 1.32;
  font-weight: 800;
}

.about-motion-card p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.72;
}

.motion-card-line {
  width: 100%;
  height: 2px;
  margin-top: auto;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), rgba(var(--accent-rgb), 0.72), transparent);
  transform: scaleX(0.28);
  transform-origin: left center;
  opacity: 0.48;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.about-motion-card:hover .motion-card-line {
  transform: scaleX(1);
  opacity: 1;
}

.terminal-panel {
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.006)),
    rgba(5, 5, 6, 0.42);
  box-shadow: var(--sh);
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.terminal-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.34;
  pointer-events: none;
}

html[data-theme="light"] .terminal-panel {
  background: rgba(255, 255, 255, 0.68);
}

.terminal-line {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
}

.terminal-line:last-child {
  border-bottom: none;
}

.terminal-line span {
  flex: 0 0 auto;
  color: var(--gold);
  font-weight: 900;
  white-space: nowrap;
}

.terminal-line strong {
  min-width: 0;
  max-width: 66%;
  color: var(--muted2);
  text-align: right;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-grid .card {
  padding: 32px;
}

.feature-grid h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 12px;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
}

.feature-grid p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ─── FOOTER SECTION ─────────────────────────────────────── */
.footer {
  width: min(calc(100% - 40px), var(--w));
  margin: 0 auto 36px;
  padding: 32px;
  background: rgba(9, 9, 9, 0.4);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  box-shadow: var(--sh);
}

html[data-theme="light"] .footer {
  background: rgba(255, 255, 255, 0.6);
}

.footer-socials {
  display: flex;
  gap: 8px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--card);
}

.footer-socials a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(var(--gold-rgb), 0.06);
  transform: translateY(-2px);
}

.footer-links {
  display: flex;
  gap: 4px;
}

.footer-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text);
  background: var(--card);
}

.footer p, .footer-credit {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 8px;
  text-align: right;
  width: 100%;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.footer p span, .footer-credit span {
  color: var(--gold);
  font-weight: 700;
}

/* ─── BACK TO TOP BUTTON ─────────────────────────────────── */
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(var(--gold-rgb), 0.3);
  border-radius: 8px;
  background: rgba(9, 9, 9, 0.8);
  backdrop-filter: blur(12px);
  color: var(--gold);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: var(--transition);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

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

.back-to-top:hover {
  box-shadow: 0 12px 30px rgba(var(--gold-rgb), 0.3);
  background: var(--gold);
  color: #030303;
  border-color: transparent;
  transform: translateY(-2px);
}

/* ─── INTERACTION & ANIMATION TRIGGERS ───────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatImage {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes scanDrift {
  0%, 100% {
    transform: translateY(-22%);
  }
  50% {
    transform: translateY(210%);
  }
}

@keyframes orbitSpin {
  0% {
    transform: translate(-50%, -50%) rotate(-18deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(342deg);
  }
}

@keyframes greenPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes motionPanelSweep {
  from {
    background-position: 140% 0, 0 0;
  }
  to {
    background-position: -20% 0, 0 0;
  }
}

@keyframes motionMeterPulse {
  0%, 100% {
    transform: scaleX(0.38);
    opacity: 0.42;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* ─── RESPONSIVE BREAKPOINTS ─────────────────────────────── */
@keyframes toolsMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - var(--tool-shift)));
  }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
    gap: 34px;
  }
  .rocket-stage {
    min-height: 450px;
  }
  .rocket-hud--left {
    left: 2%;
  }
  .skills-grid, .featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 920px) {
  .nav-toggle, .mobile-toggle {
    display: grid;
    z-index: 100;
  }

  .site-nav, .navbar {
    position: fixed;
    top: var(--nh);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 24px;
    background: rgba(9, 9, 9, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    transform: translateY(-10px);
    transition: var(--transition);
  }

  html[data-theme="light"] .site-nav,
  html[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  }

  .site-nav.is-open, .navbar.is-open {
    display: flex;
    transform: translateY(0);
  }

  .site-nav a, .navbar a {
    padding: 14px;
    font-size: 0.95rem;
    font-weight: 800;
    text-align: center;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a:last-child, .navbar a:last-child {
    border-bottom: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: calc(var(--nh) + 56px) 20px 84px;
    gap: 40px;
    text-align: center;
    background-position: center right;
  }

  .hero-copy {
    align-items: center;
    width: 100%;
    overflow: hidden;
  }

  .hero h1 {
    font-size: 3.4rem;
  }

  .hero-subtitle, .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
    width: 100%;
  }

  .hero-showcase {
    width: min(100%, 560px);
    margin: 0 auto;
  }

  .tools-section {
    padding: 66px 0 56px;
  }

  .tools-heading h2 {
    font-size: 2.25rem;
  }

  .tool-marquee-track {
    --tool-gap: 20px;
    --tool-shift: 10px;
    animation-duration: 26s;
  }

  .tool-chip {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
    font-size: 1.75rem;
  }

  .tool-chip span {
    font-size: 1.12rem;
  }

  .rocket-stage,
  .rocket-console {
    margin-left: auto;
    margin-right: auto;
  }

  .about-layout, .page-hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-motion-panel {
    width: min(100%, 620px);
    margin: 0 auto;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .archive-stats {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 640px) {
  .section {
    width: calc(100% - 32px);
    padding: 80px 0;
  }
  
  .footer {
    width: calc(100% - 32px);
    padding: 24px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer p, .footer-credit {
    text-align: center;
  }

  .site-header, .header {
    padding: 0 16px;
  }

  .brand strong {
    font-size: 0.82rem;
  }

  .brand small {
    display: none;
  }

  .section-heading h2, .page-hero h1 {
    font-size: 1.9rem;
    line-height: 1.14;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .section-heading h2 {
    font-size: 1.72rem;
    line-height: 1.18;
    width: min(100%, 320px);
    max-width: 320px;
  }

  .page-hero {
    width: calc(100% - 32px);
    gap: 28px;
    justify-items: start;
    overflow: hidden;
  }

  .page-hero-copy,
  .terminal-panel,
  .about-motion-panel {
    width: min(100%, 340px);
    max-width: 340px;
  }

  .about-motion-panel {
    min-height: 330px;
  }

  .motion-network {
    inset: 2%;
    width: 96%;
    height: 96%;
  }

  .motion-core {
    width: 112px;
    min-height: 82px;
  }

  .motion-core strong {
    font-size: 0.98rem;
  }

  .motion-chip {
    min-width: 58px;
    padding: 6px 8px;
    font-size: 0.64rem;
  }

  .motion-chip--unity,
  .motion-chip--data {
    left: 7%;
  }

  .motion-chip--web,
  .motion-chip--rocket {
    right: 7%;
  }

  .page-hero-copy p {
    width: min(100%, 340px);
    max-width: 340px;
    overflow-wrap: anywhere;
  }

  .hero {
    padding: calc(var(--nh) + 48px) 16px 72px;
    background-position: 62% center;
    gap: 22px;
  }

  .hero-copy {
    max-width: calc(100vw - 32px);
    order: 2;
  }

  .hero h1 {
    font-size: 2.65rem;
    line-height: 1.02;
    width: min(100%, 320px) !important;
    max-width: 320px !important;
  }

  .hero-subtitle {
    font-size: 1.02rem;
  }

  .hero-subtitle,
  .hero-text {
    width: min(100%, 300px) !important;
    max-width: 300px !important;
    white-space: normal !important;
  }

  .hero-actions {
    max-width: 320px;
  }

  .hero .eyebrow {
    justify-content: center;
    line-height: 1.35;
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero-showcase {
    order: 1;
    max-width: 340px;
    gap: 0;
  }

  .tools-section {
    padding: 58px 0 50px;
  }

  .tools-heading {
    width: calc(100% - 32px);
    margin-bottom: 22px;
  }

  .tools-heading h2 {
    font-size: 2rem;
    line-height: 1.12;
  }

  .tool-marquee {
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  }

  .tool-marquee-track {
    --tool-gap: 14px;
    --tool-shift: 7px;
    animation-duration: 22s;
  }

  .tool-chip {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
    font-size: 1.45rem;
  }

  .tool-chip span {
    font-size: 0.96rem;
  }

  .tools-divider {
    width: 72px;
    margin-top: 28px;
  }

  .rocket-stage {
    min-height: 258px;
    width: 100%;
  }

  .rocket-canvas {
    inset: -2% -12% 0;
    width: 124%;
  }

  .rocket-hud {
    min-width: 118px;
    padding: 8px 9px;
  }

  .rocket-hud--left,
  .rocket-hud--right,
  .rocket-console {
    display: none;
  }

  .rocket-hud span,
  .console-row span {
    font-size: 0.58rem;
  }

  .rocket-hud strong,
  .console-row strong {
    font-size: 0.68rem;
  }

  .rocket-hud--top {
    top: 3%;
    right: 5%;
  }

  .rocket-hud--left {
    left: 0;
    top: 44%;
  }

  .rocket-hud--right {
    right: 0;
    bottom: 13%;
  }

  .about-card {
    padding: 24px 0 24px 20px;
  }

  .about-card h3 {
    font-size: 1.28rem;
  }

  .about-proof span {
    display: block;
  }

  .about-proof strong {
    display: block;
    min-width: 0;
    margin-bottom: 4px;
  }

  .skills-grid, .featured-grid, .project-grid, .contact-grid, .feature-grid, .about-focus-grid {
    grid-template-columns: 1fr;
  }

  .filter-toolbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }
  
  .filter-buttons {
    width: 100%;
  }
  
  .filter-btn {
    flex-grow: 1;
    text-align: center;
  }

  .archive-stats {
    grid-template-columns: 1fr;
  }

  .archive-stats article {
    min-height: 110px;
  }

  .terminal-line {
    display: block;
  }

  .terminal-line strong {
    margin-top: 6px;
    display: block;
    text-align: left;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px 16px;
  }

  .about-motion-card {
    min-height: auto;
    padding: 24px;
  }

  .timeline-marker, .timeline-dot {
    margin-top: 0;
    margin-bottom: 12px;
  }

  .timeline-item:not(:last-child) .timeline-marker::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
  }
  .tool-marquee {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .tool-marquee-track {
    animation: none !important;
  }
  .motion-meter span,
  .about-motion-card:hover::before {
    animation: none !important;
  }
  .motion-card-line {
    transform: scaleX(1);
  }
}
