/* Space Shooter - Model Showcase. Dark, self-contained, no external resources. */
:root {
  color-scheme: dark;
  --bg: #04060b;
  --card: #0b1120;
  --card-2: #0f1729;
  --line: rgba(140, 165, 230, 0.13);
  --line-2: rgba(150, 180, 255, 0.32);
  --text: #e9edf6;
  --muted: #9aa5bf;
  --faint: #6d7792;
  --accent: #8ab4ff;
  --accent-2: #b89cff;
  --wip: #ffb454;
  --ok: #72e2b8;
  --radius: 16px;
  --radius-s: 10px;
  --gutter: 16px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.75);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
@media (min-width: 720px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ sky */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 620px at 12% -12%, rgba(72, 104, 255, 0.22), transparent 62%),
    radial-gradient(900px 520px at 96% 4%, rgba(160, 88, 255, 0.14), transparent 60%),
    radial-gradient(1200px 800px at 50% 125%, rgba(36, 150, 200, 0.10), transparent 60%);
}
.sky::before, .sky::after {
  content: ""; position: absolute; inset: 0;
  background-repeat: repeat;
}
.sky::before { background-image: url(/assets/stars-a.35c29e020e.svg); background-size: 420px 420px; opacity: 0.85; }
.sky::after { background-image: url(/assets/stars-b.cf0cbacbf7.svg); background-size: 760px 760px; opacity: 0.9; }

