/* ==========================================================================
   Live Love Awards — components
   Site chrome (loader, nav, menu, footer) plus the two pieces of visual
   identity every inner page keeps: buttons and the glass card.
   ========================================================================== */

/* --- Loader --------------------------------------------------------------
   Only mounted on the fancy landing page, but the styles live here so any
   page could opt in. */

#load {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  display: grid;
  place-items: center;
  transition: opacity .8s ease, visibility .8s;
}
#load.off { opacity: 0; visibility: hidden }
#load svg {
  width: min(44vw, 380px);
  color: var(--paper);
  opacity: 0;
  animation: lin 1s var(--ease-firm) forwards;
}
@keyframes lin {
  from { opacity: 0; transform: translateY(14px) }
  to { opacity: 1; transform: none }
}

/* --- WebGL stage ---------------------------------------------------------
   Fixed full-viewport canvas behind everything. Fades in once the renderer
   has produced its first frame. */

#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
}
#stage.on { opacity: 1 }

/* --- Scroll progress ------------------------------------------------------ */

#prog {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--mint);
  z-index: 130;
  transition: width .1s linear;
}

/* --- Nav ------------------------------------------------------------------ */

#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav);
  z-index: 120;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s;
}
#nav.stuck {
  background: rgba(10, 12, 13, .72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--rule);
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
}
.nav-mark { width: 118px; color: var(--paper) }

.nav-nav { display: flex; gap: 28px }
.nav-nav a {
  font-size: 12.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--dim);
  padding-block: 5px;
  position: relative;
  transition: color .3s;
}
.nav-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease-soft);
}
.nav-nav a:hover { color: var(--paper) }
.nav-nav a:hover::after,
.nav-nav a[aria-current]::after { transform: scaleX(1); transform-origin: left }

/* Inner pages sit on a solid ground, so the bar is always present */
#nav.solid {
  background: rgba(10, 12, 13, .82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--rule);
}

/* --- Buttons -------------------------------------------------------------- */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--mint);
  color: var(--ink);
  padding: 12px 20px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .3s, transform .3s;
}
.cta:hover { background: var(--paper); transform: translateY(-2px) }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 16px 26px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .11em;
  text-transform: uppercase;
  border: 1px solid var(--paper);
  transition: background .3s, color .3s, transform .3s, border-color .3s;
}
.btn--f { background: var(--mint); border-color: var(--mint); color: var(--ink) }
.btn--f:hover { background: var(--paper); border-color: var(--paper); transform: translateY(-2px) }
.btn--o:hover { background: var(--paper); color: var(--ink); transform: translateY(-2px) }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .4;
  pointer-events: none;
}

.btn--sm { padding: 11px 18px; font-size: 11.5px }

.acts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: clamp(24px, 3vw, 36px);
}

/* --- Glass ---------------------------------------------------------------
   The signature surface. Used by the rule cards, the date timeline, and
   every card on the inner pages. A sheen sweeps across on hover. */

.glass {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(244, 245, 241, .055);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(244, 245, 241, .13);
  box-shadow: inset 0 1px 0 rgba(244, 245, 241, .18),
              0 22px 48px -30px rgba(0, 0, 0, .9);
  transition: transform .55s var(--ease-firm), background .45s,
              border-color .45s, box-shadow .45s;
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(155deg, rgba(244, 245, 241, .16), rgba(244, 245, 241, 0) 42%);
}
.glass::after {
  content: "";
  position: absolute;
  left: -40%;
  top: -120%;
  width: 55%;
  height: 340%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(244, 245, 241, .10), transparent);
  transform: rotate(18deg) translateX(-30%);
  opacity: 0;
  transition: opacity .5s, transform 1.1s var(--ease-firm);
}
.glass:hover {
  transform: translateY(-6px);
  background: rgba(244, 245, 241, .095);
  border-color: rgba(244, 245, 241, .26);
  box-shadow: inset 0 1px 0 rgba(244, 245, 241, .26),
              0 28px 56px -28px rgba(0, 0, 0, .95);
}
.glass:hover::after { opacity: 1; transform: rotate(18deg) translateX(230%) }

/* Accent-tinted glass, matching the pillar palette */
.glass--a::before { background: linear-gradient(155deg, rgba(76, 125, 240, .22), rgba(76, 125, 240, 0) 44%) }
.glass--b::before { background: linear-gradient(155deg, rgba(255, 92, 57, .20), rgba(255, 92, 57, 0) 44%) }
.glass--c::before { background: linear-gradient(155deg, rgba(23, 192, 139, .22), rgba(23, 192, 139, 0) 44%) }

/* A glass surface that should not lift — used where the card is a form
   container rather than something clickable. */
.glass--static:hover { transform: none }
.glass--static:hover::after { opacity: 0; transform: rotate(18deg) translateX(-30%) }

/* --- Chips ---------------------------------------------------------------- */

.chips { display: flex; flex-wrap: wrap; gap: 9px }
.chip {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  padding: 11px 17px;
  border-radius: 2px;
  color: var(--dim);
}
.chip.on { background: var(--paper); color: var(--ink); border-color: var(--paper) }

/* --- Burger + mobile menu -------------------------------------------------- */

#burg {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule);
  place-items: center;
  border-radius: 2px;
}
#burg b {
  width: 15px;
  height: 1px;
  background: var(--paper);
  position: relative;
  display: block;
  transition: transform .3s;
}
#burg b::before, #burg b::after {
  content: "";
  position: absolute;
  left: 0;
  width: 15px;
  height: 1px;
  background: var(--paper);
  transition: .3s;
}
#burg b::before { top: -5px }
#burg b::after { top: 5px }

body.menu #burg b { transform: rotate(45deg) }
body.menu #burg b::before { top: 0; transform: rotate(-90deg) }
body.menu #burg b::after { opacity: 0; top: 0 }

#menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--ink);
  padding: calc(var(--nav) + 30px) var(--gut) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .55s cubic-bezier(.7, 0, .15, 1);
  visibility: hidden;
}
body.menu #menu { clip-path: inset(0); visibility: visible }
#menu a {
  font-family: var(--disp);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(34px, 10vw, 64px);
  line-height: 1.05;
  display: block;
  padding-block: 10px;
  border-bottom: 1px solid var(--rule);
}

/* --- Footer ---------------------------------------------------------------- */

footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--rule);
  padding: clamp(40px, 4.6vw, 64px) 0 32px;
}
.f-mark {
  width: min(92vw, 1240px);
  color: rgba(244, 245, 241, .07);
  margin-bottom: clamp(30px, 3.6vw, 52px);
}
.f-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 26px;
}
.f-grid h5 {
  font-size: 11px;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
  font-weight: 500;
}
.f-grid a, .f-grid li {
  display: block;
  font-size: 14px;
  line-height: 1.95;
  color: var(--dim);
  list-style: none;
}
.f-grid a:hover { color: var(--mint) }
.f-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(32px, 3.6vw, 50px);
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 11.5px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--faint);
}

/* --- Responsive ------------------------------------------------------------ */

@media (max-width: 820px) {
  :root { --nav: 62px }
  .nav-nav, .nav-in > .cta { display: none }
  #burg { display: grid }
}

@media (prefers-reduced-motion: reduce) {
  .glass { transition: none }
}
