/* ============================================================
   LumiLab v2 — Dark glass, identity-anchored
   Onest only. No italics. Canonical pink + mint accents.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: #0c0a1a;
}

body {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 14.5px;
  line-height: 1.55;
  color: #e6e3f0;
  background: #0c0a1a;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
  font-style: normal;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
i, em, cite, address, dfn, var { font-style: normal; }

::selection { background: rgba(244,143,177,0.28); color: #fff; }

/* ---- Tokens ---- */
:root {
  --c-ink:        #0c0a1a;
  --c-ink-deep:   #07060f;

  --c-text:       #e6e3f0;
  --c-text-soft:  rgba(230,227,240,0.62);
  --c-text-mute:  rgba(230,227,240,0.40);
  --c-text-faint: rgba(230,227,240,0.18);

  --c-pink:       #f48fb1;
  --c-mint:       #80cbc4;

  --c-line:       rgba(255,255,255,0.07);
  --c-line-2:     rgba(255,255,255,0.12);
  --c-line-3:     rgba(255,255,255,0.20);

  --c-glass:      rgba(255,255,255,0.03);
  --c-glass-2:    rgba(255,255,255,0.06);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --easing: cubic-bezier(.22,.61,.36,1);
  --easing-fast: cubic-bezier(.4,0,.2,1);

  --container: 1240px;
  --gutter: clamp(24px, 5vw, 72px);
  --section-v: clamp(56px, 8vw, 96px);
}

/* Ambient — flat canvas with subtle noise (offer-site style, uniform) */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient__mesh { display: none; }
.ambient__grain {
  position: absolute; inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}

/* Shards disabled — uniform bg */
.shards { display: none; }

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

/* Scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--c-pink), var(--c-mint));
  z-index: 100;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(244,143,177,0.4);
}

/* Shared inline link — animated draw underline */
.inline-link {
  position: relative;
  color: var(--c-text);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--c-text-mute);
  transition: color 0.22s var(--easing-fast), border-bottom-color 0.22s;
  white-space: nowrap;
  display: inline;
}
.inline-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: var(--c-pink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s var(--easing);
}
.inline-link:hover {
  color: var(--c-pink);
  border-bottom-color: transparent;
}
.inline-link:hover::after { transform: scaleX(1); }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px 0;
  transition: padding 0.3s var(--easing);
}
.header::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,10,26,0.55) 0%, rgba(12,10,26,0.25) 60%, rgba(12,10,26,0) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.3s var(--easing);
}
.header.is-scrolled { padding: 8px 0; }
.header.is-scrolled::after { opacity: 0; }
.header.is-scrolled::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(12,10,26,0.72);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  z-index: -1;
}
.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header__brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--c-text);
}
.header__logo {
  width: auto;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}
.header__wordmark {
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: -0.005em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.55);
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  overflow: hidden;
}
.header__wordmark .brand-word {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition:
    max-width 0.55s var(--easing),
    opacity 0.35s ease-out;
}
.header__brand:hover .header__wordmark .brand-word,
.header__brand.expanded .header__wordmark .brand-word {
  max-width: 80px;
  opacity: 1;
}
.header__nav {
  display: flex; align-items: center;
  gap: 22px;
}
.header__link {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--c-text-soft);
  transition: color 0.18s var(--easing-fast);
  position: relative;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.header__link:hover { color: var(--c-text); }
.header__link.is-active { color: var(--c-text); }
.header__link.is-active::after {
  content: '';
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: -10px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--c-pink);
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}
.header__burger span {
  display: block;
  width: 18px; height: 1.4px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform 0.25s;
}
.header__burger.is-open span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.header__burger.is-open span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0;
  z-index: 49;
  background: rgba(12,10,26,0.96);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s;
  display: grid; place-items: center;
}
.mobile-nav.is-open { opacity: 1; pointer-events: auto; }
.mobile-nav__list { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mobile-nav__link {
  font-size: 18px;
  font-weight: 400;
  color: var(--c-text);
  padding: 6px 12px;
  letter-spacing: -0.01em;
}

/* ============================================================
   Section base
   ============================================================ */
.section {
  position: relative;
  padding: var(--section-v) 0;
  isolation: isolate;
}
.section__header {
  max-width: var(--container);
  margin: 0 auto 56px;
  padding: 0 var(--gutter);
  position: relative; z-index: 2;
}
.section__header--center { text-align: center; }
.section__eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-mute);
  font-weight: 500;
  margin-bottom: 14px;
}
/* Scoped eyebrow colors — identity anchors */
.media .section__eyebrow    { color: var(--c-pink); font-size: 12.5px; font-weight: 600; }
.venture .section__eyebrow  { color: var(--c-mint); }
.offer .section__eyebrow    { color: var(--c-pink); }

