/* ============================================================
   PROJECT PAGES — shared scaffolding
   Each project page extends styles.css and overrides accents via
   a body class (.proj-2sky, .proj-neosim, ...). Adds layouts for
   hero, mock UI, infrastructure stack, partnership channels, and
   the back/next nav.
   ============================================================ */

/* ---------- Accent overrides ---------- */
body.proj-2sky {
  --accent: #3aa0ff;
  --accent-soft: #00ffa3;
  --accent-deep: #1a5fa6;
  --plasma: #00ffa3;
  --glow: #b8f6e2;
  --grid-line: rgba(58, 160, 255, 0.1);
}
body.proj-2sky ::selection {
  background: rgba(58, 160, 255, 0.3);
  color: #fff;
}

body.proj-neosim {
  --accent: #168dff;
  --accent-soft: #3ee0a2;
  --accent-deep: #075aa6;
  --plasma: #3ee0a2;
  --glow: #d9ecff;
  --grid-line: rgba(22, 141, 255, 0.12);
}
body.proj-neosim ::selection {
  background: rgba(22, 141, 255, 0.32);
  color: #fff;
}

body.proj-2skyventures {
  --accent: #8b7fff;
  --accent-soft: #f2c66d;
  --accent-deep: #4638c8;
  --plasma: #f2c66d;
  --glow: #fff1c4;
  --grid-line: rgba(139, 127, 255, 0.12);
}
body.proj-2skyventures ::selection {
  background: rgba(139, 127, 255, 0.34);
  color: #fff;
}

body.proj-dovmant {
  --accent: #d7b7ff;
  --accent-soft: #7dd3fc;
  --accent-deep: #6a5cff;
  --plasma: #7dd3fc;
  --glow: #f4e8ff;
  --grid-line: rgba(215, 183, 255, 0.12);
}
body.proj-dovmant ::selection {
  background: rgba(215, 183, 255, 0.34);
  color: #fff;
}

body.media-page {
  --accent: #d7b7ff;
  --accent-soft: #7dd3fc;
  --accent-deep: #6a5cff;
  --plasma: #7dd3fc;
  --glow: #f4e8ff;
  --grid-line: rgba(215, 183, 255, 0.12);
}
body.media-page ::selection {
  background: rgba(215, 183, 255, 0.34);
  color: #fff;
}

body.proj-2sky,
body.proj-neosim,
body.proj-2skyventures,
body.proj-dovmant,
body.media-page {
  --case-hero-title: clamp(38px, 5.2vw, 76px);
  --case-hero-title-ru: clamp(32px, 4.8vw, 64px);
  --case-section-title: clamp(28px, 3.2vw, 44px);
  --case-lede: clamp(16px, 1.15vw, 18px);
  --case-card-title: clamp(19px, 1.45vw, 23px);
  --case-card-copy: 14px;
  background:
    radial-gradient(1200px 800px at 70% -10%, rgba(58, 160, 255, 0.1), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(0, 255, 163, 0.05), transparent 65%),
    linear-gradient(180deg, var(--bg-0) 0%, #08111a 50%, var(--bg-0) 100%);
}
body.proj-2skyventures {
  --case-hero-title: clamp(34px, 4.2vw, 58px);
  --case-hero-title-ru: clamp(30px, 3.9vw, 52px);
}

/* ---------- Hero site-screenshot frame ---------- */
.p-hero-shot {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  width: 100%;
  max-width: 680px;
  justify-self: end;
}
body.proj-2skyventures .p-hero-shot {
  max-width: 780px;
}
.hs-frame {
  position: relative;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #0b1422, #060b13);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(58, 160, 255, 0.06),
    0 0 60px rgba(58, 160, 255, 0.08);
  transition:
    transform 0.6s cubic-bezier(0.2, 0.65, 0.2, 1),
    box-shadow 0.6s;
  animation: browser-float 7s ease-in-out infinite;
}
.hs-frame::after {
  content: "";
  position: absolute;
  inset: 42px 0 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255, 255, 255, 0.16) 46%,
    transparent 62%
  );
  transform: translateX(-120%);
  animation: browser-scan 6.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes browser-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
