/* ── DESIGN TOKENS ────────────────────────────────────────────── */
:root {
  --bg: #0b1020;
  --bg2: #0f1733;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.10);
  --text: #eaf0ff;
  --muted: rgba(234,240,255,.75);
  --muted2: rgba(234,240,255,.55);
  --line: rgba(234,240,255,.12);
  --accent: #7cf3d5;
  --accent2: #6aa8ff;
  --shadow: 0 18px 70px rgba(0,0,0,.45);
  --radius: 22px;
  --nav-h: 64px;
}

/* ── RESET & BASE ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial,
               "Apple Color Emoji", "Segoe UI Emoji";
  background:
    radial-gradient(1200px 800px at 20% -10%, rgba(122,92,255,.25), transparent 60%),
    radial-gradient(900px 700px at 110% 30%, rgba(124,243,213,.18), transparent 60%),
    linear-gradient(180deg, var(--bg), #070a15 70%);
  color: var(--text);
}
a { color: inherit; text-decoration: none }
img { display: block; max-width: 100% }

/* ── LAYOUT HELPERS ───────────────────────────────────────────── */
.container { width: min(1120px, 100%); margin: 0 auto; padding: 0 24px }
.section { padding: 80px 0 }
.section.alt { background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 60%) }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px }
.section-head h2 { margin: 0; font-size: clamp(26px, 3.5vw, 42px); letter-spacing: -.02em }
.lead { margin: 0; color: var(--muted); max-width: 78ch }

/* ── NAV (fixed, transparent → dark on scroll) ────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
  border-bottom: 1px solid transparent;
}
.nav-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.nav.scrolled {
  background: rgba(8,12,26,.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 30px rgba(0,0,0,.3);
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}
.logo {
  font-weight: 850;
  letter-spacing: .04em;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  box-shadow: 0 8px 28px rgba(0,0,0,.2);
  color: var(--text);
}
.since { color: var(--muted2); font-size: 13px }
.nav-links { display: flex; gap: 14px; align-items: center }
.nav a { color: var(--muted); font-weight: 600; font-size: 14px; transition: color .2s }
.nav a:hover { color: var(--text) }
.nav a.cta {
  color: #08121b;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 750;
}
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute; inset: -40px;
  background:
    radial-gradient(900px 600px at 20% 10%, rgba(124,243,213,.20), transparent 60%),
    radial-gradient(900px 600px at 80% 30%, rgba(106,168,255,.20), transparent 55%),
    url("../../img/hero.png") center/cover no-repeat;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.02);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,10,21,.92) 0%, rgba(7,10,21,.70) 52%, rgba(7,10,21,.55) 100%),
    linear-gradient(180deg, rgba(7,10,21,.35), rgba(7,10,21,.95) 82%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: calc(var(--nav-h) + 48px) 0 64px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: center;
}
.kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  padding: 9px 14px;
  border-radius: 999px;
  width: fit-content;
  font-size: 13px;
}
.hero h1 {
  margin: 16px 0 8px;
  font-size: clamp(38px, 5.5vw, 72px);
  letter-spacing: -.03em;
  line-height: 1.02;
}
.subtitle { margin: 0; color: var(--muted); font-size: clamp(15px, 2vw, 18px); max-width: 58ch; line-height: 1.6 }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 }
.chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: var(--text);
  font-weight: 650;
  font-size: 13px;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  transition: transform .2s, background .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.08) }
.btn.primary {
  border: none;
  color: #08121b;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 14px 40px rgba(106,168,255,.20);
}
.btn.primary:hover { transform: translateY(-1px); filter: brightness(1.06) }
.btn.ghost { background: transparent }
.meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 18px; color: var(--muted2); font-size: 14px }
.meta a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(234,240,255,.35) }

/* Hero card */
.hero-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-card-top { display: flex; gap: 8px; padding: 14px 14px 0; flex-wrap: wrap }
.hero-badge {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
}
.hero-badge.subtle { opacity: .75 }
.hero-thumb {
  height: 280px;
  margin: 12px;
  border-radius: 16px;
  background: url("../../img/hero.png") center/cover no-repeat;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero-thumb::after {
  content: "";
  position: absolute; inset: -40%;
  background:
    radial-gradient(circle at 20% 20%, rgba(124,243,213,.35), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(106,168,255,.35), transparent 45%);
  animation: floatGlow 9s ease-in-out infinite;
}
@keyframes floatGlow {
  0%,100% { transform: translate(0,0) rotate(0deg) }
  50% { transform: translate(10%,-6%) rotate(8deg) }
}
.hero-card-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 12px 12px;
}
.hero-stat {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 10px;
  background: rgba(255,255,255,.04);
}
.hero-stat .num { font-weight: 900; letter-spacing: .04em; font-size: 15px }
.hero-stat .lbl { color: var(--muted2); font-size: 11px; margin-top: 2px }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  left: 50%; bottom: 20px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted2);
  font-size: 12px;
}
.mouse {
  width: 22px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  position: relative;
  background: rgba(255,255,255,.03);
}
.mouse::after {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--text);
  position: absolute;
  left: 50%; top: 8px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translate(-50%, 0) }
  30% { opacity: 1 }
  70% { opacity: 1; transform: translate(-50%, 10px) }
  100% { opacity: 0; transform: translate(-50%, 14px) }
}

