:root {
  --bg: #050706;
  --panel: rgba(5, 8, 7, 0.76);
  --panel-soft: rgba(255, 255, 255, 0.045);
  --text: #fff8ef;
  --muted: rgba(255, 248, 239, 0.68);
  --gold: #c9963a;
  --gold-soft: rgba(201, 150, 58, 0.28);
  --emerald: #09f0aa;
  --emerald-soft: rgba(9, 240, 170, 0.24);
  --violet: #9b36ff;
  --violet-soft: rgba(155, 54, 255, 0.28);
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: "Inter", sans-serif;
}

body.menu-open,
body.world-rebuild-active,
body.modal-open {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.wild-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 76% 14%, rgba(155, 54, 255, 0.34), transparent 28rem),
    radial-gradient(circle at 62% 42%, rgba(9, 240, 170, 0.26), transparent 32rem),
    radial-gradient(circle at 28% 82%, rgba(201, 150, 58, 0.12), transparent 24rem),
    #050706;
}

/* SIDEBAR */

.wild-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1200;
  width: 210px;
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  gap: 28px;
  padding: 34px 28px;
  border-right: 1px solid rgba(201, 150, 58, 0.18);
  background:
    linear-gradient(180deg, rgba(8, 10, 9, 0.94), rgba(7, 9, 8, 0.76)),
    radial-gradient(circle at 50% 0%, rgba(201, 150, 58, 0.13), transparent 14rem);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 20px 0 70px rgba(0, 0, 0, 0.32);
}

.wild-brand {
  display: grid;
  gap: 8px;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-star {
  font-size: 32px;
  line-height: 1;
}

.wild-brand small {
  color: rgba(255, 248, 239, 0.62);
  font-family: "Inter", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.32em;
}

.side-nav {
  align-self: center;
  display: grid;
  gap: 25px;
}

.side-nav a {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 12px;
  color: rgba(255, 248, 239, 0.58);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: 0.35s ease;
}

.side-nav span {
  color: rgba(201, 150, 58, 0.7);
  font-weight: 500;
}

.side-nav a:hover,
.side-nav a.active {
  color: var(--text);
  transform: translateX(5px);
}

.side-nav a.active span {
  color: var(--emerald);
  text-shadow: 0 0 18px rgba(9, 240, 170, 0.76);
}

.side-cta {
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  margin-inline: auto;
  border: 1px solid rgba(201, 150, 58, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(201, 150, 58, 0.14), transparent 68%),
    rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: 0.35s ease;
}

.side-cta span {
  display: block;
  color: var(--gold);
  font-size: 22px;
}

.side-cta:hover {
  transform: scale(1.04);
  box-shadow: 0 0 40px rgba(201, 150, 58, 0.18);
}

.side-socials {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.side-socials a {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.side-code {
  margin: 0;
  color: rgba(255, 248, 239, 0.54);
  font-family: monospace;
  font-size: 12px;
  line-height: 1.7;
}

.side-code::first-line {
  color: var(--emerald);
}

/* MOBILE HEADER */

.wild-mobile-header {
  display: none;
}

.wild-main {
  margin-left: 210px;
}

/* HERO */

.wild-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 9vh 6vw 120px;
  display: grid;
  align-items: center;
}

.wild-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 38%, rgba(9, 240, 170, 0.24), transparent 20rem),
    radial-gradient(circle at 82% 22%, rgba(155, 54, 255, 0.3), transparent 22rem),
    linear-gradient(115deg, transparent 0 56%, rgba(9, 240, 170, 0.08) 57%, transparent 69%);
  mix-blend-mode: screen;
}

.wild-hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 62% center;
  filter:
    brightness(0.72)
    contrast(1.12)
    saturate(1.18);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(2, 4, 3, 0.96) 0%,
      rgba(2, 4, 3, 0.78) 28%,
      rgba(2, 4, 3, 0.26) 56%,
      rgba(2, 4, 3, 0.5) 100%
    ),
    radial-gradient(circle at 72% 50%, rgba(9, 240, 170, 0.14), transparent 24rem),
    radial-gradient(circle at 82% 18%, rgba(155, 54, 255, 0.24), transparent 22rem);
}

.hero-neon {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  border-radius: 999px;
  mix-blend-mode: screen;
}

