/* ============================================================
   Portfolio — Виталий Парк | Head of SMM
   Dark editorial with lime accent
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg-elev: #111111;
  --fg: #ede9df;
  --fg-2: rgba(237, 233, 223, 0.55);
  --fg-3: rgba(237, 233, 223, 0.32);
  --line: rgba(237, 233, 223, 0.12);
  --line-strong: rgba(237, 233, 223, 0.22);
  --accent: #c4ff3a;
  --accent-soft: rgba(196, 255, 58, 0.18);

  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="light"] {
  --bg: #f3f0e8;
  --bg-elev: #ebe6db;
  --fg: #16160f;
  --fg-2: rgba(22, 22, 15, 0.6);
  --fg-3: rgba(22, 22, 15, 0.35);
  --line: rgba(22, 22, 15, 0.12);
  --line-strong: rgba(22, 22, 15, 0.24);
  --accent: #6b6f1f;
  --accent-soft: rgba(107, 111, 31, 0.14);
}

/* override inline lime spans in light theme so text stays readable */
[data-theme="light"] [style*="rgb(195, 255, 59)"],
[data-theme="light"] [style*="rgb(195,255,59)"] {
  color: #6b6f1f !important;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--fg);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
  cursor: none;
  transition: background 0.45s var(--ease), color 0.45s var(--ease);
}

::selection { background: var(--accent); color: #0a0a0a; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: none; border: none; background: transparent; color: inherit; padding: 0; }

img { display: block; max-width: 100%; }

/* ---------- Custom cursor (terminal caret) ---------- */
.caret {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 18px;
  background: var(--accent);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  animation: blink 1.05s steps(1, end) infinite;
  transition: width 0.18s var(--ease), height 0.18s var(--ease), background 0.3s var(--ease);
  will-change: transform;
}
.caret.large {
  width: 56px;
  height: 56px;
  background: var(--accent);
  mix-blend-mode: normal;
  opacity: 0.85;
  animation: none;
}
.caret.text {
  width: 3px;
  height: 22px;
  background: var(--fg);
  mix-blend-mode: difference;
  animation: blink 1.05s steps(1, end) infinite;
}
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@media (hover: none) {
  body { cursor: auto; }
  .caret { display: none; }
  button, a { cursor: pointer; }
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.full {
  padding: 0 var(--gutter);
}

section {
  position: relative;
  padding: clamp(80px, 11vw, 160px) 0;
  border-top: 1px solid var(--line);
}
section:first-of-type { border-top: none; }

/* ---------- Typography ---------- */
.mono {
  font-family: var(--mono);
  font-feature-settings: "zero" 1, "ss01" 1;
  letter-spacing: -0.005em;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.025em;
  font-family: var(--mono);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-2);
  font-weight: 500;
}

.eyebrow .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  translate: 0 -2px;
}

.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  margin-bottom: 72px;
  align-items: start;
}
.section-head .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-2);
  padding-top: 14px;
}
.section-head h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  max-width: 18ch;
}

.text-body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg);
  text-wrap: pretty;
}
.text-body p + p { margin-top: 1em; }
.text-body em {
  font-style: normal;
  color: var(--fg-2);
  font-size: 0.92em;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  background: linear-gradient(to bottom, var(--bg) 60%, transparent);
  transition: padding 0.3s var(--ease);
}
.nav.scrolled {
  padding: 12px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-brand .mark {
  width: 14px;
  height: 14px;
  background: var(--accent);
  display: inline-block;
}
.nav-links {
  display: flex;
  gap: 28px;
  color: var(--fg-2);
}
.nav-links a {
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav-links a .idx {
  color: var(--fg-3);
  margin-right: 6px;
  font-size: 10px;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--fg);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--accent);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--fg-2);
}
.nav-right .status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  translate: 0 -1px;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.theme-toggle {
  position: relative;
  width: 58px;
  height: 28px;
  flex: none;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-elev);
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}
.theme-toggle:hover { border-color: var(--fg-2); }
.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.theme-toggle .tt-knob {
  position: absolute;
  top: 50%;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  translate: 28px -50%;
  transition: translate 0.34s var(--ease);
}
[data-theme="light"] .theme-toggle .tt-knob { translate: 0 -50%; }
.theme-toggle .tt-icon {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  translate: 0 -50%;
  pointer-events: none;
  transition: color 0.34s var(--ease);
}
.theme-toggle .tt-sun { left: 7px; color: var(--fg-3); }
.theme-toggle .tt-moon { right: 7px; color: var(--bg); }
[data-theme="light"] .theme-toggle .tt-sun { color: var(--bg); }
[data-theme="light"] .theme-toggle .tt-moon { color: var(--fg-3); }

