/*
Theme Name: Chyhyrynets v3
Theme URI: https://chyhyrynets.com
Author: Eduard Chyhyrynets
Description: Dark scientific portfolio — SRF Cavities, PEP, Quantum Research & Patents
Version: 3.0.0
License: Private
Text Domain: chyhyrynets-v3
Tags: portfolio, dark, one-page, responsive, scientific, glassmorphism
*/

/* ═══════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════ */
:root {
  /* Backgrounds */
  --bg:            #050B14;
  --bg-1:          #080E18;
  --bg-2:          #0A1220;
  --bg-card:       rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.055);

  /* Accent colours */
  --plasma:        #00D4FF;
  --plasma-dim:    rgba(0,212,255,0.15);
  --plasma-glow:   rgba(0,212,255,0.35);
  --blue:          #3B9EFF;
  --blue-dim:      rgba(59,158,255,0.15);
  --blue-glow:     rgba(59,158,255,0.35);
  --purple:        #A78BFA;
  --purple-dim:    rgba(167,139,250,0.15);
  --green:         #34D399;

  /* Text */
  --text:          #E2E8F0;
  --text-muted:    #94A3B8;
  --text-dim:      #4B5563;

  /* Borders */
  --border:        rgba(255,255,255,0.07);
  --border-bright: rgba(255,255,255,0.13);

  /* Shadows */
  --shadow-sm: 0 2px 16px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 32px rgba(0,0,0,0.6);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.7);

  /* Typography */
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* Layout */
  --max-w:       1160px;
  --px:          24px;
  --section-py:  100px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t:    0.28s;
}

/* ═══════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--plasma); text-decoration: none; transition: color var(--t) var(--ease); }
a:hover { color: #fff; }
ul, ol { list-style: none; }

/* ═══════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════ */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}
.section { padding: var(--section-py) 0; }
.section-alt { background: var(--bg-1); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--plasma);
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 22px;
  height: 1px;
  background: var(--plasma);
  box-shadow: 0 0 6px var(--plasma);
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 3.5rem;
}

/* ═══════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.7em 1.5em;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--t) var(--ease);
  border: none;
}
.btn-primary {
  background: var(--plasma);
  color: #050B14;
}
.btn-primary:hover {
  background: #33DDFF;
  color: #050B14;
  box-shadow: 0 0 24px var(--plasma-glow);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-bright);
}
.btn-ghost:hover {
  border-color: var(--plasma);
  color: var(--plasma);
  box-shadow: 0 0 16px var(--plasma-dim);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════ */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 0;
  transition: background var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t);
  border-bottom: 1px solid transparent;
}
#site-nav.scrolled {
  background: rgba(5,11,20,0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 40px rgba(0,0,0,0.5);
}

.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav-logo-last { color: var(--plasma); }
.nav-logo:hover { color: var(--text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--t);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-cta {
  background: var(--plasma) !important;
  color: #050B14 !important;
  padding: 0.42em 1.1em !important;
  border-radius: 6px;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}
.nav-cta:hover {
  background: #33DDFF !important;
  box-shadow: 0 0 18px var(--plasma-glow);
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 4px;
}
.nav-burger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--t) var(--ease);
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 68px;
  overflow: hidden;
  background: radial-gradient(ellipse 100% 80% at 60% 40%, rgba(0,212,255,0.04) 0%, transparent 55%),
              radial-gradient(ellipse 70% 60% at 20% 80%, rgba(59,158,255,0.03) 0%, transparent 50%);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.6;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--plasma);
  background: var(--plasma-dim);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 20px;
  padding: 0.35em 0.9em;
  margin-bottom: 1.6rem;
}
.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--plasma);
  box-shadow: 0 0 8px var(--plasma);
  animation: blink 2s ease-in-out infinite;
}

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

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.hero-name em {
  font-style: normal;
  background: linear-gradient(135deg, var(--plasma) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-role {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.hero-inst {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2.5rem;
}
.hero-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.3em 0.75em;
}

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

/* Hero visual: animated SRF cavity */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cavity-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.cavity-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse, rgba(0,212,255,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.cavity-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(0,212,255,0.15));
}

.cavity-field {
  animation: fieldPulse 3s ease-in-out infinite;
}
@keyframes fieldPulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

/* ═══════════════════════════════════════════════════
   STATS BAR
═══════════════════════════════════════════════════ */
.stats-bar {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  position: relative;
}
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: var(--border);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--plasma) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-num sup {
  font-size: 0.55em;
  -webkit-text-fill-color: var(--plasma);
}
.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.stat-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 80px;
  align-items: start;
}

