:root {
  --bg: #06070b;
  --s1: rgba(13, 16, 24, 0.82);
  --s2: rgba(19, 23, 35, 0.9);
  --s3: #1a2030;
  --br: rgba(255, 255, 255, 0.09);
  --brh: rgba(77, 163, 255, 0.38);
  --rule: rgba(255, 255, 255, 0.16);
  --c1: #4da3ff;
  --c2: #22e3a0;
  --c3: #ff7a45;
  --c4: #a78bfa;
  --c5: #f5c542;
  --tx: #f3f6fb;
  --mt: #6f7a91;
  --mt2: #a5b0c6;
  --syne: 'Geologica', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --body: 'Geologica', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Geologica', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --content-max: 1440px;
  --gutter: clamp(20px, 3.5vw, 50px);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 14px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

img, video {
  -webkit-user-drag: none;
  user-drag: none;
}

body {
  background: var(--bg);
  color: var(--tx);
  font-family: var(--body);
  font-weight: 300;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* WebGL Full-Viewport Ambient Background Canvas */
#gl-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Subtle architectural micro-grid layered lightly over WebGL background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(rgba(77, 163, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 163, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
}

nav, header, section, footer, #page-project, .cert-hero, .cert-filters, #cert-gallery, .cert-note {
  position: relative;
  z-index: 2;
}

/* Top Scroll Telemetry Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 260;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  box-shadow: 0 0 12px rgba(77, 163, 255, 0.55);
  pointer-events: none;
  transition: width 0.08s linear;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(77, 163, 255, 0.35); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--c1); }

::selection {
  background: var(--c1);
  color: #06070b;
}

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

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

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

/* ── HEADER / NAV ── */
nav#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 74px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(6, 7, 11, 0.65);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

nav#main-nav.nav-scrolled {
  background: rgba(6, 7, 11, 0.9);
  border-bottom-color: var(--br);
}

nav#main-nav.nav-hidden {
  transform: translateY(-100%);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo {
  font-family: var(--syne);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  color: var(--tx);
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.25s ease;
}
.nav-logo:hover { opacity: 0.78; }
.nav-logo span { color: var(--c1); font-weight: 400; }

.nav-gl-badge {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c2);
  border: 1px solid rgba(34, 227, 160, 0.28);
  background: rgba(34, 227, 160, 0.06);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 400;
  color: var(--mt2);
  text-decoration: none;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.nav-links a.nav-pill-active {
  color: var(--tx);
  border-color: rgba(77, 163, 255, 0.38);
  background: rgba(77, 163, 255, 0.08);
}

.nav-links a:hover {
  background: var(--tx);
  color: var(--bg) !important;
  border-color: var(--tx);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* RU / EN Segmented Switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--br);
  background: rgba(255, 255, 255, 0.03);
}

.lang-switch-btn {
  border: none;
  background: transparent;
  color: var(--mt2);
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease;
}

.lang-switch-btn:hover { color: var(--tx); }
.lang-switch-btn.active {
  background: var(--tx);
  color: var(--bg);
}

/* Availability pill on right of header */
.nav-marquee-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(34, 227, 160, 0.34);
  background: rgba(34, 227, 160, 0.06);
  border-radius: 999px;
  text-decoration: none;
  color: var(--c2);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.28s ease, color 0.28s ease, border-color 0.28s ease;
}

.nav-marquee-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c2);
  flex-shrink: 0;
  animation: blink 1.6s infinite;
}

.nav-marquee-pill:hover {
  background: var(--c2);
  color: #04120c;
  border-color: var(--c2);
}
.nav-marquee-pill:hover::before { background: #04120c; }

.nav-marquee-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-marquee-track span[aria-hidden="true"] {
  display: none;
}

.nav-back {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
  color: var(--tx);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  padding: 7px 16px;
  border: 1px solid var(--br);
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.nav-back:hover {
  background: var(--tx);
  color: var(--bg);
  border-color: var(--tx);
}

.nav-back svg { transition: transform 0.2s ease; }
.nav-back:hover svg { transform: translateX(-3px); }

/* ── PILL / EDITORIAL BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--br);
  background: rgba(255, 255, 255, 0.03);
  color: var(--tx);
  transition: background 0.28s cubic-bezier(0.22, 1, 0.36, 1), color 0.28s ease, border-color 0.28s ease, transform 0.28s ease;
}

.btn:hover {
  background: var(--tx);
  color: var(--bg);
  border-color: var(--tx);
  transform: translateY(-2px);
}

.btn-p {
  background: var(--c1);
  color: #04101f;
  border-color: var(--c1);
  font-weight: 500;
  box-shadow: 0 8px 28px rgba(77, 163, 255, 0.22);
}

.btn-p:hover {
  background: #77baff;
  color: #04101f;
  border-color: #77baff;
  box-shadow: 0 12px 34px rgba(77, 163, 255, 0.34);
}

/* Interactive Bento Card Spotlight Hover */
.bento-card {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(77, 163, 255, 0.11), transparent 65%);
  transition: opacity 0.35s ease;
}

.bento-card:hover::after {
  opacity: 1;
}

/* ── HERO (Modern Bento Showcase + WebGL 3D Telemetry Lattice + Photo.png) ── */
.hero {
  padding: 98px var(--gutter) 52px;
  max-width: var(--content-max);
  margin: 0 auto;
  position: relative;
}

.hero-frame {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    radial-gradient(ellipse 65% 85% at 85% 28%, rgba(77, 163, 255, 0.11), transparent 62%),
    radial-gradient(ellipse 50% 65% at 15% 88%, rgba(34, 227, 160, 0.065), transparent 60%),
    rgba(10, 12, 19, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: clamp(28px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: 1.25fr minmax(250px, 350px);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  animation: pagein 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#gl-hero-mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.78;
}

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

.h-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--c2);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.h-tag::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--c2);
}

