/* ============================================================
   STREAM LAB MODELING — design system
   Dark, modern, CFD-inspired. Static site: HTML + CSS + JS only.
   ============================================================ */

:root {
  --bg:        #05070d;
  --bg-2:      #090d18;
  --panel:     #0c1220;
  --panel-2:   #101a2e;
  --line:      rgba(140, 170, 220, .14);
  --line-str:  rgba(140, 170, 220, .30);

  --text:      #f0f5fc;
  --muted:     #d6dfec;
  --dim:       #aab7cd;

  --c-blue:    #3d7bff;
  --c-cyan:    #00d4ff;
  --c-teal:    #2fe6c8;
  --c-purple:  #8b5cf6;
  --c-magenta: #ff2e88;
  --c-pink:    #ff6bcb;
  --c-green:   #7cf59a;

  --grad: linear-gradient(90deg, var(--c-blue) 0%, var(--c-cyan) 28%, var(--c-teal) 48%, var(--c-purple) 74%, var(--c-magenta) 100%);

  --font: "Golos Text", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Zekton", "Departura", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas, "Liberation Mono", monospace;

  --radius: 16px;
  --header-h: 78px;
  --container: 1240px;
}

/* ---------- fonts (subset woff2, local) ---------- */

@font-face {
  font-family: "Zekton";
  src: url("../assets/fonts/zekton.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.7;
  font-weight: 500;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 400; letter-spacing: 0; font-family: var(--font-display); }
p { margin: 0; }
button { font-family: inherit; }

::selection { background: rgba(0, 212, 255, .28); color: #fff; }

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

/* subtle grid texture over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(140,170,220,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140,170,220,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 75%);
}

main { position: relative; z-index: 1; }

/* ---------- typography helpers ---------- */
.overline {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-cyan);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.overline::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--grad);
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease, color .25s ease;
  position: relative;
  white-space: nowrap;
}
.btn-primary {
  color: #04101c;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-teal));
  box-shadow: 0 8px 30px -8px rgba(0, 212, 255, .55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(0, 212, 255, .75); }
.btn-ghost {
  color: var(--text);
  border-color: var(--line-str);
  background: rgba(16, 26, 46, .45);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--c-cyan); color: var(--c-cyan); transform: translateY(-2px); }
.btn .arr { transition: transform .25s ease; font-family: var(--mono); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(5, 8, 15, .82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 40px -20px rgba(0, 0, 0, .9);
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(9, 13, 24, .6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: height .3s ease, opacity .3s ease;
  overflow: hidden;
}
.header.scrolled .topbar { height: 0; opacity: 0; }
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 38px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.topbar-inner a { color: var(--muted); transition: color .2s; }
.topbar-inner a:hover { color: var(--c-cyan); }
.topbar-right { display: flex; gap: 22px; align-items: center; }

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { display: block; flex: none; filter: drop-shadow(0 0 10px rgba(41, 205, 223, .35)); }
.brand__t { font-family: var(--font-display); font-size: 17px; font-weight: 400; color: var(--muted); white-space: nowrap; letter-spacing: .02em; }
.brand__t b { font-weight: 400; color: var(--text); }
.brand:hover .brand__t b { color: #ffffff; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .015em;
  color: var(--muted);
  border-radius: 10px;
  transition: color .2s ease, background-color .2s ease;
}
.nav a:hover { color: var(--text); background: rgba(140, 170, 220, .08); }
.nav a.active { color: var(--text); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}
.nav-cta { margin-left: 12px; padding: 11px 22px; font-size: 14px; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 0 11px;
  background: rgba(16, 26, 46, .6);
  border: 1px solid var(--line-str);
  border-radius: 12px;
  cursor: pointer;
}
.burger span { display: block; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s ease, opacity .3s ease; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(5, 8, 15, .96);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 100px 32px 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-size: 26px;
  font-weight: 700;
  padding: 10px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  transition: color .2s, padding-left .2s;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--text); padding-left: 8px; }
.mobile-menu .mm-contacts { margin-top: 26px; font-family: var(--mono); font-size: 13px; color: var(--dim); letter-spacing: .1em; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 46px) 0 84px;
  overflow: hidden;
  isolation: isolate;
}
#flow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 62% 50% at 20% 40%, rgba(5, 7, 13, .62), transparent 72%),
    linear-gradient(180deg, rgba(5,7,13,.42) 0%, rgba(5,7,13,.10) 32%, rgba(5,7,13,.22) 72%, var(--bg) 100%);
  pointer-events: none;
}

