/* =========================================================================
   GLHF — glhfhk.com
   Era 001 comeback microsite. Dark-only brand system, editorial asymmetry.
   Sections: tokens · base · type · buttons · nav · hero + era clock ·
             era 001 · player · channels · world (Kodexverse) · gate ·
             signal log · footer · motion · media
   Brand rules encoded here:
     - the chrome GLHF ring is the artist seal (nav, hero, cover stamp, footer)
     - lime (--lime) is provenance only: portal key, wordmark, gate link.
       It is never a member colour and never page decoration.
   ========================================================================= */

/* ------------------------------------------------------------- tokens */
:root {
  /* foundation */
  --bg:        #05060a;
  --bg-2:      #080a11;
  --bg-3:      #0c0f17;
  --ink:       #F4F6FB;
  --ink-2:     #C3C9D8;
  --muted:     #8F98AD;
  --line:      rgba(255,255,255,.10);
  --line-2:    rgba(255,255,255,.18);

  /* member system */
  --mag:       #FF3D9E;
  --mag-btn:   #E01B79;          /* 4.56:1 with a white label */
  --mag-btn-h: #C40A63;
  --cy:        #3EE8F4;
  --am:        #FFB020;
  --uv:        #A96BFF;

  /* Kodex provenance — universe signal, used sparingly */
  --lime:      #B7E200;
  --lime-dim:  rgba(183,226,0,.42);

  /* chrome */
  --chrome: linear-gradient(178deg,#ffffff 0%,#eef2fa 26%,#b3bccd 47%,#8b93a6 54%,#e6ecf7 74%,#ffffff 100%);

  /* type scale (fluid) */
  --t-hero:  clamp(3.2rem, 11vw, 8.7rem);
  --t-h2:    clamp(1.95rem, 4.1vw, 3.6rem);
  --t-h3:    clamp(1.35rem, 2vw, 1.9rem);
  --t-lede:  clamp(1.02rem, 1.25vw, 1.2rem);
  --t-body:  1rem;
  --t-small: .875rem;
  --t-label: .74rem;

  /* space */
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --sec-y:  clamp(4.5rem, 10vw, 9.5rem);
  --wrap:   1320px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* --------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--t-body)/1.6 'Switzer', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, svg, audio { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, dl { margin: 0; }
::selection { background: var(--mag); color: #fff; }

section[id] { scroll-margin-top: 4.75rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

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

.skip {
  position: fixed; top: .5rem; left: .5rem; z-index: 200;
  transform: translateY(-160%);
  background: var(--ink); color: #05060a; font-weight: 600;
  padding: .8rem 1.15rem; border-radius: 2px;
}
.skip:focus { transform: none; }

:focus-visible { outline: 2px solid var(--cy); outline-offset: 3px; border-radius: 2px; }

/* --------------------------------------------------------------- type */
.chrome {
  background: var(--chrome);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 0 rgba(255,255,255,.06);
}
@supports not (background-clip: text) { .chrome { color: var(--ink); -webkit-text-fill-color: currentColor; } }

.section-label {
  font-size: var(--t-label); font-weight: 600; letter-spacing: .26em;
  text-transform: uppercase; color: var(--muted);
}

.section-title {
  font-family: 'Cabinet Grotesk', 'Switzer', system-ui, sans-serif;
  font-weight: 800; font-size: var(--t-h2);
  line-height: 1; letter-spacing: -.028em; text-wrap: balance;
}

.lede { font-size: var(--t-lede); color: var(--ink-2); max-width: 52ch; line-height: 1.65; }
.fineprint { font-size: var(--t-small); color: var(--muted); max-width: 44ch; }

/* ------------------------------------------------------------ buttons */
/* One filled action on the page (pre-save). Everything else is a rule-and-
   arrow text link, so the site reads like a release page, not a funnel. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .9rem 1.6rem;
  font-family: 'Switzer', sans-serif; font-size: .98rem; font-weight: 600;
  letter-spacing: .03em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: 0; cursor: pointer;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.btn--primary {
  background: var(--mag-btn); color: #fff;
  box-shadow: 0 18px 44px -24px rgba(255,61,158,.9);
}
.btn--primary:hover { background: var(--mag-btn-h); transform: translateY(-2px); }

.link-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px;
  font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.link-cta:hover { color: var(--ink); border-color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.nav.is-stuck {
  background: rgba(5,6,10,.84);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--wrap); margin-inline: auto;
  padding: .6rem var(--gutter);
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
}
.nav__brand { display: inline-flex; align-items: center; min-height: 44px; }
.nav__brand img { width: 42px; height: 42px; }

.nav__links { display: flex; gap: clamp(1rem, 2.4vw, 2rem); margin-left: auto; }
.nav__cta { margin-left: clamp(1.1rem, 2.4vw, 2.4rem); }
.nav__links a {
  position: relative; display: inline-flex; align-items: center;
  min-height: 44px; padding-inline: 2px;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); transition: color .2s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after, .nav__links a:hover::after { transform: scaleX(1); }

@media (max-width: 620px) {
  .nav__inner { padding-block: .45rem; gap: 1rem; }
  .nav__brand img { width: 34px; height: 34px; }
  .nav__cta { display: none; }
  .nav__links { gap: 1.15rem; }
  .nav__links a { min-height: 40px; font-size: .68rem; letter-spacing: .12em; }
  .nav__links a::after { bottom: 8px; }
}

/* --------------------------------------------------------------- hero */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: grid; align-items: end;
  padding-top: 5rem;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media picture { position: absolute; inset: 0; display: block; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 44%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 2%, rgba(5,6,10,.74) 28%, rgba(5,6,10,.06) 64%),
    linear-gradient(to right, rgba(5,6,10,.95) 0%, rgba(5,6,10,.6) 36%, rgba(5,6,10,0) 68%);
}
.hero__inner {
  position: relative;
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding: 0 var(--gutter) clamp(2.6rem, 7vh, 5.4rem);
  display: grid; justify-items: start; gap: 1rem;
}

/* artist seal — the official chrome ring, locked artwork */
.hero__seal { display: flex; align-items: center; gap: 1rem; }
.hero__seal img { width: 64px; height: 64px; }
.hero__sealtext { display: grid; gap: .18rem; }
.hero__band {
  font-family: 'Cabinet Grotesk', sans-serif; font-weight: 800; font-size: 1.05rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
}
.hero__era {
  font-size: var(--t-label); font-weight: 600; letter-spacing: .24em;
  text-transform: uppercase; color: var(--muted);
}

.hero__title {
  font-family: 'Cabinet Grotesk', system-ui, sans-serif;
  font-weight: 800; font-size: var(--t-hero);
  line-height: .84; letter-spacing: -.038em; text-transform: uppercase;
  margin-block: .1rem 0;
}
.hero__lede {
  font-family: 'Cabinet Grotesk', sans-serif; font-weight: 500;
  font-size: clamp(1.05rem, 1.7vw, 1.45rem); letter-spacing: -.01em; color: var(--ink-2);
}

/* era clock — the countdown, dressed as release timecode, not a utility band */
.era-clock {
  display: grid; gap: .6rem;
  padding-top: 1.1rem; margin-top: .3rem;
  border-top: 1px solid var(--line-2);
  min-width: min(430px, 100%);
}
.era-clock__state {
  font-size: var(--t-label); font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-2);
}
.era-clock__state time { color: var(--ink); }
.era-clock__row { display: flex; align-items: baseline; gap: clamp(.9rem, 2.4vw, 1.8rem); }
.era-clock__row > li { display: flex; align-items: baseline; gap: .3rem; }
.era-clock__num {
  font-family: 'Cabinet Grotesk', sans-serif; font-weight: 800;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1;
  color: var(--ink);
}
.era-clock__unit {
  font-size: var(--t-label); font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}
.era-clock__note { font-size: var(--t-small); color: var(--muted); }
.era-clock.is-released .era-clock__row,
.era-clock.is-released .era-clock__note { display: none; }
.era-clock.is-released .era-clock__state {
  font-family: 'Cabinet Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem); letter-spacing: -.01em;
  text-transform: none; color: var(--cy);
}

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.6rem; margin-top: .5rem; }

@media (max-width: 900px) {
  .hero { align-items: start; padding-top: 6.6rem; }
  .hero__media { overflow: hidden; }
  .hero__media img { position: absolute; top: 0; height: 107%; object-position: 50% 0%; }
  .hero__media::after {
    background:
      linear-gradient(to bottom, rgba(5,6,10,.96) 0%, rgba(5,6,10,.88) 22%, rgba(5,6,10,.45) 38%, rgba(5,6,10,0) 52%),
      linear-gradient(to top, var(--bg) 1%, rgba(5,6,10,.9) 22%, rgba(5,6,10,0) 52%);
  }
  .hero__inner {
    display: flex; flex-direction: column;
    min-height: calc(100svh - 6.6rem);
    padding-bottom: 2rem; gap: .6rem;
  }
  .hero__seal img { width: 52px; height: 52px; }
  .era-clock { margin-top: auto; width: 100%; }
  .hero__actions { padding-top: 1.1rem; width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__actions .link-cta { flex: 0 0 auto; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .hero__actions { width: auto; }
  .hero__actions .btn { flex: 0 0 auto; }
}

/* ------------------------------------------------------------- era 001 */
.era { padding-block: var(--sec-y); background: var(--bg); }
.era__grid {
  display: grid; gap: clamp(2.5rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 980px) {
  .era__grid { grid-template-columns: minmax(0, 37%) minmax(0, 1fr); }
  /* deliberate vertical offset: the artwork column drops below the headline */
  .era__side { margin-top: clamp(2rem, 5vw, 4.5rem); }
}
.era__cover { position: relative; }
.era__cover > picture img {
  width: 100%;
  box-shadow: 0 40px 90px -50px rgba(255,61,158,.5), 0 30px 70px -40px rgba(0,0,0,.9);
}
/* the ring is used here as a release seal stamped on the artwork corner */
.era__stamp {
  position: absolute; right: -14px; bottom: 42px;
  width: clamp(64px, 8vw, 92px); height: auto;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.7));
}
.era__cover figcaption {
  margin-top: .9rem; font-size: var(--t-label); letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted);
}

.credits {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  border-top: 1px solid var(--line);
}
.credits > div {
  display: grid; grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: .8rem; align-items: baseline;
  padding: .72rem 0; border-bottom: 1px solid var(--line);
}
.credits dt {
  font-size: var(--t-label); font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}
.credits dd { font-family: 'Cabinet Grotesk', sans-serif; font-weight: 500; font-size: 1rem; color: var(--ink); }

.era__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
.era__index {
  display: flex; align-items: baseline; gap: .8rem;
  font-size: var(--t-label); font-weight: 600; letter-spacing: .26em;
  text-transform: uppercase; color: var(--muted);
}
.era__index span {
  font-family: 'Cabinet Grotesk', sans-serif; font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4rem); line-height: .8; letter-spacing: -.05em;
  color: var(--mag);
}
.era__title { max-width: 22ch; }
.era__prose { display: grid; gap: 1rem; max-width: 54ch; }
.era__prose p { font-size: var(--t-lede); color: var(--ink-2); line-height: 1.66; }
.era__cta { display: grid; gap: 1rem; justify-items: start; }