/* ── PORTFOLIO CARDS ──────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  padding: 22px;
  box-shadow: 0 16px 40px rgba(0,0,0,.15);
  transition: transform .2s ease, background .2s ease;
}
.card:hover { transform: translateY(-3px); background: rgba(255,255,255,.07) }
.card-icon { font-size: 28px; margin-bottom: 12px; display: block }
.card h3 { margin: 0 0 8px; letter-spacing: -.01em }
.card p { margin: 0; color: var(--muted); line-height: 1.6 }
.card ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted) }
.card li { margin: 6px 0 }

/* ── OBLASTI ─────────────────────────────────────────────────── */
.oblast-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.oblast-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  padding: 24px;
  transition: transform .2s ease, background .2s ease;
}
.oblast-card:hover { transform: translateY(-3px); background: rgba(255,255,255,.07) }
.oblast-icon { font-size: 32px; margin-bottom: 14px; display: block }
.oblast-card h3 { margin: 0 0 10px; letter-spacing: -.01em }
.oblast-card p { margin: 0; color: var(--muted); line-height: 1.65 }

/* ── TECH GRID ────────────────────────────────────────────────── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
}
.tech {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  transition: background .2s;
}
.tech:hover { background: rgba(255,255,255,.07) }
.tech .ico {
  width: 34px; height: 34px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(124,243,213,.20), rgba(106,168,255,.20));
  border: 1px solid rgba(234,240,255,.16);
  font-size: 16px;
  flex-shrink: 0;
}
.tech .name { font-weight: 800; font-size: 13px }
.tech .sub { color: var(--muted2); font-size: 11px; margin-top: 2px }
.tech .txt { display: flex; flex-direction: column; line-height: 1.2 }

/* ── ABOUT ────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
}
.about-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  padding: 24px;
}
.about-card h3 { margin: 0 0 12px }
.quote { color: var(--muted); margin: 10px 0; line-height: 1.65 }
.checklist { margin: 0; padding-left: 18px; color: var(--muted) }
.checklist li { margin: 10px 0; line-height: 1.5 }
.mini-cards { display: grid; gap: 10px; margin-top: 16px }
.mini {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255,255,255,.03);
}
.mini .t { font-weight: 850; font-size: 13px }
.mini .d { color: var(--muted2); margin-top: 4px; font-size: 13px }

/* ── REFERENCE ────────────────────────────────────────────────── */
.refs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.ref {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  padding: 18px 20px;
  transition: background .2s;
}
.ref:hover { background: rgba(255,255,255,.07) }
.ref-name { font-weight: 900; font-size: 15px }
.ref-desc { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.5 }

