:root {
  --bg: #050505;
  --fg: #f4f4f1;
  --muted: #8c8c87;
  --line: rgba(244, 244, 241, 0.24);
  --pad: clamp(18px, 3vw, 44px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Space Grotesk", Arial, sans-serif;
  overflow-x: hidden;
  transition: background-color 90ms linear, color 90ms linear;
}

body.invert {
  --bg: #f2f2ef;
  --fg: #050505;
  --muted: #4a4a46;
  --line: rgba(5, 5, 5, 0.25);
}

a { color: inherit; text-decoration: none; }

.flash-layer {
  position: fixed;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  mix-blend-mode: difference;
}

.flash-layer.active { animation: flash 220ms steps(2, end); }
@keyframes flash {
  0% { opacity: 0; }
  28% { opacity: .96; }
  58% { opacity: .08; }
  100% { opacity: 0; }
}

.grain {
  position: fixed;
  inset: -40%;
  z-index: 50;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  animation: grainShift .18s steps(2) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(2%, -1%); }
  50% { transform: translate(-1%, 2%); }
  75% { transform: translate(1%, 1%); }
  100% { transform: translate(-2%, -1%); }
}

.site-header,
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--pad);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
}

.wordmark { font-weight: 700; letter-spacing: .08em; }
.status-wrap { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fg); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .16; } }

main { padding-top: 51px; }
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10vh var(--pad) 5vh;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.hero-kicker,
.hero-copy {
  font-size: clamp(10px, 1vw, 13px);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin: 16px 0 18px;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(70px, 18vw, 280px);
  line-height: .74;
  letter-spacing: -.075em;
  transform: scaleX(1.13);
  transform-origin: left center;
  text-transform: uppercase;
}
.hero h1 span { display: block; }
.hero h1 span:last-child { margin-left: 8vw; }

.enter-link {
  position: absolute;
  right: var(--pad);
  bottom: 35px;
  font-size: 12px;
  letter-spacing: .13em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 5px;
}

.link-section,
.events-section { padding: clamp(80px, 10vw, 150px) var(--pad); }

.section-label {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: end;
  margin-bottom: 28px;
}
.section-label span { color: var(--muted); font-size: 11px; }
.section-label h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 72px);
  line-height: .9;
  letter-spacing: -.055em;
  font-weight: 600;
  transform: scaleX(1.08);
  transform-origin: left center;
}

.link-grid { border-top: 1px solid var(--line); }
.platform-card {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  min-height: 132px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: padding 180ms ease, color 120ms ease, background 120ms ease;
}
.platform-card::before {
  content: attr(data-index);
  position: absolute;
  right: 80px;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(80px, 12vw, 180px);
  letter-spacing: -.08em;
  opacity: .035;
  line-height: 1;
  transform: translateY(8%);
}
.platform-card:hover,
.platform-card:focus-visible {
  background: var(--fg);
  color: var(--bg);
  padding-left: 18px;
  outline: none;
}

.icon-wrap { width: 54px; height: 54px; }
.icon-wrap svg { width: 100%; height: 100%; }
.card-copy { display: flex; flex-direction: column; gap: 7px; }
.card-title {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(24px, 5vw, 64px);
  letter-spacing: -.055em;
  line-height: .9;
}
.card-meta { font-size: 10px; letter-spacing: .18em; color: var(--muted); }
.platform-card:hover .card-meta { color: currentColor; opacity: .6; }
.card-arrow { font-size: 28px; margin-right: 8px; }

.events-section { border-top: 1px solid var(--line); }
.events-panel { border: 1px solid var(--line); overflow: hidden; }
.events-marquee {
  border-bottom: 1px solid var(--line);
  display: flex;
  width: max-content;
  animation: marquee 20s linear infinite;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(30px, 6vw, 86px);
  white-space: nowrap;
  line-height: 1.1;
}
@keyframes marquee { to { transform: translateX(-50%); } }
.event-empty {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
}
.event-empty p { margin: 0; font-size: clamp(22px, 4vw, 48px); max-width: 700px; letter-spacing: -.04em; }
.event-empty a { width: fit-content; font-size: 11px; letter-spacing: .15em; border-bottom: 1px solid currentColor; padding-bottom: 5px; }

.site-footer { border-top: 1px solid var(--line); border-bottom: 0; color: var(--muted); }

