/* ── Cinematic hero ───────────────────────────────────────── */
.proj-cinema-hero {
  position: relative;
  min-height: clamp(320px, 48vh, 440px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--dark);
}

.proj-cinema-hero--static {
  background: linear-gradient(155deg, #1a1008 0%, #2d1a0a 50%, rgba(255, 138, 42, 0.12) 100%);
}

.proj-cinema-hero--crimea {
  background: linear-gradient(155deg, #0a1628 0%, #152a45 42%, #1e3a5f 72%, rgba(255, 138, 42, 0.18) 100%);
}

.proj-cinema-hero--oksion-dev {
  background: linear-gradient(155deg, #0c1812 0%, #142820 38%, #1a3328 68%, rgba(255, 138, 42, 0.14) 100%);
}

.proj-cinema-hero--fts {
  background: linear-gradient(155deg, #0a1220 0%, #121f35 40%, #1a2d4a 72%, rgba(255, 138, 42, 0.16) 100%);
}

.proj-cinema-hero--helsinki {
  background: linear-gradient(155deg, #0c1420 0%, #152535 38%, #1a3048 68%, rgba(100, 180, 255, 0.12) 100%);
}

.proj-cinema-hero--b2o {
  background: linear-gradient(155deg, #140a20 0%, #1f1235 38%, #2a1a42 68%, rgba(255, 138, 42, 0.2) 100%);
}

.proj-cinema-hero--krakolye {
  background: linear-gradient(155deg, #0c1810 0%, #142818 38%, #1a3220 68%, rgba(120, 200, 140, 0.14) 100%);
}

.proj-cinema-hero--oilgas {
  background: linear-gradient(155deg, #1a0c08 0%, #2d180a 38%, #3d2210 68%, rgba(255, 100, 30, 0.18) 100%);
}

.proj-cinema-hero--talakan {
  background: linear-gradient(155deg, #081420 0%, #0f2030 38%, #152a40 68%, rgba(180, 220, 255, 0.12) 100%);
}

.proj-cinema-hero--international {
  background: linear-gradient(155deg, #0a1020 0%, #141c35 38%, #1a2545 68%, rgba(255, 180, 60, 0.14) 100%);
}

.proj-cinema-hero--transneft {
  background: linear-gradient(155deg, #1a0808 0%, #2a1010 38%, #351818 68%, rgba(255, 80, 40, 0.16) 100%);
}

.proj-cinema-hero--static .proj-cinema-overlay {
  background: linear-gradient(
    180deg,
    rgba(20, 12, 6, 0.2) 0%,
    rgba(20, 12, 6, 0.45) 55%,
    rgba(20, 12, 6, 0.75) 100%
  );
}


.proj-cinema-video,
.proj-cinema-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: projKenBurns 22s ease-in-out infinite alternate;
}

.proj-cinema-poster {
  z-index: 0;
  background-size: cover;
  background-position: center;
}

.proj-cinema-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 12, 6, 0.35) 0%,
    rgba(20, 12, 6, 0.55) 45%,
    rgba(20, 12, 6, 0.88) 100%
  );
  z-index: 1;
}

.proj-cinema-content {
  position: relative;
  z-index: 2;
  padding: 48px 0 56px;
  width: 100%;
}

.proj-cinema-content .breadcrumb {
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 18px;
}

.proj-cinema-content .breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.proj-cinema-content .breadcrumb a:hover { color: var(--orange); }
.proj-cinema-content .breadcrumb span { color: rgba(255, 255, 255, 0.9); }

.proj-cinema-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 14px;
  max-width: 720px;
}

.proj-cinema-lead {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 600px;
  line-height: 1.75;
  margin: 0;
}

.proj-badge--hero {
  display: inline-block;
  background: rgba(255, 138, 42, 0.18);
  border: 1px solid rgba(255, 138, 42, 0.45);
  color: #ffb36a;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
  font-weight: 700;
}

@keyframes projKenBurns {
  from { transform: scale(1.06) translateX(0); }
  to { transform: scale(1.14) translateX(-2%); }
}

/* ── Metrics strip ────────────────────────────────────────── */
.proj-metrics {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.proj-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.proj-metric {
  text-align: center;
  padding: 8px 12px;
}

.proj-metric-val {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--orange);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}

.proj-metric-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Layout ───────────────────────────────────────────────── */
.proj-layout-v2 {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  padding: 56px 0 72px;
}

.proj-article { min-width: 0; }

.proj-lead-block {
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin: 0 0 36px;
  padding-left: 18px;
  border-left: 3px solid var(--orange);
}

.proj-article h2 {
  color: var(--orange);
  font-size: 1.45rem;
  margin: 44px 0 16px;
  font-weight: 800;
}

.proj-article h3 {
  font-size: 1.1rem;
  margin: 28px 0 10px;
  color: var(--text-dark);
}

.proj-article p,
.proj-article li {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.proj-article ul,
.proj-article ol {
  padding-left: 1.25em;
  margin: 0 0 20px;
}

.proj-article ul li { margin-bottom: 6px; }

/* ── Media ────────────────────────────────────────────────── */
.proj-media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 36px 0;
}

.proj-media-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.proj-media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(255, 138, 42, 0.12);
}

.proj-media-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.proj-media-card:hover img { transform: scale(1.04); }

.proj-media-card figcaption {
  padding: 14px 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.proj-media-card--wide { grid-column: 1 / -1; }
.proj-media-card--wide img { height: 280px; }

.proj-media-card--brand img {
  object-fit: contain;
  background: var(--surface);
  padding: 24px;
  height: 200px;
}

.proj-video-block {
  margin: 40px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--dark);
  box-shadow: var(--shadow);
}

.proj-video-block video {
  width: 100%;
  display: block;
  max-height: 420px;
  object-fit: cover;
}

.proj-video-caption {
  padding: 14px 18px;
  font-size: 0.84rem;
  color: var(--text-muted);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* ── Feature chips ────────────────────────────────────────── */
.proj-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 28px;
  list-style: none;
  padding: 0;
}

.proj-chips li {
  background: var(--orange-light);
  border: 1px solid rgba(255, 138, 42, 0.2);
  color: var(--text-dark);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 50px;
}

.proj-chips--compact li {
  font-size: 0.78rem;
  padding: 5px 11px;
}

/* ── Route strip (fiber / magistral) ─────────────────────── */
.proj-route-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 20px 0 28px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.proj-route-node {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50px;
}

.proj-route-node i {
  width: 14px;
  height: 14px;
  color: var(--orange);
  flex-shrink: 0;
}

.proj-route-arrow {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.proj-scale-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 28px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
}

.proj-scale-bar i {
  width: 18px;
  height: 18px;
  color: var(--orange);
  flex-shrink: 0;
}

.proj-scale-bar .proj-scale-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), rgba(255, 138, 42, 0.2));
  border-radius: 2px;
  min-width: 40px;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.proj-sidebar-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}

.proj-sidebar-card h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 700;
}

.proj-sidebar-card p {
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.6;
  color: var(--text-dark);
}

.proj-status {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.proj-status-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.proj-status--done .proj-status-icon { color: #27ae60; }
.proj-status--active .proj-status-icon { color: var(--orange); }

.proj-sidebar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
}

.proj-sidebar-link:hover { text-decoration: underline; }

.proj-sidebar-link .icon-sm {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.feature-item::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8a2a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain;
}

.proj-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
  margin-top: 40px;
}

.proj-back-link:hover { gap: 12px; }

/* ── Next project ─────────────────────────────────────────── */
.proj-next-nav {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0 56px;
}

.proj-next-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.proj-next-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.proj-next-card:hover {
  border-color: rgba(255, 138, 42, 0.35);
  box-shadow: 0 8px 28px rgba(255, 138, 42, 0.1);
  transform: translateY(-2px);
}

.proj-next-card strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.proj-next-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.proj-next-card svg { color: var(--orange); flex-shrink: 0; }

.proj-legal-box {
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--surface);
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: 16px;
}

.proj-legal-box ul {
  columns: 2;
  gap: 24px;
  padding-left: 1.2em;
  line-height: 1.65;
}

/* ── Scroll reveal ────────────────────────────────────────── */
.proj-reveal {
  opacity: 0;
  transform: translateY(28px);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .proj-layout-v2 { grid-template-columns: 1fr; }
  .proj-sidebar { order: -1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .proj-sidebar-card { margin: 0; }
  .proj-sidebar .btn { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .proj-metrics-grid { grid-template-columns: 1fr 1fr; }
  .proj-media-row { grid-template-columns: 1fr; }
  .proj-next-grid { grid-template-columns: 1fr; }
  .proj-sidebar { grid-template-columns: 1fr; }
  .proj-legal-box ul { columns: 1; }
}