.h-title-hero {
  font-family: var(--syne);
  font-size: clamp(38px, 5.2vw, 74px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.055em;
  color: var(--tx);
  margin-bottom: 18px;
}

.h-title-hero .t-accent {
  display: block;
  background: linear-gradient(110deg, #ffffff 0%, #9fd0ff 55%, #22e3a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.h-title-hero .t-sub {
  display: block;
  margin-top: 8px;
  font-size: 0.54em;
  letter-spacing: -0.04em;
  color: var(--mt2);
  -webkit-text-fill-color: var(--mt2);
}

.h-sub {
  font-size: clamp(16px, 1.45vw, 20px);
  font-weight: 400;
  color: var(--tx);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.h-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--mt2);
  font-weight: 300;
  max-width: 590px;
  margin-bottom: 28px;
}

.h-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Portrait Card tailored for 1:1 Photo.png */
.hero-portrait-col {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-portrait-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--s2);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.58);
}

.hero-portrait-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 68%, rgba(6, 7, 11, 0.52) 100%);
  pointer-events: none;
}

.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  filter: contrast(1.03) saturate(0.95);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-portrait-card:hover .hero-photo-img {
  transform: scale(1.03);
}

.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(160deg, var(--s2) 0%, var(--s1) 100%);
}
.hpp-icon { font-size: 36px; opacity: 0.45; }
.hpp-text { font-size: 11px; color: var(--mt); letter-spacing: 0.1em; text-transform: uppercase; }

.hero-portrait-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--mt2);
}

.hero-portrait-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c2);
}

.hero-portrait-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c2);
  animation: blink 1.6s infinite;
}

/* Asymmetric Hero Meta Band below .hero-frame */
.hero-meta-band {
  display: grid;
  grid-template-columns: 36% 1fr;
  gap: 24px clamp(24px, 4vw, 60px);
  align-items: center;
  margin-top: clamp(28px, 3.5vw, 44px);
}

.hero-quote-block { display: flex; flex-direction: column; gap: 14px; }
.hero-quote-line-wrap { display: flex; align-items: flex-start; gap: 14px; }
.hero-quote-rule { width: 52px; height: 1px; background: var(--c1); margin-top: 7px; flex-shrink: 0; }
.hero-quote-text { font-size: 12px; line-height: 1.45; letter-spacing: 0.01em; text-transform: uppercase; color: var(--mt2); max-width: 310px; }

/* Precision KPI Strip */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--br);
  border-bottom: 1px solid var(--br);
}

.stat-card {
  padding: 20px 18px;
  border-right: 1px solid var(--br);
  transition: background 0.25s ease;
}
.stat-card:first-child { padding-left: 0; }
.stat-card:last-child { border-right: none; }
.stat-card:hover { background: rgba(255, 255, 255, 0.025); }

.stat-n {
  font-family: var(--syne);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--tx);
  margin-bottom: 6px;
}
.stat-card:nth-child(1) .stat-n { color: var(--c1); }
.stat-card:nth-child(2) .stat-n { color: var(--c2); }
.stat-card:nth-child(3) .stat-n { color: var(--c3); }
.stat-card:nth-child(4) .stat-n { color: var(--c4); }

.stat-l { font-size: 11px; color: var(--mt); text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.3; }

/* ── EDITORIAL SECTION SYSTEM (01/ /07) ── */
.ed-section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(68px, 8.5vw, 116px);
}

.ed-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(77, 163, 255, 0.48), rgba(255, 255, 255, 0.14) 35%, rgba(255, 255, 255, 0.06));
}

.ed-index-row {
  display: grid;
  grid-template-columns: 36% 1fr;
  gap: clamp(24px, 4vw, 60px);
  padding: 16px 0 clamp(28px, 4vw, 48px);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--mt);
}

.ed-index-row span:first-child { color: var(--c1); font-weight: 500; }

.ed-grid {
  display: grid;
  grid-template-columns: 36% 1fr;
  gap: 24px clamp(24px, 4vw, 60px);
  align-items: start;
}

.ed-label-col { position: sticky; top: 96px; }

.ed-label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--tx);
  max-width: 250px;
}

.ed-label-sub {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--mt);
  text-transform: none;
  letter-spacing: -0.01em;
  max-width: 260px;
}

