﻿:root {
  --bg: #2a1209;
  --bg-elev: rgba(50, 22, 20, 0.68);
  --bg-soft: rgba(58, 24, 30, 0.74);
  --text: #ffffff;
  --muted: #ffffff;
  --accent: #ff5a00;
  --accent-violet: #8f63ff;
  --accent-soft: #8b2a1d;
  --border: rgba(255, 90, 0, 0.34);
  --border-hot: rgba(255, 90, 0, 0.62);
  --max-width: 1160px;
  --radius: 14px;
  --header-height: 72px;
  --shadow: 0 14px 44px rgba(12, 2, 2, 0.4);
  --orange-glow-low: rgba(255, 110, 28, 0.24);
  --orange-glow-high: rgba(255, 136, 48, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, #120722 0%, #1a0b30 35%, #1e0f35 70%, #160a2a 100%);
  color: var(--text);
  line-height: 1.6;
  background-attachment: scroll;
  text-align: center;
}

.shader-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  filter: saturate(1.22) contrast(1.08);
}

#main-content,
.site-footer {
  position: relative;
  z-index: 1;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 180ms ease;
}

a:hover {
  color: #ffffff;
}

img,
video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  z-index: 3000;
}

.container {
  width: min(100% - 2.4rem, var(--max-width));
  margin-inline: auto;
}

.section {
  padding: clamp(3rem, 6vw, 4.8rem) 0;
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.section-head {
  margin-bottom: 1.25rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.5rem, 3.1vw, 2.2rem);
}

p {
  margin: 0 0 1rem;
  color: #ffffff;
}


.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-top: 1px solid #ff5a00;
  border-bottom: 1px solid #ff5a00;
  overflow: hidden;
  background-clip: padding-box;
  background:
    radial-gradient(66% 190% at 50% -36%, rgba(255, 235, 170, 0.42) 0%, rgba(255, 235, 170, 0) 58%),
    radial-gradient(58% 160% at 50% 20%, rgba(255, 110, 16, 0.42) 0%, rgba(255, 110, 16, 0) 64%),
    radial-gradient(120% 220% at 14% 100%, rgba(255, 90, 0, 0.28) 0%, rgba(255, 90, 0, 0) 62%),
    linear-gradient(100deg, rgba(168, 58, 16, 0.92) 0%, rgba(238, 106, 24, 0.93) 36%, rgba(255, 126, 30, 0.94) 50%, rgba(236, 104, 22, 0.93) 64%, rgba(160, 55, 15, 0.92) 100%);
  background-size: 156% 156%;
  background-position: 50% 48%;
  animation: sunsetDrift 5.6s ease-in-out infinite alternate;
  box-shadow: inset 0 -1px 0 rgba(255, 170, 88, 0.34), 0 0 24px rgba(255, 90, 0, 0.24);
  filter: saturate(1.18) brightness(1.08);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: -38% -30%;
  pointer-events: none;
  background:
    radial-gradient(30% 46% at 8% 72%, rgba(255, 154, 58, 0.44) 0%, rgba(255, 154, 58, 0) 72%),
    radial-gradient(32% 48% at 28% 74%, rgba(255, 124, 26, 0.38) 0%, rgba(255, 124, 26, 0) 72%),
    radial-gradient(30% 46% at 48% 70%, rgba(255, 142, 36, 0.42) 0%, rgba(255, 142, 36, 0) 72%),
    radial-gradient(34% 50% at 70% 76%, rgba(255, 118, 20, 0.38) 0%, rgba(255, 118, 20, 0) 72%),
    radial-gradient(30% 46% at 92% 72%, rgba(255, 150, 50, 0.4) 0%, rgba(255, 150, 50, 0) 72%);
  filter: blur(4px);
  opacity: 1;
  animation: waveRoll 3.6s ease-in-out infinite;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: -28% -24%;
  pointer-events: none;
  background:
    linear-gradient(102deg, rgba(255, 214, 148, 0) 8%, rgba(255, 214, 148, 0.28) 22%, rgba(255, 114, 18, 0.46) 40%, rgba(255, 162, 78, 0.4) 52%, rgba(255, 114, 18, 0.4) 66%, rgba(255, 214, 148, 0.22) 80%, rgba(255, 214, 148, 0) 92%);
  mix-blend-mode: screen;
  filter: blur(6px);
  opacity: 1;
  animation: crestSweep 3.4s ease-in-out infinite;
}

