:root {
  --bg: #030508;
  --bg2: #080d16;
  --panel: rgba(10, 16, 28, 0.65);
  --ink: #f0f7ff;
  --muted: #7d96ae;
  --dim: #4a6278;
  --cyan: #2ee6ff;
  --teal: #14d4a5;
  --violet: #a78bfa;
  --line: rgba(120, 180, 255, 0.1);
  --font: "Bricolage Grotesque", system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;
  --wrap: 1200px;
  --head: 72px;
  --case-accent: var(--cyan);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.wrap { width: min(var(--wrap), calc(100% - 2.5rem)); margin-inline: auto; }

.noise {
  pointer-events: none;
  position: fixed; inset: 0; z-index: 9998; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.vignette {
  pointer-events: none;
  position: fixed; inset: 0; z-index: 9997;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, transparent 30%, rgba(3, 5, 8, 0.55));
}

.cursor-glow {
  position: fixed; z-index: 9996; top: 0; left: 0;
  width: 420px; height: 420px; margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 230, 255, 0.07), transparent 65%);
  pointer-events: none;
  transition: transform 0.08s ease-out;
}

/* Header */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--head);
  display: flex; align-items: center; gap: 1rem;
  padding: 0 1.25rem;
  background: rgba(3, 5, 8, 0.55);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}

.brand img { height: 30px; width: auto; display: block; }

.site-nav {
  display: none; gap: 1.75rem; margin-left: auto;
  font-size: 0.88rem; color: var(--muted);
}
.site-nav a { transition: color 0.2s; }
.site-nav a:hover { color: var(--cyan); }

.site-head .btn-sm { display: none; margin-left: auto; }

.burger {
  display: flex; flex-direction: column; justify-content: center; gap: 7px;
  width: 44px; height: 44px; margin-left: auto;
}
.burger span {
  display: block; height: 2px; width: 22px; margin-left: auto;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-drawer {
  position: fixed; inset: var(--head) 0 0; z-index: 199;
  padding: 2rem 1.5rem;
  background: rgba(3, 5, 8, 0.96);
  backdrop-filter: blur(24px);
  display: flex; flex-direction: column; gap: 0.25rem;
  transform: translateY(-105%); opacity: 0; pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s;
}
.mobile-drawer.is-open { transform: none; opacity: 1; pointer-events: auto; }
.mobile-drawer a {
  font-size: 1.5rem; font-weight: 700; padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 960px) {
  .site-nav { display: flex; }
  .site-head .btn-sm { display: inline-flex; margin-left: 1rem; }
  .burger { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.75rem 1.5rem;
  border-radius: 999px; font-weight: 700; font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { min-height: 2.45rem; padding: 0.5rem 1.1rem; font-size: 0.82rem; }

.btn-glow {
  color: #031018;
  background: linear-gradient(135deg, var(--cyan), var(--teal) 55%, #7dffb3);
  box-shadow: 0 0 40px rgba(46, 230, 255, 0.25), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-glow:hover { box-shadow: 0 0 60px rgba(46, 230, 255, 0.35); }

.btn-ghost {
  color: var(--cyan);
  border-color: rgba(46, 230, 255, 0.35);
  background: rgba(46, 230, 255, 0.04);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--head) + 3rem) 0 4rem;
  overflow: hidden;
}

#heroCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.7;
}

.hero__mesh {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(46,230,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,230,255,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 45%, black, transparent);
}

.hero__orb {
  position: absolute; border-radius: 50%; pointer-events: none; filter: blur(60px);
  transition: transform 0.15s ease-out;
}
.hero__orb--1 { width: 380px; height: 380px; top: 8%; left: -8%; background: rgba(46,230,255,0.14); }
.hero__orb--2 { width: 320px; height: 320px; bottom: 12%; right: -6%; background: rgba(167,139,250,0.12); }
.hero__orb--3 { width: 200px; height: 200px; top: 40%; right: 20%; background: rgba(20,212,165,0.1); }

.hero__title .line-glow {
  animation: shimmer 8s ease-in-out infinite;
  background-size: 200% auto;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero__grid {
  position: relative; z-index: 2;
  display: grid; gap: 3rem; align-items: center;
}

@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; min-height: calc(100vh - var(--head) - 5rem); }
}

.hero__kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.4rem 0.85rem; margin-bottom: 1.5rem;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em;
  color: var(--muted); background: rgba(8, 13, 22, 0.6);
}

.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 14px var(--teal);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.4; transform: scale(0.8); } }