/* Media teaser — main center hook */
.media__teaser {
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.05em;
  font-weight: 300;
}

.section__title {
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--c-text);
  font-style: normal;
}
.section__lead {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 50ch;
  color: var(--c-text-soft);
  font-weight: 400;
}

/* ============================================================
   SECTION BLOCK — semantic only, no visual frame
   ============================================================ */
.section__block {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(32px, 4vw, 64px) clamp(28px, 4vw, 56px);
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  z-index: 2;
}

/* Projects naslaivanie на hero — visible card frame */
.projects .section__block {
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(22,18,42,0.88), rgba(12,10,26,0.96));
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(16px) saturate(1.20);
  -webkit-backdrop-filter: blur(16px) saturate(1.20);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 30px 60px rgba(0,0,0,0.40);
  overflow: hidden;
}
.section__block .section__header {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 40px;
}
.section__block .projects__grid,
.section__block .venture__inner {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

/* Media block — full image-height presence */
.media .section__block {
  min-height: clamp(540px, 68vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Venture — content-fit */
.venture .section__block {
  min-height: 0;
  display: block;
}

/* ============================================================
   HERO — fullscreen video bg, text bottom-left, 3-line title
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: end start;
  padding: 0 var(--gutter) clamp(96px, 13vw, 140px);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.42;
}
.hero__bg::after { content: none; }
.hero__vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12,10,26,0.45) 0%, rgba(12,10,26,0) 30%, rgba(12,10,26,0) 65%, rgba(12,10,26,0.35) 100%);
}

/* Hero → Projects stylish seam */
.hero__seam {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 96px;
  background: linear-gradient(180deg, transparent 0%, var(--c-pink) 100%);
  opacity: 0.6;
  z-index: 5;
  pointer-events: none;
}
.hero__seam::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translate(-50%, 50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-pink);
  box-shadow: 0 0 16px rgba(244,143,177,0.7);
}
@media (prefers-reduced-motion: reduce) {
  .hero__seam { display: none; }
}
.hero__inner {
  position: relative;
  z-index: 3;
  max-width: 880px;
}
.hero__title {
  font-weight: 400;
  font-size: clamp(22px, 3.1vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--c-text);
  font-style: normal;
}
.hero__title-line {
  display: block;
  font-style: normal;
}
.hero__title-line--soft {
  color: var(--c-text-soft);
  font-weight: 300;
}
.hero__title-line--accent {
  background: linear-gradient(95deg, var(--c-text) 25%, var(--c-pink) 65%, var(--c-mint) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 400;
}

/* ============================================================
   PROJECTS — horizontal cards
   ============================================================ */
.projects {
  margin-top: -50px;
  padding-top: 0;
  position: relative;
  z-index: 5;
}
.projects__grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}
.project-card--wide { grid-column: span 1; }

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  align-items: stretch;
  min-height: 300px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #131032, #0a0822);
  border: 1px solid var(--c-line);
  isolation: isolate;
  perspective: 1200px;
  transform-style: preserve-3d;
  transition: transform 0.35s var(--easing), border-color 0.25s, box-shadow 0.35s;
}
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(140% 80% at 50% 0%, rgba(244,143,177,0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--easing);
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
}
.project-card[data-tone="navy"]::before,
.project-card[data-tone="ink"]::before {
  background: radial-gradient(140% 80% at 50% 0%, rgba(128,203,196,0.14), transparent 60%);
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-line-3);
  box-shadow: 0 30px 60px rgba(0,0,0,0.40);
}
.project-card:hover::before { opacity: 1; }