.hero-neon-violet {
  width: 380px;
  height: 380px;
  right: 14%;
  top: 16%;
  background: radial-gradient(circle, rgba(155, 54, 255, 0.36), transparent 66%);
  filter: blur(22px);
  animation: heroGlowOne 9s ease-in-out infinite;
}

.hero-neon-emerald {
  width: 440px;
  height: 300px;
  right: 5%;
  bottom: 18%;
  background: radial-gradient(circle, rgba(9, 240, 170, 0.28), transparent 68%);
  filter: blur(28px);
  animation: heroGlowTwo 11s ease-in-out infinite;
}

.hero-light-sweep {
  position: absolute;
  z-index: 2;
  left: 60%;
  top: -20%;
  width: 2px;
  height: 150vh;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(201, 150, 58, 0.18),
    rgba(155, 54, 255, 0.24),
    transparent
  );
  transform: rotate(24deg);
  pointer-events: none;
  animation: heroSweep 8s ease-in-out infinite;
}

@keyframes heroGlowOne {
  0%,
  100% {
    opacity: 0.62;
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate3d(-34px, 28px, 0) scale(1.14);
  }
}

@keyframes heroGlowTwo {
  0%,
  100% {
    opacity: 0.58;
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    opacity: 0.94;
    transform: translate3d(34px, -24px, 0) scale(1.1);
  }
}

@keyframes heroSweep {
  0%,
  100% {
    opacity: 0.1;
    transform: translateX(-18px) rotate(24deg);
  }

  50% {
    opacity: 0.5;
    transform: translateX(38px) rotate(24deg);
  }
}

