:root {
  --bg: #050506;
  --bg-soft: #10100f;
  --ink: #f7f1e7;
  --muted: #bdb5a8;
  --line: rgba(247, 241, 231, 0.18);
  --line-strong: rgba(247, 241, 231, 0.34);
  --red: #de2d26;
  --cyan: #38d8ca;
  --gold: #f3b84b;
  --pink: #ff3f9d;
  --blue: #2789ff;
  --header-h: 76px;
  --hero-rail-h: clamp(164px, 24vh, 238px);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.is-menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: var(--header-h);
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(5, 5, 6, 0.48);
  backdrop-filter: blur(20px);
  transform: translateX(-50%);
  transition: background 200ms ease, border-color 200ms ease, top 200ms ease;
}

.site-header.is-scrolled {
  top: 10px;
  border-color: var(--line-strong);
  background: rgba(5, 5, 6, 0.78);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: var(--ink);
  color: var(--bg);
  font-weight: 900;
}

.brand-word {
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.site-nav a,
.language-switch button {
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.site-nav a {
  padding: 13px 15px;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.language-switch button:hover,
.language-switch button:focus-visible,
.language-switch button.is-active {
  border-color: var(--line-strong);
  background: rgba(247, 241, 231, 0.08);
  color: var(--ink);
  outline: none;
}

.language-switch {
  display: inline-flex;
  justify-content: flex-end;
  gap: 4px;
  min-width: 190px;
}

.language-switch button {
  min-width: 42px;
  height: 42px;
  cursor: pointer;
  background: transparent;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 241, 231, 0.06);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 180ms ease;
}

body.is-menu-open .menu-button span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

body.is-menu-open .menu-button span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: calc(var(--header-h) + 88px) 24px 34px;
  isolation: isolate;
}

.hero-video,
.hero-fallback,
.video-wash,
.video-grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  z-index: -4;
  object-fit: cover;
  filter: brightness(0.42) contrast(1.16) saturate(0.86);
}

.hero-fallback {
  z-index: -5;
  background:
    linear-gradient(120deg, rgba(222, 45, 38, 0.22), transparent 38%),
    linear-gradient(300deg, rgba(56, 216, 202, 0.18), transparent 40%),
    repeating-linear-gradient(90deg, rgba(247, 241, 231, 0.04) 0 1px, transparent 1px 80px),
    var(--bg);
}

.video-wash {
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(5, 5, 6, 0.18), rgba(5, 5, 6, 0.56) 64%, rgba(5, 5, 6, 0.95)),
    linear-gradient(90deg, rgba(5, 5, 6, 0.82), rgba(5, 5, 6, 0.12) 46%, rgba(5, 5, 6, 0.78));
}

.video-grain {
  z-index: -2;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
  animation: grain-shift 900ms steps(2) infinite;
}

@keyframes grain-shift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-1.5%, 1%, 0);
  }
  100% {
    transform: translate3d(1%, -1.5%, 0);
  }
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100% - 1180px) / 2));
  bottom: calc(var(--hero-rail-h) + 28px);
  z-index: 4;
  width: min(640px, calc(100% - 48px));
  padding: 24px 26px 28px;
  border: 1px solid var(--line-strong);
  background: rgba(5, 5, 6, 0.2);
  backdrop-filter: blur(8px);
}