.project-card[data-tone="navy"] { background: linear-gradient(160deg, #131032, #0a0822); }
.project-card[data-tone="ink"]  { background: linear-gradient(160deg, #0e0a22, #08071a); }
.project-card[data-tone="amber"]{ background: linear-gradient(160deg, #181226, #0e0918); }
.project-card[data-tone="ruby"] { background: linear-gradient(160deg, #1a1024, #0f0716); }

.project-card__atmosphere {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.42;
  mix-blend-mode: screen;
  z-index: 0;
  transition: opacity 0.4s;
}
.project-card:hover .project-card__atmosphere { opacity: 0.65; }

.project-card::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 65%, rgba(7,6,15,0.25) 100%),
    radial-gradient(80% 60% at 100% 0%, transparent, rgba(7,6,15,0.42) 75%);
  z-index: 1;
  pointer-events: none;
}

.project-card__glass {
  position: relative;
  z-index: 2;
  margin: 28px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  padding: 22px;
  min-height: 240px;
  overflow: hidden;
}
.project-card__glass.no-shot {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.project-card__shot {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--r-sm);
  filter: brightness(0.72) saturate(0.65) contrast(0.96);
  box-shadow: 0 8px 22px rgba(0,0,0,0.40);
  transition: filter 0.4s var(--easing);
}
.project-card:hover .project-card__shot {
  filter: brightness(0.95) saturate(0.85) contrast(0.97);
  transform: scale(1.02);
}
.project-card__glass.no-shot .project-card__shot { display: none; }

.project-card__body {
  position: relative;
  z-index: 2;
  padding: 32px 34px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.project-card__title {
  font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--c-text);
  transition: transform 0.35s var(--easing);
}
.project-card:hover .project-card__title { transform: translateX(4px); }
.project-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  align-self: stretch;
}
.project-card__tg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
  transition: color 0.2s var(--easing-fast), transform 0.2s var(--easing-fast);
}
.project-card__tg svg {
  width: 18px;
  height: 18px;
  display: block;
}
.project-card__tg:hover {
  color: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}
.project-card__abbr {
  margin-top: -4px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-mute);
  font-weight: 500;
}
.project-card__desc {
  color: var(--c-text-soft);
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 36ch;
}
.project-card__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--c-text);
  align-self: flex-start;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--c-text-mute);
  transition: gap 0.2s var(--easing-fast), border-color 0.2s var(--easing-fast);
}
.project-card__more:hover {
  gap: 8px;
  border-bottom-color: var(--c-pink);
}

/* ============================================================
   MEDIA
   ============================================================ */
.media {
  isolation: isolate;
}
.media__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.55;
  z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
}
.media::before { content: none; }
.media .section__header { margin-bottom: 0; }

/* ============================================================
   VENTURE — asymmetric, picture-right, text-left
   ============================================================ */