.header-inner {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

@keyframes sunsetDrift {
  0% {
    background-position: 38% 46%;
    filter: saturate(1.02) brightness(0.94);
  }
  50% {
    background-position: 60% 56%;
    filter: saturate(1.2) brightness(1.1);
  }
  100% {
    background-position: 40% 50%;
    filter: saturate(1.05) brightness(0.96);
  }
}

@keyframes orangeEdgePulse {
  0% {
    box-shadow: 0 0 0 1px rgba(255, 100, 18, 0.28), 0 0 10px var(--orange-glow-low);
    border-color: rgba(255, 96, 14, 0.55);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(255, 134, 42, 0.44), 0 0 20px var(--orange-glow-high);
    border-color: rgba(255, 140, 44, 0.86);
  }
  100% {
    box-shadow: 0 0 0 1px rgba(255, 100, 18, 0.28), 0 0 10px var(--orange-glow-low);
    border-color: rgba(255, 96, 14, 0.55);
  }
}

@keyframes orangeBorderPulse {
  0% {
    border-color: rgba(255, 96, 14, 0.55);
  }
  50% {
    border-color: rgba(255, 140, 44, 0.86);
  }
  100% {
    border-color: rgba(255, 96, 14, 0.55);
  }
}

@keyframes waveRoll {
  0% {
    transform: translateX(-10%) translateY(4%) scaleX(1.06) scaleY(0.94);
    opacity: 0.8;
  }
  25% {
    transform: translateX(3%) translateY(-3%) scaleX(0.96) scaleY(1.04);
    opacity: 1;
  }
  50% {
    transform: translateX(12%) translateY(2%) scaleX(1.08) scaleY(0.96);
    opacity: 0.88;
  }
  75% {
    transform: translateX(1%) translateY(-4%) scaleX(0.98) scaleY(1.04);
    opacity: 1;
  }
  100% {
    transform: translateX(-11%) translateY(3%) scaleX(1.07) scaleY(0.95);
    opacity: 0.82;
  }
}

@keyframes crestSweep {
  0% {
    transform: translateX(-28%) translateY(2%) rotate(-1.2deg);
    opacity: 0.5;
  }
  35% {
    transform: translateX(8%) translateY(-2%) rotate(0.9deg);
    opacity: 0.92;
  }
  50% {
    transform: translateX(20%) translateY(0%) rotate(1deg);
    opacity: 1;
  }
  75% {
    transform: translateX(4%) translateY(2%) rotate(-0.7deg);
    opacity: 0.84;
  }
  100% {
    transform: translateX(-26%) translateY(-1%) rotate(-1deg);
    opacity: 0.54;
  }
}

.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}

.brand-main {
  font-size: 1.1rem;
  font-weight: 700;
}

.brand-sub {
  margin-top: 0.3rem;
  font-size: 0.74rem;
  color: var(--muted);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: clamp(0.8rem, 2vw, 1.4rem);
}

.nav-list a {
  color: #ffffff;
  font-size: 0.94rem;
}

.nav-list a:hover {
  color: #ffffff;
}

.lang-toggle {
  border: 1px solid rgba(255, 214, 148, 0.9);
  background: linear-gradient(145deg, rgba(35, 11, 18, 0.82), rgba(62, 22, 20, 0.86) 55%, rgba(26, 12, 18, 0.9) 100%);
  color: #fff8ef;
  cursor: pointer;
  padding: 0.48rem 0.72rem;
  border-radius: 999px;
  font-size: 0.74rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  transition: border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  animation: orangeEdgePulse 5.6s ease-in-out infinite;
}

