/* Built Not Bot - DESIGN 1 "Factory Floor".
   Dark steel and hazard yellow, with the bot-red and cyan glow the game
   uses for light. The page reads as a descent: the bay numbers on the
   right count down from B7 to B1 as you scroll. */
:root {
  --bg: #0f1217; --bg2: #151a21; --panel: #1b2129; --line: #2a323d;
  --text: #e7ebf0; --muted: #98a3b1;
  --yellow: #f5b800; --rust: #e0843f; --chrome: #9fc4dd; --red: #ff4545; --cyan: #3fd0ff;
  --head: "Chakra Petch", "Arial Narrow", sans-serif; --body: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--yellow); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.built { color: var(--rust); } .bot { color: var(--chrome); }
h1, h2, h3 { font-family: var(--head); letter-spacing: 0.01em; }
h2 { font-size: clamp(32px, 5vw, 52px); line-height: 1.02; margin: 6px 0 18px; text-transform: uppercase; }
h3 { font-size: 22px; margin: 0 0 6px; }
p { margin: 0 0 14px; color: #cdd4dc; }
.note { color: var(--muted); font-size: 15.5px; border-left: 3px solid var(--yellow); padding-left: 12px; }
.sub { color: var(--muted); max-width: 44em; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 18px; padding: 10px 22px; background: rgba(15, 18, 23, 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--head); font-weight: 700; font-size: 21px; letter-spacing: 0.06em; flex: none; }
.nav { display: flex; gap: 4px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); text-decoration: none; font-family: var(--head); font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 10px; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.on { color: var(--text); border-bottom-color: var(--yellow); }
@media (max-width: 900px) { .nav { display: none; } .top .btn { margin-left: auto; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--head); font-weight: 700; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; padding: 14px 24px; border: 2px solid transparent; cursor: pointer; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); transition: transform 120ms ease, filter 120ms ease; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-y { background: var(--yellow); color: #15120a; }
.btn-ghost { color: var(--text); border-color: rgba(255,255,255,0.4); background: rgba(0,0,0,0.25); }
.btn.small { padding: 9px 16px; font-size: 14px; }
.btn[aria-disabled="true"] { cursor: default; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; } .acts.center { justify-content: center; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: calc(100svh - 56px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: center / cover no-repeat; transform: scale(1.04); animation: slowpan 26s ease-in-out infinite alternate; }
@keyframes slowpan { to { transform: scale(1.12) translate(-1.5%, 1%); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,18,23,0.2) 0%, rgba(15,18,23,0.35) 45%, rgba(15,18,23,0.97) 100%), linear-gradient(90deg, rgba(15,18,23,0.7), transparent 60%); }
.scan { position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 3px); pointer-events: none; }
.hero .wrap { width: 100%; padding-bottom: 70px; padding-top: 90px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chips span { font-family: var(--head); font-weight: 600; font-size: 13.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 12px; background: rgba(15,18,23,0.7); border: 1px solid rgba(245,184,0,0.5); color: var(--yellow); }
.title { font-weight: 700; font-size: clamp(58px, 12vw, 150px); line-height: 0.86; margin: 0 0 20px; text-transform: uppercase; letter-spacing: -0.01em; }
.title .built { color: var(--rust); text-shadow: 0 0 40px rgba(224,132,63,0.35); }
.title .not { color: #fff; font-size: 0.55em; vertical-align: 0.35em; margin: 0 0.1em; }
.title .bot { color: var(--chrome); text-shadow: 0 0 40px rgba(63,208,255,0.3); }
.lede { font-size: clamp(17px, 2vw, 20px); max-width: 38em; color: #dbe1e8; margin-bottom: 28px; }
.hazard { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 18px, #15120a 18px 36px); }

/* ---------- depth meter ---------- */
.depth { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 6px; }
.depth a { font-family: var(--head); font-weight: 700; font-size: 13px; color: var(--muted); text-decoration: none; padding: 4px 7px; border: 1px solid var(--line); background: rgba(15,18,23,0.8); transition: all 200ms ease; text-align: center; }
.depth a.on { color: #15120a; background: var(--yellow); border-color: var(--yellow); transform: scale(1.12); }
@media (max-width: 1100px) { .depth { display: none; } }

/* ---------- sections ---------- */
.sec { position: relative; padding: 110px 0; overflow: hidden; }
.sec.alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bay { position: absolute; right: -10px; top: 40px; font-family: var(--head); font-weight: 700; font-size: clamp(140px, 22vw, 300px); line-height: 1; color: rgba(255,255,255,0.035); pointer-events: none; }
.lbl { font-family: var(--head); font-weight: 600; font-size: 14px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--yellow); scroll-margin-top: 90px; display: flex; align-items: center; gap: 10px; }
.lbl::before { content: ""; width: 26px; height: 3px; background: var(--yellow); }
.two { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
@media (min-width: 920px) { .two { grid-template-columns: 1.05fr 1fr; gap: 64px; } .two.rev > :first-child { order: 2; } }
.frame { position: relative; margin: 0; border: 1px solid var(--line); background: var(--panel); padding: 8px; }
.frame::before, .frame::after { content: ""; position: absolute; width: 22px; height: 22px; border: 3px solid var(--yellow); }
.frame::before { top: -3px; left: -3px; border-right: 0; border-bottom: 0; }
.frame::after { bottom: -3px; right: -3px; border-left: 0; border-top: 0; }
.frame figcaption { font-family: var(--head); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 8px 4px 2px; }
.quote { margin: 70px 0 0; padding: 28px 30px; border-left: 4px solid var(--rust); background: var(--panel); font-family: var(--head); font-size: clamp(20px, 2.4vw, 26px); line-height: 1.4; color: #fff; }

.cards { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 30px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--panel); border: 1px solid var(--line); padding: 24px; position: relative; transition: border-color 160ms ease, transform 160ms ease; }
.card:hover { border-color: var(--yellow); transform: translateY(-3px); }
.card .ico, .member .ico { width: 46px; height: 46px; color: var(--yellow); margin-bottom: 14px; }
.card p, .member p { font-size: 15.5px; margin: 0; color: var(--muted); }
.flow-h { margin-top: 50px; font-size: 16px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.flow { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.flow li { font-family: var(--head); font-weight: 600; padding: 8px 16px 8px 14px; background: var(--panel); border: 1px solid var(--line); position: relative; }
.flow li:not(:last-child)::after { content: "\2192"; margin-left: 12px; color: var(--yellow); }
.flow li:last-child { border-color: var(--yellow); color: var(--yellow); }

/* ---------- tech grid demo ---------- */
.grid-demo { background: var(--panel); border: 1px solid var(--line); padding: 18px; }
.g { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; aspect-ratio: 1; }
.g i { background: #11151b; border: 1px solid #242b35; position: relative; transition: background 280ms ease, box-shadow 280ms ease; }
.g i.on { background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25), 0 0 14px color-mix(in srgb, var(--c) 40%, transparent); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; font-family: var(--head); font-size: 13px; color: var(--muted); min-height: 40px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; background: var(--c); display: inline-block; }
.tech { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px) { .tech { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .tech { grid-template-columns: repeat(3, 1fr); } }
.tech li { background: var(--bg); padding: 14px 16px; }
.tech b { display: block; font-family: var(--head); color: var(--cyan); font-size: 16px; }
.tech span { font-size: 14.5px; color: var(--muted); }

/* ---------- crew ---------- */
.crew { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 30px; }
@media (min-width: 640px) { .crew { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .crew { grid-template-columns: repeat(5, 1fr); } }
.member { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--cc); padding: 22px 20px; }
.member .ico { color: var(--cc); }
.member .role { font-family: var(--head); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cc); }
.member h3 { margin-top: 2px; }
.c0 { --cc: #f5b800; } .c1 { --cc: #ff7a3c; } .c2 { --cc: #3fd0ff; } .c3 { --cc: #b56bff; } .c4 { --cc: #ff4545; }

/* ---------- enemy ---------- */
.strains { list-style: none; padding: 0; margin: 0 0 16px; }
.strains li { padding: 10px 0 10px 16px; border-left: 3px solid var(--red); margin-bottom: 8px; background: linear-gradient(90deg, rgba(255,69,69,0.08), transparent); color: #cdd4dc; }
.strains b { color: var(--red); font-family: var(--head); font-size: 17px; margin-right: 6px; }
.boss { overflow: hidden; }
.ring { position: absolute; left: 50%; top: 58%; width: 60%; aspect-ratio: 2.6; transform: translate(-50%, -50%); border: 3px solid var(--red); border-radius: 50%; animation: pulse 1.6s ease-in infinite; pointer-events: none; }
@keyframes pulse { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); } 60% { opacity: 0.9; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.15); } }

/* ---------- media ---------- */
.shots { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 26px; }
@media (min-width: 900px) { .shots { grid-template-columns: 1fr 1fr; } }
.shot { position: relative; padding: 0; border: 1px solid var(--line); background: var(--panel); cursor: zoom-in; text-align: left; overflow: hidden; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 500ms ease; }
.shot:hover img { transform: scale(1.03); }
.shot span { display: block; padding: 10px 14px; font-family: var(--head); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(8,10,13,0.95); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.lb[hidden] { display: none; }
.lb img { max-height: 82vh; width: auto; border: 1px solid var(--line); }
.lb p { font-family: var(--head); color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 12px; }
.lb .x { position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; background: var(--yellow); border: 0; font-size: 24px; cursor: pointer; }

/* ---------- final ---------- */
.final { text-align: center; background: radial-gradient(ellipse at 50% 100%, rgba(245,184,0,0.14), transparent 60%), var(--bg); }
.final .lbl { justify-content: center; }
.final .sub { margin: 0 auto 28px; }
.foot { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.foot span:first-child { font-family: var(--head); font-weight: 700; letter-spacing: 0.08em; color: var(--text); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hero-bg, .ring { animation: none; } * { transition: none !important; } }

/* phones: title on one line, compact header button */
@media (max-width: 560px) {
  .title { font-size: 44px; white-space: nowrap; }
  .top { gap: 10px; padding: 10px 14px; }
  .logo { font-size: 17px; }
  .btn.small { padding: 8px 10px; font-size: 12px; white-space: nowrap; }
}
