/* Swarm Bunker: Harvest Factory — site styles
   Layout concept: a bunker control floor. Hero = the wall and No.99 over the factory;
   a moving conveyor belt divides it from the floor below; features are riveted spec plates.
   Single dark look on purpose (the game is a dark industrial world); every color is a token. */
:root {
  color-scheme: dark;
  --bg: #0f141b;          /* bunker night */
  --panel: #161d27;       /* steel panel */
  --panel-2: #1c2531;
  --line: #2b3746;        /* seams */
  --fg: #e7ebf0;
  --muted: #a2afbe;
  --amber: #f2a629;       /* HARVEST FACTORY plate */
  --amber-hi: #ffc35a;
  --amber-ink: #1b1204;
  --steel: #c7d1dc;       /* logo metal */
  --green: #8fc2a4;       /* No.99 uniform */
  --hazard: repeating-linear-gradient(-45deg, var(--amber) 0 10px, #15100a 10px 20px);
  --f-display: "Saira Condensed", "Arial Narrow", "Noto Sans TC", "Microsoft JhengHei", "Yu Gothic UI", sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 1180px;
  --r: 4px;
}
:lang(ja) { --f-body: "IBM Plex Sans", "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Noto Sans JP", sans-serif;
            --f-display: "Saira Condensed", "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", sans-serif; }
:lang(zh-CN) { --f-body: "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
               --f-display: "Saira Condensed", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
:lang(ko) { --f-body: "IBM Plex Sans", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
            --f-display: "Saira Condensed", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }
:lang(th) { --f-body: "IBM Plex Sans", "Leelawadee UI", "Thonburi", "Noto Sans Thai", sans-serif;
            --f-display: "Saira Condensed", "Leelawadee UI", "Thonburi", "Noto Sans Thai", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 1rem/1.65 var(--f-body);
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--amber-hi); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--amber-hi); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--amber); color: var(--amber-ink); padding: 8px 12px; z-index: 50; }
.skip:focus { top: 8px; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em; justify-content: center;
  font: 600 1rem/1.2 var(--f-body); text-decoration: none; white-space: nowrap;
  padding: .7em 1.15em; border-radius: var(--r); border: 1px solid transparent;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn .ico { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
.btn-lg { font-size: 1.08rem; padding: .85em 1.35em; }
.btn-sm { font-size: .9rem; padding: .45em .85em; }
.btn-amber { background: var(--amber); color: var(--amber-ink); box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); }
.btn-amber:hover { background: var(--amber-hi); }
.btn-ghost { color: var(--fg); border-color: var(--line); background: rgba(15,20,27,.55); }
.btn-ghost:hover { border-color: var(--steel); }
@media (hover: hover) { .btn:hover { transform: translateY(-1px); } }

/* ---------- top bar */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(15,20,27,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 18px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none;
  font: 800 1.05rem/1.1 var(--f-display); letter-spacing: .02em; text-transform: uppercase; min-width: 0; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav { display: flex; gap: 18px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: .93rem; }
.nav a:hover, .nav a[aria-current] { color: var(--fg); }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; color: var(--muted); font-size: .9rem; padding: 6px 10px;
  border: 1px solid var(--line); border-radius: var(--r); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); min-width: 190px;
  box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.lang li a { display: block; padding: 7px 10px; color: var(--fg); text-decoration: none; border-radius: 3px; }
.lang li a:hover { background: var(--panel-2); }
.lang li a[aria-current] { color: var(--amber-hi); }
@media (max-width: 900px) { .nav { display: none; } .lang { margin-left: auto; } }
@media (max-width: 560px) { .topbar-cta { display: none; } .brand span { font-size: .95rem; } }

/* ---------- hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--bg) var(--hero-bg) center 30% / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(15,20,27,.97) 0%, rgba(15,20,27,.9) 48%, rgba(15,20,27,.4) 78%, rgba(15,20,27,.6) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(15,20,27,0) 30%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: end; gap: 24px;
  padding-block: clamp(40px, 7vw, 88px) 0; }
.hero-copy { display: grid; gap: 24px; padding-bottom: clamp(36px, 6vw, 72px); min-width: 0; }
.hero-logo img { width: min(100%, 620px); filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)); }
.hero-short { font-size: clamp(1.02rem, 1.6vw, 1.16rem); color: var(--fg); max-width: 50ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; }
.hero-meta div { display: grid; gap: 2px; }
.hero-meta dt { font: 500 .72rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero-meta dd { margin: 0; font-weight: 600; }
.hero-no99 { justify-self: end; width: min(100%, 440px); margin-bottom: -2px; pointer-events: none;
  filter: drop-shadow(-10px 0 30px rgba(0,0,0,.55)); }
@media (max-width: 820px) {
  .hero { background-image: var(--hero-bg-sm); }
  .hero-in { grid-template-columns: 1fr; }
  .hero-no99 { display: none; }
}

/* ---------- conveyor belt divider (the one moving thing on the page) */
.belt { height: 30px; background: #0b0f14; border-block: 4px solid transparent;
  border-image: var(--hazard) 4; position: relative; }
.belt-rollers { position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 50%, #5d6b7b 0 4px, #2d3846 4.5px 7px, transparent 7.5px) 0 50% / 36px 30px repeat-x,
    repeating-linear-gradient(90deg, #1a222c 0 2px, transparent 2px 18px);
  animation: belt 1.6s linear infinite; }
@keyframes belt { to { background-position: 36px 50%, 18px 0; } }

/* ---------- sections */
section { padding-block: clamp(56px, 8vw, 96px); }
.sec-h { font: 800 clamp(1.8rem, 3.6vw, 2.6rem)/1.05 var(--f-display); letter-spacing: .01em; text-transform: uppercase;
  margin-bottom: 24px; }
.sec-h::before { content: ""; display: block; width: 56px; height: 6px; background: var(--hazard); margin-bottom: 14px; }

.screen { position: relative; background: #05070a; border: 1px solid var(--line); border-radius: var(--r);
  padding: 10px; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.screen video, .screen img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; border-radius: 2px; }
.trailer .screen { max-width: 1040px; }
.trailer-alt { margin-top: 14px; font-size: .95rem; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.yt-facade { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; border-radius: 2px; overflow: hidden; }
.yt-facade img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: filter .2s; }
.yt-facade:hover img { filter: brightness(1.08); }
.yt-play { position: absolute; left: 50%; top: 50%; width: 88px; height: 62px; transform: translate(-50%, -50%);
  background: var(--amber); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.yt-play::after { content: ""; position: absolute; left: 36px; top: 18px; border-style: solid; border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent var(--amber-ink); }
.yt-facade:hover .yt-play { background: var(--amber-hi); }
.screen iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 2px; background: #000; }

.about-intro { font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.6; max-width: 62ch; margin-bottom: 36px; }
.loop { margin: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #000; }
.loop video { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px 48px; align-items: start;
  padding-top: 48px; }
.story .loop { grid-column: 1 / -1; order: 3; }
.story-h { font: 800 clamp(1.5rem, 2.6vw, 2rem)/1.1 var(--f-display); text-transform: uppercase; color: var(--steel); }
.story-t { color: var(--fg); max-width: 60ch; }
@media (max-width: 720px) { .story { grid-template-columns: 1fr; } }

.secretary { background: linear-gradient(180deg, var(--bg), #121a1a 50%, var(--bg)); }
.secretary-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: center; }
.secretary .sec-h { color: var(--green); }
.secretary .sec-h::before { background: var(--green); }
.secretary-copy p { font-size: 1.08rem; max-width: 52ch; }
.secretary-img { border-radius: var(--r); border: 1px solid #284035; }
@media (max-width: 820px) { .secretary-in { grid-template-columns: 1fr; } }

.plates { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.plate { position: relative; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  border-radius: var(--r); padding: 20px 20px 18px; display: grid; gap: 6px; }
.plate::before, .plate::after { content: ""; position: absolute; top: 8px; width: 5px; height: 5px; border-radius: 50%;
  background: #3b4757; box-shadow: inset 0 1px 0 rgba(255,255,255,.15); }
.plate::before { left: 8px; } .plate::after { right: 8px; }
.plate strong { font: 800 1.2rem/1.15 var(--f-display); text-transform: uppercase; color: var(--amber-hi); letter-spacing: .02em; }
.plate span { color: var(--muted); font-size: .97rem; }
.closing { margin-top: 22px; color: var(--muted); font-size: .9rem; }

.hint { color: var(--muted); margin: -10px 0 20px; font-size: .92rem; }
.shot-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shot { display: block; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #000; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .25s, opacity .25s; }
.shot:hover img { transform: scale(1.03); }
@media (max-width: 820px) { .shot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.follow { background: var(--panel); border-top: 1px solid var(--line); }
.follow-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.follow-in > div:first-child { max-width: 52ch; min-width: 0; }
.follow-in .sec-h { margin-bottom: 10px; }
.follow-in p { color: var(--muted); }
.follow-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1600px); width: 100%; }
.lightbox::backdrop { background: rgba(5,7,10,.9); }
.lightbox img { width: 100%; border-radius: var(--r); }
.lightbox-bar { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.lightbox-bar button, .lightbox-bar a { background: var(--panel); color: var(--fg); border: 1px solid var(--line); border-radius: var(--r);
  min-width: 44px; height: 40px; font-size: 1.1rem; cursor: pointer; display: inline-grid; place-items: center; text-decoration: none; }

/* ---------- footer */
.footer { border-top: 4px solid transparent; border-image: var(--hazard) 4; background: #0b0f14; }
.footer-in { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr) auto; padding-block: 36px 40px; }
.footer-studio { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .88rem; }
.footer-studio img { border-radius: 6px; }
.footer-links, .footer-langs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { color: var(--fg); text-decoration: none; font-weight: 500; }
.footer-langs { grid-column: 1 / -1; font-size: .85rem; }
.footer-langs a { color: var(--muted); text-decoration: none; }
.footer-langs a:hover, .footer-links a:hover { color: var(--amber-hi); }
@media (max-width: 720px) { .footer-in { grid-template-columns: 1fr; } }

/* ---------- press kit */
.press { padding-block: 48px 80px; }
.press-head { display: grid; gap: 12px; padding-bottom: 32px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.eyebrow { font: 500 .78rem/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber-hi); }
.press-head h1 { font: 800 clamp(2.4rem, 5vw, 3.6rem)/1 var(--f-display); text-transform: uppercase; }
.lead { font-size: 1.12rem; max-width: 62ch; }
.usage { color: var(--muted); }
.press-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 76px); align-self: start; font-size: .92rem; }
.toc-h { font: 500 .74rem/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.toc a { color: var(--fg); text-decoration: none; }
.toc a:hover { color: var(--amber-hi); }
@media (max-width: 900px) { .press-grid { grid-template-columns: 1fr; } .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 6px 14px; } }
.press-body { display: grid; gap: 0; min-width: 0; }
.block { padding-block: 32px; border-bottom: 1px solid var(--line); display: grid; gap: 16px; min-width: 0; }
.block h2 { font: 800 1.7rem/1.1 var(--f-display); text-transform: uppercase; }
.block h3 { font: 600 .8rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.facts { margin: 0; display: grid; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.facts div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 12px 16px; }
.facts div:nth-child(odd) { background: var(--panel); }
.facts dt { font: 500 .8rem/1.5 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }
.muted { color: var(--muted); }
.note { color: var(--muted); max-width: 70ch; }
.copyable { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 18px; display: grid; gap: 12px; }
.copyable .long { display: grid; gap: 12px; max-height: 420px; overflow: auto; padding-right: 6px; }
.copyable ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.copy { justify-self: start; background: transparent; color: var(--amber-hi); border: 1px solid var(--line); border-radius: var(--r);
  font: 500 .8rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 8px 12px; cursor: pointer; }
.copy:hover { border-color: var(--amber); }
.dl-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dl { display: inline-flex; align-items: baseline; gap: 10px; padding: 10px 14px; border-radius: var(--r);
  border: 1px solid var(--amber); color: var(--amber-hi); text-decoration: none; font-weight: 600; background: rgba(242,166,41,.06); }
.dl::before { content: "↓"; font-family: var(--f-mono); }
.dl small { color: var(--muted); font: 500 .78rem/1 var(--f-mono); }
.dl:hover { background: rgba(242,166,41,.14); }
.dl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dl-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 12px; background: var(--panel); border-radius: var(--r); }
.dl-list li > span:first-child { min-width: 9em; }
.dl-list code { font: 500 .8rem/1.3 var(--f-mono); color: var(--muted); overflow-wrap: anywhere; }
.more summary { cursor: pointer; color: var(--muted); font-size: .92rem; }
.lang-dl { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.shot-grid-sm { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 560px) { .shot-grid-sm { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.logo-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.logo-preview div { border-radius: var(--r); padding: 24px; display: grid; place-items: center; border: 1px solid var(--line); }
.on-dark { background: #0b0f14; }
.on-light { background: #e9edf1; }
@media (max-width: 560px) { .logo-preview { grid-template-columns: 1fr; } }
.framed { border: 1px solid var(--line); border-radius: var(--r); width: 100%; }
.no99-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: center; }
.no99-prev { background: repeating-conic-gradient(#1c2531 0 25%, #161d27 0 50%) 0 0 / 20px 20px; border-radius: var(--r); border: 1px solid var(--line); }
@media (max-width: 560px) { .no99-row { grid-template-columns: 120px minmax(0, 1fr); gap: 16px; } }
.loop-pair { display: grid; gap: 10px; }
.loop-pair video { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); }
.studio-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.studio-row img { border-radius: 8px; }
.ai-quote { margin: 0; padding: 18px 20px; border-left: 4px solid var(--steel); background: var(--panel); border-radius: 0 var(--r) var(--r) 0;
  display: grid; gap: 10px; }
.social-inline { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* pending items: visible in preview, refused by the release build */
.pending { display: inline-block; font: 500 .78rem/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--amber-hi); border: 1px dashed var(--amber); border-radius: 3px; padding: 3px 8px; }
.is-preview .pending::after { content: " · " attr(data-note); text-transform: none; letter-spacing: 0; color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .belt-rollers { animation: none; }
  .btn, .shot img { transition: none; }
}