.about-photo-col { position: sticky; top: 100px; }

.about-photo {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.about-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(0,212,255,0.1);
  pointer-events: none;
}
.about-photo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.about-photo-caption {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-text {
  margin-bottom: 2.5rem;
}
.about-text p {
  color: var(--text-muted);
  line-height: 1.82;
  margin-bottom: 1.1rem;
  font-size: 0.96rem;
}
.about-text strong { color: var(--text); font-weight: 600; }

.about-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.fact {
  background: var(--bg-card);
  padding: 1rem 1.2rem;
  transition: background var(--t);
}
.fact:hover { background: var(--bg-card-hover); }
.fact-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
}
.fact-value {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}
.fact-value a { color: var(--plasma); }

/* ═══════════════════════════════════════════════════
   RESEARCH CARDS
═══════════════════════════════════════════════════ */
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.r-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all var(--t) var(--ease);
  position: relative;
  overflow: hidden;
}
.r-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--plasma), var(--blue));
  opacity: 0;
  transition: opacity var(--t);
}
.r-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-bright);
  box-shadow: 0 0 40px rgba(0,212,255,0.06), var(--shadow-md);
  transform: translateY(-3px);
}
.r-card:hover::before { opacity: 1; }

.r-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--plasma-dim);
  border: 1px solid rgba(0,212,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.r-icon svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: var(--plasma);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.r-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.7rem;
  line-height: 1.3;
}
.r-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

.r-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.r-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--plasma);
  background: var(--plasma-dim);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 4px;
  padding: 0.22em 0.65em;
}

/* ═══════════════════════════════════════════════════
   PATENTS
═══════════════════════════════════════════════════ */
.patents-section { background: var(--bg-2); }

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

.patent-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: all var(--t) var(--ease);
  position: relative;
  overflow: hidden;
}
.patent-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--plasma), transparent);
  opacity: 0;
  transition: opacity var(--t);
}
.patent-card:hover {
  border-color: rgba(0,212,255,0.25);
  box-shadow: 0 0 40px rgba(0,212,255,0.08), var(--shadow-md);
  transform: translateY(-3px);
}
.patent-card:hover::after { opacity: 1; }

.patent-no {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--plasma);
  background: var(--plasma-dim);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 4px;
  padding: 0.25em 0.7em;
  align-self: flex-start;
}

.patent-card h3 {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  flex: 1;
}
.patent-card p {
  font-size: 0.835rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.patent-card p strong { color: var(--text); }

.patent-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.patent-date {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
}
.patent-contrib {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--plasma);
  background: var(--plasma-dim);
  padding: 0.2em 0.6em;
  border-radius: 4px;
}

.patent-pending {
  grid-column: span 3;
  background: rgba(0,212,255,0.03);
  border: 1px dashed rgba(0,212,255,0.25);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.patent-pending-badge {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plasma);
  background: var(--plasma-dim);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 20px;
  padding: 0.4em 1em;
  white-space: nowrap;
}
.patent-pending p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.patent-pending strong { color: var(--text); }

/* ═══════════════════════════════════════════════════
   TIMELINE
═══════════════════════════════════════════════════ */
.timeline {
  position: relative;
  padding-left: 36px;
  max-width: 820px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom,
    var(--plasma) 0%,
    var(--blue) 40%,
    rgba(59,158,255,0.2) 100%);
  box-shadow: 0 0 8px rgba(0,212,255,0.3);
}

.tl-item {
  position: relative;
  padding-bottom: 3rem;
}
.tl-item:last-child { padding-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -42px; top: 4px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--blue), 0 0 12px rgba(59,158,255,0.4);
  transition: box-shadow var(--t);
}
.tl-item:first-child .tl-dot {
  background: var(--plasma);
  box-shadow: 0 0 0 2px var(--plasma), 0 0 16px var(--plasma-glow);
}
.tl-item:hover .tl-dot {
  box-shadow: 0 0 0 3px var(--plasma), 0 0 20px var(--plasma-glow);
  background: var(--plasma);
}