@keyframes browser-scan {
  0%,
  48% {
    transform: translateX(-120%);
  }
  78%,
  100% {
    transform: translateX(120%);
  }
}
.p-hero-shot:hover .hs-frame {
  transform: translateY(-4px);
  box-shadow:
    0 50px 120px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(58, 160, 255, 0.16),
    0 0 80px rgba(58, 160, 255, 0.16);
}
.hs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.hs-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-3);
  opacity: 0.7;
  animation: dot-wake 3.2s ease-in-out infinite;
}
.hs-dot:nth-child(1) {
  background: #ff5f57;
}
.hs-dot:nth-child(2) {
  background: #febc2e;
  animation-delay: 0.18s;
}
.hs-dot:nth-child(3) {
  background: #28c840;
  animation-delay: 0.36s;
}
@keyframes dot-wake {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  45% {
    opacity: 1;
    transform: scale(1.16);
  }
}
.hs-url {
  margin-left: 14px;
  flex: 1;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}
.hs-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
}
.hs-open {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  transition:
    background-color 0.35s cubic-bezier(0.2, 0.65, 0.2, 1),
    border-color 0.35s cubic-bezier(0.2, 0.65, 0.2, 1),
    color 0.35s cubic-bezier(0.2, 0.65, 0.2, 1);
}
.hs-open .arrow {
  transition: transform 0.35s;
}
.hs-open:hover {
  border-color: var(--accent);
  background: rgba(58, 160, 255, 0.08);
  color: #fff;
}
.hs-open:focus-visible,
.proj-back:focus-visible,
.proj-next:focus-visible,
.p-btn:focus-visible,
.lang-toggle button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.hs-open:hover .arrow {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .p-hero-shot {
    order: 2;
  }
  .p-hero .ph-text {
    order: 1;
  }
}

/* ---------- Lang toggle ---------- */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}
.lang-toggle button {
  background: none;
  border: none;
  color: var(--ink-3);
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.3s;
}
.lang-toggle button.on {
  color: var(--ink-0);
}
.lang-toggle button:hover {
  color: var(--accent);
}
.lang-toggle .sep {
  color: var(--ink-3);
}
.os-chrome .osc-status {
  font-size: 10px;
  letter-spacing: 0.16em;
}
.proj-2sky .os-chrome .osc-left,
.proj-neosim .os-chrome .osc-left,
.proj-2skyventures .os-chrome .osc-left,
.proj-dovmant .os-chrome .osc-left {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-1);
}
.proj-2sky .os-chrome .osc-dot,
.proj-neosim .os-chrome .osc-dot,
.proj-2skyventures .os-chrome .osc-dot,
.proj-dovmant .os-chrome .osc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.proj-2sky .os-chrome .osc-right,
.proj-neosim .os-chrome .osc-right,
.proj-2skyventures .os-chrome .osc-right,
.proj-dovmant .os-chrome .osc-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.proj-2sky .os-chrome .osc-status,
.proj-neosim .os-chrome .osc-status,
.proj-2skyventures .os-chrome .osc-status,
.proj-dovmant .os-chrome .osc-status {
  color: var(--accent-soft);
}
.osc-left.media-home {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-1);
}