/* Editorial Bio Typography (01/ About) */
.about-editorial { display: flex; flex-direction: column; gap: 24px; }

.about-editorial-lead {
  font-size: clamp(22px, 2.5vw, 35px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.045em;
  color: var(--tx);
  text-indent: clamp(28px, 5vw, 72px);
}

.about-editorial-p {
  font-size: clamp(16px, 1.55vw, 21px);
  font-weight: 300;
  line-height: 1.48;
  letter-spacing: -0.02em;
  color: var(--mt2);
}

.about-editorial-lead strong { color: var(--c2); font-weight: 500; }
.about-editorial-p strong { color: var(--c1); font-weight: 500; }

/* Dot-Separated Flowing List */
.ed-dot-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  font-size: clamp(20px, 2.3vw, 32px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.04em;
  color: var(--tx);
}

.ed-dot-list--indented > .ed-dot-item:first-child { margin-left: clamp(24px, 6vw, 88px); }
.ed-dot-item { display: inline-flex; align-items: center; transition: color 0.2s ease; }
.ed-dot-item:hover { color: var(--c1); }

.ed-dot-item:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(77, 163, 255, 0.45);
  margin: 0 clamp(10px, 1vw, 15px);
  flex-shrink: 0;
}

.ed-dot-list--compact { font-size: clamp(14px, 1.3vw, 17px); letter-spacing: -0.015em; color: var(--mt2); margin-top: 8px; }
.ed-dot-list--compact .ed-dot-item:not(:last-child)::after { width: 4px; height: 4px; margin: 0 10px; }

/* ── RESULTS GRID (02/) ── */
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }

.res-card {
  background: var(--s1);
  border: 1px solid var(--br);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.res-card:hover { border-color: var(--brh); background: var(--s2); transform: translateY(-3px); }

.res-icon { font-family: var(--syne); font-size: clamp(32px, 3.2vw, 44px); font-weight: 500; line-height: 1; letter-spacing: -0.045em; }
.res-card:nth-child(1) .res-icon,
.res-card:nth-child(6) .res-icon { color: var(--c2); }
.res-card:nth-child(2) .res-icon { color: var(--c1); }
.res-card:nth-child(3) .res-icon { color: var(--c3); }
.res-card:nth-child(4) .res-icon { color: var(--c4); }
.res-card:nth-child(5) .res-icon { color: var(--c5); }

.res-title { font-size: 16px; font-weight: 500; color: var(--tx); letter-spacing: -0.02em; }
.res-desc { font-size: 13px; line-height: 1.55; color: var(--mt2); flex: 1; }
.res-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 0.02em; color: var(--mt2); border: 1px solid var(--br); border-radius: 999px; padding: 4px 12px; align-self: flex-start; margin-top: 6px; }