.hero__title {
  margin: 0 0 1.25rem;
  font-size: clamp(3.2rem, 11vw, 6.5rem);
  font-weight: 800; line-height: 0.92; letter-spacing: -0.04em;
}
.line-muted { display: block; color: rgba(240, 247, 255, 0.55); }
.line-glow {
  display: block;
  background: linear-gradient(120deg, var(--cyan) 0%, var(--teal) 40%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero__lead {
  margin: 0 0 1rem; max-width: 32rem;
  font-size: 1.15rem; color: var(--muted); font-weight: 500;
}

.hero__quote {
  margin: 0 0 2rem; padding-left: 1rem;
  border-left: 2px solid rgba(46, 230, 255, 0.4);
  max-width: 34rem; font-size: 0.95rem; color: var(--dim); font-style: normal;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2.5rem; }

.hero__stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem;
}
@media (min-width: 640px) { .hero__stats { grid-template-columns: repeat(4, 1fr); } }

.stat-card {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(8, 13, 22, 0.5);
  backdrop-filter: blur(8px);
}
.stat-card__val { display: block; font-size: 1.4rem; font-weight: 800; color: var(--cyan); }
.stat-card__lbl { font-size: 0.72rem; color: var(--muted); }

/* AI Panel */
.ai-panel {
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: rgba(6, 10, 18, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 40px 100px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.04);
}

.ai-panel__head {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.65rem; color: var(--muted);
}
.ai-panel__head span { width: 9px; height: 9px; border-radius: 50%; }
.ai-panel__head span:nth-child(1) { background: #ff5f57; }
.ai-panel__head span:nth-child(2) { background: #febc2e; }
.ai-panel__head span:nth-child(3) { background: #28c840; }
.ai-panel__head em { margin-left: 0.5rem; color: var(--cyan); font-style: normal; }
.ai-panel__status {
  margin-left: auto; padding: 0.15rem 0.5rem; border-radius: 999px;
  font-size: 0.58rem; font-weight: 500; color: var(--teal);
  background: rgba(20, 212, 165, 0.12); border: 1px solid rgba(20, 212, 165, 0.25);
}

.ai-panel__body {
  margin: 0; padding: 1.25rem; min-height: 180px;
  font-family: var(--mono); font-size: 0.74rem; line-height: 1.7; color: #a8c8de;
  white-space: pre-wrap;
}
.term-cursor { color: var(--cyan); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.ai-panel__foot {
  display: flex; justify-content: space-between;
  padding: 0.65rem 1rem; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.62rem; color: var(--dim);
}
.blink { color: var(--teal); }

/* Marquee */
.marquee {
  border-block: 1px solid var(--line);
  background: rgba(8, 13, 22, 0.5);
  overflow: hidden; padding: 0.85rem 0;
}
.marquee__inner {
  display: flex; gap: 2.5rem; width: max-content;
  animation: marquee 35s linear infinite;
}
.marquee__item {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--dim); white-space: nowrap;
}
.marquee__item::before { content: "◆ "; color: var(--cyan); opacity: 0.5; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Blocks */
.block { padding: 6rem 0; position: relative; }
.block--mesh {
  background:
    radial-gradient(800px 400px at 20% 50%, rgba(46,230,255,0.04), transparent),
    radial-gradient(600px 350px at 80% 30%, rgba(167,139,250,0.05), transparent);
  border-block: 1px solid var(--line);
}

.block-head { margin-bottom: 3rem; max-width: 640px; }
.block-head h2 {
  margin: 0.5rem 0 0; font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.03em;
}
.block-head h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.block-head__sub { margin: 1rem 0 0; color: var(--muted); font-size: 1.02rem; max-width: 520px; }

.sec-id {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cyan);
}

/* About */
.about-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.25fr 0.75fr; } }

.about-prose p { margin: 0 0 1.1rem; font-size: 1.08rem; color: var(--muted); font-weight: 500; }

.about-id {
  padding: 2rem; border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel); backdrop-filter: blur(12px);
  text-align: center;
}
.about-id__orb {
  position: relative; width: 96px; height: 96px; margin: 0 auto 1.25rem;
}
.about-id__orb span {
  position: absolute; inset: 12%; z-index: 1;
  display: grid; place-items: center; border-radius: 50%;
  font-size: 1.6rem; font-weight: 800; color: #031018;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
}
.about-id__orb svg { position: absolute; inset: 0; animation: spin 16s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.about-id h3 { margin: 0 0 0.25rem; font-size: 1.4rem; }
.about-id > p { margin: 0 0 1.25rem; color: var(--cyan); font-size: 0.85rem; }

.about-id__list { list-style: none; margin: 0; padding: 0; text-align: left; }
.about-id__list li {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 0.5rem;
  padding: 0.7rem 0; border-top: 1px solid var(--line);
  font-size: 0.86rem;
}
.about-id__list span { color: var(--dim); font-family: var(--mono); font-size: 0.72rem; }
.about-id__list a:hover { color: var(--cyan); }

/* Expertise */
.exp-grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .exp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .exp-grid { grid-template-columns: repeat(4, 1fr); } }

.exp-card {
  padding: 1.75rem; border-radius: 20px;
  border: 1px solid var(--line); background: var(--panel);
  backdrop-filter: blur(10px);
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.exp-card:hover {
  transform: translateY(-5px);
  border-color: rgba(46, 230, 255, 0.25);
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.exp-card__num {
  font-family: var(--mono); font-size: 0.65rem; color: var(--cyan);
  letter-spacing: 0.1em;
}
.exp-card h3 { margin: 0.75rem 0 0.5rem; font-size: 1.1rem; }
.exp-card p { margin: 0 0 1rem; font-size: 0.88rem; color: var(--muted); }
.exp-card__chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.exp-card__chips span {
  padding: 0.2rem 0.55rem; border-radius: 999px;
  font-family: var(--mono); font-size: 0.58rem;
  color: var(--cyan); background: rgba(46,230,255,0.07);
  border: 1px solid rgba(46,230,255,0.12);
}

/* Filters */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.chip-filter {
  padding: 0.45rem 1rem; border-radius: 999px;
  font-size: 0.82rem; color: var(--muted);
  border: 1px solid var(--line); background: transparent;
  transition: all 0.25s;
}
.chip-filter.is-active, .chip-filter:hover {
  color: var(--ink); border-color: rgba(46,230,255,0.4);
  background: rgba(46,230,255,0.08);
}

/* Projects — wow section */
.block--projects {
  overflow: hidden;
  padding: 7rem 0;
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(46,230,255,0.06), transparent 60%),
    radial-gradient(600px 400px at 100% 80%, rgba(167,139,250,0.05), transparent);
}

.projects-aura {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 80px,
    rgba(46,230,255,0.012) 80px,
    rgba(46,230,255,0.012) 81px
  );
  mask-image: linear-gradient(180deg, transparent, black 15%, black 85%, transparent);
}

.projects-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin-bottom: 3rem;
}
@media (max-width: 640px) { .projects-stats { grid-template-columns: 1fr; } }