.dovmant-carousel {
  position: relative;
  width: 100%;
  max-width: 620px;
  min-height: clamp(360px, 38vw, 520px);
  justify-self: end;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 18%, rgba(215, 183, 255, 0.14), transparent 34%),
    radial-gradient(circle at 78% 18%, rgba(125, 211, 252, 0.1), transparent 28%),
    rgba(255, 255, 255, 0.025);
  overflow: hidden;
  box-shadow:
    0 44px 120px rgba(0, 0, 0, 0.42),
    0 0 80px rgba(106, 92, 255, 0.12);
}
.dovmant-carousel::before,
.dovmant-carousel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.dovmant-carousel::before {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.12), transparent 28%, rgba(5, 5, 5, 0.44)),
    linear-gradient(
      90deg,
      rgba(215, 183, 255, 0.08),
      transparent 22%,
      transparent 78%,
      rgba(125, 211, 252, 0.06)
    );
  z-index: 2;
}
.dovmant-carousel::after {
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  z-index: 4;
}
.dovmant-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.dovmant-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(18px, 3vw, 34px);
  opacity: 0;
  transform: scale(1.035);
  transition:
    opacity 0.8s ease,
    transform 1.2s ease;
}
.dovmant-frame img.on {
  opacity: 1;
  transform: scale(1);
}
.dovmant-photo-meta {
  position: absolute;
  left: 30px;
  bottom: 28px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dovmant-photo-meta span,
.dovmant-tech-overlay span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.dovmant-photo-meta strong {
  color: var(--ink-0);
  font-size: clamp(17px, 1.8vw, 24px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.dovmant-tech-overlay {
  position: absolute;
  inset: 28px;
  z-index: 5;
  pointer-events: none;
}
.dovmant-tech-overlay span {
  position: absolute;
  min-width: 74px;
  min-height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.dovmant-tech-overlay span:nth-child(1) {
  top: 0;
  left: 0;
}
.dovmant-tech-overlay span:nth-child(2) {
  top: 0;
  right: 0;
}
.dovmant-tech-overlay span:nth-child(3) {
  right: 0;
  bottom: 0;
}
.dovmant-tech-overlay span:nth-child(4) {
  left: 0;
  bottom: 0;
}
.dovmant-dots {
  position: absolute;
  right: 30px;
  bottom: 30px;
  z-index: 5;
  display: flex;
  gap: 8px;
}
.dovmant-dots button {
  width: 24px;
  height: 3px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition:
    width 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}
.dovmant-dots button.on {
  width: 42px;
  background: var(--accent-soft);
  box-shadow: 0 0 14px rgba(215, 183, 255, 0.5);
}
@media (max-width: 720px) {
  .dovmant-carousel {
    min-height: 420px;
    justify-self: stretch;
  }
  .dovmant-frame img {
    padding: 16px 10px 58px;
  }
  .dovmant-tech-overlay {
    inset: 18px;
  }
  .dovmant-tech-overlay span {
    min-width: 58px;
    min-height: 28px;
    font-size: 8px;
  }
  .dovmant-photo-meta {
    left: 22px;
    bottom: 22px;
  }
  .dovmant-dots {
    right: 20px;
    bottom: 24px;
  }
  .os-chrome .osc-status {
    display: none;
  }
}

/* ---------- Media page ---------- */
.media-hero {
  min-height: 86vh;
  padding: 128px 64px 76px;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.82fr);
  gap: 64px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.media-hero-copy h1 {
  margin: 24px 0 0;
  max-width: 15ch;
  font-size: clamp(42px, 5.2vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.media-hero-copy p {
  margin-top: 28px;
  max-width: 54ch;
  color: var(--ink-1);
  font-size: clamp(16px, 1.18vw, 19px);
  line-height: 1.55;
}
.media-meta-strip {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.media-meta-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.media-profile-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(160px, 0.76fr) minmax(0, 1fr);
  gap: 0;
  min-height: 520px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background:
    radial-gradient(circle at 70% 18%, rgba(215, 183, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  box-shadow:
    0 44px 120px rgba(0, 0, 0, 0.42),
    0 0 80px rgba(106, 92, 255, 0.12);
}
.media-photo-wrap {
  min-height: 100%;
  background: rgba(255, 255, 255, 0.03);
}
.media-photo-wrap img,
.photo-kit img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-profile-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  padding: 30px;
  min-width: 0;
}
.media-profile-copy > span {
  color: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.media-profile-copy h2 {
  margin: 0;
  max-width: 17ch;
  font-size: clamp(26px, 2.35vw, 36px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
html[lang="ru"] body.media-page .media-hero-copy h1 {
  font-size: clamp(42px, 5.2vw, 76px);
  letter-spacing: 0;
}
html[lang="ru"] body.media-page .media-profile-copy h2 {
  font-size: clamp(26px, 2.35vw, 36px);
}
html[lang="ru"] body.media-page .media-sec h2 {
  font-size: clamp(32px, 3.9vw, 56px);
}
.media-profile-copy p {
  margin: 0;
  color: var(--ink-1);
  font-size: 15px;
  line-height: 1.55;
}
.media-archive-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.media-archive-stats span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.media-profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.media-profile-actions a,
.media-feature-card strong,
.photo-kit a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-0);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}
.media-profile-actions a:first-child,
.photo-kit a {
  background: rgba(106, 92, 255, 0.14);
  border-color: rgba(139, 127, 255, 0.42);
}
.media-signal {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background:
    radial-gradient(circle at 70% 20%, rgba(215, 183, 255, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  overflow: hidden;
  box-shadow:
    0 44px 120px rgba(0, 0, 0, 0.42),
    0 0 80px rgba(106, 92, 255, 0.12);
}
.signal-top {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}
.signal-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-3);
}
.signal-top span:nth-child(1) {
  background: #ff5f57;
}
.signal-top span:nth-child(2) {
  background: #febc2e;
}
.signal-top span:nth-child(3) {
  background: #28c840;
}
.signal-grid {
  position: absolute;
  inset: 78px 28px 74px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.signal-grid span {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(215, 183, 255, 0.1), rgba(125, 211, 252, 0.04)),
    rgba(255, 255, 255, 0.018);
  animation: media-cell 4.2s ease-in-out infinite;
  animation-delay: var(--d);
}
@keyframes media-cell {
  0%,
  100% {
    opacity: 0.42;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-4px);
  }
}
.signal-caption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 26px;
  color: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.media-sec {
  position: relative;
  padding: 92px 64px;
}
.media-sec h2 {
  max-width: 18ch;
  margin: 16px 0 0;
  font-size: clamp(32px, 3.9vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.media-lede {
  margin-top: 24px;
  max-width: 68ch;
  color: var(--ink-1);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.6;
}
.media-feature-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
  overflow: hidden;
}
.media-feature-card {
  min-height: 230px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background:
    radial-gradient(circle at 80% 0%, rgba(106, 92, 255, 0.1), transparent 44%), rgba(5, 5, 5, 0.92);
  color: var(--ink-0);
  text-decoration: none;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.media-feature-card:hover {
  background:
    radial-gradient(circle at 80% 0%, rgba(106, 92, 255, 0.16), transparent 44%),
    rgba(10, 12, 24, 0.94);
}
.media-feature-card > span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.media-feature-card h3 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.028em;
}
.media-feature-card p {
  margin: 0 0 auto;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
}
.media-feature-card strong {
  width: fit-content;
  font-weight: 400;
}
.proof-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.proof-meta div {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}
.proof-meta dt,
.proof-meta dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.proof-meta dt {
  color: var(--ink-3);
}
.proof-meta dd {
  color: var(--ink-1);
}
.media-card-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.media-card {
  min-height: 205px;
  padding: 24px;
  background: rgba(5, 5, 5, 0.9);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.media-card-num,
.article-row > span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
}
.media-card h3,
.article-row h3,
.video-card h3 {
  margin: 0;
  font-size: clamp(19px, 1.65vw, 24px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.media-card p,
.article-row p,
.press-kit p,
.video-card p,
.photo-kit p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
}
.article-list {
  margin-top: 42px;
  max-width: 980px;
  border-top: 1px solid var(--line);
}
.article-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.article-row.live,
.video-card.live {
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}
.article-row.live:hover,
.video-card.live:hover {
  border-color: var(--accent-soft);
  background: rgba(255, 255, 255, 0.04);
}
.article-row div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-row strong,
.video-card strong {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.video-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.video-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 45%, rgba(106, 92, 255, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
}
.video-thumb::before {
  content: "";
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 38%, rgba(255, 255, 255, 0.8) 38% 46%, transparent 46%),
    rgba(255, 255, 255, 0.04);
}
.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  opacity: 0.72;
}
.video-thumb:has(img)::before {
  position: relative;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.38);
}
.video-thumb span {
  position: absolute;
  margin-top: 96px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 2;
}
.photo-kit {
  margin-top: 42px;
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 420px);
  gap: 28px;
  align-items: end;
  max-width: 900px;
}
.photo-kit figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}
.photo-kit figure img {
  aspect-ratio: 4 / 5;
}
.photo-kit figcaption {
  padding: 14px 16px;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.photo-kit > div {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 6px;
}
.photo-kit a {
  width: fit-content;
}
.photo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.photo-links a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.press-kit {
  margin-top: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  max-width: 980px;
  padding: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}
.press-kit > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.press-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.press-actions a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  color: var(--ink-0);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.press-actions a::after {
  content: "↗";
  color: var(--accent);
}
@media (max-width: 1000px) {
  .media-hero {
    grid-template-columns: 1fr;
  }
  .media-signal {
    min-height: 360px;
  }
  .media-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .media-feature-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }
  .media-profile-card {
    grid-template-columns: 1fr;
  }
  .media-photo-wrap {
    max-height: 420px;
  }
}
@media (max-width: 720px) {
  .media-hero,
  .media-sec {
    padding-left: 24px;
    padding-right: 24px;
  }
  .media-hero {
    padding-top: 116px;
    min-height: auto;
    gap: 34px;
  }
  .media-hero-copy h1 {
    max-width: 13ch;
    font-size: 36px;
    line-height: 1.08;
  }
  .media-hero-copy p {
    margin-top: 24px;
    font-size: 16px;
  }
  .media-sec {
    padding-top: 58px;
    padding-bottom: 58px;
  }
  .media-sec h2 {
    max-width: 15ch;
    font-size: 30px;
    line-height: 1.08;
  }
  .media-card-grid,
  .press-kit,
  .photo-kit {
    grid-template-columns: 1fr;
  }
  .media-card {
    min-height: 168px;
  }
  .media-feature-card {
    min-height: 218px;
  }
  .media-profile-card {
    min-height: auto;
  }
  .media-photo-wrap {
    max-height: 300px;
  }
  .media-photo-wrap img {
    object-position: center top;
  }
  .article-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .media-profile-copy,
  .media-feature-card {
    padding: 22px;
  }
  .media-profile-copy h2 {
    max-width: 18ch;
    font-size: 28px;
  }
  .media-profile-copy {
    gap: 14px;
  }
  .press-kit {
    padding: 24px;
  }
  .signal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Page chrome ---------- */
.proj-back,
.proj-next {
  position: fixed;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: rgba(10, 12, 20, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink-1);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition:
    background-color 0.35s cubic-bezier(0.2, 0.65, 0.2, 1),
    border-color 0.35s cubic-bezier(0.2, 0.65, 0.2, 1),
    color 0.35s cubic-bezier(0.2, 0.65, 0.2, 1),
    transform 0.35s cubic-bezier(0.2, 0.65, 0.2, 1);
}
.proj-back {
  top: 68px;
  left: 28px;
}
.proj-next {
  bottom: 36px;
  right: 36px;
  padding: 14px 20px 14px 22px;
}
.proj-back:hover,
.proj-next:hover {
  border-color: var(--accent);
  background: rgba(58, 160, 255, 0.1);
  color: #fff;
  transform: translateY(-2px);
}
.proj-back .arrow {
  transition: transform 0.35s;
}
.proj-back:hover .arrow {
  transform: translateX(-4px);
}
.proj-next {
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  line-height: 1;
}
.proj-next .nx-label {
  font-size: 9px;
  opacity: 0.6;
}
.proj-next .nx-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: none;
  font-family: var(--font-display);
  color: #fff;
}
.proj-next .nx-row .arrow {
  transition: transform 0.35s;
}
.proj-next:hover .nx-row .arrow {
  transform: translateX(4px);
}

@media (max-width: 720px) {
  .proj-back {
    top: 16px;
    left: 16px;
    padding: 10px 14px;
    font-size: 10px;
  }
  .proj-next {
    display: none;
  }
}

/* ---------- Project hero ---------- */
.p-hero {
  min-height: 92vh;
  padding: 118px 64px 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 56px;
  position: relative;
  overflow: hidden;
}
body.proj-2skyventures .p-hero {
  grid-template-columns: minmax(0, 0.82fr) minmax(460px, 1.18fr);
  gap: 44px;
}
body.proj-2skyventures .p-hero h1 {
  max-width: 13ch;
}
@media (max-width: 900px) {
  .p-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 104px 24px 58px;
  }
  body.proj-2skyventures .p-hero {
    grid-template-columns: 1fr;
  }
}

.p-hero .ph-eyebrow-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.p-hero .ph-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  color: var(--ink-2);
  background: rgba(58, 160, 255, 0.04);
}
.p-hero .ph-tag.live {
  color: var(--accent-soft);
  border-color: rgba(0, 255, 163, 0.3);
  background: rgba(0, 255, 163, 0.06);
}
.p-hero .ph-tag.live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent-soft);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: 1px;
  box-shadow: 0 0 8px var(--accent-soft);
  animation: breathe 2.4s ease-in-out infinite;
}

.p-hero h1 {
  font-size: var(--case-hero-title);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 15ch;
}
.p-hero h1 .accent {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-soft) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-weight: 300;
  animation: project-text-shimmer 6.6s ease-in-out infinite;
}
@keyframes project-text-shimmer {
  0%,
  30% {
    background-position: 0% 50%;
  }
  62%,
  100% {
    background-position: 100% 50%;
  }
}
.p-hero .ph-sub {
  margin-top: 28px;
  font-size: var(--case-lede);
  color: var(--ink-1);
  max-width: 50ch;
  line-height: 1.58;
}
.p-hero .ph-meta-strip {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.p-hero .ph-meta-strip span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.p-hero .ph-meta-strip span::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}
.p-hero .ph-cta-row {
  margin-top: 44px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* hero visual */
.p-hero-visual {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 620px;
  margin-left: auto;
}
.p-hero-visual canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.p-hero-visual .hv-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(58, 160, 255, 0.1);
  pointer-events: none;
}
.p-hero-visual .hv-ring.r2 {
  inset: 10%;
  border-color: rgba(58, 160, 255, 0.06);
}
.p-hero-visual .hv-ring.r3 {
  inset: 22%;
  border-color: rgba(0, 255, 163, 0.05);
}
.p-hero-visual .hv-coord {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: pre;
  line-height: 1.5;
  pointer-events: none;
}
.p-hero-visual .hv-coord.tl {
  top: 8%;
  left: 4%;
  text-align: left;
}
.p-hero-visual .hv-coord.tr {
  top: 8%;
  right: 4%;
  text-align: right;
  color: var(--accent-soft);
}
.p-hero-visual .hv-coord.bl {
  bottom: 8%;
  left: 4%;
  text-align: left;
}
.p-hero-visual .hv-coord.br {
  bottom: 8%;
  right: 4%;
  text-align: right;
  color: var(--accent);
}