.lang-toggle:hover {
  border-color: #ffd696;
  color: #ffffff;
  background: linear-gradient(145deg, rgba(52, 18, 22, 0.88), rgba(76, 28, 24, 0.9) 55%, rgba(34, 14, 22, 0.92) 100%);
  box-shadow: 0 0 0 1px rgba(255, 170, 88, 0.55), 0 0 16px rgba(255, 140, 44, 0.34);
}

.hero {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  align-content: center;
  gap: 1.15rem;
  justify-items: center;
}

.hero.section {
  padding-top: 0;
  padding-bottom: 0;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
}

.eyebrow {
  margin: 0;
  color: #ffffff;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-sub {
  max-width: 62ch;
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.3rem, 1.82vw, 1.53rem);
}

#about {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  align-content: center;
  justify-items: center;
  row-gap: 0.65rem;
}

#about p {
  font-size: clamp(1.12rem, 1.52vw, 1.36rem);
  line-height: 1.72;
  max-width: 68ch;
  margin-inline: auto;
  padding: 0.28rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 140, 44, 0.42);
  background:
    linear-gradient(180deg, rgba(12, 6, 22, 0.08), rgba(12, 6, 22, 0.02)),
    radial-gradient(140% 190% at 0% 0%, rgba(255, 132, 44, 0.12) 0%, rgba(255, 132, 44, 0) 58%),
    radial-gradient(180% 220% at 100% 100%, rgba(152, 84, 255, 0.1) 0%, rgba(152, 84, 255, 0) 62%),
    linear-gradient(140deg, rgba(28, 12, 48, 0.34) 0%, rgba(20, 10, 38, 0.28) 52%, rgba(13, 8, 28, 0.4) 100%);
  backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: 0 0 0 1px rgba(255, 90, 0, 0.14), 0 8px 24px rgba(8, 7, 20, 0.18);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

#about .section-head {
  margin-bottom: 0.5rem;
}

.hero-cred {
  margin: 0;
  color: #ffffff;
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
}

.btn {
  display: inline-flex;
  justify-self: center;
  margin-top: 0.5rem;
  border: 1px solid rgba(255, 90, 0, 0.68);
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 90, 0, 0.24), rgba(124, 37, 24, 0.26), rgba(41, 17, 20, 0.5));
  padding: 0.72rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.93rem;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  animation: orangeEdgePulse 5.6s ease-in-out infinite;
}

.btn:hover {
  background: linear-gradient(135deg, rgba(255, 90, 0, 0.34), rgba(138, 41, 30, 0.3), rgba(62, 21, 40, 0.42));
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 90, 0, 0.35), 0 0 20px rgba(255, 90, 0, 0.24);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 1rem;
  align-items: stretch;
}

#work {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  align-content: center;
}

.work-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(12, 6, 22, 0.08), rgba(12, 6, 22, 0.02)),
    radial-gradient(140% 190% at 0% 0%, rgba(255, 132, 44, 0.12) 0%, rgba(255, 132, 44, 0) 58%),
    radial-gradient(180% 220% at 100% 100%, rgba(152, 84, 255, 0.1) 0%, rgba(152, 84, 255, 0) 62%),
    linear-gradient(140deg, rgba(28, 12, 48, 0.34) 0%, rgba(20, 10, 38, 0.28) 52%, rgba(13, 8, 28, 0.4) 100%);
  box-shadow: var(--shadow);
  animation: orangeEdgePulse 5.6s ease-in-out infinite;
  backdrop-filter: blur(16px) saturate(1.15);
  filter: saturate(1.04) brightness(1.03);
  isolation: isolate;
}

.work-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius) - 1px);
  pointer-events: none;
  background:
    radial-gradient(90% 72% at 16% 10%, rgba(255, 182, 92, 0.12) 0%, rgba(255, 182, 92, 0) 58%),
    radial-gradient(76% 68% at 86% 100%, rgba(172, 108, 255, 0.1) 0%, rgba(172, 108, 255, 0) 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  opacity: 0.92;
  z-index: 0;
}