.hero-copy {
  position: relative;
  z-index: 6;
  width: min(680px, 100%);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(58px, 7vw, 118px);
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.hero-copy h1 em {
  display: block;
  color: var(--emerald);
  font-family: "Cormorant Garamond", serif;
  font-size: 0.72em;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  text-shadow:
    0 0 28px rgba(9, 240, 170, 0.42),
    0 0 58px rgba(9, 240, 170, 0.18);
}

.hero-copy h1 strong {
  display: inline-block;
  color: var(--gold);
  font-weight: 600;
  text-shadow: 0 0 26px rgba(201, 150, 58, 0.22);
}

.hero-text {
  width: min(420px, 100%);
  margin: 30px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: 0.35s ease;
}

.primary-btn {
  border: 1px solid rgba(9, 240, 170, 0.52);
  background:
    linear-gradient(135deg, rgba(9, 240, 170, 0.18), rgba(255, 255, 255, 0.03));
  color: var(--text);
  box-shadow: 0 0 36px rgba(9, 240, 170, 0.08);
}

.ghost-btn {
  border: 1px solid rgba(201, 150, 58, 0.36);
  color: var(--gold);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

.theme-switcher {
  position: absolute;
  z-index: 7;
  top: 13vh;
  right: 5vw;
  display: grid;
  gap: 14px;
  width: 180px;
}

.theme-switcher p {
  margin: 0;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.theme-switcher a {
  position: relative;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border: 1px solid rgba(201, 150, 58, 0.18);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.theme-switcher a span {
  width: 10px;
  height: 10px;
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.hero-note {
  position: absolute;
  right: 6vw;
  bottom: 18vh;
  z-index: 6;
  color: var(--emerald);
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-style: italic;
  opacity: 0.86;
  text-shadow: 0 0 22px rgba(9, 240, 170, 0.24);
}

.hero-note p,
.hero-note span {
  display: block;
  margin: 0;
}

/* HEX WORLD */

.wild-hex-world {
  position: relative;
  z-index: 6;
  margin-top: -76px;
  padding: 90px 6vw 100px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) 70px minmax(620px, 1.28fr);
  gap: 28px;
  align-items: center;
  background:
    radial-gradient(circle at 18% 30%, rgba(9, 240, 170, 0.16), transparent 28rem),
    radial-gradient(circle at 78% 18%, rgba(155, 54, 255, 0.18), transparent 26rem),
    radial-gradient(circle at 70% 76%, rgba(201, 150, 58, 0.08), transparent 22rem),
    linear-gradient(135deg, #050706 0%, #07100d 42%, #07070d 100%);
}

.wild-hex-world::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background:
    radial-gradient(circle at 8% 20%, rgba(201, 150, 58, 0.14), transparent 12rem),
    radial-gradient(circle at 92% 64%, rgba(9, 240, 170, 0.1), transparent 16rem);
}

.wild-hex-world::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("../assets/media/leo2.png");
  background-size: cover;
  background-position: center;
  filter: saturate(1.2) contrast(1.1);
  mask-image: linear-gradient(90deg, #000 0%, transparent 22%, transparent 78%, #000 100%);
}

.wild-system-copy,
.wild-system-divider,
.wild-fragments {
  position: relative;
  z-index: 2;
}

.wild-system-copy h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(44px, 5vw, 76px);
  font-weight: 500;
  line-height: 0.95;
}

.wild-system-copy > p:not(.eyebrow):not(.wild-system-statement) {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.system-block {
  margin-top: 30px;
}

.system-block h3 {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wild-system-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  list-style: none;
}

.wild-system-list li {
  position: relative;
  padding-left: 24px;
  color: rgba(255, 248, 239, 0.78);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.wild-system-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border: 1px solid var(--emerald);
  transform: rotate(45deg);
  box-shadow: 0 0 18px rgba(9, 240, 170, 0.7);
}

.wild-system-statement {
  margin: 34px 0 0;
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  line-height: 1.05;
}

.wild-system-statement span {
  display: block;
  color: var(--gold);
  font-style: italic;
}

/* ENGINEERING BUTTON */

.engineering-open {
  width: fit-content;
  min-height: 58px;
  margin-top: 30px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(201, 150, 58, 0.3);
  border-radius: 999px;
  color: var(--gold);
  background:
    linear-gradient(135deg, rgba(201, 150, 58, 0.1), rgba(9, 240, 170, 0.05)),
    rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: 0.35s ease;
}

.engineering-open span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(9, 240, 170, 0.45);
  border-radius: 50%;
  color: var(--emerald);
  transition: transform 0.3s ease;
}

.engineering-open:hover {
  transform: translateY(-3px);
  border-color: rgba(9, 240, 170, 0.55);
  box-shadow: 0 20px 60px rgba(9, 240, 170, 0.1);
}

.engineering-open:hover span {
  transform: rotate(90deg);
}

/* DIVIDER */

.wild-system-divider {
  position: relative;
  z-index: 4;
  height: 760px;
  display: grid;
  justify-items: center;
  align-content: space-between;
  pointer-events: none;
}

.wild-system-divider span {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(201, 150, 58, 0.7),
    rgba(9, 240, 170, 0.42),
    rgba(155, 54, 255, 0.42),
    rgba(201, 150, 58, 0.58),
    transparent
  );
  box-shadow:
    0 0 18px rgba(201, 150, 58, 0.22),
    0 0 28px rgba(9, 240, 170, 0.12);
}

.wild-system-divider i,
.wild-system-divider b {
  position: relative;
  z-index: 2;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(201, 150, 58, 0.85);
  background:
    radial-gradient(circle, rgba(9, 240, 170, 0.18), transparent 64%),
    rgba(5, 8, 7, 0.9);
  transform: rotate(45deg);
  box-shadow:
    0 0 18px rgba(201, 150, 58, 0.45),
    inset 0 0 14px rgba(9, 240, 170, 0.1);
}

.wild-system-divider i::after,
.wild-system-divider b::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(9, 240, 170, 0.55);
  box-shadow: 0 0 14px rgba(9, 240, 170, 0.28);
}

/* HEX CARDS */

.wild-fragments {
  min-height: 820px;
  width: 100%;
}

.fragments-label {
  position: absolute;
  right: 2%;
  top: 8px;
  margin: 0;
  color: rgba(255, 248, 239, 0.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hex-card {
  position: absolute;
  display: grid;
  place-items: center;
  align-content: center;
  width: 220px;
  min-height: 198px;
  padding: 36px 28px;
  overflow: hidden;
  text-align: center;
  user-select: none;
  touch-action: none;
  cursor: grab;
  background: rgba(4, 6, 5, 0.72);
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
  transition:
    filter 0.28s ease,
    box-shadow 0.28s ease;
}

.hex-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 1;
  clip-path: inherit;
  background:
    linear-gradient(
      135deg,
      rgba(9, 240, 170, 0.2),
      rgba(201, 150, 58, 0.12),
      rgba(155, 54, 255, 0.16)
    ),
    rgba(6, 8, 7, 0.78);
}

.hex-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  clip-path: inherit;
  background: linear-gradient(135deg, var(--emerald), var(--gold), var(--violet));
}

.hex-card img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0.3;
  filter: brightness(0.52) saturate(1.2);
  transition: 0.45s ease;
}