/* ---------- Buttons ---------- */
.p-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink-0);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background-color 0.35s cubic-bezier(0.2, 0.65, 0.2, 1),
    border-color 0.35s cubic-bezier(0.2, 0.65, 0.2, 1),
    color 0.35s cubic-bezier(0.2, 0.65, 0.2, 1);
  cursor: pointer;
}
.p-btn .arrow {
  transition: transform 0.35s;
}
.p-btn:hover {
  border-color: var(--accent);
  background: rgba(58, 160, 255, 0.08);
  color: #fff;
}
.p-btn:hover .arrow {
  transform: translateX(4px);
}
.p-btn.primary {
  background: linear-gradient(120deg, rgba(58, 160, 255, 0.18), rgba(0, 255, 163, 0.12));
  border-color: rgba(58, 160, 255, 0.45);
  color: #fff;
}
.p-btn.primary:hover {
  background: linear-gradient(120deg, rgba(58, 160, 255, 0.3), rgba(0, 255, 163, 0.2));
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(58, 160, 255, 0.2);
}

/* ---------- Section header (eyebrow + h2 pair, reusable) ---------- */
.p-sec {
  padding: 120px 64px;
  position: relative;
}
@media (max-width: 720px) {
  .p-sec {
    padding: 100px 24px;
  }
}
.p-sec-num {
  position: absolute;
  top: 32px;
  right: 64px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--ink-3);
}
@media (max-width: 720px) {
  .p-sec-num {
    right: 24px;
    top: 24px;
  }
}