/* ------------------------------------------------------------- player */
.player {
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line);
  padding-block: clamp(1.1rem, 2vw, 1.5rem);
}
.player__row { display: flex; align-items: center; gap: clamp(.85rem, 2vw, 1.25rem); }
.player__btn {
  flex: 0 0 auto;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #05060a; border: 0; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.player__btn:hover { transform: scale(1.05); background: #fff; }
.player__btn .ico-pause { display: none; }
.player[data-state="playing"] .player__btn .ico-play { display: none; }
.player[data-state="playing"] .player__btn .ico-pause { display: block; }
@media (prefers-reduced-motion: reduce) { .player__btn:hover { transform: none; } }

.player__track { flex: 1 1 auto; min-width: 0; }
.player__labels { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-bottom: .7rem; }
.player__name {
  font-size: var(--t-small); font-weight: 500; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.player__time {
  font-size: var(--t-small); color: var(--muted); white-space: nowrap;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1;
}
.player__seek {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 34px; margin: 0; background: transparent; cursor: pointer;
  position: relative; z-index: 2;
}
.player__seek::-webkit-slider-runnable-track { height: 34px; background: transparent; }
.player__seek::-moz-range-track { height: 34px; background: transparent; }
.player__seek::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 26px; border: 0; border-radius: 2px;
  background: var(--ink); box-shadow: 0 0 10px rgba(255,61,158,.55);
}
.player__seek::-moz-range-thumb {
  width: 12px; height: 26px; border: 0; border-radius: 2px;
  background: var(--ink); box-shadow: 0 0 10px rgba(255,61,158,.55);
}
.player__bar {
  position: relative; z-index: 1; height: 4px; margin-top: -19px;
  background: rgba(255,255,255,.13); overflow: hidden;
}
.player__bar span { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--mag), var(--cy)); }
.player__hint { margin-top: .85rem; font-size: var(--t-small); color: var(--muted); }
@media (max-width: 620px) {
  .player__labels { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .player__name { white-space: normal; }
}

/* ------------------------------------------------------------ channels */
.channels {
  padding-block: var(--sec-y);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg), var(--bg-2) 45%, var(--bg));
}
.channels__head {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem;
  max-width: 46ch; margin-bottom: clamp(2.5rem, 6vw, 5rem);
}
.channels__list { display: grid; gap: clamp(2.5rem, 6vw, 5rem); grid-template-columns: minmax(0, 1fr); }