.hex-card span,
.hex-card h3,
.hex-card p {
  position: relative;
  z-index: 3;
}

.hex-card span {
  color: var(--emerald);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.hex-card h3 {
  margin: 12px 0 8px;
  font-family: "Cormorant Garamond", serif;
  color: var(--text);
  font-size: 30px;
  font-weight: 500;
  line-height: 0.95;
}

.hex-card p {
  width: min(170px, 100%);
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.hex-card:hover,
.hex-card.is-dragging {
  filter:
    drop-shadow(0 0 26px rgba(9, 240, 170, 0.22))
    drop-shadow(0 0 36px rgba(155, 54, 255, 0.12));
}

.hex-card:hover img,
.hex-card.is-dragging img {
  opacity: 0.42;
  transform: scale(1.08);
}

.hex-card.is-dragging {
  z-index: 50;
  cursor: grabbing;
}

.fragment-one {
  top: 70px;
  left: 8%;
}

.fragment-two {
  top: 175px;
  left: 34%;
}

.fragment-three {
  top: 280px;
  left: 8%;
}

.fragment-four {
  top: 385px;
  left: 34%;
}

.fragment-five {
  top: 490px;
  left: 8%;
}

.fragment-six {
  top: 595px;
  left: 34%;
}

.fragment-seven {
  top: 700px;
  left: 8%;
}

.drag-tooltip {
  position: fixed;
  z-index: 9998;
  left: 0;
  top: 0;
  padding: 10px 14px;
  border: 1px solid rgba(201, 150, 58, 0.44);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(5, 8, 7, 0.86);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.drag-tooltip.is-visible {
  opacity: 1;
}

/* FEATURED WORK */

.featured-work {
  position: relative;
  z-index: 5;
  margin: 0;
  padding: 110px 6vw 125px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(9, 240, 170, 0.13), transparent 28rem),
    radial-gradient(circle at 84% 16%, rgba(155, 54, 255, 0.2), transparent 28rem),
    radial-gradient(circle at 68% 82%, rgba(201, 150, 58, 0.1), transparent 24rem),
    linear-gradient(135deg, #050706 0%, #07100d 44%, #06060a 100%);
}

.featured-work::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("../assets/media/leo1.png");
  background-size: cover;
  background-position: center;
  filter: saturate(1.2) contrast(1.12);
  mask-image: linear-gradient(
    90deg,
    #000 0%,
    transparent 18%,
    transparent 78%,
    #000 100%
  );
}

.featured-work::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 150, 58, 0.72),
    rgba(9, 240, 170, 0.46),
    rgba(155, 54, 255, 0.46),
    transparent
  );
}

.featured-work > * {
  position: relative;
  z-index: 2;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 38px;
}

.section-heading h2 {
  margin: 0;
  color: rgba(255, 248, 239, 0.78);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wild-project-wall {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: clamp(18px, 2vw, 30px);
  align-items: stretch;
  perspective: 1600px;
  transform-style: preserve-3d;
}

.wild-project-panel {
  position: relative;
  min-height: 430px;
  isolation: isolate;
  transform-style: preserve-3d;
  transition:
    transform 0.42s ease,
    filter 0.42s ease;
}

.wild-project-panel:nth-child(1) {
  transform: translateY(10px);
}

.wild-project-panel:nth-child(2) {
  transform: translateY(34px);
}

.wild-project-panel:nth-child(3) {
  transform: translateY(18px);
}

.wild-project-panel:nth-child(4) {
  transform: translateY(0);
}

.panel-shadow {
  position: absolute;
  inset: 24px 12px -18px;
  z-index: 0;
  border-radius: 36px;
  background:
    radial-gradient(circle at 50% 20%, rgba(9, 240, 170, 0.16), transparent 56%),
    rgba(0, 0, 0, 0.34);
  filter: blur(18px);
  opacity: 0.72;
  transform: translateZ(-30px);
  transition:
    opacity 0.42s ease,
    transform 0.42s ease;
}

.panel-side {
  position: absolute;
  z-index: 1;
  top: 26px;
  right: -18px;
  bottom: 24px;
  width: 74px;
  border: 1px solid rgba(201, 150, 58, 0.32);
  border-left: 0;
  border-radius: 0 42px 34px 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 7, 0.2), rgba(5, 8, 7, 0.38)),
    url("../assets/media/leo1.png");
  background-size: cover;
  background-position: 72% center;
  opacity: 0.42;
  filter: saturate(1.18) contrast(1.18);
  transform: translateX(-26px) rotateY(-26deg) skewY(-5deg);
  transform-origin: left center;
  transition:
    opacity 0.42s ease,
    transform 0.42s ease,
    filter 0.42s ease;
}