/* ── GALLERY ──────────────────────────────────────────────────── */
.gallery-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.gbtn {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.gbtn:hover { background: rgba(255,255,255,.08) }
.gbtn.active {
  background: linear-gradient(90deg, rgba(124,243,213,.25), rgba(106,168,255,.25));
  border-color: rgba(124,243,213,.35);
}
.gallery-grid {
  columns: 4 200px;
  column-gap: 12px;
}
.gitem {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  cursor: pointer;
  position: relative;
}
.gitem img {
  width: 100%;
  display: block;
  transform: scale(1.02);
  transition: transform .3s ease;
}
.gitem:hover img { transform: scale(1.07) }
.gcap {
  position: absolute; left: 8px; bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(7,10,21,.72);
  border: 1px solid rgba(234,240,255,.14);
  color: var(--text);
  font-weight: 800;
  font-size: 11px;
  backdrop-filter: blur(8px);
}

/* ── LIGHTBOX ─────────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.80);
  z-index: 200;
  padding: 20px;
}
.lightbox.open { display: flex }
.lightbox-inner {
  width: min(1000px, 100%);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,14,30,.92);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.lightbox-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  gap: 12px;
}
.lightbox-title { font-weight: 800; font-size: 14px }
.lightbox-counter { color: var(--muted2); font-size: 12px; margin-top: 2px }
.lightbox-close {
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
  transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.12) }
.lightbox-body {
  position: relative;
  display: flex;
  align-items: center;
}
.lightbox-img {
  max-height: 78vh;
  width: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(10,14,30,.75);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,.14) }
.lightbox-nav:disabled { opacity: .25; cursor: default }
.lightbox-nav.prev { left: 10px }
.lightbox-nav.next { right: 10px }

/* ── CONTACT ──────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
}
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  padding: 24px;
}
.contact-card h3 { margin: 0 0 16px; font-size: 17px }
.kv { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px }
.kv > div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 8px;
  align-items: baseline;
  font-size: 14px;
  color: var(--muted);
}
.kv strong { color: var(--text); font-weight: 700 }
.kv a { color: var(--accent2); text-decoration: underline; text-decoration-color: rgba(106,168,255,.4) }

.socials { display: flex; gap: 8px; flex-wrap: wrap }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  transition: background .2s, border-color .2s;
}
.social-link:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(234,240,255,.22);
}

.contact-form { display: grid; gap: 14px; margin-top: 4px }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--text) }
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(12,18,28,.55);
  color: var(--text);
  border-radius: 12px;
  padding: 11px 14px;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(118,173,255,.65);
  box-shadow: 0 0 0 3px rgba(118,173,255,.14);
}
.contact-form textarea { resize: vertical }
.hint { margin: 0; color: var(--muted2); font-size: .88rem }

/* ── FOOTER ───────────────────────────────────────────────────── */
.footer-bar {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.12);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-copy { color: var(--muted2); font-size: 13px }
.footer-social { display: flex; gap: 8px }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  transition: color .2s, background .2s, border-color .2s;
}
.footer-social a:hover {
  color: var(--text);
  background: rgba(255,255,255,.09);
  border-color: rgba(234,240,255,.2);
}
.footer-top {
  color: var(--muted2);
  font-size: 13px;
  font-weight: 700;
  transition: color .2s;
}
.footer-top:hover { color: var(--text) }

/* ── BACK TO TOP ──────────────────────────────────────────────── */
.back-top {
  position: fixed;
  right: 20px; bottom: 24px;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8,12,26,.88);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s, background .2s;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-top.visible { opacity: 1; transform: translateY(0) }
.back-top:hover { background: rgba(124,243,213,.14); border-color: rgba(124,243,213,.3) }

/* ── SCROLL REVEAL ────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease }
.reveal.visible { opacity: 1; transform: translateY(0) }

/* ── RESPONSIVE: TABLET (≤ 980px) ────────────────────────────── */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: calc(var(--nav-h) + 24px);
  }
  .hero-right { max-width: 480px }
  .cards { grid-template-columns: repeat(2, 1fr) }
  .oblast-grid { grid-template-columns: repeat(2, 1fr) }
  .about-grid { grid-template-columns: 1fr }
  .contact-grid { grid-template-columns: 1fr }
  .tech-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) }
}

/* ── RESPONSIVE: MOBILE (≤ 720px) ────────────────────────────── */
@media (max-width: 720px) {
  .nav-toggle { display: flex }
  .nav-links {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: min(320px, calc(100vw - 32px));
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(8,12,26,.96);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex }
  .nav a { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.03) }
  .nav a.cta { background: linear-gradient(90deg, var(--accent), var(--accent2)); text-align: center }

  .cards { grid-template-columns: 1fr }
  .oblast-grid { grid-template-columns: 1fr }
  .gallery-grid { columns: 2 140px }
  .section { padding: 60px 0 }
}