@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: 140px;
  padding-bottom: 0;
  border-top: none;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero > .container { width: 100%; min-width: 0; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: end;
}

.hero-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-2);
  display: flex;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.hero-meta .sep { color: var(--fg-3); }

.hero h1 {
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.88;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease);
}
.hero.in h1 .line > span { transform: translateY(0); }
.hero h1 .accent { color: var(--accent); }

.hero-sub {
  font-family: var(--sans);
  font-size: clamp(18px, 1.7vw, 22px);
  color: var(--fg);
  max-width: 32ch;
  line-height: 1.45;
  margin-top: 0;
}
.hero-sub .em-line {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-2);
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  letter-spacing: 0.02em;
}

.hero-portrait {
  position: relative;
  align-self: end;
  aspect-ratio: 4 / 5;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  overflow: hidden;
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  filter: grayscale(0.18) contrast(1.05);
  mix-blend-mode: normal;
}
.hero-portrait::after {
  content: "vs / 26";
  position: absolute;
  bottom: 14px;
  right: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.hero-portrait .label {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--fg-2);
  text-transform: uppercase;
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  margin-top: 96px;
  padding-bottom: 56px;
  align-items: end;
}

.hero-ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  margin-top: 64px;
  position: relative;
}
.hero-ticker .track {
  display: flex;
  gap: 80px;
  padding: 28px 0;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--fg-2);
  white-space: nowrap;
  animation: ticker 38s linear infinite;
}
.hero-ticker .track span .accent { color: var(--accent); }
.hero-ticker .track span .num { color: var(--fg); font-size: 18px; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 14px 22px;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s var(--ease);
  color: var(--fg);
  background: transparent;
}
.btn .arrow {
  width: 14px;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: width 0.25s var(--ease);
}
.btn .arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover { border-color: var(--fg); }
.btn:hover .arrow { width: 28px; }
.btn.primary {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
}
.btn.primary:hover { background: transparent; color: var(--accent); }

.hero-stats {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.hero-stats .stat {
  background: var(--bg);
  padding: 24px 22px 22px;
  position: relative;
}
.hero-stats .stat .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--fg-2);
  text-transform: uppercase;
}
.hero-stats .stat .v {
  font-family: var(--mono);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  margin-top: 18px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stats .stat .v .accent { color: var(--accent); }
.hero-stats .stat .d {
  font-size: 12px;
  color: var(--fg-2);
  margin-top: 10px;
  line-height: 1.4;
  font-family: var(--sans);
}

@media (max-width: 880px) {
  .hero-grid, .hero-bottom { grid-template-columns: 1fr; gap: 36px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-portrait { max-width: 320px; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 80px;
  align-items: start;
}
.about-text {
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 400;
  color: var(--fg);
  text-wrap: pretty;
  max-width: 24ch;
}
.about-text em {
  font-style: normal;
  font-size: 14px;
  font-family: var(--mono);
  color: var(--fg-2);
  line-height: 1.5;
  display: block;
  margin-top: 28px;
  max-width: 56ch;
  letter-spacing: 0.005em;
}
.about-text .pull {
  color: var(--accent);
}

.about-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.philo-card {
  border: 1px solid var(--line);
  padding: 28px 28px 26px;
  position: relative;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.philo-card:hover { border-color: var(--line-strong); background: var(--bg-elev); }
.philo-card .n {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--fg-3);
  position: absolute;
  top: 22px;
  right: 24px;
}
.philo-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.philo-card p {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--fg-2);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.skill {
  background: var(--bg);
  padding: 36px 28px 32px;
  position: relative;
  transition: background 0.3s var(--ease);
  overflow: hidden;
}
.skill:hover { background: var(--bg-elev); }
.skill .n {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--fg-3);
}
.skill h4 {
  font-size: 18px;
  margin-top: 30px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  line-height: 1.18;
}
.skill p {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--fg-2);
  margin: 0;
  line-height: 1.5;
}
.skill::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}
.skill:hover::after { width: 100%; }