.panel-glow {
  position: absolute;
  inset: -18px;
  z-index: 2;
  pointer-events: none;
  border-radius: 42px;
  background:
    radial-gradient(circle at 20% 18%, rgba(9, 240, 170, 0.18), transparent 36%),
    radial-gradient(circle at 84% 8%, rgba(155, 54, 255, 0.18), transparent 38%),
    radial-gradient(circle at 50% 100%, rgba(201, 150, 58, 0.14), transparent 34%);
  opacity: 0;
  filter: blur(18px);
  transition: opacity 0.42s ease;
}

.panel-face {
  position: relative;
  z-index: 3;
  height: 100%;
  min-height: 430px;
  padding: 34px 30px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(201, 150, 58, 0.38);
  border-radius: 38px 26px 34px 24px;
  background:
    radial-gradient(circle at 20% 16%, rgba(9, 240, 170, 0.12), transparent 15rem),
    radial-gradient(circle at 86% 12%, rgba(155, 54, 255, 0.15), transparent 16rem),
    linear-gradient(145deg, rgba(8, 12, 10, 0.98), rgba(4, 6, 5, 0.93));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 34px rgba(201, 150, 58, 0.04),
    0 28px 80px rgba(0, 0, 0, 0.4);
  transform: translateZ(34px);
  transition:
    border-color 0.42s ease,
    box-shadow 0.42s ease,
    transform 0.42s ease,
    background 0.42s ease;
}

.wild-project-panel:nth-child(2) .panel-face {
  border-radius: 26px 42px 26px 36px;
}

.wild-project-panel:nth-child(3) .panel-face {
  border-radius: 44px 24px 38px 28px;
}

.wild-project-panel:nth-child(4) .panel-face {
  border-radius: 28px 48px 30px 42px;
}

.panel-face::before {
  content: "";
  position: absolute;
  inset: -40% auto -40% -65%;
  width: 64%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 150, 58, 0.14),
    rgba(9, 240, 170, 0.11),
    transparent
  );
  transform: rotate(12deg);
  opacity: 0;
  transition:
    opacity 0.42s ease,
    left 0.72s ease;
}

.panel-face::after {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: inherit;
}

.panel-top {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 34px;
}