/* ── RESPONSIVE: SMALL MOBILE (≤ 480px) ──────────────────────── */
@media (max-width: 480px) {
  :root { --nav-h: 58px }
  .hero h1 { font-size: clamp(30px, 9vw, 44px) }
  .kicker { font-size: 12px; padding: 8px 12px }
  .chips { gap: 6px }
  .chip { font-size: 12px; padding: 7px 10px }
  .hero-actions { gap: 8px }
  .hero-right { display: none }
  .section { padding: 48px 0 }
  .section-head { margin-bottom: 20px }
  .contact-grid { grid-template-columns: 1fr }
  .footer-inner { flex-direction: column; align-items: flex-start }
  .tech-grid { grid-template-columns: repeat(2, 1fr) }
  .refs { grid-template-columns: 1fr }
  .gallery-grid { columns: 2 120px }
}

/* ═══════════════════════════════════════════════════════════════
   ENHANCED INTERACTIONS – hover effects, shimmer, spotlight, glow
   ═══════════════════════════════════════════════════════════════ */

/* ── PRIMARY BUTTON: shimmer sweep + magnetic scale ───────────── */
.btn.primary {
  position: relative;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.23,1,.32,1), box-shadow .3s, filter .2s;
}
.btn.primary::after {
  content: '';
  position: absolute;
  top: -60%; left: -80%;
  width: 55%; height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.32), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}
.btn.primary:hover {
  box-shadow: 0 10px 36px rgba(124,243,213,.40), 0 4px 14px rgba(106,168,255,.26);
  filter: brightness(1.07);
}
.btn.primary:hover::after  { animation: shimmerPrimary .55s ease forwards }
.btn.primary:active        { transform: scale(.96) translateY(1px) !important }

@keyframes shimmerPrimary {
  from { left: -80% }
  to   { left: 130% }
}

/* ── NAV CTA: same shimmer ────────────────────────────────────── */
.nav a.cta {
  position: relative;
  overflow: hidden;
  transition: box-shadow .25s, filter .2s, transform .2s;
}
.nav a.cta::after {
  content: '';
  position: absolute;
  top: -60%; left: -80%;
  width: 55%; height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.26), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}
.nav a.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(124,243,213,.32);
  filter: brightness(1.06);
}
.nav a.cta:hover::after { animation: shimmerPrimary .5s ease forwards }

/* ── DEFAULT BUTTONS: frosted gradient fill ───────────────────── */
.btn:not(.primary):not(.ghost) {
  position: relative;
  overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s, background .2s;
}
.btn:not(.primary):not(.ghost)::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(124,243,213,.07), rgba(106,168,255,.06));
  opacity: 0;
  transition: opacity .25s;
  border-radius: inherit;
  pointer-events: none;
}
.btn:not(.primary):not(.ghost):hover {
  transform: translateY(-2px);
  border-color: rgba(234,240,255,.26);
  box-shadow: 0 8px 26px rgba(0,0,0,.24);
}
.btn:not(.primary):not(.ghost):hover::before { opacity: 1 }
.btn:not(.primary):not(.ghost):active         { transform: scale(.96) !important }

/* ── GHOST BUTTON: soft tint + accent border ──────────────────── */
.btn.ghost {
  position: relative;
  overflow: hidden;
  transition: transform .2s, border-color .2s, color .2s;
}
.btn.ghost::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(124,243,213,.07), rgba(106,168,255,.06));
  opacity: 0;
  transition: opacity .25s;
  border-radius: inherit;
  pointer-events: none;
}
.btn.ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(124,243,213,.32);
  color: rgba(124,243,213,.92);
}
.btn.ghost:hover::before { opacity: 1 }
.btn.ghost:active         { transform: scale(.96) !important }

/* ── CHIPS: springy lift + accent glow ────────────────────────── */
.chip {
  transition: transform .25s cubic-bezier(.34,1.56,.64,1),
              box-shadow .25s,
              border-color .25s,
              background .25s,
              color .25s;
}
.chip:hover {
  transform: translateY(-3px) scale(1.05);
  border-color: rgba(124,243,213,.48);
  box-shadow: 0 6px 20px rgba(124,243,213,.16), 0 0 0 3px rgba(124,243,213,.07);
  background: rgba(124,243,213,.09);
  color: var(--accent);
}

/* ── KICKER: slow breathing glow ─────────────────────────────── */
.kicker { animation: kickerBreath 5s ease-in-out infinite }
@keyframes kickerBreath {
  0%, 100% { box-shadow: none; border-color: rgba(234,240,255,.12) }
  50%       { box-shadow: 0 0 22px rgba(124,243,213,.12); border-color: rgba(124,243,213,.24) }
}