.results-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--br); flex-wrap: wrap; gap: 12px; }
.rf-total { font-size: 12px; text-transform: uppercase; color: var(--mt); }
.rf-link { font-size: 12px; text-transform: uppercase; color: var(--c1); text-decoration: none; cursor: pointer; padding: 7px 16px; border: 1px solid rgba(77, 163, 255, 0.35); border-radius: 999px; transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease; }
.rf-link:hover { background: var(--c1); color: #04101f; border-color: var(--c1); }

/* ── SKILLS (03/) ── */
.skills-editorial-stack { margin-bottom: 40px; }
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.sg {
  background: var(--s1);
  border: 1px solid var(--br);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.sg:hover { border-color: var(--brh); background: var(--s2); }

.sg-ttl { font-size: 11px; font-weight: 500; color: var(--c1); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--br); }
.sb-wrap { margin-bottom: 12px; }
.sb-wrap:last-child { margin-bottom: 0; }
.sb-top { display: flex; justify-content: space-between; margin-bottom: 6px; }
.sb-name { font-size: 13px; font-weight: 400; color: var(--tx); }
.sb-pct { font-size: 11px; color: var(--mt); }
.sb-bg { height: 2px; background: rgba(255, 255, 255, 0.08); border-radius: 2px; overflow: hidden; }
.sb-fill { height: 100%; border-radius: 2px; width: 0; transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1); }
.fb { background: linear-gradient(90deg, var(--c1), #8ec7ff); }
.fg { background: linear-gradient(90deg, var(--c2), #7effcf); }
.fo { background: linear-gradient(90deg, var(--c3), #ffb28e); }
.fp { background: linear-gradient(90deg, var(--c4), #d6c8ff); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { font-size: 11px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--br); color: var(--mt2); background: rgba(255, 255, 255, 0.02); transition: border-color 0.2s ease, color 0.2s ease; }
.tag:hover { border-color: var(--brh); color: var(--tx); }
.tb { background: rgba(77, 163, 255, 0.07); color: var(--c1); border-color: rgba(77, 163, 255, 0.22); }
.tg { background: rgba(34, 227, 160, 0.07); color: var(--c2); border-color: rgba(34, 227, 160, 0.22); }
.to { background: rgba(255, 122, 69, 0.07); color: var(--c3); border-color: rgba(255, 122, 69, 0.22); }
.tp { background: rgba(167, 139, 250, 0.07); color: var(--c4); border-color: rgba(167, 139, 250, 0.22); }
.tz { background: rgba(255, 255, 255, 0.03); color: var(--mt2); border-color: var(--br); }

/* ── CAREER TIMELINE (04/) ── */
.timeline { display: flex; flex-direction: column; }
.tl-node { display: grid; grid-template-columns: 32px 1fr; gap: 0 20px; min-width: 0; }
.tl-spine { display: flex; flex-direction: column; align-items: center; }

.tl-dot {
  width: 12px; height: 12px; border-radius: 50%; background: var(--c1);
  border: 2px solid var(--bg); box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.2);
  flex-shrink: 0; margin-top: 26px; position: relative; z-index: 2;
}
.tl-dot--active { width: 14px; height: 14px; background: var(--c2); box-shadow: 0 0 0 4px rgba(34, 227, 160, 0.22), 0 0 14px rgba(34, 227, 160, 0.35); }
.tl-dot-pulse { position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--c2); animation: tl-pulse 2.2s ease-out infinite; opacity: 0; }
@keyframes tl-pulse { 0% { transform: scale(0.6); opacity: 0.75; } 100% { transform: scale(1.7); opacity: 0; } }

.tl-line { width: 1px; flex: 1; background: linear-gradient(to bottom, rgba(34, 227, 160, 0.5), rgba(77, 163, 255, 0.16)); min-height: 36px; }
.tl-line--end { background: linear-gradient(to bottom, rgba(77, 163, 255, 0.35), transparent); }

.tl-card {
  background: var(--s1); border: 1px solid var(--br); border-radius: var(--radius-lg);
  padding: 28px 30px; margin-bottom: 20px; transition: border-color 0.3s ease, background 0.3s ease; min-width: 0;
}
.tl-card:hover { border-color: var(--brh); }
.tl-card--active { border-color: rgba(34, 227, 160, 0.24); }
.tl-card--edu { padding: 18px 24px; background: rgba(13, 16, 24, 0.45); border-style: dashed; margin-bottom: 0; }

.tl-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; flex-wrap: wrap; }
.tl-company { font-family: var(--syne); font-size: clamp(19px, 2vw, 24px); font-weight: 500; letter-spacing: -0.03em; color: var(--tx); }
.tl-badge { font-size: 11px; letter-spacing: 0.03em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.tl-badge--now { color: var(--c2); background: rgba(34, 227, 160, 0.1); border: 1px solid rgba(34, 227, 160, 0.28); font-weight: 500; }
.tl-role { font-size: 12px; font-weight: 500; text-transform: uppercase; color: var(--c1); letter-spacing: 0.04em; margin-bottom: 6px; }
.tl-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.tl-period, .tl-location, .tl-duration, .tl-sep { font-size: 11px; color: var(--mt); }

.tl-achievements { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; padding: 16px; background: var(--s2); border-radius: var(--radius-md); border: 1px solid var(--br); }
.tl-ach { display: flex; flex-direction: column; gap: 3px; text-align: center; }
.tl-ach-val { font-size: 22px; font-weight: 500; line-height: 1; letter-spacing: -0.03em; color: var(--c2); }
.tl-ach-label { font-size: 10px; color: var(--mt); text-transform: uppercase; }

.tl-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.tl-list li { position: relative; padding-left: 18px; font-size: 14px; color: var(--mt2); line-height: 1.55; }
.tl-list li::before { content: '▸'; color: var(--c1); font-size: 11px; position: absolute; left: 0; top: 2px; }
.tl-list li strong { color: var(--c2); font-weight: 500; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── PROJECT CARDS (05/) ── */
.proj-grid { display: flex; flex-direction: column; gap: 16px; }

.pcard {
  background: var(--s1);
  border: 1px solid var(--br);
  border-radius: 26px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s ease;
}
.pcard:hover { border-color: var(--brh); background: var(--s2); transform: translateY(-4px); }

.pcard-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; }
.pcard-left { padding: 32px; border-right: 1px solid var(--br); }

.pcard-num { font-size: 11px; font-weight: 500; color: var(--c1); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.pcard-num::after { content: ''; flex: 1; height: 1px; background: var(--br); }

.pcard-ttl { font-family: var(--syne); font-size: clamp(20px, 2vw, 25px); font-weight: 500; line-height: 1.16; letter-spacing: -0.03em; color: var(--tx); margin-bottom: 10px; }
.pcard-desc { font-size: 14px; color: var(--mt2); line-height: 1.6; margin-bottom: 20px; }
.pcard-tools { display: flex; flex-wrap: wrap; gap: 6px; }

.pcard-arrow {
  position: absolute; top: 24px; right: 24px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--br); display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--mt2); transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.pcard:hover .pcard-arrow { background: var(--c1); color: #04101f; border-color: var(--c1); transform: rotate(45deg); }

.pcard-right { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.kpi-lbl { font-size: 11px; color: var(--mt); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px; }
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.kpi-item { text-align: left; }
.kpi-n { font-size: 24px; font-weight: 500; line-height: 1; letter-spacing: -0.03em; color: var(--tx); margin-bottom: 4px; }
.kpi-d { font-size: 11px; color: var(--mt); line-height: 1.3; }
.pcard-more { font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--c1); margin-top: auto; text-align: right; opacity: 0.85; transition: opacity 0.2s ease; }
.pcard:hover .pcard-more { opacity: 1; }

/* ── 3D MODELS PICKER GRID (06/) ── */
.models-gallery-grid { display: flex; flex-direction: column; gap: 24px; }
#models-gallery-grid.mg-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }

.mg-pick-card {
  background: var(--s1); border: 1px solid var(--br); border-top-width: 2px; border-radius: var(--radius-lg);
  padding: 24px; cursor: pointer; text-align: left; transition: border-color 0.28s ease, background 0.28s ease, transform 0.28s ease;
  display: flex; flex-direction: column; gap: 8px; font-family: var(--body); color: var(--tx);
}
.mg-pick-card:hover { border-color: var(--brh); background: var(--s2); transform: translateY(-3px); }
.mg-pick-icon { font-size: 20px; opacity: 0.9; }
.mg-pick-num { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.mg-pick-title { font-size: 16px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; color: var(--tx); }
.mg-pick-count { font-size: 12px; color: var(--mt2); }
.mg-pick-cta { margin-top: 6px; font-size: 11px; text-transform: uppercase; color: var(--c1); letter-spacing: 0.03em; }

.mg-empty {
  grid-column: 1 / -1; background: var(--s1); border: 1px dashed var(--br); border-radius: var(--radius-lg);
  padding: 48px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px;
}

/* ── EDUCATION & CERTIFICATES (07/) ── */
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.edu-c { background: var(--s1); border: 1px solid var(--br); border-radius: var(--radius-lg); padding: 24px; transition: border-color 0.28s ease, transform 0.28s ease; }
.edu-c:hover { border-color: var(--brh); transform: translateY(-2px); }
.edu-y { font-size: 12px; color: var(--c1); margin-bottom: 10px; font-weight: 500; }
.edu-d { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 6px; color: var(--tx); }
.edu-u { font-size: 13px; color: var(--mt2); line-height: 1.45; }

.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.lang-c { background: var(--s1); border: 1px solid var(--br); border-radius: var(--radius-lg); padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: border-color 0.28s ease; }
.lang-c:hover { border-color: var(--brh); }
.lang-f { font-size: 11px; color: var(--c1); border: 1px solid rgba(77, 163, 255, 0.25); border-radius: 999px; padding: 4px 10px; font-weight: 500; }
.lang-n { font-size: 16px; font-weight: 500; color: var(--tx); margin-right: auto; }
.lang-l { font-size: 12px; color: var(--mt2); text-transform: uppercase; }

.certs-cta { display: block; margin-top: 24px; background: var(--s1); border: 1px solid var(--br); border-radius: 26px; overflow: hidden; transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease; cursor: pointer; }
.certs-cta:hover { border-color: rgba(167, 139, 250, 0.42); background: var(--s2); transform: translateY(-3px); }
.certs-cta-inner { display: grid; grid-template-columns: 1fr auto; }
.certs-cta-left { padding: 32px; border-right: 1px solid var(--br); }
.certs-cta-label { font-size: 11px; color: var(--c4); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.certs-cta-title { font-size: clamp(18px, 1.8vw, 24px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.25; color: var(--tx); margin-bottom: 12px; }
.certs-cta-desc { font-size: 14px; color: var(--mt2); line-height: 1.6; max-width: 580px; margin-bottom: 18px; }
.certs-cta-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.certs-badge { font-size: 11px; color: var(--mt2); border: 1px solid var(--br); border-radius: 999px; padding: 4px 12px; }
.certs-cta-right { padding: 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; min-width: 180px; }
.certs-cta-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.certs-cta-stat-n { font-size: 32px; font-weight: 500; letter-spacing: -0.04em; color: var(--c4); line-height: 1; }
.certs-cta-stat-l { font-size: 10px; color: var(--mt); text-transform: uppercase; }
.certs-cta-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; text-transform: uppercase; color: var(--c4); padding: 9px 18px; border: 1px solid rgba(167, 139, 250, 0.3); border-radius: 999px; transition: background 0.25s ease, color 0.25s ease; }
.certs-cta:hover .certs-cta-arrow { background: var(--c4); color: #0b0816; }

/* ── CONTACT SECTION ("Давайте свяжемся") ── */
.connect-section { max-width: var(--content-max); margin: 0 auto; padding: 12px var(--gutter) 48px; }

.connect-card {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--br);
  background:
    radial-gradient(circle at 80% 25%, rgba(77, 163, 255, 0.1), transparent 55%),
    radial-gradient(circle at 18% 82%, rgba(34, 227, 160, 0.06), transparent 55%),
    var(--s1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: clamp(44px, 6vw, 80px) clamp(24px, 5vw, 64px);
  text-align: center;
  overflow: hidden;
}

.connect-eyebrow { font-size: clamp(12px, 1.2vw, 14px); font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c1); margin-bottom: 14px; }
.connect-title { font-family: var(--syne); font-size: clamp(36px, 5.8vw, 82px); font-weight: 500; line-height: 0.92; letter-spacing: -0.055em; text-transform: uppercase; color: var(--tx); margin-bottom: 36px; }
.connect-form-shell { max-width: 560px; margin: 0 auto; text-align: left; }
.cf-field { margin-bottom: 16px; }
.cf-label { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--mt2); margin-bottom: 8px; }

.cf-input {
  width: 100%; background: var(--s2); border: 1px solid var(--br); border-radius: 16px;
  padding: 14px 18px; color: var(--tx); font-family: var(--body); font-size: 14px; outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cf-input:focus { border-color: var(--c1); box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.14); }
.cf-input::placeholder { color: var(--mt); }
.cf-textarea { resize: vertical; min-height: 110px; line-height: 1.55; }

.cf-captcha-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cf-captcha-q { font-size: 13px; font-weight: 500; color: var(--c2); background: rgba(34, 227, 160, 0.08); border: 1px solid rgba(34, 227, 160, 0.24); border-radius: 999px; padding: 3px 12px; }
.cf-captcha-input { max-width: 130px; text-align: center; -moz-appearance: textfield; }
.cf-captcha-input::-webkit-outer-spin-button,
.cf-captcha-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.connect-circle-btn {
  width: 110px; height: 110px; border-radius: 50%; border: 1px solid rgba(77, 163, 255, 0.65);
  background: rgba(77, 163, 255, 0.07); color: var(--tx); font-family: var(--body); font-size: 11px;
  font-weight: 500; line-height: 1.25; text-transform: uppercase; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; justify-content: center; text-align: center; padding: 12px;
  cursor: pointer; flex-shrink: 0; transition: background 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.connect-circle-btn:hover { background: var(--c1); color: #04101f; border-color: var(--c1); transform: scale(1.06); }
.connect-circle-btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.cf-form-error { font-size: 12px; color: var(--c3); background: rgba(255, 122, 69, 0.08); border: 1px solid rgba(255, 122, 69, 0.28); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
.cf-note { font-size: 11px; color: var(--mt); line-height: 1.55; margin-top: 16px; text-align: center; }
.cf-success { padding: 32px 16px; text-align: center; }
.cf-success-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(34, 227, 160, 0.1); border: 1px solid rgba(34, 227, 160, 0.35); color: var(--c2); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.cf-success-title { font-size: 22px; font-weight: 500; margin-bottom: 8px; }
.cf-success-sub { font-size: 14px; color: var(--mt2); line-height: 1.6; }
.cf-success-actions { display: flex; justify-content: center; margin-top: 20px; }

/* ── FOOTER ── */
footer { max-width: var(--content-max); margin: 0 auto; padding: 24px var(--gutter) 36px; }
.foot-in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 20px; border-top: 1px solid var(--br); }
.foot-c { font-size: 12px; color: var(--mt); text-transform: uppercase; letter-spacing: 0.02em; }
.foot-links { display: flex; align-items: center; gap: clamp(14px, 3.5vw, 48px); flex-wrap: wrap; }
.foot-links a { font-size: 12px; color: var(--mt2); text-decoration: none; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; transition: background 0.25s ease, color 0.25s ease; }
.foot-links a:hover { background: var(--tx); color: var(--bg); }

/* ── PROJECT DETAIL PAGE ── */
#page-project { padding-top: 74px; }
.proj-hero { max-width: var(--content-max); margin: 0 auto; padding: 56px var(--gutter) 44px; position: relative; overflow: hidden; border-bottom: 1px solid var(--br); }
.proj-hero-bg { position: absolute; inset: 0; opacity: 0.22; pointer-events: none; }
.proj-hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.proj-hero-in { width: 100%; position: relative; z-index: 2; }
.proj-num { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; font-weight: 500; }
.proj-title { font-family: var(--syne); font-size: clamp(32px, 5vw, 64px); font-weight: 500; line-height: 0.98; letter-spacing: -0.045em; color: var(--tx); margin-bottom: 14px; }
.proj-subtitle { font-size: clamp(15px, 1.5vw, 20px); color: var(--mt2); margin-bottom: 24px; }
.proj-tool-strip { display: flex; flex-wrap: wrap; gap: 6px; }

.anim-stage { max-width: calc(var(--content-max) - 2 * var(--gutter)); margin: 32px auto 0; border-radius: var(--radius-xl); border: 1px solid var(--br); background: var(--s1); position: relative; overflow: hidden; }
.anim-stage canvas { display: block; width: 100%; height: 100%; }
.anim-stage-label { position: absolute; top: 18px; left: 24px; font-size: 10px; color: var(--mt2); letter-spacing: 0.1em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.anim-stage-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c2); animation: blink 1.5s infinite; }

.proj-body { max-width: var(--content-max); margin: 0 auto; padding: 52px var(--gutter) 80px; display: grid; grid-template-columns: 1fr 340px; gap: 52px; align-items: start; }
.proj-desc h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; color: var(--tx); margin-bottom: 14px; margin-top: 34px; }
.proj-desc h3:first-child { margin-top: 0; }
.proj-desc p { font-size: 15px; color: var(--mt2); line-height: 1.72; margin-bottom: 14px; }
.proj-desc ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
.proj-desc ul li { position: relative; padding-left: 18px; font-size: 14px; color: var(--mt2); line-height: 1.6; }
.proj-desc ul li::before { content: '▸'; color: var(--c1); font-size: 11px; position: absolute; left: 0; top: 2px; }
.proj-desc ul li strong { color: var(--tx); font-weight: 500; }

.proj-sidebar { display: flex; flex-direction: column; gap: 18px; }
.sidebar-card { background: var(--s1); border: 1px solid var(--br); border-radius: var(--radius-lg); padding: 24px; }
.sidebar-lbl { font-size: 11px; color: var(--mt); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--br); }
.kpi-big { display: flex; flex-direction: column; gap: 8px; }
.kpi-b-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--s2); border: 1px solid var(--br); border-radius: 12px; }
.kpi-b-n { font-size: 20px; font-weight: 500; min-width: 58px; text-align: right; flex-shrink: 0; }
.kpi-b-d { font-size: 11px; color: var(--mt2); text-transform: uppercase; line-height: 1.3; flex: 1; }
.tool-list { display: flex; flex-wrap: wrap; gap: 6px; }

.bs-block { margin-top: 28px; border: 1px solid var(--br); border-radius: var(--radius-lg); overflow: hidden; width: 100%; }
.bs-title { font-size: 11px; text-transform: uppercase; color: var(--mt); padding: 12px 18px; background: var(--s2); border-bottom: 1px solid var(--br); }
.bs-row { display: grid; grid-template-columns: 1fr auto 1fr; border-bottom: 1px solid var(--br); }
.bs-row:last-child { border-bottom: none; }
.bs-before, .bs-after { padding: 16px 18px; font-size: 13px; line-height: 1.6; }
.bs-before { color: var(--mt2); background: rgba(255, 122, 69, 0.04); }
.bs-after { color: var(--tx); background: rgba(34, 227, 160, 0.04); }
.bs-after strong { color: var(--c2); font-weight: 500; }
.bs-label { font-size: 10px; text-transform: uppercase; display: block; margin-bottom: 4px; }
.bs-before .bs-label { color: var(--c3); }
.bs-after .bs-label { color: var(--c2); }
.bs-arrow { display: flex; align-items: center; justify-content: center; padding: 0 14px; color: var(--mt); background: var(--s2); border-left: 1px solid var(--br); border-right: 1px solid var(--br); }

.media-section { margin-top: 40px; }
.media-section-title { font-size: 11px; color: var(--mt); text-transform: uppercase; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--br); }
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.media-item { border-radius: var(--radius-md); overflow: hidden; background: var(--s1); border: 1px solid var(--br); transition: border-color 0.25s ease, transform 0.25s ease; }
.media-item:hover { border-color: var(--brh); transform: translateY(-2px); }
.media-caption { font-size: 11px; color: var(--mt); padding: 10px 14px; }
.media-item img, .media-item video, .media-item iframe { width: 100%; display: block; }
.media-item img { cursor: zoom-in; }

/* Lightbox */
#lightbox { display: none; position: fixed; inset: 0; z-index: 9000; background: rgba(6, 7, 11, 0.94); backdrop-filter: blur(18px); align-items: center; justify-content: center; flex-direction: column; cursor: zoom-out; animation: pagein 0.2s ease both; }
#lightbox.open { display: flex; }
#lightbox img { max-width: 90vw; max-height: 84vh; border-radius: var(--radius-md); border: 1px solid var(--br); cursor: default; }
#lightbox-caption { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--tx); background: rgba(11, 13, 19, 0.88); padding: 8px 18px; border-radius: 999px; border: 1px solid var(--br); pointer-events: none; }
#lightbox-close { position: fixed; top: 22px; right: 28px; font-size: 26px; color: var(--mt2); cursor: pointer; z-index: 9001; }
#lightbox-close:hover { color: var(--tx); }

/* ── 3D MODAL ── */
#models-modal { display: none; position: fixed; inset: 0; z-index: 9000; background: rgba(6, 7, 11, 0.92); backdrop-filter: blur(18px); align-items: center; justify-content: center; padding: 24px; }
#models-modal.open { display: flex; }
.models-modal-inner { width: 100%; max-width: 1120px; max-height: 88vh; background: var(--bg); border: 1px solid var(--br); border-radius: var(--radius-xl); padding: 28px; position: relative; overflow: auto; }
.models-modal-close { position: absolute; top: 16px; right: 20px; font-size: 22px; color: var(--mt2); background: none; border: none; cursor: pointer; }
.models-modal-close:hover { color: var(--tx); }

.model-viewer-section { max-width: var(--max); margin: 8px auto 72px; padding: 0 36px; }
.model-viewer-section .sec-hd { display: flex; align-items: center; gap: 14px; }
.model-viewer-section .sec-lbl { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.model-viewer-section .sec-ttl { font-weight: 400; letter-spacing: -0.02em; }
.model-viewer-section .sec-line { flex: 1; height: 1px; background: var(--br); }

.v3d-layout { display: grid; grid-template-columns: 220px 1fr; gap: 20px; width: 100%; }
.v3d-sidebar { display: flex; flex-direction: column; gap: 8px; max-height: 500px; overflow-y: auto; }
.v3d-sidebar-label { font-size: 10px; color: var(--mt); text-transform: uppercase; padding-bottom: 8px; border-bottom: 1px solid var(--br); }
.models-modal-project-label { font-size: 10px; text-transform: uppercase; margin: 12px 0 4px; padding-top: 10px; border-top: 1px solid var(--br); }
.models-modal-project-label:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.v3d-thumb { background: var(--s1); border: 1px solid var(--br); border-radius: 12px; padding: 10px 12px; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 2px; color: var(--tx); }
.v3d-thumb:hover { border-color: var(--brh); }
.v3d-thumb.active { border-color: var(--c1); background: rgba(77, 163, 255, 0.08); }
.v3d-thumb-num { font-size: 9px; color: var(--mt); }
.v3d-thumb-name { font-size: 12px; font-weight: 500; }

.v3d-wrap { position: relative; background: var(--s1); border: 1px solid var(--br); border-radius: var(--radius-lg); overflow: hidden; min-height: 500px; }
.v3d-canvas { display: block; width: 100%; height: 500px; }
.v3d-spin { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--s1); z-index: 10; }
.v3d-spin-ring { width: 38px; height: 38px; border: 2px solid rgba(255, 255, 255, 0.1); border-top-color: var(--c1); border-radius: 50%; animation: v3d-spin 0.8s linear infinite; }
@keyframes v3d-spin { to { transform: rotate(360deg); } }
.v3d-spin-text { font-size: 11px; color: var(--mt); text-transform: uppercase; }
.v3d-bar { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px 16px; background: linear-gradient(to top, rgba(6, 7, 11, 0.92), transparent); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.v3d-left, .v3d-right { display: flex; align-items: center; gap: 10px; }
.v3d-prev, .v3d-next, .v3d-reset { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--br); border-radius: 999px; color: var(--tx); font-size: 11px; padding: 5px 12px; cursor: pointer; }
.v3d-prev:hover, .v3d-next:hover, .v3d-reset:hover { border-color: var(--c1); color: var(--c1); }
.v3d-model-name { font-size: 11px; color: var(--tx); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v3d-counter { font-size: 10px; color: var(--mt); }
.v3d-status { font-size: 10px; color: var(--c3); }

/* ── REVEAL ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1), transform 0.42s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.vis { opacity: 1; transform: translateY(0); }
.rd1 { transition-delay: 0.08s; }
.rd2 { transition-delay: 0.16s; }
.rd3 { transition-delay: 0.24s; }

/* ── HAMBURGER & MOBILE MENU ── */
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 4px; z-index: 210; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--tx); transition: transform 0.3s ease, opacity 0.3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu { display: none; position: fixed; inset: 0; top: 74px; background: rgba(6, 7, 11, 0.97); backdrop-filter: blur(24px); z-index: 190; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 19px; color: var(--tx); text-decoration: none; text-transform: uppercase; cursor: pointer; }

/* ── RESPONSIVE ── */
@media (max-width: 1120px) {
  .nav-marquee-pill, .nav-gl-badge { display: none; }
}

@media (max-width: 1024px) {
  .hero-frame { grid-template-columns: 1fr; }
  .hero-portrait-col { max-width: 320px; }
  .hero-meta-band,
  .ed-index-row,
  .ed-grid { grid-template-columns: 1fr; gap: 16px; }
  .ed-label-col { position: static; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .pcard-inner { grid-template-columns: 1fr; }
  .pcard-left { border-right: none; border-bottom: 1px solid var(--br); }
  .proj-body { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-frame, .connect-card { border-radius: 24px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .stat-card:nth-child(2) { border-right: none; }
  .stat-card:nth-child(3), .stat-card:nth-child(4) { border-top: 1px solid var(--br); }
  .stat-card:nth-child(3) { padding-left: 0; }
  .tl-achievements { grid-template-columns: repeat(2, 1fr); }
  .certs-cta-inner { grid-template-columns: 1fr; }
  .certs-cta-left { border-right: none; border-bottom: 1px solid var(--br); }
  .media-grid { grid-template-columns: 1fr; }
  .v3d-layout { grid-template-columns: 1fr; }
  .v3d-wrap, .v3d-canvas { min-height: 340px; height: 340px; }
}

@media (max-width: 560px) {
  .results-grid { grid-template-columns: 1fr; }
  .lang-grid { grid-template-columns: 1fr; }
  .bs-row { grid-template-columns: 1fr; }
  .bs-arrow { padding: 8px; border-left: none; border-right: none; border-top: 1px solid var(--br); border-bottom: 1px solid var(--br); }
  .cf-captcha-row { flex-direction: column; align-items: stretch; }
  .connect-circle-btn { align-self: center; }
}