@media (max-width: 1000px) { .skills-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .skills-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CASES
   ============================================================ */
.case {
  margin-top: 120px;
}
.case:first-of-type { margin-top: 0; }

.case-meta {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.case-meta .left {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-2);
  letter-spacing: 0.08em;
}
.case-meta .left .tag {
  display: inline-block;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  margin-top: 14px;
  font-size: 10px;
}
.case-title {
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.case-title .accent { color: var(--accent); }
.case-sub {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--fg-2);
  margin-top: 18px;
  letter-spacing: 0.005em;
}

/* ---- Minzifra (deep) ---- */
.mz-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  margin-bottom: 80px;
  align-items: start;
}
.mz-hero .lede {
  font-family: var(--sans);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.35;
  color: var(--fg);
  max-width: 32ch;
}
.mz-hero .lede em {
  color: var(--fg-2);
  font-style: normal;
  display: block;
  margin-top: 24px;
  font-size: 14px;
  font-family: var(--mono);
  line-height: 1.5;
}

.mz-headline-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.mz-headline-stats .s {
  background: var(--bg);
  padding: 26px 22px 22px;
}
.mz-headline-stats .s .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--fg-2); text-transform: uppercase; }
.mz-headline-stats .s .v { font-family: var(--mono); font-size: 38px; margin-top: 16px; line-height: 1; letter-spacing: -0.02em; }
.mz-headline-stats .s .v .accent { color: var(--accent); }
.mz-headline-stats .s .d { font-size: 12px; color: var(--fg-2); margin-top: 10px; line-height: 1.4; }