.kicker,
.section-label {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 0.88rem;
  font-weight: 860;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 100%;
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(4.1rem, 6.6vw, 7.35rem);
  line-height: 0.9;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hero-copy {
  width: min(530px, 100%);
  margin: 22px 0 0;
  color: rgba(247, 241, 231, 0.82);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-weight: 860;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.button-secondary {
  background: rgba(247, 241, 231, 0.08);
}

.hero-projects {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  min-height: var(--hero-rail-h);
  border-top: 1px solid var(--line-strong);
  background: rgba(5, 5, 6, 0.28);
  backdrop-filter: blur(10px);
  color: rgba(247, 241, 231, 0.72);
}

.hero-project {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: rgba(5, 5, 6, 0.16);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.hero-project::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(135deg, rgba(var(--hover-rgb), 0.78), rgba(var(--hover-rgb), 0.2) 46%, rgba(5, 5, 6, 0.12)),
    radial-gradient(circle at 25% 10%, rgba(247, 241, 231, 0.22), transparent 34%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.hero-project:not(.hero-project-soon):hover::before,
.hero-project:not(.hero-project-soon):focus-visible::before {
  opacity: 1;
}

.hero-project:not(.hero-project-soon):hover,
.hero-project:not(.hero-project-soon):focus-visible {
  border-color: rgba(247, 241, 231, 0.42);
  color: #fff;
  outline: none;
}

.hero-project > * {
  position: relative;
  z-index: 1;
}

.hero-project-pink {
  --hover-rgb: 255, 63, 157;
}

.hero-project-blue {
  --hover-rgb: 39, 137, 255;
}

.hero-project-soon {
  cursor: default;
}

.hero-project-soon::before {
  background:
    linear-gradient(135deg, rgba(243, 184, 75, 0.18), transparent 56%),
    repeating-linear-gradient(-45deg, rgba(247, 241, 231, 0.04) 0 1px, transparent 1px 12px);
}

.hero-project-number {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
}

.hero-project strong {
  display: block;
  margin-top: auto;
  color: var(--ink);
  font-size: clamp(1.1rem, 1.45vw, 1.7rem);
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hero-project span:last-child {
  margin-top: 12px;
  color: rgba(247, 241, 231, 0.66);
  font-size: 0.78rem;
  font-weight: 860;
  text-transform: uppercase;
}

.hero-project:not(.hero-project-soon):hover strong,
.hero-project:not(.hero-project-soon):focus-visible strong,
.hero-project:not(.hero-project-soon):hover span:last-child,
.hero-project:not(.hero-project-soon):focus-visible span:last-child {
  color: #fff;
}

.section {
  padding: 104px 24px;
}

.section-grid,
.section-head,
.manifest-inner,
.alliance-section,
.contact-section,
.site-footer {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.1fr);
  gap: 52px;
  align-items: start;
}

h2 {
  max-width: 760px;
  margin: 0;
  font-size: 3.5rem;
  line-height: 0.98;
}

h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.1;
}

p {
  overflow-wrap: anywhere;
}

.intro-section {
  background: var(--ink);
  color: var(--bg);
}

.intro-section .section-label {
  color: var(--red);
}

.intro-copy {
  display: grid;
  gap: 22px;
  color: rgba(5, 5, 6, 0.78);
  font-size: 1.22rem;
}

.intro-copy p {
  margin: 0;
}

.projects-section {
  background:
    linear-gradient(90deg, rgba(222, 45, 38, 0.12), transparent 34%),
    var(--bg);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 36px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(1160px, 100%);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.project-card,
.manifest-item,
.stat {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-card {
  position: relative;
  min-height: 390px;
  padding: 28px;
  background: rgba(247, 241, 231, 0.035);
  transition: background 180ms ease, transform 180ms ease;
}

.project-card:hover {
  background: rgba(247, 241, 231, 0.07);
  transform: translateY(-4px);
}

.project-card-open {
  background: rgba(222, 45, 38, 0.12);
}

.project-number {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 92px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--gold);
  font-weight: 900;
}

.project-card p {
  margin: 18px 0 28px;
  color: rgba(247, 241, 231, 0.72);
}

.project-card a {
  position: absolute;
  bottom: 28px;
  left: 28px;
  font-weight: 860;
  text-transform: uppercase;
  color: var(--cyan);
}

.manifest-section {
  position: relative;
  overflow: hidden;
  padding: 96px 24px 112px;
  background: #e8ded0;
  color: var(--bg);
}

.manifest-marquee {
  display: flex;
  width: max-content;
  margin-bottom: 72px;
  color: rgba(5, 5, 6, 0.1);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 6rem;
  line-height: 0.9;
  text-transform: uppercase;
  white-space: nowrap;
  animation: marquee 24s linear infinite;
}

.manifest-marquee span {
  padding-right: 24px;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.manifest-section .section-label {
  color: var(--red);
}

.manifest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 46px;
  border-top: 1px solid rgba(5, 5, 6, 0.2);
  border-left: 1px solid rgba(5, 5, 6, 0.2);
}

.manifest-item {
  min-height: 260px;
  padding: 26px;
  border-color: rgba(5, 5, 6, 0.2);
}

.manifest-item p {
  margin: 18px 0 0;
  color: rgba(5, 5, 6, 0.72);
}

.alliance-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(300px, 1.05fr);
  gap: 46px;
  align-items: stretch;
}

.alliance-copy {
  align-self: center;
}

.alliance-copy p:last-child {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(247, 241, 231, 0.72);
  font-size: 1.12rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.stat {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background: rgba(247, 241, 231, 0.035);
}

.stat strong {
  color: var(--gold);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 4.7rem;
  line-height: 0.9;
}

.stat span {
  color: rgba(247, 241, 231, 0.72);
  font-weight: 800;
  text-transform: uppercase;
}

.signals-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.08fr);
  min-height: 620px;
  background: var(--ink);
  color: var(--bg);
}

.signals-media {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(130deg, rgba(222, 45, 38, 0.9), rgba(222, 45, 38, 0.1) 42%, transparent),
    linear-gradient(320deg, rgba(56, 216, 202, 0.7), rgba(56, 216, 202, 0.05) 46%, transparent),
    #12100f;
}

.signal-line {
  position: absolute;
  left: -15%;
  width: 130%;
  height: 2px;
  background: rgba(247, 241, 231, 0.64);
  transform: rotate(-12deg);
  animation: signal-pulse 4s ease-in-out infinite;
}

.signal-line:nth-child(1) {
  top: 20%;
}

.signal-line:nth-child(2) {
  top: 38%;
  animation-delay: 500ms;
}

.signal-line:nth-child(3) {
  top: 57%;
  animation-delay: 950ms;
}

.signal-line:nth-child(4) {
  top: 76%;
  animation-delay: 1400ms;
}

@keyframes signal-pulse {
  0%,
  100% {
    opacity: 0.25;
    transform: translateX(-3%) rotate(-12deg);
  }
  50% {
    opacity: 0.86;
    transform: translateX(3%) rotate(-12deg);
  }
}

.signals-content {
  align-self: center;
  padding: 96px clamp(24px, 6%, 78px);
}

.signals-content .section-label {
  color: var(--red);
}

.signals-list {
  display: grid;
  gap: 18px;
  margin-top: 36px;
  font-size: 1.2rem;
}

.signals-list p {
  margin: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(5, 5, 6, 0.18);
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  border-top: 1px solid var(--line);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  padding: 28px 24px 42px;
  border-top: 1px solid var(--line);
  color: rgba(247, 241, 231, 0.62);
  font-size: 0.86rem;
  font-weight: 760;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  :root {
    --header-h: 68px;
    --hero-rail-h: 292px;
  }

  .site-header {
    grid-template-columns: auto auto auto;
  }

  .brand {
    min-width: 0;
  }

  .brand-word {
    display: none;
  }

  .menu-button {
    display: block;
    justify-self: center;
  }

  .site-nav {
    position: fixed;
    top: calc(var(--header-h) + 16px);
    right: 0;
    left: 0;
    display: grid;
    gap: 8px;
    width: 100%;
    padding: 16px;
    border: 1px solid var(--line);
    background: rgba(5, 5, 6, 0.94);
    backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  body.is-menu-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 16px;
    border-color: var(--line);
  }

  .language-switch {
    min-width: 0;
  }

  .hero h1 {
    font-size: 5.7rem;
  }

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

  h2 {
    font-size: 2.8rem;
  }

  .section-grid,
  .alliance-section,
  .signals-section {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .manifest-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .manifest-item,
  .stat {
    min-height: auto;
  }

  .project-number {
    margin-bottom: 52px;
  }

  .project-card p {
    margin-bottom: 58px;
  }

  .manifest-marquee {
    font-size: 4.2rem;
  }

  .signals-media {
    min-height: 260px;
  }
}

@media (max-width: 620px) {
  :root {
    --hero-rail-h: 312px;
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    padding: 0 10px;
  }

  .brand-mark,
  .language-switch button,
  .menu-button {
    width: 40px;
    height: 40px;
  }

  .language-switch button {
    min-width: 36px;
    font-size: 0.76rem;
  }

  .hero {
    padding: calc(var(--header-h) + 80px) 18px 26px;
  }

  .hero-content {
    right: 18px;
    left: 18px;
    bottom: calc(var(--hero-rail-h) + 18px);
    width: auto;
    padding: 18px;
  }

  .hero h1 {
    font-size: 3.3rem;
    line-height: 0.95;
  }

  .hero-copy,
  .intro-copy,
  .signals-list {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    font-size: 0.9rem;
    text-align: center;
  }

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

  .hero-project {
    min-height: 104px;
    padding: 14px;
  }

  .hero-project-number {
    width: 32px;
    height: 32px;
    font-size: 0.72rem;
  }

  .hero-project strong {
    font-size: 1rem;
  }

  .hero-project span:last-child {
    font-size: 0.68rem;
  }

  .section,
  .manifest-section {
    padding: 72px 18px;
  }

  h2 {
    font-size: 2.16rem;
    line-height: 1;
  }

  h3 {
    font-size: 1.2rem;
  }

  .section-head,
  .contact-section {
    display: grid;
  }

  .project-card,
  .manifest-item,
  .stat {
    padding: 22px;
  }

  .project-card a {
    bottom: 22px;
    left: 22px;
  }

  .manifest-marquee {
    margin-bottom: 48px;
    font-size: 2.8rem;
  }

  .stat strong {
    font-size: 3.6rem;
  }

  .site-footer {
    display: grid;
    padding-right: 18px;
    padding-left: 18px;
  }
}

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