.panel-index {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.panel-kind {
  color: rgba(255, 248, 239, 0.82);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.panel-title {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 18px;
}

.panel-title h3 {
  max-width: 9ch;
  margin: 0;
  color: #fff8ef;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(42px, 4vw, 66px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: 0;
}

.panel-title p {
  max-width: 31ch;
  margin: 0;
  color: rgba(255, 248, 239, 0.72);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.7;
}

.panel-link {
  position: relative;
  z-index: 3;
  width: fit-content;
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid rgba(201, 150, 58, 0.34);
  border-radius: 999px;
  color: #fff8ef;
  background: rgba(255, 255, 255, 0.035);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    background 0.3s ease;
}

.wild-project-panel:hover {
  filter:
    drop-shadow(0 0 22px rgba(9, 240, 170, 0.12))
    drop-shadow(0 0 30px rgba(155, 54, 255, 0.08));
}

.wild-project-panel:nth-child(1):hover,
.wild-project-panel:nth-child(2):hover,
.wild-project-panel:nth-child(3):hover,
.wild-project-panel:nth-child(4):hover {
  transform: translateY(-12px) translateZ(26px);
}

.wild-project-panel:hover .panel-shadow {
  opacity: 1;
  transform: translateZ(-42px) translateY(18px) scale(1.04);
}

.wild-project-panel:hover .panel-side {
  opacity: 0.96;
  transform: translateX(0) rotateY(-18deg) skewY(-5deg);
  filter: saturate(1.32) contrast(1.22);
}

.wild-project-panel:hover .panel-glow {
  opacity: 1;
}

.wild-project-panel:hover .panel-face {
  border-color: rgba(201, 150, 58, 0.72);
  transform: translateZ(54px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 34px 110px rgba(0, 0, 0, 0.5),
    0 0 44px rgba(9, 240, 170, 0.1),
    0 0 54px rgba(155, 54, 255, 0.12);
}

.wild-project-panel:hover .panel-face::before {
  left: 115%;
  opacity: 1;
}

.wild-project-panel:hover .panel-link {
  transform: translateX(5px);
  color: var(--emerald);
  border-color: rgba(9, 240, 170, 0.5);
  background: rgba(9, 240, 170, 0.06);
}

/* ENGINEERING MODAL */

.engineering-modal {
  position: fixed;
  inset: 0;
  z-index: 9997;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}

.engineering-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.engineering-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(9, 240, 170, 0.16), transparent 24rem),
    rgba(2, 4, 3, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.engineering-dialog {
  position: relative;
  width: min(760px, calc(100vw - 38px));
  max-height: min(720px, calc(100vh - 54px));
  overflow: auto;
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid rgba(201, 150, 58, 0.26);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 18%, rgba(155, 54, 255, 0.18), transparent 18rem),
    radial-gradient(circle at 14% 72%, rgba(9, 240, 170, 0.12), transparent 16rem),
    rgba(5, 8, 7, 0.94);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.58);
  transform: translateY(22px) scale(0.96);
  transition: transform 0.32s ease;
}

.engineering-modal.is-open .engineering-dialog {
  transform: translateY(0) scale(1);
}

.engineering-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(201, 150, 58, 0.32);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.engineering-dialog h2 {
  max-width: 620px;
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 500;
  line-height: 0.96;
}

.engineering-dialog p:not(.eyebrow) {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.engineering-modal-list {
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  list-style: none;
}

.engineering-modal-list li {
  position: relative;
  padding-left: 28px;
  color: rgba(255, 248, 239, 0.78);
  font-size: 14px;
  line-height: 1.7;
}

.engineering-modal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border: 1px solid var(--emerald);
  transform: rotate(45deg);
  box-shadow: 0 0 16px rgba(9, 240, 170, 0.65);
}

/* FOOTER */

.wild-footer {
  margin-left: 210px;
  padding: 90px 6vw;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  background:
    radial-gradient(circle at 86% 20%, rgba(155, 54, 255, 0.12), transparent 22rem),
    #050706;
  border-top: 1px solid rgba(201, 150, 58, 0.18);
}

.wild-footer h2 {
  max-width: 680px;
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(44px, 5vw, 78px);
  font-weight: 500;
  line-height: 0.96;
}

.wild-footer h2 em {
  color: var(--gold);
  font-style: italic;
}

.wild-footer-links {
  display: grid;
  gap: 14px;
  align-content: end;
  justify-items: end;
}

.wild-footer-links a {
  color: rgba(255, 248, 239, 0.68);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* WORLD REBUILD TRANSITION */

.world-rebuild {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 72% 28%, rgba(9, 240, 170, 0.2), transparent 24rem),
    radial-gradient(circle at 30% 78%, rgba(155, 54, 255, 0.2), transparent 24rem),
    #050706;
  transition: opacity 0.35s ease;
}

.world-rebuild.is-active {
  opacity: 1;
}

.world-rebuild__panel {
  position: relative;
  z-index: 3;
  width: min(560px, calc(100vw - 42px));
  padding: 46px;
  border: 1px solid rgba(201, 150, 58, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 84% 16%, rgba(9, 240, 170, 0.12), transparent 14rem),
    rgba(5, 8, 7, 0.78);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.world-rebuild__kicker {
  margin: 0 0 18px;
  color: var(--emerald);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.world-rebuild__title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 500;
  line-height: 0.92;
}

.world-rebuild__title em {
  display: block;
  color: var(--gold);
  font-style: italic;
}

.world-rebuild__line {
  height: 2px;
  margin: 30px 0 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.world-rebuild__line span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--emerald), var(--gold), var(--violet));
}

.world-rebuild__text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* REVEAL */

.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition:
    opacity 0.85s ease,
    transform 0.85s ease;
}

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

/* RESPONSIVE */