/* timeline */
.timeline {
  border-top: 1px solid var(--line-strong);
  margin-top: 24px;
}
.tl-row {
  display: grid;
  grid-template-columns: 180px 1fr 1.5fr;
  gap: 48px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.tl-row .step {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-2);
}
.tl-row .step .num {
  display: block;
  font-size: 42px;
  color: var(--fg);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.tl-row .step.active .num { color: var(--accent); }
.tl-row h4 {
  font-size: clamp(22px, 2.3vw, 30px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 0;
}
.tl-row .body {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.55;
}
.tl-row .body strong {
  color: var(--fg);
  font-weight: 500;
}
.tl-row .body p { margin: 0 0 10px; }
.tl-row .body p:last-child { margin-bottom: 0; }

/* network grid (5 communities) */
.network {
  margin-top: 72px;
}
.network h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.network .desc {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-2);
  margin-bottom: 32px;
}
.network-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.community {
  border: 1px solid var(--line);
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  min-height: 240px;
}
.community:hover { border-color: var(--line-strong); background: var(--bg-elev); }
.community.lead {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--bg));
}
.community.lead:hover { background: color-mix(in srgb, var(--accent) 10%, var(--bg)); }
.community .badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}
.community .logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-elev);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.community .logo img { width: 100%; height: 100%; object-fit: contain; }
.community .logo.text {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.community .name {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--fg);
  letter-spacing: -0.005em;
  line-height: 1.25;
  flex-grow: 1;
}
.community .sub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: -10px;
}
.community .count {
  font-family: var(--mono);
  font-size: 32px;
  color: var(--fg);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.community.lead .count { color: var(--accent); }
.community .count-sub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

@media (max-width: 1100px) { .network-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .network-grid { grid-template-columns: repeat(2, 1fr); } }

.tg-line {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-2);
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.tg-line strong { color: var(--fg); font-weight: 500; }

/* proof points */
.proof {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.proof .p {
  background: var(--bg);
  padding: 28px;
}
.proof .p .n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.proof .p h5 {
  font-size: 17px;
  margin-top: 18px;
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}
.proof .p p {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--fg-2);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 880px) {
  .mz-hero, .tl-row { grid-template-columns: 1fr; gap: 24px; }
  .tl-row { padding: 28px 0; }
  .mz-headline-stats { grid-template-columns: 1fr; }
  .proof { grid-template-columns: 1fr; }
}

/* ---- Other cases (compact) ---- */
.case-block {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
  margin-top: 56px;
}
.case-block .info {}
.case-block h3 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 500;
}
.case-block .role {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-top: 14px;
  margin-bottom: 24px;
}
.case-block .desc {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.55;
  margin-bottom: 20px;
}
.case-block .desc strong { color: var(--fg); font-weight: 500; }
.case-block ul.mini-stats {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.case-block ul.mini-stats li {
  background: var(--bg);
  padding: 18px 18px 16px;
}
.case-block ul.mini-stats .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--fg-2); text-transform: uppercase; }
.case-block ul.mini-stats .v { font-family: var(--mono); font-size: 26px; margin-top: 10px; line-height: 1; }
.case-block ul.mini-stats .v .accent { color: var(--accent); }

/* Visuals — gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery .tile {
  aspect-ratio: 1;
  background: var(--bg-elev);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease);
}
.gallery .tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
}
.gallery .tile:hover { border-color: var(--accent); }
.gallery .tile:hover img { transform: scale(1.04); }
.gallery .tile .lab {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg);
  letter-spacing: 0.08em;
  background: rgba(10,10,10,0.7);
  padding: 4px 8px;
  text-transform: uppercase;
}

.gallery.wide { grid-template-columns: repeat(4, 1fr); }
.gallery.tall .tile { aspect-ratio: 9 / 16; }

@media (max-width: 880px) {
  .case-block { grid-template-columns: 1fr !important; gap: 32px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery.wide { grid-template-columns: repeat(2, 1fr); }
}

/* Avangard story (kontakt blocks) */
.avg-headline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 40px;
}
.avg-headline .lede {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  max-width: 26ch;
}
.avg-headline .lede .pull { color: var(--accent); }

.avg-results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 40px;
}
.avg-results .r {
  background: var(--bg);
  padding: 24px 20px;
}
.avg-results .r .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--fg-2); text-transform: uppercase; }
.avg-results .r .v { font-family: var(--mono); font-size: 28px; margin-top: 14px; line-height: 1; letter-spacing: -0.02em; }
.avg-results .r .v .accent { color: var(--accent); }
.avg-results .r .d { font-size: 12px; color: var(--fg-2); margin-top: 8px; line-height: 1.45; }

@media (max-width: 880px) {
  .avg-headline { grid-template-columns: 1fr; gap: 24px; }
  .avg-results { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   STACK
   ============================================================ */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.stack-col {
  padding: 36px 32px 36px 0;
  border-bottom: 1px solid var(--line);
}
.stack-col:not(:last-child) { border-right: 1px solid var(--line); padding-right: 32px; }
.stack-col:not(:first-child) { padding-left: 32px; padding-right: 32px; }
.stack-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fg-2);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.stack-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stack-col li {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--fg);
  letter-spacing: -0.005em;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.stack-col li::before {
  content: "→";
  color: var(--accent);
  font-size: 13px;
}
@media (max-width: 880px) {
  .stack-grid { grid-template-columns: 1fr; }
  .stack-col { padding: 24px 0 !important; border-right: none !important; }
}

/* ============================================================
   WORK
   ============================================================ */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.work-col {
  background: var(--bg);
  padding: 36px 36px 40px;
}
.work-col .h {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.work-col.yes .h::before { content: ""; width: 8px; height: 8px; background: var(--accent); display: inline-block; border-radius: 50%; }
.work-col.no .h::before { content: ""; width: 8px; height: 8px; border: 1px solid var(--fg-3); display: inline-block; border-radius: 50%; }
.work-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.work-col li {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--fg);
  line-height: 1.45;
  padding-left: 22px;
  position: relative;
}
.work-col.yes li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-family: var(--mono);
}
.work-col.no li::before {
  content: "–";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--fg-3);
  font-family: var(--mono);
}