.work-card:hover,
.work-card:focus-within {
  border-color: var(--border-hot);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 90, 0, 0.32), 0 0 24px rgba(255, 90, 0, 0.2);
}

.card-link-wrap {
  display: block;
  position: relative;
  z-index: 1;
}

.media-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(120% 160% at 20% 10%, rgba(255, 144, 58, 0.3) 0%, rgba(255, 144, 58, 0) 56%),
    linear-gradient(120deg, rgba(138, 58, 28, 0.8), rgba(86, 36, 34, 0.78), rgba(52, 21, 44, 0.82));
  overflow: hidden;
}

.media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 160% at 20% 10%, rgba(255, 156, 72, 0.26) 0%, rgba(255, 156, 72, 0) 56%),
    linear-gradient(120deg, rgba(146, 66, 30, 0.94), rgba(94, 40, 34, 0.96), rgba(58, 24, 48, 0.97));
  color: #ffffff;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.media-wrap img,
.media-wrap video {
  position: absolute;
  inset: 0;
}

.media-wrap video {
  opacity: 0;
  transition: opacity 220ms ease;
}

.work-card.is-previewing .media-wrap video {
  opacity: 1;
}

.mobile-open {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  border: 1px solid rgba(255, 90, 0, 0.58);
  background: rgba(53, 20, 19, 0.66);
  color: #ffffff;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  display: none;
  animation: orangeEdgePulse 5.6s ease-in-out infinite;
}

.card-body {
  padding: 0.9rem;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(12, 6, 22, 0.08), rgba(12, 6, 22, 0.02)),
    radial-gradient(140% 190% at 0% 0%, rgba(255, 132, 44, 0.12) 0%, rgba(255, 132, 44, 0) 58%),
    radial-gradient(180% 220% at 100% 100%, rgba(152, 84, 255, 0.1) 0%, rgba(152, 84, 255, 0) 62%),
    linear-gradient(140deg, rgba(28, 12, 48, 0.34) 0%, rgba(20, 10, 38, 0.28) 52%, rgba(13, 8, 28, 0.4) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 auto;
  min-height: 266px;
  border-top: 1px solid rgba(255, 140, 44, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px) saturate(1.15);
}

.card-body h3 {
  font-size: 1.05rem;
  margin: 0;
  height: 4.4rem;
  display: -webkit-box;
  align-items: center;
  line-height: 1.25;
  overflow: hidden;
  text-wrap: balance;
  white-space: pre-line;
  width: min(100%, 15rem);
  text-align: center;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-body p {
  margin-top: 0.45rem;
  margin-bottom: 0.7rem;
  font-size: 0.93rem;
}

.card-body ul {
  margin: 0 auto;
  padding-left: 0;
  list-style: none;
  width: fit-content;
  max-width: min(100%, 15rem);
  height: 6.9rem;
  color: #ffffff;
  font-size: 0.86rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.35rem;
  text-align: left;
}

.card-body li {
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  line-height: 1.3;
  gap: 0.45rem;
  text-wrap: pretty;
}

.card-body li::before {
  content: "";
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 999px;
  flex: 0 0 0.3rem;
  margin-top: 0.35rem;
  background: rgba(255, 186, 110, 0.88);
  box-shadow: 0 0 8px rgba(255, 140, 44, 0.28);
}

.work-card--tender .card-body ul {
  max-width: min(100%, 13.9rem);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.35rem auto 0;
  justify-content: center;
  align-items: center;
  width: min(100%, 15rem);
  min-height: 2.5rem;
}

.tags span {
  border: 1px solid rgba(255, 90, 0, 0.34);
  background: rgba(20, 10, 35, 0.24);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  box-shadow: none;
}

.case-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  margin-top: auto;
  width: calc(100% + 1.8rem);
  margin-left: -0.9rem;
  margin-right: -0.9rem;
  margin-bottom: -0.9rem;
  padding: 0.62rem 1rem;
  border-top: 1px solid rgba(255, 126, 30, 0.46);
  background: linear-gradient(135deg, rgba(255, 104, 18, 0.16), rgba(142, 45, 29, 0.2), rgba(58, 24, 46, 0.34));
}

