/* ============================================================
   THE GATEWAY — pick a brain
   Split lander: left hemisphere (editorial cut) vs right
   hemisphere (BR-2600 broadcast). LEGO-gate structure,
   split-brain emblem at the seam.
   ============================================================ */

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

html, body { height: 100%; }

body {
  overflow: hidden;
  background: #0c0c0c;
  font-family: 'Inter', sans-serif;
}

/* ── monogram badge (LEGO-logo position) ────────────────── */

.gate-badge {
  position: fixed;
  top: clamp(18px, 4vh, 40px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  width: clamp(58px, 8vh, 84px);
  height: clamp(58px, 8vh, 84px);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.gate-badge span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(24px, 3.6vh, 38px);
  line-height: 1;
}

.gate-badge .gb-l {
  background: #f5f1e6;
  color: #16150f;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
}

.gate-badge .gb-r {
  background: #101014;
  color: #ffb000;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(16px, 2.6vh, 26px);
  text-shadow: 2px 0 0 rgba(255, 62, 165, 0.6), -2px 0 0 rgba(46, 230, 210, 0.6);
}

/* ── the gate ───────────────────────────────────────────── */

.gate {
  display: flex;
  height: 100dvh;
}

.half {
  position: relative;
  flex: 1 1 50%;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  outline: none;
}

.half:focus-visible { box-shadow: inset 0 0 0 4px #ffb000; }

/* left: paper + ink */
.half--left {
  background:
    linear-gradient(0deg, rgba(22, 21, 15, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 21, 15, 0.05) 1px, transparent 1px),
    #f5f1e6;
  background-size: 56px 56px, 56px 56px, auto;
  color: #16150f;
}

/* right: void + phosphor */
.half--right {
  background:
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 0, 0, 0.28) 2px 3px),
    radial-gradient(120% 100% at 70% 30%, #131318 0%, #0a0a10 60%, #050508 100%);
  color: #ece5cf;
}

/* copy blocks */
.half-copy {
  position: relative;
  z-index: 3;
  max-width: 26em;
  padding: clamp(24px, 5vw, 72px);
}

.half--left .half-copy { margin-left: clamp(0px, 4vw, 60px); }
.half--right .half-copy { margin-left: auto; margin-right: clamp(0px, 4vw, 60px); text-align: right; }

.half-eyebrow {
  display: inline-block;
  font-size: clamp(11px, 1.6vh, 13px);
  letter-spacing: 0.34em;
  margin-bottom: 14px;
}

.half--left .half-eyebrow { color: #8a8471; font-weight: 500; }
.half--right .half-eyebrow { font-family: 'Press Start 2P', monospace; font-size: clamp(8px, 1.3vh, 11px); color: #ffb000; }

.half-title {
  font-size: clamp(38px, 7vh, 78px);
  line-height: 0.95;
  margin-bottom: 20px;
}

.half--left .half-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.01em;
}

.half--right .half-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(22px, 4.4vh, 48px);
  line-height: 1.15;
  color: #ece5cf;
  text-shadow: 3px 0 0 rgba(255, 62, 165, 0.5), -3px 0 0 rgba(46, 230, 210, 0.5);
  text-transform: uppercase;
}

.half-desc {
  font-size: clamp(14px, 2.1vh, 17px);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 18px;
}

.half--left .half-desc { color: #45412f; }
.half--right .half-desc { color: #b6b0a0; }

.half-list {
  list-style: none;
  font-size: clamp(12.5px, 1.9vh, 15px);
  line-height: 2;
  margin-bottom: 26px;
}

.half--left .half-list li::before { content: '— '; color: #b0a98f; }
.half--left .half-list { color: #6a644d; }

.half--right .half-list { color: #8f8a78; }
.half--right .half-list li::after { content: ' —'; color: #4a463a; }

.half-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  white-space: nowrap;
  font-size: clamp(13px, 2vh, 16px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 13px 26px 12px;
  border-radius: 999px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.half-cta i { font-style: normal; display: inline-block; }

.half--left .half-cta {
  border: 1.5px solid #16150f;
  color: #16150f;
  font-weight: 500;
}

.half--left:hover .half-cta { background: #16150f; color: #f5f1e6; }

.half--right .half-cta {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(9px, 1.5vh, 12px);
  padding: 15px 26px 13px;
  border: 1.5px solid #ffb000;
  color: #ffb000;
}

.half--right:hover .half-cta { background: #ffb000; color: #14100a; }

/* floating glyphs */
.glyphs { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.glyph {
  position: absolute;
  white-space: nowrap;
  user-select: none;
}

.half--left .glyph {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(15px, 2.6vh, 24px);
  color: rgba(22, 21, 15, 0.32);
}

.half--right .glyph {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(8px, 1.5vh, 12px);
  color: rgba(236, 229, 207, 0.3);
}

.half--right .glyph:nth-child(odd) { color: rgba(255, 176, 0, 0.4); }
.half--right .glyph:nth-child(3n) { color: rgba(46, 230, 210, 0.4); }
.half--right .glyph:nth-child(4n) { color: rgba(255, 62, 165, 0.4); }

/* color blobs behind the right half */
.blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; filter: blur(64px); opacity: 0.5; }

.blob { position: absolute; border-radius: 50%; display: block; }

.b1 { width: 34vw; height: 34vw; top: -8%; right: -6%; background: #ff3ea5; }
.b2 { width: 26vw; height: 26vw; bottom: -10%; right: 22%; background: #2ee6d2; }
.b3 { width: 22vw; height: 22vw; top: 34%; right: 40%; background: #ffb000; }
.b4 { width: 18vw; height: 18vw; bottom: 26%; right: -4%; background: #7c5cff; }

/* ── the brain emblem ───────────────────────────────────── */

.brain-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: clamp(240px, 29vw, 430px);
  pointer-events: none;
  filter: drop-shadow(0 18px 44px rgba(0, 0, 0, 0.35));
}

.brain { display: block; width: 100%; height: auto; }

.brain path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hemi-left .b-outline { stroke: #16150f; stroke-width: 5; fill: rgba(245, 241, 230, 0.94); }
.hemi-left .b-fold { stroke: #16150f; stroke-width: 3; }

.hemi-right .c1 { stroke: #ff3ea5; stroke-width: 5; fill: rgba(10, 10, 16, 0.92); }
.hemi-right .c2 { stroke: #ffb000; stroke-width: 4.5; }
.hemi-right .c3 { stroke: #2ee6d2; stroke-width: 4.5; }
.hemi-right .c4 { stroke: #58ff8f; stroke-width: 4.5; }
.hemi-right .c5 { stroke: #ffd23f; stroke-width: 4.5; }
.hemi-right .c6 { stroke: #ff5a3c; stroke-width: 4.5; }
.hemi-right .c7 { stroke: #7c5cff; stroke-width: 4.5; }

/* ── footer line ────────────────────────────────────────── */

.gate-foot {
  position: fixed;
  bottom: clamp(12px, 2.6vh, 24px);
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
  font-size: clamp(11px, 1.7vh, 14px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
}

.gf-l {
  color: #16150f;
  background: rgba(245, 241, 230, 0.92);
  padding: 3px 12px 4px;
  border-radius: 999px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.25em;
  text-transform: none;
  letter-spacing: 0.04em;
}

.gf-r {
  color: #ffd23f;
  background: rgba(10, 10, 16, 0.92);
  padding: 6px 12px 5px;
  border-radius: 4px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.72em;
}

.gf-hint {
  display: block;
  margin-top: 8px;
  font-family: 'Caveat', cursive;
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 1.3em;
  color: #8a8478;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25), 0 0 2px rgba(245, 241, 230, 0.4);
}

/* ── small screens: stack the hemispheres ───────────────── */

@media (max-width: 860px) {
  .gate { flex-direction: column; }

  /* keep the seam clear for the brain: left copy hugs the top,
     right copy hugs the bottom */
  .half--left { align-items: flex-start; }
  .half--left .half-copy { margin: 0; padding-top: clamp(48px, 9vh, 84px); }
  .half--right { align-items: flex-end; }
  .half--right .half-copy { margin: 0 0 0 auto; padding-bottom: 92px; }

  /* tighter rhythm so the left CTA never falls below the seam */
  .half-eyebrow { margin-bottom: 8px; }
  .half-title { font-size: clamp(30px, 5vh, 48px); margin-bottom: 12px; }
  .half--right .half-title { font-size: clamp(20px, 3.6vh, 34px); }
  .half-desc { max-width: 34em; margin-bottom: 14px; }
  .half-list { display: none; }

  .brain-wrap { width: clamp(130px, 30vw, 190px); }

  .b1, .b2, .b3, .b4 { width: 50vw; height: 50vw; }

  .gate-foot .gf-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}


/* synapse pulses obey the motion guard */
html:not(.anim) .synapses { display: none; }