.hero-inner { position: relative; }
.hero h1 {
  font-size: clamp(38px, 5.8vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.03;
  margin: 24px 0 22px;
  max-width: 30ch;
}
.hero-lead {
  max-width: 640px;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 600;
  color: #e6ecf5;
  margin-bottom: 38px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 860px;
  margin-top: 46px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: rgba(9, 13, 24, .72);
  backdrop-filter: blur(8px);
  padding: 20px 24px;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat b + span {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}

/* CFD colorbar legend */
.colorbar {
  margin-top: 44px;
  width: min(420px, 100%);
  font-family: var(--mono);
  user-select: none;
}
.colorbar-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 7px;
}
.colorbar-strip {
  height: 6px;
  border-radius: 3px;
  background: var(--grad);
  box-shadow: 0 0 22px -4px rgba(0, 212, 255, .5);
}
.colorbar-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10px;
  color: var(--dim);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: hint 2.4s ease-in-out infinite;
}
.scroll-hint i {
  width: 1px; height: 34px;
  background: linear-gradient(180deg, var(--c-cyan), transparent);
}
@keyframes hint { 0%,100% { opacity: .5; transform: translate(-50%, 0); } 50% { opacity: 1; transform: translate(-50%, 6px); } }

/* ---------- sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-head { margin-bottom: 56px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-head h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: -0.025em;
  margin-top: 18px;
  max-width: 22ch;
}
.section-head .lead { max-width: 480px; color: var(--muted); font-size: 16px; font-weight: 600; }
.section-link {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-cyan);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(0, 212, 255, .3);
  padding-bottom: 4px;
  transition: gap .2s ease, color .2s ease;
}
.section-link:hover { gap: 14px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--panel) 0%, rgba(9, 13, 24, .6) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--line-str);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 212, 255, .12);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .35s ease;
}
.card:hover::before { opacity: 1; }

.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0f1c;
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease, filter .6s ease;
  filter: saturate(1.05);
}
.card:hover .card-media img { transform: scale(1.05); }
.card-media .tag {
  position: absolute;
  top: 12px; left: 12px;
  padding: 7px 13px;
  border-radius: 8px;
  background: rgba(5, 8, 15, .85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-str);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #ffffff;
}

.card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body h3 { font-size: 18px; letter-spacing: -0.01em; line-height: 1.35; }
.card-body p { color: var(--muted); font-size: 14.5px; flex: 1; }
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.chip {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  background: rgba(140, 170, 220, .05);
}
.card-link {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-cyan);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card-link .arr { transition: transform .25s; }
.card:hover .card-link .arr { transform: translateX(5px); }

/* project cards: result list */
.results { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.results li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--muted);
}
.results li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--grad);
}
.project-place {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- ART band ---------- */
.art-band {
  position: relative;
  padding: 130px 0;
  overflow: hidden;
  isolation: isolate;
}
.art-band img.bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.art-band .container { position: relative; z-index: 2; }
.art-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(5,7,13,.94) 8%, rgba(5,7,13,.55) 45%, rgba(5,7,13,.25) 100%),
              linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%);
}
.art-band h2 { font-size: clamp(30px, 3.6vw, 48px); margin: 18px 0 20px; max-width: 20ch; }
.art-band p { max-width: 520px; color: var(--muted); margin-bottom: 32px; }

/* ---------- team ---------- */
.team-card { text-align: left; }
.team-photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  background: var(--panel-2);
}
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.85) contrast(1.05);
  transition: filter .5s ease, transform .5s ease;
}
.card:hover .team-photo img { filter: saturate(1.05); transform: scale(1.03); }
.team-photo .initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 64px;
  letter-spacing: .1em;
  color: rgba(232, 238, 248, .35);
  background:
    radial-gradient(circle at 30% 25%, rgba(0, 212, 255, .16), transparent 55%),
    radial-gradient(circle at 75% 75%, rgba(255, 46, 136, .14), transparent 55%),
    var(--panel-2);
}
.team-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-cyan);
}
.team-card h3 { font-size: 20px; }
.team-facts { display: flex; flex-direction: column; gap: 7px; }
.team-facts li { font-size: 14px; color: var(--muted); padding-left: 16px; position: relative; }
.team-facts li::before { content: "—"; position: absolute; left: 0; color: var(--dim); }

