:root {
  --pit: #0a3d36;
  --pit-2: #0e4a42;
  --acid: #16a085;
  --mist: #d4e8e4;
  --alum: #c8ccd0;
  --iron: #1a1c1e;
  --wine: #5c1a28;
  --mute: #6a7874;
  --display: "Oswald", "Noto Sans SC", sans-serif;
  --sans: "Noto Sans SC", "PingFang SC", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 72px; }
body {
  margin: 0;
  color: var(--iron);
  background: var(--alum);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.app-link { color: var(--pit); text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }
label { display: block; font-size: 13px; color: var(--mute); }
input[type="range"] { width: min(280px, 100%); accent-color: var(--acid); }
.alum-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 6;
  opacity: 0.18;
  background-image: url("images/texture.webp");
  background-size: 280px auto;
  mix-blend-mode: overlay;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 80; background: var(--acid); color: #fff; padding: 8px; }
.crane-mast {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(10, 61, 54, 0.94);
  color: var(--mist);
  border-bottom: 3px solid var(--acid);
  backdrop-filter: blur(8px);
}
.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 0.04em;
}
.brand small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--acid);
}
.nav-toggle {
  display: none;
  background: var(--acid);
  color: #fff;
  border: 0;
  padding: 8px 14px;
  letter-spacing: 0.12em;
}
.pit-links { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.pit-links a { font-size: 13px; color: rgba(212, 232, 228, 0.78); }
.pit-links a.is-active { color: var(--mist); }
.pit-links .live {
  color: #fff;
  background: var(--acid);
  padding: 6px 12px;
}
.pit-hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  min-height: 86vh;
  background: var(--pit);
  color: var(--mist);
}
.pit-hero figure { margin: 0; overflow: hidden; }
.pit-hero img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.pit-hero .copy { padding: 56px 40px; align-self: center; }
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acid);
  margin: 0 0 10px;
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0 0 12px; letter-spacing: 0.02em; }
h1 { font-size: clamp(44px, 7vw, 76px); text-transform: uppercase; }
h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: 22px; }
.lead { font-size: 17px; max-width: 38em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--acid);
  font-size: 14px;
}
.btn.acid { background: var(--acid); color: #fff; }
.btn.ghost { background: transparent; color: var(--acid); }
.pit-hero .btn.ghost { color: var(--mist); border-color: var(--mist); }
.w { width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding: 64px 0; }
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.tri article {
  background: #e4e7ea;
  border-top: 4px solid var(--pit);
  padding: 18px 16px;
}
.tri ul { margin: 0; padding-left: 18px; }
.steps { list-style: none; margin: 28px 0; padding: 0; }
.steps li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(26, 28, 30, 0.12);
}
.steps li span { font-family: var(--mono); color: var(--acid); font-size: 13px; }
.steps li strong { display: block; font-family: var(--display); font-size: 24px; margin-bottom: 4px; }
.steps li p { margin: 0; }
.side { margin: 32px 0 0; }
.side figcaption { font-size: 13px; color: var(--mute); margin-top: 8px; }
#film { background: var(--pit-2); color: var(--mist); }
#film .kicker { color: var(--acid); }
.bench {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  margin-top: 28px;
  align-items: start;
}
.film-card {
  background: #e4e7ea;
  color: var(--iron);
  padding: 22px 20px;
  border: 1px solid var(--acid);
}
.film-card.is-ok { box-shadow: inset 0 0 0 4px var(--acid); }
.n {
  font-family: var(--mono);
  font-size: 52px;
  margin: 4px 0 12px;
  letter-spacing: -0.04em;
}
.n span { font-size: 18px; color: var(--mute); }
#film-state { min-height: 2.6em; }
#film-state.is-ok { color: var(--pit); }
#film-state.is-no { color: var(--wine); }
#film-toggle { margin-top: 10px; background: var(--acid); color: #0a1c18; border: 0; padding: 8px 14px; font-weight: 700; }
.pin-tray { background: #e4e7ea; color: var(--iron); padding: 12px; }
.pin-tray img { width: 100%; height: 220px; object-fit: cover; }
.hint { font-size: 13px; color: var(--mute); }
.lines { margin: 0; padding-left: 18px; }
.lines li { margin: 8px 0; }
footer {
  padding: 28px 24px 48px;
  background: var(--pit);
  color: var(--mist);
  font-family: var(--mono);
  font-size: 12px;
  border-top: 3px solid var(--acid);
}
@media (max-width: 880px) {
  .pit-hero, .tri, .bench { grid-template-columns: 1fr; }
  .pit-hero img { height: 240px; min-height: 240px; }
  .nav-toggle { display: inline-block; }
  .pit-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--pit);
    padding: 12px 20px 20px;
    border-bottom: 3px solid var(--acid);
  }
  .pit-links.open { display: flex; }
  .pit-hero .copy { padding: 32px 20px 48px; }
  .w { width: min(1080px, calc(100% - 32px)); padding: 48px 0; }
  h1 { font-size: 40px; }
}
