/* Mute Group — logo landing */

:root {
  --bg: #050506;
  --red: #d91c23;
  --red-soft: rgba(217, 28, 35, 0.22);
  --text: #f2efe9;
  --text-muted: rgba(242, 239, 233, 0.5);
  --line: rgba(242, 239, 233, 0.12);
  --font-display: "Syne", "Helvetica Neue", sans-serif;
  --font-body: "Outfit", "Helvetica Neue", sans-serif;
}

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

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Full-viewport composition */
.landing {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.75rem, 4.5vh, 3rem);
  padding: clamp(2.5rem, 7vh, 5rem) clamp(1.25rem, 5vw, 3.5rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(217, 28, 35, 0.18), transparent 55%),
    radial-gradient(ellipse 45% 35% at 100% 80%, rgba(217, 28, 35, 0.08), transparent 50%),
    radial-gradient(ellipse 40% 30% at 0% 70%, rgba(217, 28, 35, 0.06), transparent 45%),
    linear-gradient(180deg, #0a0a0c 0%, var(--bg) 55%, #030304 100%);
}

.landing__glow {
  position: absolute;
  top: 12%;
  left: 50%;
  width: min(520px, 70vw);
  height: min(320px, 40vh);
  translate: -50% 0;
  background: radial-gradient(ellipse at center, var(--red-soft), transparent 68%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
  animation: glow-pulse 6s ease-in-out infinite;
}

.landing::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent 75%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

/* Brand: logo mark + small name */
.brand {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
  animation: brand-in 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand__mark {
  width: auto;
  height: clamp(96px, 18vh, 168px);
  max-width: min(280px, 55vw);
  object-fit: contain;
  filter: drop-shadow(0 12px 40px rgba(217, 28, 35, 0.25));
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(0.7rem, 1.6vw, 0.85rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1;
  padding-left: 0.42em; /* optical balance for letter-spacing */
}

/* Slim divider between brand and logos */
.divider {
  position: relative;
  z-index: 1;
  width: min(120px, 28vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0.85;
  animation: rule-in 0.8s 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Four vertical logos */
.logos {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: clamp(0.75rem, 2.5vw, 1.75rem);
  width: min(1100px, 100%);
  margin-top: 0.25rem;
}

.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(110px, 18vh, 160px);
  padding: clamp(1rem, 2.5vw, 1.5rem) clamp(0.75rem, 2vw, 1.25rem);
  text-decoration: none;
  outline: none;
  border-radius: 4px;
  border: 1px solid rgba(242, 239, 233, 0.12);
  background: transparent;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
  animation: logo-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.45s + var(--i, 0) * 0.12s);
}

.logo-link img {
  width: auto;
  max-width: 100%;
  max-height: clamp(64px, 11vh, 100px);
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

/* Ritual mark is square — keep it a touch taller visually */
.logo-link:nth-child(3) img {
  max-height: clamp(72px, 12vh, 112px);
}

.logo-link:hover,
.logo-link:focus-visible {
  transform: translateY(-6px);
  background-color: rgba(255, 255, 255, 0.028);
  border-color: rgba(217, 28, 35, 0.55);
  box-shadow: 0 18px 40px -20px rgba(217, 28, 35, 0.45);
}

.logo-link:hover img,
.logo-link:focus-visible img {
  transform: scale(1.06);
  filter: brightness(1.08);
}

.logo-link:focus-visible {
  box-shadow: 0 0 0 2px var(--red);
}

/* Motion */
@keyframes brand-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes rule-in {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 0.85;
    transform: scaleX(1);
  }
}

@keyframes logo-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .divider,
  .logo-link,
  .landing__glow {
    animation: none;
  }

  .logo-link,
  .logo-link img {
    transition: none;
  }
}

/* Tablet: 2×2 */
@media (max-width: 900px) {
  .logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1rem;
    width: min(560px, 100%);
  }

  .logo-link {
    min-height: 130px;
  }

  .logo-link img {
    max-height: 88px;
  }

  .logo-link:nth-child(3) img {
    max-height: 96px;
  }
}

/* Mobile */
@media (max-width: 520px) {
  .landing {
    gap: 1.5rem;
    padding-block: 3rem 2.5rem;
    justify-content: flex-start;
    padding-top: clamp(3.5rem, 12vh, 5rem);
  }

  .brand__mark {
    height: 110px;
    max-width: 200px;
  }

  .brand__name {
    letter-spacing: 0.36em;
    font-size: 0.68rem;
  }

  .logos {
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }

  .logo-link {
    min-height: 100px;
    padding: 0.85rem 0.5rem;
  }

  .logo-link img {
    max-height: 70px;
  }

  .logo-link:nth-child(3) img {
    max-height: 78px;
  }
}