/* Deliberately unequal: two staggered pairs of different widths and heights,
   so the members do not read as four identical template cards. */
@media (min-width: 800px) {
  .channels__list { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 3rem); }
  .channel--a { grid-column: 1 / span 7; }
  .channel--b { grid-column: 9 / span 4;  margin-top: clamp(3rem, 8vw, 8rem); }
  .channel--c { grid-column: 2 / span 4;  margin-top: clamp(1rem, 3vw, 3rem); }
  .channel--d { grid-column: 7 / span 6;  margin-top: clamp(-4rem, -4vw, -1rem); }
}
.channel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
.channel__art { position: relative; overflow: hidden; background: #04050a; }
.channel__art::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 46%;
  background: linear-gradient(to top, rgba(5,6,10,.9), transparent);
  pointer-events: none;
}
.channel__art img {
  width: 100%; object-fit: cover; object-position: 50% 20%;
  transition: transform .8s var(--ease); transform-origin: 50% 30%;
}
.channel--a .channel__art img { aspect-ratio: 4 / 5; object-position: 50% 8%; }
.channel--b .channel__art img { aspect-ratio: 3 / 4; }
.channel--c .channel__art img { aspect-ratio: 3 / 4; }
.channel--d .channel__art img { aspect-ratio: 4 / 5; object-position: 50% 8%; }
@media (max-width: 799px) {
  .channel .channel__art img { aspect-ratio: 4 / 5; object-position: 50% 16%; }
}
.channel:hover .channel__art img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .channel:hover .channel__art img { transform: none; } }