@media (max-width: 1180px) {
  .wild-sidebar {
    display: none;
  }

  .wild-main,
  .wild-footer {
    margin-left: 0;
  }

  .wild-mobile-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
    background: rgba(5, 7, 6, 0.58);
    border-bottom: 1px solid rgba(201, 150, 58, 0.16);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
  }

  .mobile-brand {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: var(--gold);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.26em;
  }

  .mobile-brand span {
    color: rgba(255, 248, 239, 0.62);
    font-size: 8px;
    letter-spacing: 0.42em;
  }

  .menu-toggle {
    position: relative;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(201, 150, 58, 0.28);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
  }

  .menu-toggle span {
    position: absolute;
    left: 16px;
    right: 16px;
    height: 1px;
    background: var(--text);
    transition: 0.35s ease;
  }

  .menu-toggle span:first-child {
    top: 23px;
  }

  .menu-toggle span:last-child {
    top: 34px;
  }

  .menu-toggle.is-active span:first-child {
    top: 29px;
    transform: rotate(45deg);
  }

  .menu-toggle.is-active span:last-child {
    top: 29px;
    transform: rotate(-45deg);
  }

  .mobile-menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 28px;
    width: min(380px, calc(100vw - 56px));
    padding: 26px;
    border: 1px solid rgba(201, 150, 58, 0.2);
    border-radius: 24px;
    background: rgba(5, 7, 6, 0.92);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px) scale(0.96);
    transition: 0.35s ease;
  }

  .mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .mobile-menu a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-family: "Cormorant Garamond", serif;
    font-size: 40px;
  }

  .mobile-menu a:last-child {
    border-bottom: 0;
  }

  .wild-hero {
    padding-top: 150px;
  }

  .theme-switcher {
    top: 150px;
  }

  .wild-hex-world {
    grid-template-columns: 1fr;
  }

  .wild-system-divider {
    display: none;
  }

  .wild-fragments {
    min-height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 24px;
    margin-top: 34px;
  }

  .fragments-label {
    position: static;
    grid-column: 1 / -1;
  }

  .hex-card {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 220px;
  }

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

  .wild-project-panel,
  .wild-project-panel:nth-child(1),
  .wild-project-panel:nth-child(2),
  .wild-project-panel:nth-child(3),
  .wild-project-panel:nth-child(4) {
    transform: none;
  }

  .wild-project-panel {
    min-height: 380px;
  }

  .panel-face {
    min-height: 380px;
  }

  .panel-title h3 {
    font-size: 54px;
  }
}

@media (max-width: 760px) {
  .wild-mobile-header {
    padding: 18px 22px;
  }

  .wild-hero {
    min-height: 900px;
    padding: 132px 24px 90px;
    align-items: end;
  }

  .wild-hero-image {
    object-position: 62% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(2, 4, 3, 0.42), rgba(2, 4, 3, 0.16) 36%, rgba(2, 4, 3, 0.92) 78%, #050706 100%),
      linear-gradient(90deg, rgba(2, 4, 3, 0.78), rgba(2, 4, 3, 0.16));
  }

  .hero-copy h1 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .hero-text {
    font-size: 14px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .theme-switcher {
    position: relative;
    top: auto;
    right: auto;
    z-index: 7;
    width: 100%;
    max-width: 360px;
    margin-bottom: 28px;
  }

  .hero-note {
    display: none;
  }

  .wild-hex-world {
    margin-top: 0;
    padding: 78px 24px 72px;
  }

  .wild-system-copy h2 {
    font-size: 44px;
  }

  .wild-system-statement {
    font-size: 30px;
  }

  .engineering-open {
    width: 100%;
    justify-content: space-between;
  }

  .wild-fragments {
    grid-template-columns: 1fr;
  }

  .hex-card {
    width: min(300px, 100%);
    justify-self: center;
  }

  .featured-work {
    padding: 78px 22px 90px;
  }

  .section-heading {
    display: grid;
  }

  .wild-project-wall {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .wild-project-panel {
    min-height: 340px;
  }

  .panel-face {
    min-height: 340px;
    padding: 30px 26px;
  }

  .panel-side {
    width: 56px;
    right: -12px;
  }

  .panel-title h3 {
    font-size: 48px;
  }

  .engineering-modal {
    padding: 18px;
  }

  .engineering-dialog {
    border-radius: 22px;
  }

  .wild-footer {
    padding: 70px 24px;
    flex-direction: column;
  }

  .wild-footer-links {
    justify-items: start;
  }
}