@media (max-width: 880px) { .work-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACTS
   ============================================================ */
.contact {
  border-top: 1px solid var(--line);
}
.contact-headline {
  font-size: clamp(56px, 10vw, 156px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin-bottom: 48px;
}
.contact-headline .accent { color: var(--accent); }
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: end;
}
.contact-list {
  display: flex;
  flex-direction: column;
}
.contact-row {
  display: grid;
  grid-template-columns: 140px 1fr 24px;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: center;
  font-family: var(--mono);
  font-size: 17px;
  transition: padding-left 0.3s var(--ease);
}
.contact-row:last-child { border-bottom: 1px solid var(--line); }
.contact-row:hover { padding-left: 14px; }
.contact-row .l { color: var(--fg-2); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.contact-row .v { color: var(--fg); }
.contact-row:hover .v { color: var(--accent); }
.contact-row .arr { color: var(--fg-3); transition: transform 0.3s var(--ease); }
.contact-row:hover .arr { color: var(--accent); transform: translateX(6px); }

.cat-card {
  border: 1px solid var(--line);
  padding: 28px 28px 0;
  position: relative;
  background: var(--bg-elev);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
}
.cat-card .lab {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--fg-2);
  text-transform: uppercase;
}
.cat-card h4 {
  font-size: 22px;
  margin-top: 14px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.cat-card p {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--fg-2);
  margin: 10px 0 0;
  line-height: 1.5;
  max-width: 30ch;
}
.cat-art {
  margin-top: auto;
  position: relative;
  height: 60%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.cat-art svg {
  width: 78%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 24px rgba(196,255,58,0.04));
}

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-row { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--line);
  padding: 36px var(--gutter) 24px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-2);
  letter-spacing: 0.06em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
footer .lhs { display: flex; gap: 28px; flex-wrap: wrap; }
footer .accent { color: var(--accent); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
[data-reveal-delay="5"] { transition-delay: 0.40s; }
[data-reveal-delay="6"] { transition-delay: 0.48s; }

/* counters animate in */
.count-num { display: inline-block; }

/* ============================================================
   VIDEO PRODUCTION (case 04.2 sub-block)
   ============================================================ */
.vid-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.vid-stats .vs {
  background: var(--bg);
  padding: 22px 22px 20px;
  transition: background 0.3s var(--ease);
}
.vid-stats .vs:hover { background: var(--bg-elev); }
.vid-stats .vs .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--fg-2);
  text-transform: uppercase;
}
.vid-stats .vs .v {
  font-family: var(--mono);
  font-size: 30px;
  margin-top: 14px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.vid-stats .vs .v .accent { color: var(--accent); }
.vid-stats .vs .d {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--fg-2);
  margin-top: 8px;
  line-height: 1.4;
}