.channel__body { display: grid; gap: .4rem; padding-left: 1.1rem; border-left: 1px solid var(--accent); }
.channel__ch {
  font-size: var(--t-label); font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.channel__name {
  font-family: 'Cabinet Grotesk', sans-serif; font-weight: 800; font-size: var(--t-h3);
  letter-spacing: -.02em; text-transform: uppercase; line-height: 1;
}
.channel__role { font-size: var(--t-small); color: var(--ink-2); }
.channel__line { font-size: .96rem; color: var(--muted); max-width: 32ch; }

/* --------------------------------------------------------------- world */
.world { position: relative; isolation: isolate; padding-bottom: var(--sec-y); border-top: 1px solid var(--line); }
.world__plate { position: absolute; inset: 0 0 auto 0; height: min(105vh, 1080px); z-index: -2; }
.world__plate img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 40%; }
.world__plate::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(5,6,10,.86) 0%, rgba(5,6,10,.5) 34%, rgba(5,6,10,.82) 72%, var(--bg) 99%);
}
.world__inner {
  position: relative;
  padding-top: clamp(6rem, 16vw, 13rem);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem; justify-items: start;
}
.world__step {
  font-family: 'Cabinet Grotesk', sans-serif; font-weight: 500;
  font-size: clamp(1.05rem, 2vw, 1.5rem); letter-spacing: -.01em; color: var(--ink-2);
}
.world__title { max-width: 20ch; }
.world__prose { max-width: 52ch; }
.world__prose p { font-size: var(--t-lede); color: var(--ink-2); line-height: 1.66; }