@media (max-width: 700px) {
  .status-wrap { display: none; }
  .hero { min-height: 88svh; }
  .hero h1 { font-size: clamp(68px, 25vw, 130px); line-height: .8; }
  .hero h1 span:last-child { margin-left: 0; }
  .enter-link { position: static; margin-top: 46px; width: fit-content; }
  .platform-card { grid-template-columns: 58px 1fr auto; min-height: 104px; }
  .icon-wrap { width: 38px; height: 38px; }
  .card-title { font-size: clamp(23px, 9vw, 40px); }
  .card-meta { letter-spacing: .1em; }
  .card-arrow { font-size: 22px; }
  .site-footer { align-items: flex-start; gap: 15px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* Updated motion and responsive layer */
.flash-layer {
  opacity: 0;
  mix-blend-mode: normal;
  transition: opacity 520ms cubic-bezier(.22,.61,.36,1);
}
.flash-layer.active { animation: none; opacity: .94; }
body { transition: background-color 520ms cubic-bezier(.22,.61,.36,1), color 520ms cubic-bezier(.22,.61,.36,1); }

.alive-background {
  position: fixed;
  inset: 52px 0 0;
  z-index: -1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  overflow: hidden;
  pointer-events: none;
  opacity: .075;
}
.alive-row {
  width: 145%;
  margin-left: var(--offset);
  white-space: nowrap;
  transform: rotate(-1deg);
}
.alive-row:nth-child(3n) { transform: rotate(1deg); }
.alive-track {
  display: flex;
  width: max-content;
  animation: aliveDrift var(--duration) linear infinite;
}
.alive-row.reverse .alive-track { animation-direction: reverse; }
.alive-track span {
  display: inline-block;
  padding-right: clamp(30px, 5vw, 90px);
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(32px, 6vw, 94px);
  line-height: .85;
  letter-spacing: -.06em;
}
@keyframes aliveDrift { to { transform: translateX(-50%); } }

.hero,
.link-section,
.events-section,
.site-footer { position: relative; z-index: 1; }

.card-arrow,
.inline-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.card-arrow svg { width: 30px; height: 30px; }
.inline-arrow svg { width: 15px; height: 15px; vertical-align: middle; }
.card-arrow svg path,
.inline-arrow svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

@media (max-width: 700px) {
  :root { --pad: 18px; }
  .site-header { padding: 15px var(--pad); }
  main { padding-top: 47px; }
  .alive-background { inset: 47px 0 0; opacity: .06; }
  .alive-track span { font-size: clamp(28px, 13vw, 54px); padding-right: 28px; }
  .hero { min-height: 82svh; padding-top: 12vh; padding-bottom: 48px; }
  .hero-kicker { max-width: 260px; line-height: 1.6; }
  .hero h1 {
    width: 100%;
    font-size: clamp(62px, 23.5vw, 118px);
    transform: none;
    letter-spacing: -.08em;
    overflow-wrap: anywhere;
  }
  .hero-copy { line-height: 1.5; }
  .link-section,
  .events-section { padding: 72px var(--pad); }
  .section-label { grid-template-columns: 32px 1fr; }
  .section-label h2 { transform: none; font-size: clamp(32px, 13vw, 58px); }
  .platform-card {
    grid-template-columns: 46px minmax(0, 1fr) 28px;
    min-height: 92px;
    column-gap: 10px;
  }
  .platform-card::before { display: none; }
  .platform-card:hover,
  .platform-card:focus-visible { padding-left: 8px; }
  .icon-wrap { width: 32px; height: 32px; }
  .card-title { font-size: clamp(22px, 8.4vw, 36px); overflow-wrap: anywhere; }
  .card-meta { font-size: 8px; line-height: 1.35; }
  .card-arrow { margin-right: 0; }
  .card-arrow svg { width: 22px; height: 22px; }
  .events-panel { border-left: 0; border-right: 0; }
  .event-empty { min-height: 240px; padding: 22px 0; }
}

/* Smooth scroll-reactive logo */
main { padding-top: 0; }
.hero { padding-top: 8vh; }
.alive-background { inset: 0; }
.card-meta { opacity: .72; }

.hero h1 {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  margin: 0;
  width: max-content;
  max-width: none;
  white-space: nowrap;
  font-size: clamp(54px, 13vw, 220px);
  line-height: .78;
  letter-spacing: -.075em;
  transform-origin: top left;
  transform: translate3d(var(--logo-x, 0px), var(--logo-y, 0px), 0) scale(var(--logo-scale, 1));
  will-change: transform;
  backface-visibility: hidden;
  pointer-events: none;
}

.hero h1.logo-corner { pointer-events: auto; }
.hero h1 span,
.hero h1 span:last-child { display: inline; margin-left: 0; }
.hero h1 span:last-child::before { content: " "; }

.logo-placeholder {
  display: block;
  width: 100%;
  height: var(--logo-placeholder-height, 1px);
  margin: 16px 0 18px;
}

@media (max-width: 700px) {
  main { padding-top: 0; }
  .hero { padding-top: 9vh; }
  .alive-background { inset: 0; }
  .hero h1 {
    font-size: clamp(43px, 12.2vw, 86px);
    letter-spacing: -.085em;
    overflow-wrap: normal;
    word-break: normal;
  }
}


/* Centered hero emphasis */
.hero {
  align-items: center;
  text-align: center;
}
.logo-placeholder {
  margin-left: auto;
  margin-right: auto;
}
.enter-link {
  z-index: 2;
}
.alive-row.palestine-row {
  opacity: 1.3;
}