.venture {
  isolation: isolate;
  padding: clamp(72px, 10vw, 120px) 0;
}
.venture__bg {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: min(60%, 720px);
  height: clamp(360px, 50vw, 560px);
  background-size: cover; background-position: center;
  opacity: 0.50;
  z-index: 0;
  -webkit-mask-image: radial-gradient(closest-side at 50% 50%, #000 0%, rgba(0,0,0,0.80) 35%, rgba(0,0,0,0.35) 70%, transparent 100%);
  mask-image: radial-gradient(closest-side at 50% 50%, #000 0%, rgba(0,0,0,0.80) 35%, rgba(0,0,0,0.35) 70%, transparent 100%);
}
.venture::before { content: none; }
.venture__inner {
  position: relative; z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.venture__title {
  font-weight: 400;
  font-size: clamp(56px, 8.5vw, 124px);
  line-height: 0.96;
  letter-spacing: -0.05em;
  color: var(--c-text);
  font-style: normal;
}
.venture__copy {
  margin-top: 28px;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.55;
  color: var(--c-text-soft);
  max-width: 52ch;
  font-weight: 400;
}

/* ============================================================
   OFFER — browser mockup preview
   ============================================================ */
.offer {
  isolation: isolate;
}
.offer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  position: relative;
  z-index: 2;
}
/* Offer title reuses .section__title — only margins override here */
.offer__title {
  margin-top: 12px;
  margin-bottom: 14px;
}
.offer__copy {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.55;
  color: var(--c-text-soft);
  max-width: 42ch;
  font-weight: 400;
}
.offer__link {
  display: inline-flex;
  margin-top: 22px;
  align-items: center;
}

.offer__preview {
  display: block;
  perspective: 1400px;
  transition: transform 0.5s var(--easing);
}
.offer__browser {
  border-radius: var(--r-md);
  background: linear-gradient(160deg, #161228, #0c0a1a);
  border: 1px solid var(--c-line-2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 30px 60px rgba(0,0,0,0.42);
  overflow: hidden;
  transform: rotateX(2deg) rotateY(-3deg);
  transform-origin: center center;
  transition: transform 0.6s var(--easing), box-shadow 0.6s;
}
.offer__preview:hover .offer__browser {
  transform: rotateX(0deg) rotateY(0deg) translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 40px 80px rgba(0,0,0,0.50);
}
.offer__browser-bar {
  display: flex; align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid var(--c-line);
}
.offer__dot { width: 10px; height: 10px; border-radius: 50%; }
.offer__dot--red    { background: #ff5f57; }
.offer__dot--yellow { background: #febc2e; }
.offer__dot--green  { background: #28c840; }
.offer__browser-url {
  margin-left: auto;
  margin-right: auto;
  padding: 3px 14px;
  background: rgba(0,0,0,0.30);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-pill);
  font-size: 11px;
  letter-spacing: -0.005em;
  color: var(--c-text-mute);
}
.offer__browser-body {
  position: relative;
  padding: 0;
  min-height: 340px;
  background: transparent;
  overflow: hidden;
}

/* Preview hero — mini-replica of lumilab.space hero */
.prev {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(24px, 3.5vw, 34px) clamp(20px, 3vw, 28px) clamp(22px, 3vw, 30px);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 110% 75% at 50% 50%,
    #1e1535 0%,
    #1a1030 15%,
    #150d26 30%,
    #110a1e 50%,
    #0e0a1a 65%,
    #0c0917 80%,
    #0a0815 100%);
}
.prev__glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -58%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(244,143,177,0.10) 0%, rgba(244,143,177,0.02) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.prev__unicorn {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: 60%;
  max-width: 360px;
  pointer-events: none;
  z-index: 1;
}
.prev__unicorn-img {
  width: 100%; height: auto;
  mix-blend-mode: screen;
  filter: hue-rotate(200deg) saturate(1.6) brightness(0.75);
  opacity: 0.42;
}
.prev__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  max-width: 100%;
}
.prev__logo-wrap { display: flex; align-items: center; justify-content: center; }
.prev__logo {
  width: clamp(70px, 14vw, 100px);
  height: auto;
  filter: drop-shadow(0 0 22px rgba(244,143,177,0.30));
  margin-bottom: 4px;
}
.prev__headline {
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #ffffff;
  display: inline-flex;
  align-items: baseline;
  gap: 0.2em;
}
.prev__typewriter {
  color: var(--c-pink);
  min-width: 3ch;
  display: inline-block;
  text-align: left;
}
.prev__cursor {
  color: var(--c-pink);
  animation: prev-blink 1s step-end infinite;
  font-weight: 300;
  margin-left: 1px;
}
@keyframes prev-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.prev__sub {
  font-size: 11px;
  color: rgba(255,255,255,0.40);
  font-weight: 300;
  letter-spacing: 0.005em;
  margin-top: 2px;
}
.prev__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
}
.prev__btn {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.prev__btn--glass {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.prev__btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.20);
}

/* ============================================================
   TOP BOARD — portrait cards
   ============================================================ */
.team__grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  position: relative; z-index: 2;
}
.team-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 24px;
  border-radius: var(--r-md);
  background: var(--c-glass);
  border: 1px solid var(--c-line);
  transition: border-color 0.22s var(--easing-fast), background 0.22s var(--easing-fast), transform 0.3s var(--easing);
}
.team-card:hover {
  border-color: var(--c-line-2);
  background: var(--c-glass-2);
  transform: translateY(-2px);
}
.team-card__portrait {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(244,143,177,0.28), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(128,203,196,0.20), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.10);
  display: grid; place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.team-card__initials {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--c-text);
  font-style: normal;
}
.team-card__body {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}
.team-card__name {
  font-weight: 500;
  font-size: 15.5px;
  letter-spacing: -0.015em;
  color: var(--c-text);
  line-height: 1.2;
}
.team-card__role {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-mute);
  font-weight: 500;
}
.team-card__past {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--c-text-soft);
}
.team-card__tags {
  margin-top: 2px;
  font-size: 12px;
  color: var(--c-text-mute);
  letter-spacing: 0.01em;
}
.team-card__link {
  margin-top: 12px;
  display: inline-flex; align-items: center; gap: 4px;
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--c-text);
  padding-bottom: 1px;
  border-bottom: 1px solid var(--c-text-mute);
  transition: gap 0.2s var(--easing-fast), border-color 0.2s var(--easing-fast);
}
.team-card__link:hover {
  gap: 7px;
  border-bottom-color: var(--c-pink);
}

/* ============================================================
   CONTACTS
   ============================================================ */