/* mockups iphone + laptop */
.vid-mockups {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 12px;
  align-items: stretch;
  background:
    radial-gradient(circle at 30% 40%, color-mix(in srgb, var(--accent) 8%, transparent) 0%, transparent 50%),
    var(--bg-elev);
  border: 1px solid var(--line);
  padding: 8px;
  position: relative;
  overflow: hidden;
}
.vid-mockups::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.35;
  pointer-events: none;
  mask-image: linear-gradient(to bottom right, black, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom right, black, transparent 80%);
}
.vid-mockups figure {
  margin: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 18px 54px;
  z-index: 2;
  min-width: 0;
}
.vid-mockups figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.6s var(--ease);
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.55));
}
.vid-mockups figure:hover img { transform: translateY(-4px) scale(1.015); }
.mk-laptop { transform: translateX(-14%); }
.vid-mockups .mk-laptop img { width: 142%; }
.vid-mockups figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  z-index: 3;
  white-space: nowrap;
  overflow: hidden;
}
.vid-mockups figcaption .l,
.vid-mockups figcaption .r {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.vid-mockups figcaption .l { color: var(--accent); text-transform: uppercase; }
.vid-mockups figcaption .r { color: var(--fg-2); text-align: right; }

@media (max-width: 880px) {
  .vid-mockups { grid-template-columns: 1fr; }
  .vid-mockups figure { padding: 24px 14px 54px; }
  .mk-laptop { transform: none; }
  .vid-mockups .mk-laptop img { width: 100%; }
}

/* visual showcase 3 columns */
.vid-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 0.85fr 0.85fr 1.3fr;
  gap: 12px;
  align-items: stretch;
}
.vid-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  background: var(--bg-elev);
  transition: border-color 0.3s var(--ease);
}
.vid-grid figure:hover { border-color: var(--accent); }
.vid-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.vid-grid figure:hover img { transform: scale(1.04); }
.vid-short { aspect-ratio: 9 / 16; }
.vid-stories { aspect-ratio: 9 / 16; }
.vid-stories img { object-position: 50% 50%; }
.vid-vk { aspect-ratio: 9 / 16; }
.vid-vk img { object-position: 50% 30%; }
.vid-grid figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(10,10,10,0.82);
  padding: 5px 8px;
  text-transform: uppercase;
  max-width: calc(100% - 20px);
}

/* analytics 2 columns */
.vid-analytics {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
}
.vid-analytics figure {
  margin: 0;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  background: var(--bg-elev);
  transition: border-color 0.3s var(--ease);
}
.vid-analytics figure:hover { border-color: var(--accent); }
.vid-analytics img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  display: block;
  transition: transform 0.6s var(--ease);
}
.vid-analytics figure:nth-child(1) { aspect-ratio: 16 / 9; }
.vid-analytics figure:nth-child(2) { aspect-ratio: 16 / 13; }
.vid-analytics figure:hover img { transform: scale(1.02); }
.vid-analytics figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(10,10,10,0.82);
  padding: 5px 9px;
  text-transform: uppercase;
}

@media (max-width: 880px) {
  .vid-grid { grid-template-columns: 1fr 1fr; }
  .vid-vk { grid-column: span 2; aspect-ratio: 16/9; }
  .vid-analytics { grid-template-columns: 1fr; }
  .vid-analytics figure:nth-child(1) { aspect-ratio: 16/9; }
}

/* ============================================================
   FORUM PHOTOS (case 04.3)
   ============================================================ */
.forum-hero {
  margin: 0;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  background: var(--bg-elev);
  aspect-ratio: 4 / 5;
  max-height: 520px;
  align-self: start;
  transition: border-color 0.3s var(--ease);
}
.forum-hero:hover { border-color: var(--accent); }
.forum-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transition: transform 0.8s var(--ease);
}
.forum-hero:hover img { transform: scale(1.03); }
.forum-hero figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg);
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent 95%);
  text-transform: uppercase;
}
.forum-hero .l { color: var(--accent); }
.forum-hero .r { color: var(--fg-2); text-transform: none; letter-spacing: 0.02em; }

/* row of 5 forum photos */
.forum-row {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.forum-row figure {
  margin: 0;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  background: var(--bg-elev);
  aspect-ratio: 4 / 5;
  transition: border-color 0.3s var(--ease);
}
.forum-row figure:hover { border-color: var(--accent); }
.forum-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.forum-row figure:hover img { transform: scale(1.05); }
.forum-row figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(10,10,10,0.78);
  padding: 5px 8px;
  text-transform: uppercase;
}