.case-link:hover {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 116, 24, 0.24), rgba(154, 52, 34, 0.25), rgba(69, 28, 54, 0.38));
}

.capabilities-list,
.contact-list {
  margin: 0 0 1rem;
  padding-left: 0;
}

.capabilities-list li,
.contact-list li {
  margin-bottom: 0.5rem;
  list-style: none;
}

.contact-list {
  display: grid;
  justify-content: center;
  gap: 0.2rem;
}

.contact-panel {
  width: min(100%, 720px);
  margin-inline: auto;
  padding: 1.35rem 1.15rem;
  border: 1px solid rgba(255, 126, 30, 0.46);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(12, 6, 22, 0.08), rgba(12, 6, 22, 0.02)),
    radial-gradient(140% 190% at 0% 0%, rgba(255, 132, 44, 0.12) 0%, rgba(255, 132, 44, 0) 58%),
    radial-gradient(180% 220% at 100% 100%, rgba(152, 84, 255, 0.1) 0%, rgba(152, 84, 255, 0) 62%),
    linear-gradient(140deg, rgba(28, 12, 48, 0.34) 0%, rgba(20, 10, 38, 0.28) 52%, rgba(13, 8, 28, 0.4) 100%);
  box-shadow: 0 0 0 1px rgba(255, 90, 0, 0.14), 0 8px 24px rgba(8, 7, 20, 0.18);
  backdrop-filter: blur(16px) saturate(1.15);
  filter: none;
  animation: contactPanelDrift 6.6s ease-in-out infinite alternate;
}

.contact-panel p {
  margin: 0;
}

.contact-name {
  margin-top: 0.7rem !important;
  font-weight: 600;
}

.contact-actions {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-cta {
  border: 1px solid rgba(255, 110, 28, 0.58);
  background: linear-gradient(135deg, rgba(255, 104, 18, 0.28), rgba(142, 45, 29, 0.3), rgba(58, 24, 46, 0.44));
  color: #ffffff;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.contact-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 140, 44, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 154, 56, 0.4), 0 0 22px rgba(255, 124, 36, 0.34);
}

.contact-location {
  margin-top: 0.8rem !important;
  font-size: 0.92rem;
  color: #dbe7ff;
}

@keyframes contactPanelDrift {
  0% {
    background-position: 0% 0%, 100% 100%, 50% 50%;
  }
  50% {
    background-position: 12% 8%, 88% 92%, 52% 48%;
  }
  100% {
    background-position: 6% 4%, 94% 96%, 48% 52%;
  }
}

#contact {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  align-content: center;
}

