:root {
  --bg: #000;
  --mint: #3dff2a;
  --hot: #e8ffe4;
  --dim: #1c8a14;
  --mid: #b6ff9e;
  --line: rgba(61, 255, 42, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--mint);
  overflow-x: hidden;
}

::selection {
  background: #14610c;
  color: var(--hot);
}

body {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  font-weight: 400;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--mint);
  z-index: 6;
  pointer-events: none;
}

a {
  color: var(--mint);
  text-decoration: none;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

a:hover { color: var(--hot); }

a:focus-visible {
  outline: 1px solid var(--mint);
  outline-offset: 4px;
}

.field {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr min(42rem, 100%) 1fr;
  pointer-events: none;
  z-index: 0;
}

.field img,
.mark,
.track img {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.field img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.field .left {
  -webkit-mask-image: linear-gradient(90deg, #000 28%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 28%, transparent 100%);
}

.field .right {
  -webkit-mask-image: linear-gradient(270deg, #000 28%, transparent 100%);
  mask-image: linear-gradient(270deg, #000 28%, transparent 100%);
}

.field .mid { background: #000; }

.scrim { display: none; }

.tear {
  display: none;
  position: fixed;
  top: 40vh;
  left: 0;
  width: 16vw;
  height: 2px;
  z-index: 5;
  pointer-events: none;
  background: var(--hot);
  box-shadow: 0 0 10px var(--mint);
}

header, main { position: relative; z-index: 2; }

header {
  width: min(42rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.05rem 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

main {
  width: min(42rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.35rem 0 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.mark {
  width: 92px;
  height: 92px;
  margin: 0 auto 0.2rem;
  display: block;
}

.kicker {
  margin: 0;
  color: #5ee04a;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

h1 {
  margin: 0.4rem 0 0.75rem;
  font-size: clamp(1.45rem, 4.4vw, 2.55rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  color: var(--hot);
  line-height: 1;
  text-transform: uppercase;
}

.lead, .sub, .foot {
  margin: 0 auto;
  max-width: 38em;
  font-size: 0.92rem;
  line-height: 1.45;
}

.lead { color: var(--mid); }

.sub {
  margin-top: 0.4rem;
  color: #7ee86a;
}

.roles {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  text-align: left;
  display: grid;
  gap: 0.55rem;
}

.roles li {
  color: var(--mid);
  font-size: 0.86rem;
  line-height: 1.4;
}

.roles span {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--hot);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.foot {
  margin-top: 0.95rem;
  color: var(--dim);
  font-size: 0.78rem;
}

.foot a {
  font-size: inherit;
  letter-spacing: 0.04em;
}

footer {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: #000;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 6px 0 8px;
}

.track {
  display: flex;
  width: max-content;
  transform: translate3d(var(--x, 0px), 0, 0);
  will-change: transform;
}

.track img {
  height: 72px;
  width: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

body.hitch::before { clip-path: inset(0 28% 0 6%); }

body.hitch .field .left { transform: translateX(-12px); }
body.hitch .field .right { transform: translateX(10px); }
body.hitch h1 { transform: translateX(3px); text-shadow: 3px 0 #e7ffdf, -3px 0 #0c4d08; }
body.hitch .mark { transform: translate(4px, -2px); }
body.hitch .roles { transform: translateX(-6px); filter: brightness(1.35); }
body.hitch .track { transform: translate3d(calc(var(--x, 0px) + 14px), 0, 0); }

body.frozen::before { height: 3px; }
body.torn .tear { display: block; }

@media (max-width: 760px) {
  .field {
    display: block;
    opacity: 0.38;
  }

  .field .mid,
  .field .right { display: none; }

  .field .left {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    -webkit-mask-image: none;
    mask-image: none;
    object-fit: cover;
  }

  .scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.8);
    pointer-events: none;
  }

  .mark { width: 92px; height: 92px; }
  h1 { letter-spacing: 0.1em; text-indent: 0.1em; }
  .track img { height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  body.hitch h1,
  body.hitch .mark,
  body.hitch .roles,
  body.hitch .field .left,
  body.hitch .field .right { transform: none; filter: none; text-shadow: none; }
}