.contacts__list {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  position: relative; z-index: 2;
}
.contacts__item { border-bottom: none; }
.contacts__item:first-child { border-top: none; }
.contacts__link {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 26px 4px;
  transition: padding 0.3s var(--easing), color 0.2s var(--easing-fast);
}
.contacts__link:hover {
  padding-left: 14px;
  color: var(--c-text);
}
.contacts__channel {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-mute);
  font-weight: 500;
}
.contacts__value {
  font-weight: 500;
  font-size: clamp(16px, 1.6vw, 19px);
  letter-spacing: -0.015em;
  color: var(--c-text);
  transition: color 0.2s var(--easing-fast);
}
.contacts__arrow {
  font-size: 14px;
  color: var(--c-text-mute);
  transition: transform 0.22s var(--easing-fast), color 0.2s var(--easing-fast);
}
.contacts__link:hover .contacts__arrow {
  transform: translateX(6px);
  color: var(--c-text);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 36px 0 30px;
  position: relative;
  z-index: 1;
  border-top: none;
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}
.footer__brand {
  display: flex; align-items: center; gap: 8px;
}
.footer__logo {
  width: auto;
  height: 18px;
  object-fit: contain;
}
.footer__wordmark {
  font-weight: 500;
  font-size: 12px;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
}
.footer__link {
  font-size: 12px;
  color: var(--c-text-soft);
  transition: color 0.18s var(--easing-fast);
}
.footer__link:hover { color: var(--c-text); }
.footer__copy {
  font-size: 11.5px;
  color: var(--c-text-mute);
  letter-spacing: 0.02em;
}

/* (Projects header is plain — no sticky, no background) */

/* ============================================================
   FLOATING SHARDS — parallax depth layers behind blocks
   ============================================================ */
.shards {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.shards__item {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.shards__item--1 {
  width: 520px; height: 520px;
  top: 8%; left: -6%;
  background: radial-gradient(circle, rgba(244,143,177,0.14), transparent 70%);
}
.shards__item--2 {
  width: 460px; height: 460px;
  top: 48%; right: -8%;
  background: radial-gradient(circle, rgba(128,203,196,0.12), transparent 70%);
}
.shards__item--3 {
  width: 360px; height: 360px;
  top: 28%; left: 58%;
  background: radial-gradient(circle, rgba(244,143,177,0.08), transparent 70%);
}
.shards__item--4 {
  width: 420px; height: 420px;
  top: 76%; left: 18%;
  background: radial-gradient(circle, rgba(128,203,196,0.10), transparent 70%);
}

/* ============================================================
   3D TILT — base transition (JS sets transform inline)
   ============================================================ */
.project-card.is-tilt {
  transition: transform 0.12s var(--easing-fast), border-color 0.25s, box-shadow 0.35s;
}
.team-card.is-tilt {
  transition: transform 0.12s var(--easing-fast), border-color 0.22s, background 0.22s;
}

/* ============================================================
   SCROLL-TIED ACCENT — CSS var updated by JS each scroll tick
   ============================================================ */
:root {
  --scroll-pink: 1;
  --scroll-mint: 0.4;
}
.scroll-progress {
  background: linear-gradient(90deg,
    rgba(244,143,177, var(--scroll-pink)) 0%,
    rgba(128,203,196, var(--scroll-mint)) 100%);
}

/* ============================================================
   HERO REVEAL — line-by-line blur fade
   ============================================================ */
.hero__title .hero__title-line {
  opacity: 0;
  transform: translateY(0.4em);
  filter: blur(10px);
  transition:
    opacity 0.95s var(--easing),
    transform 0.95s var(--easing),
    filter 0.95s var(--easing);
  transition-delay: var(--line-delay, 0s);
}
.hero__title.is-revealed .hero__title-line {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* ============================================================
   REVEAL CHOREOGRAPHY — three variants for section moods
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--easing), transform 0.55s var(--easing);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal--from-left  { transform: translateX(-32px); }
.reveal--from-right { transform: translateX(32px); }
.reveal--scale      { transform: translateY(20px) scale(0.96); }
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__title .letter { opacity: 1; transform: none; transition: none; }
  .shards__item { display: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .project-card { grid-template-columns: 1fr; min-height: 0; }
  .project-card__glass { margin: 24px 24px 0; min-height: 220px; }
}
@media (max-width: 860px) {
  .header__nav { display: none; }
  .header__burger { display: flex; }
  .projects__grid { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr; }
  .hero { min-height: 80vh; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .offer__inner { grid-template-columns: 1fr; gap: 32px; }
  .offer__browser { transform: none; }
}
@media (max-width: 600px) {
  .contacts__link { grid-template-columns: 1fr auto; gap: 6px; }
  .contacts__channel { grid-column: 1 / -1; padding-bottom: 2px; }
  .team-card { grid-template-columns: 1fr; }
  .team-card__portrait { margin-bottom: 4px; }
}
