@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&family=Unbounded:wght@500;600&display=swap");

:root {
  --bg: #101410;
  --bg-raise: #171c18;
  --ink: #ebe6da;
  --muted: #a3aaa0;
  --line: rgba(235, 230, 218, 0.14);
  --lime: #dff25a;
  --paper: #e7e1d4;
  --paper-2: #f3efe6;
  --ink-d: #171a14;
  --alert: #ff4b2b;
  --display: "Unbounded", "Segoe UI", sans-serif;
  --body: "Manrope", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
  --wrap: min(1180px, calc(100% - 2.4rem));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.04em; line-height: 1.02; }
p { margin: 0 0 0.8rem; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--lime); color: #161a0c; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--lime);
  color: #161a0c;
  padding: 0.4rem 0.7rem;
  z-index: 30;
}
.skip:focus { top: 0.6rem; }

.wrap { width: var(--wrap); margin-inline: auto; }
.eyebrow, .mono {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
}
.lead { font-size: 1.18rem; max-width: 42rem; color: var(--muted); }
.sheet .lead, .sheet { color: var(--ink-d); }
.sheet .lead { color: #4e554c; }

.hud {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  height: 68px;
  padding: 0 1.2rem;
  background: rgba(16, 20, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 0.65rem; font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.mark { width: 36px; height: 36px; object-fit: cover; object-position: center; border-radius: 50%; flex: none; }
.hud-nav { display: flex; gap: 1.15rem; margin-left: auto; overflow-x: auto; }
.hud-nav a {
  color: #f3efe4;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45),
    0 2px 0 #3a4038,
    0 3px 0 #242824,
    0 4px 0 #141816,
    0 6px 8px rgba(0, 0, 0, 0.55);
}
.hud-nav a:hover, .hud-nav a[aria-current="page"] {
  color: var(--lime);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55),
    0 2px 0 #8ea332,
    0 3px 0 #5c6b18,
    0 4px 0 #2c340c,
    0 6px 10px rgba(0, 0, 0, 0.55);
}
.hud-meta { margin: 0; color: var(--muted); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; display: flex; align-items: center; gap: 0.45rem; }
.live {
  width: 7px; height: 7px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 0 0 rgba(223, 242, 90, 0.7);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(223, 242, 90, 0); }
}

.hero-media { position: relative; height: min(72vh, 760px); background: #0b0d0b; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 60%; }
.hero-box { left: 44%; top: 46%; width: 32%; height: 20%; }
.hero-card {
  position: relative;
  margin-top: -4.5rem;
  max-width: 760px;
  padding: clamp(1.3rem, 3vw, 2.2rem);
  background: var(--paper);
  color: var(--ink-d);
}
.hero-card .eyebrow { color: #3f4a18; }
.hero-card h1 { margin: 0.35rem 0 0.8rem; font-size: clamp(2.5rem, 6vw, 4.8rem); max-width: 11ch; }
.hero-card .lead { color: #3c4338; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }

.btn, .text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  background: var(--lime);
  color: #161a0c;
  padding: 0.85rem 1.05rem;
  font-weight: 700;
  text-decoration: none;
}
.btn-line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.text-btn { background: transparent; color: var(--muted); padding: 0.4rem 0; font-weight: 600; }
.btn:hover { filter: brightness(1.05); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.toc { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 2.5rem; }
.toc a { min-height: 150px; padding: 1.1rem 1rem 1.2rem; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.7rem; }
.toc a:last-child { border-right: 0; }
.toc a:hover { background: rgba(223, 242, 90, 0.05); }
.toc strong { font-family: var(--display); font-size: 1.25rem; letter-spacing: -0.04em; }
.toc em { font-style: normal; color: var(--muted); font-size: 0.95rem; }

.band { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.band-tight { padding-top: 0; }
.sheet { background: var(--paper); color: var(--ink-d); padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.sec-h { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: baseline; margin-bottom: 1.2rem; }
.sec-h h2, .page-head h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); }
.sec-h a { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime); }
.sheet .sec-h a, .sheet .eyebrow { color: #3f4a18; }
.section-lead { max-width: 40rem; margin-bottom: 1.4rem; }

.cases { display: flex; flex-direction: column; }
.case-row { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1.6rem; align-items: center; padding: 1.6rem 0; border-top: 1px solid var(--line); color: inherit; }
.case-row:last-child { border-bottom: 1px solid var(--line); }
.case-row:nth-child(even) .case-copy { order: -1; }
.case-photo { overflow: hidden; background: #0c0e0c; }
.case-photo img, .page-photo img, .area-card img { width: 100%; height: 340px; object-fit: cover; }
.case-row:hover img { transform: scale(1.03); }
.case-photo img, .area-card img { transition: transform 0.5s ease; }
.case-copy h3, .case-copy h2 { margin: 0.3rem 0 0.6rem; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.more-link { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lime); }
.sheet .more-link { color: #3f4a18; }

.pipe { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin: 0; padding: 0; }
.pipe li { border-top: 1px solid var(--line); padding-top: 0.8rem; }
.pipe b { display: block; font-family: var(--display); font-weight: 500; margin-bottom: 0.45rem; }
.pipe span { color: var(--muted); font-size: 0.95rem; }

.lines { display: flex; flex-direction: column; }
.line, .proj { display: grid; grid-template-columns: 92px minmax(160px, 280px) 1fr; gap: 1rem; padding: 0.95rem 0; border-top: 1px solid rgba(23, 26, 20, 0.14); color: inherit; }
.sheet .line span, .dossier time { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; color: #5c6554; }
.line em {
  font-style: normal;
  color: #3c4338;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line:hover strong { text-decoration: underline; text-underline-offset: 0.18em; }

.milestones { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 2rem; }
.milestones article { border-top: 1px solid var(--line); padding-top: 0.9rem; }
.milestones time { font-family: var(--display); font-size: 1.4rem; color: var(--lime); }
.milestones h3 { margin: 0.35rem 0; font-size: 1.25rem; }
.milestones p, .case-copy p { color: var(--muted); }

.page-head { padding: 2.4rem 0 1.4rem; }
.page-head h1 { max-width: 16ch; margin: 0.3rem 0 0.8rem; }
.page-photo { margin: 0 auto 2rem; }
.page-photo figcaption { color: var(--muted); font-size: 0.92rem; margin-top: 0.55rem; }
.crumb { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.crumb a:hover { color: var(--lime); }

.timeline, .dossier { list-style: none; margin: 0; padding: 0; }
.timeline li, .dossier article { display: grid; grid-template-columns: 140px 1fr; gap: 1.2rem; padding: 1.3rem 0; border-top: 1px solid rgba(23, 26, 20, 0.16); }
.timeline time, .dossier time { font-family: var(--display); font-size: 1.35rem; }
.timeline h2, .dossier h2 { margin: 0 0 0.45rem; font-size: 1.55rem; }
.tl-photo { margin: 0.8rem 0 1rem; }
.tl-photo img { width: 100%; height: min(440px, 56vw); object-fit: cover; }
.timeline p, .dossier p { max-width: 68ch; }
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.area-card { background: var(--bg-raise); color: var(--ink); min-height: 100%; }
.area-card div { padding: 1rem 1rem 1.3rem; }
.area-card h2 { margin: 0.25rem 0 0.55rem; font-size: 1.7rem; }
.area-card p:last-child { color: var(--muted); }
.area-card:target { outline: 2px solid var(--lime); }

.cmp { display: grid; grid-template-columns: 140px repeat(3, 1fr); gap: 1px; background: rgba(23, 26, 20, 0.16); }
.cmp div { background: var(--paper-2); padding: 0.9rem 1rem; }
.cmp-h { font-family: var(--display); font-size: 1.15rem; }
.cmp-k { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: #5c6554; }

.sol-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 2rem; align-items: start; }
.task { font-family: var(--display); font-size: 1.45rem; letter-spacing: -0.03em; line-height: 1.25; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding: 0.75rem 0 0.75rem 2.6rem; position: relative; border-top: 1px solid rgba(23, 26, 20, 0.14); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0.8rem; font-family: var(--mono); font-size: 0.78rem; color: #5c6554; }
.specs { position: sticky; top: 84px; background: var(--ink-d); color: var(--ink); padding: 1rem 1rem 0.4rem; }
.specs p { display: grid; gap: 0.15rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); }
.specs span { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime); }
.note { color: #4e554c; max-width: 46rem; }
.module { margin-top: 2.4rem; }

.grade { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; background: var(--paper-2); padding: 1rem; border: 1px solid rgba(23, 26, 20, 0.12); }
.grade-side img { width: 100%; height: auto; background: #fff; image-rendering: pixelated; }
.grade-side p { color: #4e554c; font-size: 0.92rem; }
.grade-meta, .grade-caption { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: #5c6554; }
.grade-total { font-family: var(--display); font-size: 6rem; line-height: 0.85; margin: 0.2rem 0; }
.grade-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.grade-list li, .grade-act { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(23, 26, 20, 0.12); padding: 0.45rem 0; }
.grade-act span { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: #5c6554; }
.g-a { color: #2c6b32; }
.g-b { color: #4f6b12; }
.g-c { color: #9a6200; }
.g-d, .g-f { color: #b42318; }

.box { position: absolute; z-index: 4; border: 1.5px solid var(--lime); pointer-events: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35); }
.box span {
  position: absolute; left: -1px; top: 0; transform: translateY(-100%);
  background: var(--lime); color: #161a0c;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.18rem 0.4rem; white-space: nowrap;
}
.box.bad { border-color: var(--alert); }
.box.bad span { background: var(--alert); color: white; }
.scan { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 1rem; align-items: start; }
.scan-frame { position: relative; }
.scan-frame img { width: 100%; height: auto; }
.events { list-style: none; margin: 0; padding: 0; }
.events li { border-top: 1px solid rgba(23, 26, 20, 0.14); padding: 0.8rem 0; }
.events time, .events em { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.events strong { display: block; }
.lv-bad { color: #b42318; font-style: normal; }
.lv-ok { color: #3f4a18; font-style: normal; }

.yard-top, .legend, .yard-card dl { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.yard-layout { display: grid; grid-template-columns: 1.45fr 0.7fr; gap: 1rem; align-items: start; }
.yard-layout > div:first-child { overflow-x: auto; }
.yard-scroll { overflow-x: auto; }
.yard {
  position: relative;
  aspect-ratio: 16 / 10;
  min-width: 680px;
  background-color: #1a2118;
  background-image:
    linear-gradient(rgba(223, 242, 90, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(223, 242, 90, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  border: 1px solid rgba(223, 242, 90, 0.28);
  color: var(--ink);
}
.bldg, .docks, .road, .gate {
  position: absolute;
  border: 1px solid rgba(235, 230, 218, 0.35);
  background: rgba(235, 230, 218, 0.04);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9d0c4;
  padding: 0.35rem;
}
.docks, .road { display: flex; align-items: center; justify-content: space-around; }
.road { background: rgba(223, 242, 90, 0.05); }
#trucks { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.truck {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  border: 0;
  cursor: pointer;
  background: var(--lime);
  color: #161a0c;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.4rem;
  white-space: nowrap;
}
.truck.is-move { background: #fff4c8; }
.truck[aria-current="true"] { outline: 2px solid white; }
.legend { list-style: none; padding: 0.6rem 0 0; margin: 0; color: #4e554c; font-size: 0.92rem; justify-content: flex-start; }
.swatch { width: 0.8rem; height: 0.8rem; display: inline-block; margin-right: 0.35rem; vertical-align: -1px; }
.swatch.move { background: #fff4c8; }
.swatch.park { background: var(--lime); }
.yard-card {
  position: sticky;
  top: 84px;
  background: #151a14;
  color: var(--ink);
  border: 1px solid rgba(223, 242, 90, 0.28);
  padding: 1rem;
  min-height: 220px;
}
.yard-card h3 { margin: 0.2rem 0 0.8rem; font-size: 1.35rem; }
.yard-card dl { display: grid; grid-template-columns: 7.2rem 1fr; gap: 0.35rem 0.6rem; margin: 0; }
.yard-card dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lime); }
.yard-card dd { margin: 0; }
.journal-title { margin: 1.4rem 0 0.4rem; font-size: 1.3rem; }
.fleet { list-style: none; margin: 0; padding: 0; }
.fleet button {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 9.5rem 1fr auto;
  gap: 0.6rem;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(23, 26, 20, 0.14);
  padding: 0.7rem 0;
  cursor: pointer;
}
.fleet button[aria-current="true"] strong { text-decoration: underline; text-underline-offset: 0.15em; }
.fleet .gone { color: #6d7468; }

.more { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); margin: 0 auto 3rem; border: 1px solid var(--line); }
.more a { background: var(--bg); padding: 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; min-height: 120px; }
.more span { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lime); }
.more strong { font-family: var(--display); font-size: 1.35rem; letter-spacing: -0.03em; }

.brief { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 2rem; }
.region { font-family: var(--display); font-size: 1.35rem; letter-spacing: -0.03em; line-height: 1.2; margin: 0.4rem 0 1rem; }
.contact-list { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: 0.9rem; }
.contact-list span, .foot-contacts span { display: block; color: var(--muted); font-size: 0.95rem; }
.contact-list a { font-family: var(--display); font-size: clamp(1.4rem, 2vw, 1.8rem); letter-spacing: -0.03em; }
.contact-list a:hover { color: var(--lime); }
.form label { display: grid; gap: 0.25rem; margin-bottom: 0.9rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.form input, .form textarea, .form select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0;
  border-radius: 0;
}
.sheet .form, .login .form { color: var(--ink); }
.hp { position: absolute; left: -9999px; }
.form-note { min-height: 1.2em; color: var(--lime); }
.form-note.bad { color: #ff8d7a; }
.login { padding: 4rem 0 5rem; max-width: 640px; }
.login h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }

.foot { border-top: 1px solid var(--line); padding: 2rem 0 2.4rem; }
.foot-grid { display: grid; grid-template-columns: 1.1fr 1.1fr 0.8fr; gap: 1.5rem; }
.foot-contacts a { color: var(--ink); }
.foot-contacts a:hover { color: var(--lime); }
.foot-contacts p { margin-bottom: 0.45rem; }
.logo-foot { font-family: var(--display); letter-spacing: -0.04em; font-size: 1.4rem; }
.foot nav { display: grid; gap: 0.35rem; }
.foot nav a {
  color: #f3efe4;
  font-weight: 700;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4),
    0 2px 0 #3a4038,
    0 3px 0 #242824,
    0 4px 0 #141816,
    0 6px 8px rgba(0, 0, 0, 0.5);
}
.foot nav a:hover {
  color: var(--lime);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55),
    0 2px 0 #8ea332,
    0 3px 0 #5c6b18,
    0 4px 0 #2c340c,
    0 6px 10px rgba(0, 0, 0, 0.55);
}

.admin { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 68px); }
.admin-side { border-right: 1px solid var(--line); padding: 1.2rem 1rem 2rem; }
.admin-side nav { display: grid; gap: 0.15rem; margin: 0.8rem 0 1rem; }
.admin-side button {
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0.55rem 0.3rem;
  cursor: pointer;
}
.admin-side button[aria-current="true"] { color: var(--lime); }
.admin-hint { color: var(--muted); font-size: 0.92rem; }
.admin-main { padding: 1.2rem 1.4rem 3rem; }
.admin h2 { margin-top: 0; }
.admin .field, .admin label { display: grid; gap: 0.25rem; margin: 0.75rem 0; }
.admin input, .admin textarea, .admin select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 0;
  border-radius: 0;
}
.item { border-top: 1px solid var(--line); padding: 0.8rem 0 1rem; }
.item-tools { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.4rem; }
.item-tools button, .savebar button { background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 0.35rem 0.6rem; cursor: pointer; }
.savebar { display: flex; gap: 0.6rem; align-items: center; margin-bottom: 1rem; position: sticky; top: 68px; background: rgba(16, 20, 16, 0.94); padding: 0.6rem 0; z-index: 5; }
.preview { width: 180px; height: 110px; object-fit: cover; background: #0c0e0c; margin-top: 0.4rem; }
.check { display: flex; align-items: center; gap: 0.5rem; text-transform: none; letter-spacing: 0; font-family: var(--body); font-size: 1rem; color: var(--ink); }
.lead-card { border-top: 1px solid var(--line); padding: 0.8rem 0; }
.lead-card p { margin: 0.2rem 0; }

@media (max-width: 980px) {
  .hud-meta { display: none; }
  .toc, .pipe, .area-grid, .sol-grid, .grade, .scan, .yard-layout, .brief, .foot-grid, .admin, .milestones, .more {
    grid-template-columns: 1fr;
  }
  .case-row, .case-row:nth-child(even) { grid-template-columns: 1fr; }
  .case-row:nth-child(even) .case-copy { order: 0; }
  .line, .proj, .timeline li, .dossier article { grid-template-columns: 1fr; gap: 0.3rem; }
  .cmp { grid-template-columns: 1fr 1fr; }
  .specs, .yard-card { position: static; }
  .hero-card h1 { max-width: none; }
  .case-photo img, .page-photo img, .area-card img { height: 220px; }
}

@media (max-width: 640px) {
  .toc { grid-template-columns: 1fr 1fr; }
  .toc a { min-height: 120px; }
  .sec-h { grid-template-columns: 1fr; }
  .fleet button { grid-template-columns: 1fr; }
}

@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.shutter {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  z-index: 40;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  box-shadow: 0 0 22px var(--lime);
  opacity: 0;
}

html.motion .shutter { animation: shutter 1.15s cubic-bezier(.4, 0, .2, 1) both; }

@keyframes shutter {
  0% { top: 0; opacity: 0; }
  12% { opacity: 1; }
  100% { top: 100vh; opacity: 0; }
}

html.motion .hud::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--lime), transparent) left / 28% 100% no-repeat;
  animation: hudrun 3.4s linear infinite;
}

@keyframes hudrun {
  from { background-position: -30% 0; }
  to { background-position: 130% 0; }
}

html.motion .mark { animation: pop-in 0.55s cubic-bezier(.16, 1, .3, 1) both; }

html.motion :is(
  .page-head,
  .hero-media,
  .hero-card,
  .toc a,
  .sec-h,
  .case-row,
  .pipe li,
  .line,
  .milestones article,
  .timeline li,
  .area-card,
  .dossier article,
  .grade,
  .scan,
  .yard-layout,
  .brief > *,
  .foot-grid > *,
  .login,
  .more a,
  .admin-side,
  .admin-main
) {
  animation: pop-in 0.72s cubic-bezier(.16, 1, .3, 1) both;
}

html.motion .toc a:nth-child(2),
html.motion .pipe li:nth-child(2),
html.motion .case-row:nth-child(2),
html.motion .milestones article:nth-child(2),
html.motion .area-card:nth-child(2) { animation-delay: 0.08s; }

html.motion .toc a:nth-child(3),
html.motion .pipe li:nth-child(3),
html.motion .case-row:nth-child(3),
html.motion .milestones article:nth-child(3),
html.motion .area-card:nth-child(3) { animation-delay: 0.16s; }

html.motion .toc a:nth-child(4),
html.motion .pipe li:nth-child(4),
html.motion .milestones article:nth-child(4),
html.motion .area-card:nth-child(4) { animation-delay: 0.24s; }

html.motion .pipe li:nth-child(5),
html.motion .area-card:nth-child(n + 5),
html.motion .timeline li,
html.motion .line,
html.motion .dossier article { animation-delay: 0.12s; }

@keyframes pop-in {
  from { opacity: 0; transform: translateY(26px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

html.motion :is(.case-photo, .page-photo, .area-card, .grade, .hero-card, .tl-photo) {
  position: relative;
}

html.motion :is(.hero-media, .case-photo, .page-photo, .scan-frame, .area-card, .grade, .yard, .hero-card, .specs, .yard-card, .tl-photo)::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  pointer-events: none;
  z-index: 3;
  background: conic-gradient(from var(--spin), transparent 0 70%, var(--lime) 84%, transparent 94%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: spinangle 3.2s linear infinite;
}

@keyframes spinangle { to { --spin: 360deg; } }

html.motion :is(.hero-media, .case-photo, .scan-frame, .page-photo, .area-card, .tl-photo)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 28%;
  top: -30%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(223, 242, 90, 0.28), transparent);
  animation: sweep 3.1s ease-in-out infinite;
}

@keyframes sweep {
  0% { top: -30%; }
  100% { top: 110%; }
}

html.motion .box {
  animation: lockon 0.85s cubic-bezier(.16, 1, .3, 1) 0.25s both, boxglow 2.2s ease-in-out 1s infinite;
}

@keyframes lockon {
  from { opacity: 0; transform: scale(1.18); }
  to { opacity: 1; transform: none; }
}

@keyframes boxglow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 0 rgba(223, 242, 90, 0); }
  50% { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 16px rgba(223, 242, 90, 0.65); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live { animation: none; }
  .shutter { display: none; }
  .case-photo img, .area-card img { transition: none; }
}