/* ------------------------------------------------------------------ layout */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.site-head { padding-top: 18px; padding-bottom: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.86rem;
  letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
.brand img { width: 26px; height: 26px; }
.brand:hover { color: var(--text); }

.intro { padding: clamp(28px, 7vw, 72px) 0 clamp(18px, 4vw, 36px); max-width: 760px; }
.title { margin: 0; font-size: clamp(2.1rem, 6.4vw, 3.6rem); line-height: 1.04; font-weight: 750;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 0%, #c9d6f5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { display: block; margin-bottom: 14px; font-size: 0.8rem; font-weight: 650; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--accent); -webkit-text-fill-color: var(--accent); }
.lede { margin: 18px 0 0; color: var(--muted); font-size: clamp(1rem, 2.4vw, 1.12rem); max-width: 62ch; }

.sec { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 1.05rem; font-weight: 650;
  letter-spacing: 0.12em; text-transform: uppercase; color: #cfd8ee; }
.sec::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.count { font-size: 0.78rem; letter-spacing: 0.04em; color: var(--faint); font-weight: 600;
  border: 1px solid var(--line); border-radius: 99px; padding: 1px 9px; }
section.block { margin: 0 0 clamp(36px, 7vw, 64px); }

/* ------------------------------------------------------------------ badges */
.badge { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 4px 11px 4px 10px;
  border-radius: 99px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.badge.wip { color: var(--wip); background: rgba(255, 180, 84, 0.1); border: 1px solid rgba(255, 180, 84, 0.3); }
.badge.done { color: var(--ok); background: rgba(114, 226, 184, 0.08); border: 1px solid rgba(114, 226, 184, 0.28); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor;
  animation: pulse 2.2s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 180, 84, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(255, 180, 84, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 180, 84, 0); }
}
.sec .dot { color: var(--wip); }

/* ------------------------------------------------------------------ shot frames */
.frame { position: relative; overflow: hidden; border-radius: var(--radius-s); background: #1c1e23;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04); }
.frame img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.5s cubic-bezier(.2, .7, .2, 1); }

/* ------------------------------------------------------------------ models grid */
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
@media (max-width: 600px) { .grid.many { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.card { display: block; height: 100%; border-radius: var(--radius); background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease; }
.card .frame { border-radius: 0; }
.card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.card:hover .frame img { transform: scale(1.035); }
.card-meta { padding: 14px 16px 16px; }
.card-meta h3 { margin: 0; font-size: 1.08rem; font-weight: 650; letter-spacing: 0.005em; }
.card-meta p { margin: 4px 0 0; color: var(--muted); font-size: 0.88rem; }
.grid.many .card-meta { padding: 11px 12px 13px; }
@media (max-width: 600px) { .grid.many .card-meta h3 { font-size: 0.95rem; } .grid.many .card-meta p { font-size: 0.8rem; } }
.empty { color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 28px; text-align: center; }

/* ------------------------------------------------------------------ feature (newest finished model) */
.grid > li.feature { grid-column: 1 / -1; }
.feat { display: grid; gap: 22px; padding: 16px; border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(160deg, rgba(138, 180, 255, 0.09), rgba(15, 23, 41, 0.9) 40%, var(--card));
  border: 1px solid rgba(138, 180, 255, 0.2); box-shadow: var(--shadow); }
@media (min-width: 820px) { .feat { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); padding: 20px; gap: 30px; align-items: center; } }
.feat-hero .frame { border-radius: var(--radius); }
.feat-hero:hover .frame img { transform: scale(1.03); }
.feat-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.feat-body h3 { margin: 4px 0 0; font-size: clamp(1.6rem, 3.8vw, 2.3rem); line-height: 1.1; font-weight: 750; letter-spacing: -0.01em; }
.feat-body .blurb { margin: 0; }

/* ------------------------------------------------------------------ being built (home) */
.wip-card { display: grid; gap: 22px; padding: 16px; border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(160deg, rgba(255, 180, 84, 0.07), rgba(15, 23, 41, 0.9) 38%, var(--card));
  border: 1px solid rgba(255, 180, 84, 0.22); box-shadow: var(--shadow); }
.wip-card + .wip-card { margin-top: 18px; }
@media (min-width: 820px) { .wip-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); padding: 20px; gap: 28px; } }
.wip-hero .frame { border-radius: var(--radius); }
.wip-hero:hover .frame img { transform: scale(1.03); }
.wip-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.wip-body h3 { margin: 4px 0 0; font-size: clamp(1.4rem, 3.4vw, 1.9rem); line-height: 1.15; font-weight: 700; }
.meta { margin: 0; color: var(--muted); font-size: 0.95rem; }
.meta strong { color: var(--text); font-weight: 600; }
.mini { margin: 8px 0 0; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.strip .frame { border-radius: 8px; }
.strip a:hover .frame img { transform: scale(1.06); }
.more { align-self: flex-start; margin-top: 6px; color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.more:hover { color: #b8d0ff; }

/* ------------------------------------------------------------------ timeline */
.timeline { list-style: none; margin: 0; padding: 2px 2px 8px; display: flex; gap: 10px; overflow-x: auto;
  scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: rgba(150, 170, 220, 0.3) transparent; }
.timeline li { flex: 0 0 auto; scroll-snap-align: start; }
.timeline a { display: block; width: 84px; }
.timeline .frame { border-radius: 8px; }
.timeline a:hover .frame img { transform: scale(1.06); }
.timeline .cap { display: block; margin-top: 5px; font-size: 0.76rem; color: var(--faint); text-align: center; line-height: 1.3; }
.timeline .cap b { color: var(--muted); font-weight: 650; }
.timeline .latest .frame { box-shadow: 0 0 0 2px var(--wip); }
.timeline .latest .cap b { color: var(--wip); }
.timeline.big a { width: 116px; }
@media (min-width: 720px) { .timeline.big a { width: 140px; } }

/* ------------------------------------------------------------------ model page */
.crumbs { padding: 26px 0 8px; }
.crumbs a { color: var(--muted); font-size: 0.92rem; font-weight: 550; }
.crumbs a:hover { color: var(--text); }
.model-head { display: grid; gap: 24px; padding: 10px 0 clamp(30px, 6vw, 54px); align-items: center; }
@media (min-width: 860px) { .model-head { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 44px; } }
.model-hero { display: block; cursor: zoom-in; }
.model-hero .frame { border-radius: var(--radius); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.model-info h1 { margin: 14px 0 8px; font-size: clamp(2rem, 5.6vw, 3.2rem); line-height: 1.06; font-weight: 750; letter-spacing: -0.015em; }
.blurb { margin: 16px 0 0; color: #c6cee2; font-size: 1.04rem; max-width: 52ch; }
.hint { margin: 18px 0 0; color: var(--faint); font-size: 0.86rem; }
.shots { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .shots { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.shot { display: block; cursor: zoom-in; }
.shot:hover .frame img { transform: scale(1.04); }
.shot .cap { display: block; margin-top: 7px; color: var(--muted); font-size: 0.84rem; }

/* ------------------------------------------------------------------ footer + toast */
.foot { margin-top: 30px; padding-top: 26px; padding-bottom: 40px; color: var(--faint); font-size: 0.85rem; }
.foot p { border-top: 1px solid var(--line); padding-top: 22px; }
.foot p { margin: 0; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); opacity: 0; z-index: 40;
  padding: 10px 16px; border-radius: 99px; background: rgba(17, 25, 44, 0.95); border: 1px solid var(--line-2);
  color: var(--text); font-size: 0.9rem; box-shadow: var(--shadow); transition: opacity 0.3s, transform 0.3s; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------------ lightbox */
.lb { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center;
  background: rgba(3, 5, 10, 0.9); -webkit-backdrop-filter: blur(10px) saturate(0.7); backdrop-filter: blur(10px) saturate(0.7); touch-action: none; -webkit-user-select: none; user-select: none; }
.lb.open { display: flex; }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.lb-img { -webkit-user-drag: none; width: min(92vw, 78vh, var(--lb-max, 768px)); height: auto; aspect-ratio: 1 / 1; object-fit: contain;
  border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); background: #1c1e23; transition: opacity 0.18s ease; }
.lb-img.fade { opacity: 0.25; }
.lb-cap { color: #cdd5ea; font-size: 0.95rem; text-align: center; padding: 0 60px; }
.lb-cap small { display: block; color: var(--faint); font-size: 0.8rem; margin-top: 2px; }
.lb button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(20, 28, 48, 0.7); color: #fff; cursor: pointer; padding: 0; }
.lb button:hover { background: rgba(40, 56, 96, 0.85); }
.lb button svg { width: 22px; height: 22px; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
  .lb-fig { margin-bottom: 60px; }
  .lb-cap { padding: 0 16px; }
}
.lb.single .lb-prev, .lb.single .lb-next { display: none; }
body.lb-lock { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.feat-body > p, .wip-body > p { margin: 0; }