/* ---------- WHAT + WHY ---------- */
.p-what {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 24px;
}
@media (max-width: 900px) {
  .p-what {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}
.p-what .col h2 {
  font-size: var(--case-section-title);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-top: 16px;
  text-wrap: balance;
  max-width: 18ch;
}
.p-what .col p {
  margin-top: 24px;
  color: var(--ink-1);
  font-size: 16px;
  line-height: 1.6;
  max-width: 42ch;
}
.p-stat-row {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
@media (max-width: 720px) {
  .p-stat-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}
.p-stat .v {
  font-size: clamp(36px, 4vw, 56px);
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--accent), var(--accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.p-stat .l {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------- PRODUCT BLOCKS ---------- */
.p-product-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 980px) {
  .p-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .p-product-grid {
    grid-template-columns: 1fr;
  }
}
.p-product-card {
  position: relative;
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(58, 160, 255, 0.08), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition:
    border-color 0.4s cubic-bezier(0.2, 0.65, 0.2, 1),
    transform 0.4s cubic-bezier(0.2, 0.65, 0.2, 1),
    background-color 0.4s cubic-bezier(0.2, 0.65, 0.2, 1);
}
.p-product-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transform: translateX(-40%);
  transition:
    opacity 0.35s,
    transform 0.65s cubic-bezier(0.2, 0.65, 0.2, 1);
  pointer-events: none;
}
.p-product-card:hover {
  border-color: rgba(58, 160, 255, 0.42);
  transform: translateY(-3px);
  background-color: rgba(58, 160, 255, 0.035);
}
.p-product-card:hover::after {
  opacity: 1;
  transform: translateX(40%);
}
.p-product-card .pp-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-3);
}
.p-product-card h3 {
  font-size: var(--case-card-title);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink-0);
  max-width: 16ch;
}
.p-product-card p {
  margin-top: auto;
  color: var(--ink-2);
  font-size: var(--case-card-copy);
  line-height: 1.55;
}
.p-sec > .lede {
  margin-top: 16px;
  max-width: 68ch;
  font-size: var(--case-lede);
  line-height: 1.6;
}

/* ---------- Section background grid for tech section ---------- */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
  opacity: 0.7;
}

/* ---------- RU type tweaks ---------- */
html[lang="ru"] .p-hero h1 {
  font-size: var(--case-hero-title-ru);
  letter-spacing: -0.025em;
}
html[lang="ru"] .p-what .col h2 {
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.02em;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