@media (max-width: 880px) {
  .forum-hero { max-height: none; }
  .forum-row { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   SB MASCOTS BLOCK + LO-FI PLAYER
   ============================================================ */
.sb-section {
  margin-top: 96px;
  position: relative;
}
.sb-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}
.sb-h {
  font-size: clamp(36px, 5.4vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin-top: 14px;
}
.sb-h .accent { color: var(--accent); }
.sb-desc {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.55;
  max-width: 56ch;
}
.sb-desc p { margin: 0 0 14px; }
.sb-desc strong { color: var(--fg); font-weight: 500; }

/* hero split */
.sb-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.sb-hero {
  margin: 0;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-elev);
}
.sb-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transition: transform 0.8s var(--ease);
}
.sb-hero:hover img { transform: scale(1.03); }
.sb-hero figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg);
  background: linear-gradient(to top, rgba(0,0,0,0.78), transparent 90%);
  text-transform: uppercase;
}
.sb-hero .cap-l { color: var(--accent); }

.sb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}
.sb-tile {
  margin: 0;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  background: var(--bg-elev);
  aspect-ratio: 1;
  transition: border-color 0.3s var(--ease);
}
.sb-tile:hover { border-color: var(--accent); }
.sb-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.sb-tile:hover img { transform: scale(1.05); }
.sb-tile figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg);
  background: rgba(10,10,10,0.78);
  padding: 6px 10px;
  letter-spacing: 0.06em;
  max-width: calc(100% - 24px);
}
.sb-tile figcaption .t { color: var(--accent); text-transform: uppercase; }
.sb-tile figcaption .d { color: var(--fg-2); font-size: 11px; line-height: 1.3; text-transform: none; }

@media (max-width: 880px) {
  .sb-head { grid-template-columns: 1fr; gap: 24px; }
  .sb-split { grid-template-columns: 1fr; }
  .sb-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- LO-FI PLAYER ---- */
.lofi {
  margin-top: 12px;
  position: relative;
}
.lofi-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 14%, color-mix(in srgb, var(--accent) 9%, transparent) 0%, transparent 38%),
    var(--bg-elev);
  overflow: hidden;
  position: relative;
}
.lofi-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.4;
  pointer-events: none;
  mask-image: linear-gradient(to bottom right, black, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom right, black, transparent 80%);
}
.lofi-meta {
  padding: 40px 40px 36px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid var(--line);
}
.lofi-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--fg-2);
  text-transform: uppercase;
}
.lofi-title {
  font-family: var(--mono);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0;
}
.lofi-title .accent { color: var(--accent); }
.lofi-quote {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.5;
  max-width: 36ch;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}
.lofi-now {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  position: relative;
  z-index: 2;
}
.lofi-now .now-l {
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lofi-now .now-t {
  font-size: 22px;
  margin-top: 8px;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.lofi-now .now-time {
  font-size: 12px;
  color: var(--fg-2);
  margin-top: 8px;
  letter-spacing: 0.04em;
}
.lofi-progress {
  height: 4px;
  background: var(--line);
  margin-top: 14px;
  position: relative;
  overflow: hidden;
  cursor: none;
}
.lofi-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--accent);
  transition: width 0.12s linear;
}
.lofi-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.lofi-btn, .lofi-play {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 14px;
  padding: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
}
.lofi-btn:hover { border-color: var(--fg); }
.lofi-play {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0a;
  width: 54px;
  height: 54px;
  font-size: 16px;
}
.lofi-play:hover { background: transparent; color: var(--accent); }