.pstat {
  padding: 1.25rem 1.5rem; border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(8,13,22,0.55);
  backdrop-filter: blur(10px);
  text-align: center;
}
.pstat__val {
  display: block; font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pstat__lbl { font-size: 0.78rem; color: var(--muted); margin-top: 0.35rem; display: block; }

.projects-lab {
  margin-bottom: 3rem;
  padding: 1.75rem;
  border-radius: 28px;
  border: 1px solid rgba(46,230,255,0.12);
  background: rgba(6,10,18,0.45);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.projects-lab__head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem;
}
.projects-lab__head h3 { margin: 0; font-size: 1.35rem; font-weight: 800; }
.projects-lab__hint { font-family: var(--mono); font-size: 0.68rem; color: var(--dim); letter-spacing: 0.08em; }

.projects-toolbar { flex: 1; max-width: 320px; }

.search-box {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.65rem 1rem; border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(3,5,8,0.5);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.search-box:focus-within {
  border-color: rgba(46,230,255,0.4);
  box-shadow: 0 0 30px rgba(46,230,255,0.08);
}
.search-box span { color: var(--cyan); opacity: 0.7; }
.search-box input {
  flex: 1; border: none; background: none; color: var(--ink);
  font-family: var(--font); font-size: 0.88rem; outline: none;
}
.search-box input::placeholder { color: var(--dim); }

.catalog-meta {
  margin: -1rem 0 1.25rem;
  font-family: var(--mono); font-size: 0.72rem; color: var(--dim);
}

/* Showcase — featured */
.showcase {
  display: grid; gap: 1.25rem;
}
@media (min-width: 900px) {
  .showcase { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
  .showcase { grid-template-columns: repeat(3, 1fr); }
  .showcase-card:first-child { grid-column: span 2; grid-row: span 2; }
  .showcase-card:first-child .showcase-card__media { min-height: 280px; }
}

.showcase-card {
  position: relative; display: flex; flex-direction: column;
  border-radius: 22px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  background: rgba(8,13,22,0.6);
  transition: box-shadow 0.4s, border-color 0.4s;
  transform-style: preserve-3d;
  will-change: transform;
}
.showcase-card:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.4),
    0 0 80px color-mix(in srgb, var(--accent) 15%, transparent);
}

.showcase-card__idx {
  position: absolute; top: 1rem; left: 1rem; z-index: 3;
  font-family: var(--mono); font-size: 0.65rem; font-weight: 500;
  color: var(--accent); padding: 0.25rem 0.55rem; border-radius: 999px;
  background: rgba(3,5,8,0.7); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

.showcase-card__media {
  position: relative; flex: 1; min-height: 160px; overflow: hidden;
}
.showcase-card__media img {
  width: 100%; height: 100%; object-fit: cover; min-height: 160px;
  transition: transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.showcase-card:hover .showcase-card__media img { transform: scale(1.08); }

.showcase-card__shine {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.06) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.showcase-card:hover .showcase-card__shine { transform: translateX(100%); }

.showcase-card__body { padding: 1.25rem 1.35rem 1.4rem; }
.showcase-card__cat {
  font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent);
}
.showcase-card h3 { margin: 0.4rem 0 0.35rem; font-size: 1.2rem; font-weight: 800; }
.showcase-card p { margin: 0; font-size: 0.86rem; color: var(--muted); line-height: 1.45; }
.showcase-card__go {
  display: inline-block; margin-top: 0.85rem;
  font-size: 0.8rem; font-weight: 700; color: var(--accent);
}

/* Catalog grid */
.catalog {
  display: grid; gap: 0.65rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) { .catalog { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .catalog { grid-template-columns: repeat(4, 1fr); } }

.catalog-card {
  position: relative; display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem; border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(8,13,22,0.35);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
  animation: fadeUp 0.5s ease both;
  animation-delay: calc(var(--i) * 30ms);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.catalog-card:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  background: rgba(46,230,255,0.04);
  transform: translateY(-2px);
}

.catalog-card__num {
  font-family: var(--mono); font-size: 0.58rem; color: var(--dim);
  min-width: 1.5rem; text-align: center;
}

.catalog-card__thumb {
  width: 48px; height: 48px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
  border: 1px solid var(--line);
}
.catalog-card__thumb img { width: 100%; height: 100%; object-fit: cover; }

.catalog-card__body { min-width: 0; flex: 1; }
.catalog-card__meta {
  display: block; font-family: var(--mono); font-size: 0.55rem;
  color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em;
}
.catalog-card h4 {
  margin: 0.15rem 0 0; font-size: 0.82rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.catalog-card__live {
  display: inline-block; margin-top: 0.2rem;
  font-family: var(--mono); font-size: 0.52rem; color: var(--teal);
  padding: 0.1rem 0.35rem; border-radius: 999px;
  background: rgba(20,212,165,0.1); border: 1px solid rgba(20,212,165,0.2);
}

.btn-load {
  display: flex; margin: 2rem auto 0;
  min-width: 220px;
}

.chip-row { margin-bottom: 1rem; }

.tag {
  display: inline-block; padding: 0.22rem 0.6rem; border-radius: 999px;
  font-family: var(--mono); font-size: 0.62rem;
  color: var(--cyan); background: rgba(46,230,255,0.07);
  border: 1px solid rgba(46,230,255,0.14);
}

/* Process */
.proc-grid { display: grid; gap: 1rem; }
@media (min-width: 800px) { .proc-grid { grid-template-columns: repeat(4, 1fr); } }

.proc-card {
  padding: 1.5rem; border-radius: 18px;
  border: 1px solid var(--line); background: var(--panel);
}
.proc-card__step { font-family: var(--mono); font-size: 0.72rem; color: var(--cyan); }
.proc-card h3 { margin: 0.65rem 0 0.45rem; font-size: 1.05rem; }
.proc-card p { margin: 0; font-size: 0.86rem; color: var(--muted); }

/* Contact */
.contact-panel {
  display: grid; gap: 2rem; padding: 2.5rem;
  border-radius: 28px;
  border: 1px solid rgba(46,230,255,0.18);
  background:
    radial-gradient(600px 280px at 0% 0%, rgba(46,230,255,0.08), transparent),
    var(--panel);
}
@media (min-width: 800px) { .contact-panel { grid-template-columns: 1fr 1fr; align-items: center; } }

.contact-panel h2 { margin: 0.5rem 0 0.75rem; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.contact-panel p { margin: 0; color: var(--muted); }

.contact-panel__links { display: flex; flex-direction: column; gap: 0.75rem; }

.contact-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.15rem; border-radius: 16px;
  border: 1px solid var(--line); background: rgba(3,5,8,0.4);
  transition: border-color 0.25s, transform 0.25s;
}
.contact-item:hover { border-color: rgba(46,230,255,0.3); transform: translateX(6px); }
.contact-item__ico {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; font-size: 1rem;
  background: rgba(46,230,255,0.08); color: var(--cyan);
}
.contact-item strong { display: block; font-size: 0.95rem; }
.contact-item em { font-style: normal; font-size: 0.78rem; color: var(--muted); }

/* Footer */
.site-foot {
  padding: 1.75rem 0 2.5rem; border-top: 1px solid var(--line);
}
.site-foot__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
  font-size: 0.82rem; color: var(--muted);
}
.site-foot a { color: var(--cyan); font-weight: 700; margin-left: auto; }

/* Reveal */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Realm — секции материализуются из портала */
.realm {
  --realm-glow: 0;
  opacity: 0.35;
  filter: blur(6px) saturate(0.85);
  transform: translateY(48px) scale(0.985);
  transition:
    opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.realm.realm--active {
  opacity: 1;
  filter: none;
  transform: none;
}
.realm.realm--active .block-head,
.realm.realm--active .reveal.is-visible {
  animation: realm-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes realm-in {
  from { opacity: 0; transform: translateY(24px) scale(0.98); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* Portal — разрыв между измерениями */
.portal {
  --portal-i: 0;
  position: relative;
  height: clamp(72px, 12vh, 140px);
  margin: -1.5rem 0;
  pointer-events: none;
  overflow: visible;
  z-index: 2;
}
.portal__core {
  position: absolute;
  left: 50%; top: 50%;
  width: min(92vw, 720px);
  height: 2px;
  transform: translate(-50%, -50%) scaleX(calc(0.15 + var(--portal-i) * 0.85));
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(46,230,255,0.15) 18%,
    rgba(255,255,255,0.95) 50%,
    rgba(167,139,250,0.9) 82%,
    transparent 100%
  );
  box-shadow:
    0 0 calc(20px + var(--portal-i) * 40px) rgba(46,230,255,0.55),
    0 0 calc(40px + var(--portal-i) * 60px) rgba(167,139,250,0.35);
  opacity: calc(0.35 + var(--portal-i) * 0.65);
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.portal__ring {
  position: absolute;
  left: 50%; top: 50%;
  border-radius: 50%;
  border: 1px solid rgba(46,230,255,0.25);
  transform: translate(-50%, -50%);
  opacity: calc(var(--portal-i) * 0.7);
}
.portal__ring--1 {
  width: 120px; height: 120px;
  animation: portal-pulse 4s ease-in-out infinite;
}
.portal__ring--2 {
  width: 220px; height: 220px;
  border-color: rgba(167,139,250,0.2);
  animation: portal-pulse 4s ease-in-out infinite 0.6s;
}
.portal__ring--3 {
  width: 340px; height: 340px;
  border-color: rgba(46,230,255,0.12);
  animation: portal-pulse 5s ease-in-out infinite 1.2s;
}
.portal__shimmer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 120% at 50% 50%, rgba(46,230,255,calc(0.08 + var(--portal-i) * 0.12)), transparent 70%),
    radial-gradient(ellipse 40% 80% at 30% 50%, rgba(167,139,250,calc(0.06 + var(--portal-i) * 0.1)), transparent 65%);
  opacity: calc(0.4 + var(--portal-i) * 0.6);
}
.portal--fire .portal__core {
  animation: portal-flare 1.8s ease-in-out infinite;
}
.portal--fire .portal__ring {
  animation-duration: 2.2s;
}
.portal--wide { height: clamp(96px, 16vh, 180px); }
.portal--wide .portal__core { width: min(96vw, 960px); }
.portal--contact .portal__core {
  background: linear-gradient(90deg,
    transparent,
    rgba(46,230,255,0.3),
    rgba(255,255,255,1),
    rgba(46,230,255,0.3),
    transparent
  );
}
@keyframes portal-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.92); opacity: calc(var(--portal-i) * 0.5); }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: calc(var(--portal-i) * 0.85); }
}
@keyframes portal-flare {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.4); }
}

/* Scroll nav */
.scroll-nav {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.scroll-nav__dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(46,230,255,0.35);
  background: rgba(3,5,8,0.6);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.scroll-nav__dot span {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.scroll-nav__dot:hover span { opacity: 1; }
.scroll-nav__dot:hover,
.scroll-nav__dot.is-active {
  transform: scale(1.35);
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(46,230,255,0.45);
}
.scroll-nav__dot.is-active { background: rgba(46,230,255,0.25); }
@media (max-width: 900px) { .scroll-nav { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .realm { opacity: 1; filter: none; transform: none; transition: none; }
  .portal__core, .portal__ring { animation: none !important; }
  .marquee__inner { animation: none; }
  .pulse-dot, .about-id__orb svg { animation: none; }
}