/* ── HERO BADGES: subtle glass hover ─────────────────────────── */
.hero-badge {
  transition: background .2s, border-color .2s;
  cursor: default;
}
.hero-badge:hover {
  background: rgba(255,255,255,.13);
  border-color: rgba(234,240,255,.22);
}

/* ── GALLERY FILTER BUTTONS ───────────────────────────────────── */
.gbtn {
  position: relative;
  overflow: hidden;
  transition: transform .18s, border-color .2s, box-shadow .2s;
}
.gbtn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(124,243,213,.1), rgba(106,168,255,.1));
  opacity: 0;
  transition: opacity .2s;
  border-radius: inherit;
  pointer-events: none;
}
.gbtn:hover { transform: translateY(-1px) }
.gbtn:hover::before { opacity: 1 }
.gbtn.active {
  border-color: rgba(124,243,213,.4);
  box-shadow: 0 0 22px rgba(124,243,213,.14), 0 4px 14px rgba(0,0,0,.18);
}
.gbtn:active { transform: scale(.95) !important }

/* ── SOCIAL LINKS: lift + icon bounce ────────────────────────── */
.social-link {
  position: relative;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), border-color .2s, box-shadow .2s;
}
.social-link::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(124,243,213,.1), rgba(106,168,255,.1));
  border-radius: inherit;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.social-link:hover {
  transform: translateY(-3px);
  border-color: rgba(124,243,213,.4);
  box-shadow: 0 8px 26px rgba(124,243,213,.15);
}
.social-link:hover::before { opacity: 1 }
.social-link svg { transition: transform .3s cubic-bezier(.34,1.56,.64,1) }
.social-link:hover svg { transform: scale(1.18) rotate(-8deg) }
.social-link:active { transform: scale(.94) !important }

/* ── FOOTER SOCIAL ICONS ──────────────────────────────────────── */
.footer-social a {
  transition: color .2s, background .2s, border-color .2s,
              box-shadow .2s, transform .25s cubic-bezier(.34,1.56,.64,1);
}
.footer-social a:hover {
  color: var(--accent);
  background: rgba(124,243,213,.1);
  border-color: rgba(124,243,213,.34);
  box-shadow: 0 0 20px rgba(124,243,213,.18);
  transform: translateY(-3px) scale(1.1);
}
.footer-social a svg { transition: transform .3s cubic-bezier(.34,1.56,.64,1) }
.footer-social a:hover svg { transform: scale(1.15) }

/* ── CARD SPOTLIGHT (cursor follows via JS --mx/--my) ─────────── */
.card,
.oblast-card,
.about-card,
.ref {
  position: relative;
  overflow: hidden;
  --mx: 50%;
  --my: 50%;
}
.card::after,
.oblast-card::after,
.about-card::after,
.ref::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(
    circle at var(--mx) var(--my),
    rgba(124,243,213,.08) 0%,
    rgba(106,168,255,.05) 38%,
    transparent 64%
  );
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
  border-radius: inherit;
}
.card:hover::after,
.oblast-card:hover::after,
.about-card:hover::after,
.ref:hover::after { opacity: 1 }

/* ── TECH GRID: emoji springy bounce ─────────────────────────── */
.tech .ico {
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
}
.tech:hover .ico {
  transform: scale(1.20) rotate(-7deg);
  box-shadow: 0 4px 18px rgba(124,243,213,.20);
}

/* ── BACK-TO-TOP: pulse when visible ─────────────────────────── */
.back-top.visible {
  animation: backTopPulse 3s ease-in-out infinite;
}
@keyframes backTopPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124,243,213,0) }
  50%       { box-shadow: 0 0 0 6px rgba(124,243,213,.08) }
}
.back-top:hover { animation: none }

/* ── FOCUS VISIBLE (accessibility) ───────────────────────────── */
.btn:focus-visible,
.gbtn:focus-visible,
.social-link:focus-visible,
.nav-toggle:focus-visible,
.back-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: inherit;
}

/* ── REDUCED MOTION override ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .kicker, .back-top.visible { animation: none }
  .btn.primary::after, .nav a.cta::after { display: none }
  .chip, .social-link, .footer-social a { transition-duration: .01ms !important }
}