.lofi-list {
  padding: 32px 36px 28px;
  position: relative;
  z-index: 2;
}
.lofi-list-head {
  display: grid;
  grid-template-columns: 26px 1fr 80px;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.lofi-list-head .lofi-mood { text-align: right; }
.lofi-tracks {
  list-style: none;
  padding: 0;
  margin: 0;
}
.lofi-tracks li {
  display: grid;
  grid-template-columns: 26px 1fr 80px 24px;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 14px;
  color: var(--fg);
  transition: padding-left 0.25s var(--ease), color 0.25s var(--ease);
  cursor: none;
}
.lofi-tracks li:hover { padding-left: 8px; }
.lofi-tracks li .n { color: var(--fg-3); font-size: 11px; letter-spacing: 0.1em; }
.lofi-tracks li .m { color: var(--fg-2); font-size: 11px; text-align: right; letter-spacing: 0.06em; }
.lofi-tracks li .p { color: var(--fg-3); text-align: right; font-size: 11px; transition: color 0.2s var(--ease); }
.lofi-tracks li:hover .p { color: var(--accent); }
.lofi-tracks li.playing { color: var(--accent); }
.lofi-tracks li.playing .p { color: var(--accent); font-size: 0; }
.lofi-tracks li.playing .p::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 10px;
  background: var(--accent);
  margin-right: 4px;
  animation: eq 0.6s ease-in-out infinite alternate;
}
.lofi-tracks li.playing .p::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 14px;
  background: var(--accent);
  margin-left: 2px;
  animation: eq 0.7s 0.15s ease-in-out infinite alternate;
}
@keyframes eq {
  from { transform: scaleY(0.3); }
  to   { transform: scaleY(1); }
}
.lofi-tracks li.playing .n,
.lofi-tracks li.playing .m { color: var(--accent); }
.lofi-tracks li.playing .p span { display: none; }
.lofi-foot {
  margin-top: 14px;
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.08em;
}

@media (max-width: 880px) {
  .lofi-card { grid-template-columns: 1fr; }
  .lofi-meta { border-right: none; border-bottom: 1px solid var(--line); padding: 28px 24px; }
  .lofi-list { padding: 24px; }
  .lofi-list-head, .lofi-tracks li { grid-template-columns: 24px 1fr 60px 20px; gap: 10px; }
  .lofi-list-head .lofi-mood, .lofi-tracks li .m { font-size: 10px; }
}

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.55s var(--ease);
}
.preloader.pl-hide {
  opacity: 0;
  pointer-events: none;
}
.pl-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 24px;
}
.pl-cat {
  width: clamp(124px, 28vw, 172px);
  height: auto;
  color: var(--fg);
  filter: drop-shadow(0 0 34px rgba(196, 255, 58, 0.06));
  animation: pl-bob 2.7s var(--ease) infinite;
}
.pl-eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: pl-blink 3.6s var(--ease) infinite;
}
.pl-track {
  position: relative;
  width: clamp(150px, 42vw, 210px);
  height: 3px;
  background: var(--line);
  overflow: hidden;
}
.pl-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 38%;
  background: var(--accent);
  animation: pl-slide 1.25s var(--ease) infinite;
}
.pl-text {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--fg-2);
  text-align: center;
  min-height: 1.5em;
  max-width: 32ch;
  transition: opacity 0.18s var(--ease);
}
.pl-text.pl-swap { opacity: 0; }

@keyframes pl-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes pl-blink {
  0%, 90%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.08); }
}
@keyframes pl-slide {
  0% { left: -42%; }
  100% { left: 104%; }
}
@media (prefers-reduced-motion: reduce) {
  .pl-cat, .pl-eye { animation: none; }
  .pl-fill { animation-duration: 2.6s; }
  .preloader { transition: none; }
}

/* ============================================================
   MOBILE REFINEMENTS
   ============================================================ */
@media (max-width: 760px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 44px;
  }
  .section-head .num { padding-top: 0; }
  .case-meta {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .case { margin-top: 80px; }
  #stack .section-head h2,
  .sb-h { font-size: clamp(30px, 7.6vw, 46px) !important; }
}
@media (max-width: 560px) {
  .nav-right .status { display: none; }
}