/* ---------- publications ---------- */
.pub-list { border-top: 1px solid var(--line); }
.pub-item {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 26px;
  align-items: baseline;
  padding: 26px 12px;
  border-bottom: 1px solid var(--line);
  transition: background-color .25s ease, padding-left .25s ease;
}
.pub-item:hover { background: rgba(140, 170, 220, .05); padding-left: 20px; }
.pub-year { font-family: var(--mono); font-size: 15px; color: var(--c-cyan); }
.pub-title { font-size: 16px; font-weight: 600; line-height: 1.45; }
.pub-src { display: block; margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.pub-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-str);
  color: var(--muted);
  white-space: nowrap;
}
.pub-tag.vak { color: var(--c-teal); border-color: rgba(47, 230, 200, .35); }
.pub-tag.scopus { color: var(--c-pink); border-color: rgba(255, 107, 203, .35); }

/* ---------- CTA ---------- */
.cta-panel {
  position: relative;
  border-radius: 24px;
  padding: clamp(40px, 6vw, 80px);
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(0, 212, 255, .14), transparent 45%),
    radial-gradient(circle at 88% 90%, rgba(255, 46, 136, .13), transparent 45%),
    var(--panel);
  border: 1px solid var(--line-str);
  text-align: center;
}
.cta-panel h2 { font-size: clamp(28px, 3.4vw, 44px); margin-bottom: 18px; }
.cta-panel p { max-width: 560px; margin: 0 auto 36px; color: var(--muted); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.cta-contacts {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--muted);
}
.cta-contacts a { color: var(--c-cyan); border-bottom: 1px solid rgba(0,212,255,.3); transition: color .2s; }
.cta-contacts a:hover { color: var(--c-pink); }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 64px 0 30px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 320px; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color .2s; }
.footer ul a:hover { color: var(--c-cyan); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--dim);
}


/* ---------- video (full-bleed) ---------- */
.section-video { padding-bottom: 0; }
.video-full { margin: 0; }
.video-full video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}

/* ---------- publications by person ---------- */
.pub-person { margin-top: 48px; }
.pub-person:first-child { margin-top: 0; }
.pub-person h3 { font-size: 20px; margin-bottom: 18px; }
.pub-person .pub-role {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: -12px;
  margin-bottom: 18px;
}

/* ---------- service groups ---------- */
.group-h {
  font-size: 24px;
  color: var(--muted);
  margin: 64px 0 24px;
}
.section .group-h:first-of-type,
.container > .group-h:first-of-type { margin-top: 0; }
.other-svc { margin-top: 64px; }
.media-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  padding: 24px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
  background:
    radial-gradient(circle at 25% 20%, rgba(0, 212, 255, .10), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(255, 46, 136, .10), transparent 55%),
    var(--panel-2);
}
.media-ph span { border: 1px dashed var(--line-str); border-radius: 10px; padding: 10px 14px; }

/* ---------- extra articles ---------- */
.article { max-width: 900px; margin: 0 auto 70px; }
.article:last-child { margin-bottom: 0; }
.article h2 { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 22px; }
.article p { color: var(--muted); margin-bottom: 22px; }
.article-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.article-grid figure { margin: 0; }
.article-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.article-grid figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
}
@media (max-width: 720px) { .article-grid { grid-template-columns: 1fr; } }

/* ---------- project galleries ---------- */
.case-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 4px 24px 24px;
}
.case-gallery figure { margin: 0; }
.case-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0a0f1c;
}
.case-gallery--portrait img { aspect-ratio: 3 / 4; object-position: center top; }
@media (max-width: 520px) {
  .case-gallery { grid-template-columns: 1fr; padding: 4px 16px 16px; }
  .case-gallery--portrait img { aspect-ratio: 4 / 5; }
}