/* portal key: the Kodex icon marks where the signal comes from */
.world__key {
  display: flex; align-items: center; gap: .9rem;
  margin-top: clamp(1rem, 3vw, 2.5rem);
  padding: .75rem 0 .75rem 0;
  border-top: 1px solid var(--lime-dim);
  min-width: min(420px, 100%);
}
.world__key img { width: 58px; height: auto; }
.world__key span {
  font-size: var(--t-label); font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--lime);
}

.world__cast { position: relative; margin-top: clamp(4rem, 10vw, 8rem); }
.guardians {
  margin-top: 1.6rem;
  display: grid; gap: clamp(.9rem, 2vw, 1.6rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 860px) { .guardians { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.guardian figure { position: relative; overflow: hidden; background: #04050a; }
@media (min-width: 860px) {
  /* inhabitants, not a product grid: alternate depth down the row */
  .guardian:nth-child(even) { margin-top: clamp(1rem, 3vw, 3rem); }
}
.guardian img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 22%; }
.guardian figcaption {
  position: absolute; inset: auto 0 0 0;
  display: grid; gap: .1rem;
  padding: 3.5rem .9rem .85rem;
  background: linear-gradient(to top, rgba(4,5,9,.95) 12%, rgba(4,5,9,0));
  border-bottom: 1px solid var(--accent);
}
.guardian__name {
  font-family: 'Cabinet Grotesk', sans-serif; font-weight: 700; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: -.01em;
}
.guardian__place { font-size: var(--t-label); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* the gate — provenance + the one route out to Kodex */
.world__gate { position: relative; margin-top: clamp(3.5rem, 9vw, 7rem); }
.gate {
  display: grid; gap: 1.2rem; justify-items: start;
  padding-top: clamp(1.6rem, 3vw, 2.4rem);
  border-top: 1px solid var(--lime-dim);
  max-width: 62ch;
}
.gate__prov { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.gate__label { font-size: var(--t-label); font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.gate__prov img { width: clamp(120px, 16vw, 168px); height: auto; }
.gate__copy { font-size: var(--t-lede); color: var(--ink-2); line-height: 1.66; }
.gate__link {
  display: inline-flex; align-items: center; gap: .7rem; min-height: 48px;
  font-family: 'Cabinet Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem); letter-spacing: -.01em;
  color: var(--lime); border-bottom: 1px solid var(--lime-dim);
  transition: border-color .25s var(--ease), gap .25s var(--ease);
}
.gate__link:hover { border-color: var(--lime); gap: 1.1rem; }
@media (prefers-reduced-motion: reduce) { .gate__link:hover { gap: .7rem; } }

/* ----------------------------------------------------------- signal log */
.log { padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--line); background: var(--bg-3); }
.log__list { margin-top: 1.6rem; display: grid; }
.log__item {
  display: grid; gap: .15rem .5rem;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  padding: 1.15rem 0; border-top: 1px solid var(--line);
}
.log__item:last-child { border-bottom: 1px solid var(--line); }
.log__id {
  grid-row: 1 / span 3;
  font-family: 'Cabinet Grotesk', sans-serif; font-weight: 800; font-size: 1.1rem;
  letter-spacing: .04em; color: var(--muted); font-variant-numeric: tabular-nums;
}
.log__date { font-size: var(--t-label); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.log__text { font-size: .97rem; color: var(--muted); max-width: 68ch; }
.log__state {
  font-size: var(--t-label); font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
}
.log__state--live { color: var(--cy); }
@media (min-width: 820px) {
  .log__item { grid-template-columns: 3.5rem 11rem minmax(0, 1fr) 9rem; align-items: baseline; }
  .log__id { grid-row: auto; }
  .log__state { text-align: right; }
}

/* -------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--line); background: var(--bg); }
.foot__inner { padding-block: clamp(2.8rem, 6vw, 4.5rem); display: grid; gap: 2.2rem; }
@media (min-width: 820px) {
  .foot__inner { grid-template-columns: auto 1fr auto; align-items: start; column-gap: clamp(2rem, 6vw, 6rem); }
  .foot__links { justify-self: start; }
  .foot__origin { justify-self: end; text-align: right; }
  .foot__legal { grid-column: 1 / -1; }
}
/* the ring signs the page the way an artist signs a sleeve */
.foot__sig { display: grid; gap: 1rem; justify-items: start; }
.foot__sig img { width: clamp(96px, 12vw, 128px); height: auto; }
.foot__tag {
  font-family: 'Cabinet Grotesk', sans-serif; font-weight: 700;
  font-size: 1.05rem; line-height: 1.3; letter-spacing: -.01em; color: var(--ink-2);
}
.foot__links { display: grid; gap: .3rem; }
.foot__links a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: .92rem; color: var(--muted); transition: color .2s var(--ease);
}
.foot__links a:hover { color: var(--ink); }

/* origin signal — canonical lime wordmark, treated as a stamp not a text link */
.foot__origin { display: grid; gap: .55rem; justify-items: start; }
@media (min-width: 820px) { .foot__origin { justify-items: end; } }
.foot__origin span { font-size: var(--t-label); font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.foot__origin a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding-bottom: .35rem; border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), opacity .2s var(--ease);
  opacity: .9;
}
.foot__origin a:hover { border-color: var(--lime-dim); opacity: 1; }
.foot__origin img { width: clamp(112px, 14vw, 150px); height: auto; }

.foot__legal { font-size: var(--t-small); color: #767F8E; max-width: 86ch; }

/* ------------------------------------------------------------- motion */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); }
  .js .reveal.is-in {
    opacity: 1; transform: none;
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: var(--d, 0ms);
  }
}

/* grain overlay — purpose-built 128px tile, kills gradient banding */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background-image: url("../assets/img/tex-grain.webp");
  background-size: 128px 128px; opacity: .17; mix-blend-mode: soft-light;
}

/* --------------------------------------------------------- fine tuning */
@media (min-width: 1600px) { :root { --wrap: 1440px; } }
@media (max-width: 400px) {
  :root { --t-hero: clamp(2.9rem, 15vw, 4.2rem); }
  .era-clock__row { gap: .8rem; }
  .credits > div { grid-template-columns: 7rem minmax(0, 1fr); }
}
