:root {
  --bg: #070707;
  --white: #f0eeea;
  --muted: rgba(240, 238, 234, 0.25);
  --muted-low: rgba(240, 238, 234, 0.06);
  --green: #5a8a68;
  --green-bright: #7a9e82;
  --bdr: rgba(255, 255, 255, 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--white);
  font-family: "DM Sans", sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── BACKGROUNDS (INTERACTIVE HOVER FADE & KEN BURNS) ── */
.bg-container {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: #000;
}
.bg-video-loop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: brightness(0.6) contrast(1.1) grayscale(0.1);
  z-index: 1;
}
.bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 16s cubic-bezier(0.25, 1, 0.5, 1);
  transform: scale(1.0);
  filter: brightness(0.4) contrast(1.1) grayscale(0.2);
  z-index: 2;
}
.bg-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 7, 7, 0.3) 0%, rgba(7, 7, 7, 0.8) 100%);
}
.bg-image.active {
  opacity: 0.16;
  transform: scale(1.08);
}
/* Default dark ambient overlay */
.bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(10, 10, 10, 0) 0%, rgba(5, 5, 5, 0.65) 100%);
  z-index: 3;
}

/* ── LAYOUT ── */
.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
  z-index: 10;
  padding: 24px;
}

/* ── LOGO CENTRAL ── */
.intro-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 2px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.2s forwards;
}
.intro-brand svg {
  opacity: 0.9;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}
.brand-name {
  font-size: 40px;
  font-weight: 200;
  letter-spacing: 5px;
  color: var(--white);
  text-transform: lowercase;
}
.brand-sub {
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  letter-spacing: 7px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

/* ── GATEWAY NAVIGATION ── */
.gateway {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.5s forwards;
  max-width: 1000px;
  width: 100%;
  gap: 0;
}

.gateway-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  padding: 20px 48px;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
}

.gateway-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 200;
  letter-spacing: 12px;
  color: var(--white);
  opacity: 0.45;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  text-transform: uppercase;
}

.gateway-subtext {
  font-family: "Space Grotesk", sans-serif;
  font-size: 8.5px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--green-bright);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  margin-top: 12px;
}

/* Hover effects */
.gateway:hover .gateway-link:not(:hover) {
  opacity: 0.25;
}
.gateway:hover .gateway-link:not(:hover) .gateway-text {
  opacity: 0.2;
}

.gateway-link:hover .gateway-text {
  opacity: 1;
  letter-spacing: 16px;
  transform: scale(1.02);
}

.gateway-link:hover .gateway-subtext {
  opacity: 0.8;
  transform: translateY(0);
}

/* Divider styling */
.gateway-divider {
  width: 1px;
  height: 64px;
  background: var(--muted-low);
  margin: 0 20px;
  transition: opacity 0.5s;
}

.gateway:hover .gateway-divider {
  opacity: 0.3;
}

/* ── CORNER MARKS ── */
.corner {
  position: absolute;
  width: 18px;
  height: 18px;
  opacity: 0;
  animation: fadeIn 1s ease 1.2s forwards;
}

.corner::before,
.corner::after {
  content: "";
  position: absolute;
  background: var(--muted-low);
}

.corner--tl { top: 48px; left: 48px; }
.corner--tl::before { top: 0; left: 0; width: 18px; height: 1px; }
.corner--tl::after { top: 0; left: 0; width: 1px; height: 18px; }

.corner--tr { top: 48px; right: 48px; }
.corner--tr::before { top: 0; right: 0; width: 18px; height: 1px; }
.corner--tr::after { top: 0; right: 0; width: 1px; height: 18px; }

.corner--bl { bottom: 48px; left: 48px; }
.corner--bl::before { bottom: 0; left: 0; width: 18px; height: 1px; }
.corner--bl::after { bottom: 0; left: 0; width: 1px; height: 18px; }

.corner--br { bottom: 48px; right: 48px; }
.corner--br::before { bottom: 0; right: 0; width: 18px; height: 1px; }
.corner--br::after { bottom: 0; right: 0; width: 1px; height: 18px; }

/* ── FOOTER ── */
.intro-footer {
  position: absolute;
  bottom: 48px;
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 1.2s ease 1.4s forwards;
}
.intro-footer span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 7.5px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.5;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 768px) {
  .intro {
    padding: 32px 20px;
    justify-content: space-around;
  }
  .intro-brand {
    margin-bottom: 0;
    gap: 0px;
    
  }
  .brand-name {

    font-size: 28px;
    letter-spacing: 4px;
  }
  .brand-sub {
    background-color: #5a8a68;
    font-size: 9px;
    letter-spacing: 5px;
  }

.gateway {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items:end;
  justify-content:end;
  opacity: 0;
  transform: translateY(64px);
  animation: fadeUp 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.5s forwards;
  gap: 0;

}
  .gateway-divider {
    display: none;
  }

.gateway-link {
  display:block;
  align-items:center;
  text-decoration: none;
  text-align:justify;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.gateway-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 200;
  letter-spacing: 12px;
  color: var(--white);
  opacity: 0.45;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  text-transform: uppercase;
  justify-content: baseline;
}
  .gateway-link:hover .gateway-text {
    letter-spacing: 10px;
  }
  .gateway-subtext {
    font-size: 7.5px;
    letter-spacing: 4px;
    margin-top: 8px;
  }
  .corner {
    display: none;
  }
  .intro-footer {
    bottom: 20px;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 20px;
    letter-spacing: 3px;
  }
  .brand-sub {
    font-size: 8px;
    letter-spacing: 4px;
  }
  .intro {
    padding: 24px 16px;
    justify-content: center;
    gap: 32px;
  }
  .intro-brand svg {
    width: 100%;
    max-width: 220px;
    height: auto !important;
  }
  .gateway {
    width: 100%;
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
  }
  .gateway-link {
    position: relative;
    padding: 12px 16px;
    width: 100%;
    text-align: center;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .gateway-text {
    font-size: 11px;
    letter-spacing: 6px;
    opacity: 0.7;
  }
  .gateway-link:hover .gateway-text {
    letter-spacing: 8px;
    opacity: 1;
  }
  .gateway-subtext {
    font-size: 7px;
    letter-spacing: 3px;
    margin-top: 4px;
  }
  .gateway-divider {
    width: 40px;
    height: 1px;
    background: var(--muted-low);
    margin: 8px 0;
    opacity: 0.3;
  }
}