.tl-period {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plasma);
  margin-bottom: 0.3rem;
}
.tl-role {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.15rem;
}
.tl-org {
  font-size: 0.86rem;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 0.7rem;
}
.tl-body {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.tl-body ul { padding-left: 1.1em; list-style: disc; margin-top: 0.4rem; }
.tl-body li { margin-bottom: 0.3rem; }
.tl-body strong { color: var(--text); font-weight: 500; }
.tl-body em { color: var(--text-muted); font-style: italic; }

/* Education variant */
.edu-section .tl-dot {
  background: var(--purple);
  box-shadow: 0 0 0 2px var(--purple), 0 0 12px rgba(167,139,250,0.4);
}
.edu-section .tl-period { color: var(--purple); }
.edu-section .tl-org { color: var(--purple); }
.edu-section .timeline::before {
  background: linear-gradient(to bottom, var(--purple), rgba(167,139,250,0.2));
  box-shadow: 0 0 8px rgba(167,139,250,0.3);
}
.edu-section .tl-item:first-child .tl-dot {
  background: var(--purple);
  box-shadow: 0 0 0 2px var(--purple), 0 0 16px rgba(167,139,250,0.5);
}

/* ═══════════════════════════════════════════════════
   TALKS GRID
═══════════════════════════════════════════════════ */
.talks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.talk-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem 1.5rem;
  transition: all var(--t) var(--ease);
}
.talk-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-bright);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.talk-year {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 10px;
  background: var(--blue-dim);
  border: 1px solid rgba(59,158,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue);
  text-align: center;
  line-height: 1.25;
}
.talk-card.invited .talk-year {
  background: var(--plasma-dim);
  border-color: rgba(0,212,255,0.2);
  color: var(--plasma);
}

.talk-type {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plasma);
  margin-bottom: 4px;
}
.talk-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 4px;
}
.talk-event {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.talk-loc {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-dim);
  margin-top: 3px;
}

/* ═══════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════ */
.contact-section { background: var(--bg-2); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 1.5rem;
}
.c-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t);
}
.contact-item:hover .c-icon {
  border-color: rgba(0,212,255,0.3);
  background: var(--plasma-dim);
  box-shadow: 0 0 16px var(--plasma-dim);
}
.c-icon svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: var(--plasma);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.c-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2px;
}
.c-value { font-size: 0.92rem; color: var(--text); }
.c-value a { color: var(--text); }
.c-value a:hover { color: var(--plasma); }

.cf-field {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.82em 1.1em;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  display: block;
}
.cf-field::placeholder { color: var(--text-dim); }
.cf-field:focus {
  border-color: rgba(0,212,255,0.5);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.08);
}
textarea.cf-field { min-height: 130px; resize: vertical; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.cf-field + .cf-field,
.cf-row + .cf-field { margin-top: 10px; }

.cf-submit {
  margin-top: 10px;
  width: 100%;
  background: var(--plasma);
  color: #050B14;
  border: none;
  border-radius: 8px;
  padding: 0.88em 1.5em;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cf-submit:hover {
  background: #33DDFF;
  box-shadow: 0 0 28px var(--plasma-glow);
  transform: translateY(-2px);
}
.cf-submit svg { transition: transform var(--t); }
.cf-submit:hover svg { transform: translateX(3px); }

.contact-success {
  background: rgba(52,211,153,0.08);
  border: 1px solid rgba(52,211,153,0.25);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  color: var(--green);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  display: none;
}
.contact-success.show { display: block; }

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.site-footer {
  background: var(--bg);
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.footer-links { display: flex; gap: 1.8rem; }
.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.footer-links a:hover { color: var(--plasma); }

/* ═══════════════════════════════════════════════════
   SCROLL ANIMATIONS
═══════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE — 1024px
═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { max-width: 420px; margin: 0 auto; order: -1; }
  .about-grid { grid-template-columns: 260px 1fr; gap: 3.5rem; }
  .patents-grid { grid-template-columns: 1fr 1fr; }
  .patent-pending { grid-column: span 2; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .stat-item + .stat-item::before { display: none; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — 768px
═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --section-py: 72px; }

  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(5,11,20,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 1.8rem 2rem;
    gap: 1.1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; }

  .hero-grid { padding: 60px 0; }
  .hero-name { font-size: clamp(2.4rem, 8vw, 3.5rem); }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo-col { position: static; max-width: 220px; margin: 0 auto; }
  .about-facts { grid-template-columns: 1fr 1fr; }
  .research-grid { grid-template-columns: 1fr; }
  .patents-grid { grid-template-columns: 1fr; }
  .patent-pending { grid-column: span 1; flex-direction: column; align-items: flex-start; }
  .talks-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .cf-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — 480px
═══════════════════════════════════════════════════ */
@media (max-width: 480px) {
  :root { --section-py: 60px; }
  .about-facts { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
