/* Critical path: sticky header + hide closed menu before main CSS/JS */

:root {
  --sticky-h: 64px;
  --safe-top: env(safe-area-inset-top, 0px);
  --ink: #0a0a0a;
  --chartreuse: #7fff00;
  --pink: #ff1493;
  --white: #f7f4ef;
}

@media (max-width: 900px) {
  :root {
    --sticky-h: 58px;
  }
}

@media (max-width: 640px) {
  :root {
    --sticky-h: 54px;
  }
}

html {
  cursor: url('/cursors/cursor-default.png') 2 2, auto;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

a,
button {
  cursor: url('/cursors/cursor-pointer.png') 2 2, pointer;
}

body {
  margin: 0;
  padding-top: calc(var(--sticky-h) + var(--safe-top));
  background: #0a0a0a;
  color: #f7f4ef;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

/* Mobile: only vertical page scroll from first paint */
@media (hover: none), (pointer: coarse) {
  html,
  body {
    touch-action: pan-y;
    overflow-x: hidden;
    overscroll-behavior-x: none;
  }
}

/* Sticky header shell (visible before JS) */
.ego-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: #0a0a0a;
  color: #7fff00;
  border-bottom: 3px solid #ff1493;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding-top: var(--safe-top);
}

.ego-sticky__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.65rem 1rem;
  max-width: 1480px;
  margin: 0 auto;
  min-height: var(--sticky-h);
  box-sizing: border-box;
}

.ego-sticky .site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.ego-sticky .site-logo__mark img,
.ego-sticky .site-logo__mark svg {
  width: 40px;
  height: 40px;
  display: block;
}

.ego-sticky .site-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.ego-sticky .site-logo__name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #f7f4ef;
}

.ego-sticky .site-logo__sub {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: #7fff00;
}

.header-nav {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
}

.header-nav__list {
  display: flex;
  align-items: center;
  gap: 0.2rem 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.header-nav__list a,
a.header-nav__link {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none !important;
  color: #7fff00 !important;
  border: 2px solid transparent;
  padding: 0.4rem 0.55rem;
}

.ego-sticky__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  margin-left: auto;
}

.ego-sticky__btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  height: 2.15rem;
  min-height: 2.15rem;
  margin: 0;
  padding: 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid #7fff00;
  background: transparent;
  color: #7fff00;
  cursor: pointer;
}

.ego-sticky__cancel {
  border-color: #ff1493;
  color: #ff1493;
}

.ego-sticky__uncancel {
  border-color: #7fff00;
  color: #7fff00;
}

.ego-sticky__btn-text--short {
  display: none;
}

.ego-sticky__burger {
  display: none;
  box-sizing: border-box;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border: 2px solid #7fff00;
  background: transparent;
  color: #7fff00;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ego-sticky__burger-box {
  position: relative;
  width: 1.1rem;
  height: 0.85rem;
  display: block;
}

.ego-sticky__burger-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
}

.ego-sticky__burger-line:nth-child(1) {
  top: 0;
}
.ego-sticky__burger-line:nth-child(2) {
  top: 50%;
  margin-top: -1px;
}
.ego-sticky__burger-line:nth-child(3) {
  bottom: 0;
}

@media (max-width: 900px) {
  .header-nav {
    display: none !important;
  }

  .ego-sticky__burger {
    display: inline-flex;
  }

  .ego-sticky__btn-text {
    display: none;
  }

  .ego-sticky__btn-text--short {
    display: inline;
  }

  .ego-sticky .site-logo__text {
    display: none;
  }
}

/* Drawer closed until main CSS + JS open it */
#site-nav.site-nav,
#site-nav {
  position: fixed !important;
  inset: var(--sticky-h) 0 0 0;
  z-index: 9990;
  transform: translate3d(0, -120%, 0) !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#site-nav.site-nav.is-open {
  transform: translate3d(0, 0, 0) !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Home manifesto marquee — paint with first HTML (before main CSS/JS) */
.marquee-stack {
  margin: 0.5rem 0 1.25rem;
  border-block: 3px solid #0a0a0a;
  background: #7fff00;
  overflow: hidden;
  color: #0a0a0a;
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 2px dashed #0a0a0a;
}

.marquee:last-child {
  border-bottom: 0;
}

.marquee__track {
  display: inline-block;
  padding: 0.35rem 0;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 800;
  font-size: clamp(0.85rem, 2.5vw, 1.15rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
