/* ============================================================
   LLAB — Mockup #1: Heat Ribbons
   ------------------------------------------------------------
   A WebGL background of flowing sage / crimson / mustard
   ribbons on pure black, finished with heavy film grain. The
   LLAB wordmark sits over the field as a clean white anchor —
   no blend-mode tricks. Background effect is the focus.
   ============================================================ */

:root {
  --lime:    #AEFF00;
  --display: "Bahnschrift Condensed", "Archivo Narrow", "Helvetica Neue", system-ui, sans-serif;
  --body:    "Inter", system-ui, sans-serif;
  --gutter:  clamp(1.25rem, 0.8rem + 2.4vw, 3rem);
  --text:    #F1F4EE;
  --dim:     rgba(241, 244, 238, 0.62);
  --hair:    rgba(255, 255, 255, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: clamp(4.5rem, 3.5rem + 3vw, 6rem);
}
body {
  background: #000;
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- WebGL heat-ribbon background ---- */
.mk-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

/* ---- film grain layer — heavy, signature look ---- */
.mk-grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.85'/></svg>");
  background-size: 280px 280px;
  opacity: 0.85;
  mix-blend-mode: overlay;
}

/* ---- fixed top nav ---- */
.mk-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 0.7rem + 1vw, 1.7rem) var(--gutter);
}
.mk-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent);
  pointer-events: none;
}
.mk-nav__logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  color: var(--lime);
}
.mk-nav__tag {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
@media (max-width: 520px) {
  .mk-nav__tag { font-size: 0.66rem; padding: 0.32rem 0.65rem; letter-spacing: 0.14em; }
}

/* ---- hero ---- */
.mk-hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: var(--gutter);
}

/* LLAB wordmark — neon BLUR: sharp white core letters with a
   layered glow halo (white close → cyan inner → magenta/purple
   outer bloom). Per the reference. */
.mk-hero__mark {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 3;
  pointer-events: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(4.5rem, 24vw, 20rem);
  line-height: 1;
  letter-spacing: -0.045em;
  color: #FFFFFF;
  text-shadow:
    0 0 2px   rgba(255, 255, 255, 1.00),    /* sharp inner edge */
    0 0 8px   rgba(255, 255, 255, 0.95),    /* close white bloom */
    0 0 18px  rgba(120, 240, 255, 0.95),    /* tight cyan halo */
    0 0 34px  rgba(120, 240, 255, 0.75),    /* mid cyan glow */
    0 0 62px  rgba(180, 95, 255, 0.85),     /* magenta inner halo */
    0 0 110px rgba(180, 95, 255, 0.55),     /* magenta wide halo */
    0 0 190px rgba(180, 95, 255, 0.35);     /* magenta far halo */
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
  transition: opacity 0.8s ease, transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
body.mk-ready .mk-hero__mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  /* slow breath — dims the whole glow ~30% at the trough so the
     neon halo isn't a constant high-key wash */
  animation: mk-breathe 5.6s ease-in-out infinite;
}

@keyframes mk-breathe {
  0%, 100% { filter: brightness(1.02) saturate(1.05); }
  50%      { filter: brightness(0.72) saturate(0.85); }
}

.mk-hero__cue {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 2.5rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--dim);
  opacity: 0;
  transition: opacity 0.7s ease 0.6s;
  position: relative;
  z-index: 3;
}
body.mk-ready .mk-hero__cue { opacity: 1; }
.cue-arrow {
  display: block;
  width: 18px;
  height: 18px;
}

/* ---- direction band ---- */
.mk-band {
  position: relative;
  z-index: 3;
  width: min(820px, calc(100% - 2 * var(--gutter)));
  margin: clamp(3rem, 9vh, 7rem) auto clamp(6rem, 14vh, 10rem);
  padding: clamp(1.6rem, 3.4vw, 2.6rem);
  border: 1px solid var(--hair);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.mk-band__eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
}
.mk-band__title {
  margin-top: 0.55rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 1.05rem + 2.2vw, 2.6rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
}
.mk-band__body {
  margin-top: 1rem;
  font-size: clamp(0.98rem, 0.94rem + 0.3vw, 1.08rem);
  line-height: 1.58;
  color: rgba(241, 244, 238, 0.84);
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mk-hero__mark {
    filter: none; opacity: 1; transition: none;
    transform: translate(-50%, -50%);
    animation: none;
  }
  body.mk-ready .mk-hero__mark { animation: none; }
  .mk-hero__cue { opacity: 1; transition: none; }
}