/* ---------- project process video ---------- */
.case-video {
  grid-column: 1 / -1;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #0a0f1c;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.case-video video {
  width: auto;
  height: min(520px, 62vw);
  max-width: 100%;
  display: block;
  border-radius: 8px;
  background: #000;
}
.case-video figcaption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: center;
}

/* ---------- inner pages ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 90px) 0 70px;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.page-hero #flow-canvas { z-index: -2; opacity: .55; }
.page-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(5,7,13,.6), rgba(5,7,13,.85) 75%, var(--bg));
}
.page-hero h1 { font-size: clamp(34px, 4.6vw, 60px); margin: 20px 0 18px; letter-spacing: -0.025em; }
.page-hero .lead { max-width: 680px; color: var(--muted); font-size: 16.5px; }
.page-hero .note {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-teal);
  border: 1px dashed rgba(47, 230, 200, .4);
  border-radius: 999px;
  padding: 8px 16px;
}
.page-hero .note i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-teal);
  box-shadow: 0 0 12px var(--c-teal);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: .4; } 50% { opacity: 1; } }

/* contacts form (client-side only, mailto fallback) */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 760px;
}
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  background: rgba(9, 13, 24, .8);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  padding: 14px 16px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  border-color: rgba(0, 212, 255, .55);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, .12);
}
.form-note { margin-top: 16px; font-size: 12.5px; color: var(--dim); max-width: 620px; }

/* ---------- reveal on scroll ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.2, .6, .2, 1), transform .8s cubic-bezier(.2, .6, .2, 1);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav a { padding: 10px 10px; font-size: 13.5px; }
}
@media (max-width: 900px) {
  .nav, .nav-cta { display: none; }
  .burger { display: flex; }
  .topbar-inner .topbar-left { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .colorbar { width: 100%; }
}
@media (max-width: 720px) {
  .cards, .cards.cols-2 { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .pub-item { grid-template-columns: 56px 1fr; gap: 14px; }
  .pub-item .pub-tag { grid-column: 2; justify-self: start; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .brand__t { font-size: 15px; }
  .brand__mark { width: 28px; height: 28px; }
  .scroll-hint { display: none; }
}

/* моно-подписи и метки оставляем обычными: полужирный только для основного текста */
.overline, .chip, .card-media .tag, .project-place, .team-role, .pub-year,
.colorbar-label, .colorbar-ticks, .scroll-hint, .topbar-inner, .footer h4,
.footer-bottom, .cta-contacts, .section-link, .card-link, .media-ph,
.page-hero .note, .mm-contacts, .case-video figcaption, .article-grid figcaption,
.field label { font-weight: 400; }

/* ---------- lightbox ---------- */
.card-media img, .case-gallery img, .article-grid img { cursor: zoom-in; }
.lb {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(3, 5, 10, .93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lb.open { display: flex; }
.lb__fig {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  max-width: 100vw;
  max-height: 100vh;
}
.lb__fig img {
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 110px);
  object-fit: contain;
  display: block;
  border-radius: 8px;
  background: #0a0f1c;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9);
  cursor: zoom-in;
}
.lb--zoom .lb__fig { overflow: auto; align-items: flex-start; }
.lb--zoom .lb__fig img { max-width: none; max-height: none; cursor: zoom-out; }
.lb__fig figcaption {
  display: flex;
  gap: 16px;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--muted);
  max-width: calc(100vw - 80px);
}
.lb__cnt { color: var(--dim); white-space: nowrap; }
.lb__x, .lb__nav {
  position: absolute;
  z-index: 2;
  background: rgba(16, 26, 46, .72);
  border: 1px solid var(--line-str);
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1;
  padding: 12px 16px;
  transition: color .2s, border-color .2s;
}
.lb__x:hover, .lb__nav:hover { color: var(--c-cyan); border-color: var(--c-cyan); }
.lb__x { top: 18px; right: 18px; }
.lb__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 720px) {
  .lb__prev { left: 8px; }
  .lb__next { right: 8px; }
  .lb__fig img { max-width: calc(100vw - 16px); }
  .lb__fig figcaption { max-width: calc(100vw - 32px); }
}