.tools-line {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid #ff5a00;
  border-bottom: 1px solid #ff5a00;
  overflow: hidden;
  background-clip: padding-box;
  background:
    radial-gradient(66% 190% at 50% -36%, rgba(255, 235, 170, 0.42) 0%, rgba(255, 235, 170, 0) 58%),
    radial-gradient(58% 160% at 50% 20%, rgba(255, 110, 16, 0.42) 0%, rgba(255, 110, 16, 0) 64%),
    radial-gradient(120% 220% at 14% 100%, rgba(255, 90, 0, 0.28) 0%, rgba(255, 90, 0, 0) 62%),
    linear-gradient(100deg, rgba(168, 58, 16, 0.92) 0%, rgba(238, 106, 24, 0.93) 36%, rgba(255, 126, 30, 0.94) 50%, rgba(236, 104, 22, 0.93) 64%, rgba(160, 55, 15, 0.92) 100%);
  background-size: 140% 140%;
  background-position: 50% 48%;
  animation: sunsetDrift 5.6s ease-in-out infinite alternate;
  box-shadow: inset 0 -1px 0 rgba(255, 170, 88, 0.2), 0 0 16px rgba(255, 90, 0, 0.14);
  padding: 1rem 0;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: -38% -30%;
  pointer-events: none;
  background:
    radial-gradient(30% 46% at 8% 72%, rgba(255, 154, 58, 0.44) 0%, rgba(255, 154, 58, 0) 72%),
    radial-gradient(32% 48% at 28% 74%, rgba(255, 124, 26, 0.38) 0%, rgba(255, 124, 26, 0) 72%),
    radial-gradient(30% 46% at 48% 70%, rgba(255, 142, 36, 0.42) 0%, rgba(255, 142, 36, 0) 72%),
    radial-gradient(34% 50% at 70% 76%, rgba(255, 118, 20, 0.38) 0%, rgba(255, 118, 20, 0) 72%),
    radial-gradient(30% 46% at 92% 72%, rgba(255, 150, 50, 0.4) 0%, rgba(255, 150, 50, 0) 72%);
  filter: blur(5px);
  opacity: 0.98;
  animation: waveRoll 4.9s ease-in-out infinite;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: -28% -24%;
  pointer-events: none;
  background:
    linear-gradient(102deg, rgba(255, 214, 148, 0) 8%, rgba(255, 214, 148, 0.28) 22%, rgba(255, 114, 18, 0.46) 40%, rgba(255, 162, 78, 0.4) 52%, rgba(255, 114, 18, 0.4) 66%, rgba(255, 214, 148, 0.22) 80%, rgba(255, 214, 148, 0) 92%);
  mix-blend-mode: screen;
  filter: blur(8px);
  opacity: 0.88;
  animation: crestSweep 4.5s ease-in-out infinite;
}

.site-footer a {
  color: #ffffff;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.4rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.project-main {
  padding-top: 1.2rem;
  display: grid;
  gap: 1rem;
}

.back-link {
  color: var(--muted);
  font-size: 0.92rem;
}

.back-link:hover {
  color: #ffffff;
}

.project-header {
  margin: 0;
}

.project-header h1 {
  max-width: none;
  font-size: clamp(2rem, 4.8vw, 3.2rem);
}

.project-header p {
  margin-top: 0.75rem;
  max-width: 70ch;
  margin-inline: auto;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.project-block {
  border: 1px solid var(--border);
  background:
    radial-gradient(140% 190% at 0% 0%, rgba(255, 132, 44, 0.12) 0%, rgba(255, 132, 44, 0) 58%),
    radial-gradient(180% 220% at 100% 100%, rgba(152, 84, 255, 0.1) 0%, rgba(152, 84, 255, 0) 62%),
    linear-gradient(140deg, rgba(44, 17, 74, 0.92) 0%, rgba(32, 14, 60, 0.92) 52%, rgba(21, 13, 46, 0.94) 100%);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  animation: orangeBorderPulse 5.6s ease-in-out infinite;
  box-shadow: var(--shadow);
}

.project-block:hover,
.project-block:focus-within {
  border-color: var(--border-hot);
  box-shadow: var(--shadow);
}

.project-block h2 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  justify-content: center;
}

.tech-stack span {
  border: 1px solid rgba(255, 90, 0, 0.32);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.8rem;
  color: #ffffff;
  animation: orangeBorderPulse 5.6s ease-in-out infinite;
}

.video-placeholder {
  min-height: 220px;
  border: 1px dashed rgba(255, 90, 0, 0.44);
  border-radius: 12px;
  display: none;
  place-items: center;
  background: rgba(49, 18, 29, 0.72);
  color: #ffffff;
  text-align: center;
  padding: 1rem;
}

.video-placeholder.is-visible {
  display: grid;
}

.activation-reels {
  padding: 0.75rem;
}

.reels-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.reels-grid video {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  max-height: 460px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 126, 30, 0.5);
  background: linear-gradient(140deg, rgba(36, 14, 62, 0.95), rgba(20, 10, 35, 0.95));
}

.reels-grid--square {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reels-grid--tender {
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-areas:
    "lead lead shot1"
    "shot2 shot3 shot4";
  align-items: stretch;
}

.reels-grid--tender .gallery-item {
  height: 100%;
}

.reels-grid--tender .gallery-item:nth-child(1) {
  grid-area: lead;
}

.reels-grid--tender .gallery-item:nth-child(2) {
  grid-area: shot1;
}

.reels-grid--tender .gallery-item:nth-child(3) {
  grid-area: shot2;
}

.reels-grid--tender .gallery-item:nth-child(4) {
  grid-area: shot3;
}

.reels-grid--tender .gallery-item:nth-child(5) {
  grid-area: shot4;
}

.reels-grid--tender .gallery-item:nth-child(1) img {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: linear-gradient(140deg, rgba(44, 17, 74, 0.94), rgba(24, 13, 46, 0.96));
  padding: 0.45rem;
}

.gallery-item {
  border: 1px solid rgba(255, 126, 30, 0.5);
  border-radius: 12px;
  padding: 0;
  background: linear-gradient(140deg, rgba(36, 14, 62, 0.95), rgba(20, 10, 35, 0.95));
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  border: 0;
  padding: 1rem;
  background: rgba(10, 6, 20, 0.84);
  display: none;
  place-items: center;
  z-index: 2200;
}

.gallery-lightbox.is-open {
  display: grid;
}

.gallery-lightbox__content {
  width: min(92vw, 980px);
  max-height: 90vh;
  border: 1px solid rgba(255, 126, 30, 0.7);
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(44, 17, 74, 0.96) 0%, rgba(24, 13, 46, 0.98) 100%);
  box-shadow: 0 0 0 1px rgba(255, 136, 48, 0.44), 0 0 30px rgba(255, 124, 36, 0.28);
  overflow: hidden;
}

.gallery-lightbox__content img {
  width: 100%;
  height: auto;
  max-height: 84vh;
  object-fit: contain;
}

.project-carousel-block {
  display: grid;
  gap: 0.8rem;
  width: 100%;
}

.project-carousel-figure {
  margin: 0;
  border: 1px solid rgba(255, 126, 30, 0.5);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(140deg, rgba(44, 17, 74, 0.96) 0%, rgba(24, 13, 46, 0.98) 100%);
}

.project-carousel-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: linear-gradient(140deg, rgba(36, 14, 62, 0.95), rgba(20, 10, 35, 0.95));
}

.project-carousel-caption {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-top: 1px solid rgba(255, 126, 30, 0.35);
  font-size: 0.96rem;
  line-height: 1.45;
}

.project-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.project-carousel-btn {
  border: 1px solid rgba(255, 126, 30, 0.62);
  background: linear-gradient(135deg, rgba(255, 104, 18, 0.2), rgba(142, 45, 29, 0.24), rgba(58, 24, 46, 0.38));
  color: #ffffff;
  border-radius: 999px;
  min-width: 2.2rem;
  height: 2.2rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
}

.project-carousel-index {
  min-width: 4.2rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.88rem;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "nav";
    gap: 0.6rem;
    padding: 2.2rem 0 0.7rem;
  }

  .brand {
    grid-area: brand;
    justify-self: center;
    text-align: center;
  }

  nav {
    grid-area: nav;
  }

  .lang-toggle {
    position: absolute;
    top: 0.5rem;
    right: 0;
  }

  .nav-list {
    justify-content: center;
    flex-wrap: wrap;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reels-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reels-grid--square {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reels-grid--tender {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "lead lead"
      "shot1 shot2"
      "shot3 shot4";
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 1.3rem, var(--max-width));
  }

  .hero {
    min-height: calc(100svh - var(--header-height));
    padding-top: 0;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .reels-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-inline: auto;
  }

  .reels-grid--square {
    grid-template-columns: 1fr;
  }

  .reels-grid--tender {
    grid-template-columns: 1fr;
  }

  .project-carousel-caption {
    font-size: 0.9rem;
  }

  .mobile-open {
    display: inline-flex;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
  }

}

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

