/* The introduction and actions frame one uninterrupted, vector workshop. */
:root {
  --factory-paper: #fff;
  --factory-ink: #263530;
  --factory-muted: #7a817d;
  --factory-purple: #8970b4;
}
.hero {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(280px, 1fr) auto;
  gap: 12px;
  height: 100svh;
  min-height: 750px;
  padding: 105px 40px 27px;
  overflow: hidden;
  background: #fff;
  color: var(--factory-ink);
  color-scheme: light;
  text-align: center;
}
.appbar { color: var(--factory-ink); color-scheme: light; }
.appbar:not(.is-stuck) { background: #fff; }
.appbar__inner { max-width: 1520px; height: 76px; gap: 16px; padding-inline: 40px; }
.appbar .brand { font-size: 20px; font-weight: 700; }
.appbar__nav { display: flex; gap: 30px; margin-left: 54px; font-size: 13px; }
.appbar__nav a { color: var(--factory-muted); }
.appbar__nav a:hover { color: var(--factory-ink); }
.appbar .menu { margin-left: auto; }
.appbar .appbar__icon, .appbar .menu__trigger { background: transparent; }
.appbar .appbar__cta { min-height: 36px; padding-inline: 22px; font-size: 12px; }
.hero__intro { align-self: start; }
.hero__eyebrow { display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--factory-muted); font: 11px var(--font-mono); letter-spacing: .02em; }
.hero__status { width: 6px; height: 6px; border-radius: 50%; background: #79a58a; box-shadow: 0 0 0 4px #edf5ee; }
.hero h1 { margin-top: 16px; font-size: clamp(43px, 4.6vw, 74px); line-height: 1.12; font-weight: 580; letter-spacing: -.06em; }
.hero h1 br { display: none; }
.hero h1 em { margin-left: .18em; color: var(--factory-purple); font-style: normal; white-space: nowrap; }
.hero__outro { align-self: end; }
.hero__lede { max-width: 650px; margin: 0 auto; color: #747d77; font-size: 14px; line-height: 1.7; text-wrap: pretty; }
.hero__actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 25px; margin-top: 19px; }
.hero__actions .btn { gap: 17px; min-height: 46px; padding-inline: 24px; background: var(--factory-ink); color: #fff; font-size: 13px; }
.hero__actions .btn:hover { background: var(--factory-purple); }
.hero__actions svg { width: 16px; height: 16px; flex: 0 0 16px; }
.hero__guide { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; min-height: 44px; }
.hero__guide:hover { text-decoration: underline; text-underline-offset: 5px; }
.hero .hero__requirements { margin-top: 12px; color: var(--factory-muted); font-size: 10px; text-align: center; }
.factory { min-height: 0; width: 100%; max-width: 1600px; margin: 0 auto; }
.factory__scene { display: block; width: 100%; height: 100%; overflow: visible; }
.factory__boundary rect { fill: none; stroke: #dce4de; stroke-width: 1.3; stroke-dasharray: 3 5; }
.factory__boundary text { font: 12px var(--font-mono); letter-spacing: .1em; fill: #8b968e; }
.factory__station { cursor: pointer; outline: none; }
.factory__label { text-anchor: middle; fill: var(--tone); font: 600 18px var(--font-mono); paint-order: stroke; stroke: #fff; stroke-width: 9; stroke-linejoin: round; }
.factory__station--hub .factory__label { font: 700 25px var(--font); }
.factory__pad { transition: fill 180ms, stroke 180ms; }
.factory__station:hover .factory__pad, .factory__station.is-working .factory__pad { fill: var(--wash); stroke: var(--tone); stroke-width: 1.8; }
.factory__station:focus-visible .factory__pad { stroke: var(--tone); stroke-width: 3; }
.factory__station[aria-pressed="true"] .factory__label { font-weight: 700; }
.factory__station[aria-pressed="true"] .factory__pad { fill: var(--wash); stroke: var(--tone); }
.factory__indicator { fill: var(--tone); opacity: .35; transition: opacity 180ms, transform 180ms; transform-box: fill-box; transform-origin: center; }
.factory__station.is-working .factory__indicator { opacity: 1; transform: scale(1.25); }
.st-mem__blade, .st-code__sheet, .st-art__crate, .st-browser__shot { transition: transform 280ms var(--ease-expressive), opacity 220ms; }
.factory__station.is-acting .st-mem__blade, .factory__station.is-acting .st-code__sheet, .factory__station.is-acting .st-art__crate { transform: translateY(-8px); }
.st-mem__new { opacity: .55; transition: opacity 220ms; }
.factory__station.is-acting .st-mem__new, .factory__station[aria-pressed="true"] .st-mem__new { opacity: 1; }
.st-git__branch { opacity: .5; transition: opacity 220ms; }
.factory__station.is-acting .st-git__branch, .factory__station[aria-pressed="true"] .st-git__branch { opacity: 1; }
.st-code__add { opacity: .45; transition: opacity 220ms; }
.factory__station.is-acting .st-code__add, .factory__station[aria-pressed="true"] .st-code__add { opacity: 1; }
.st-term__pass { opacity: .45; transition: opacity 220ms; }
.factory__station.is-acting .st-term__pass, .factory__station[aria-pressed="true"] .st-term__pass { opacity: 1; }
.st-art__badge { opacity: .5; transition: opacity 220ms; }
.factory__station.is-acting .st-art__badge, .factory__station[aria-pressed="true"] .st-art__badge { opacity: 1; }
.st-browser__finder { opacity: 0; transition: opacity 200ms; }
.factory__station.is-acting .st-browser__finder { opacity: 1; }
.st-browser__flash { opacity: 0; transition: opacity 110ms; pointer-events: none; }
.factory__station.is-flashing .st-browser__flash { opacity: .92; }
.st-browser__shot { opacity: .78; }
.factory__station.is-acting .st-browser__shot { opacity: 1; transform: translateY(-8px); }
.factory__tunnel-pill { fill: #fff; stroke: #d5c9e5; stroke-width: 1.4; transition: stroke 180ms, fill 180ms; }
.factory__tunnel-dot { fill: #b9a6d4; transition: fill 180ms, transform 180ms; transform-box: fill-box; transform-origin: center; }
.factory__tunnel[data-flow="request"] .factory__tunnel-pill { stroke: #8761b5; fill: #faf6fe; }
.factory__tunnel[data-flow="request"] .factory__tunnel-dot { fill: #8761b5; transform: scale(1.3); }
.factory__tunnel[data-flow="return"] .factory__tunnel-pill { stroke: #3b8a6b; fill: #f3fbf7; }
.factory__tunnel[data-flow="return"] .factory__tunnel-dot { fill: #237b65; transform: scale(1.3); }
.factory__tunnel text { fill: #8b72ae; font: 600 13.5px var(--font-mono); }
.factory__tunnel .factory__caption { fill: #8b968e; font: 11px var(--font); }
.factory__parcel, .factory__overlay { pointer-events: none; }
.factory__bubble, .factory__badge { transition: opacity 180ms ease, transform 220ms var(--ease-expressive); }
:root:lang(zh) .hero h1 { font-size: clamp(38px, 4.2vw, 66px); letter-spacing: -.045em; }
:root:lang(ja) .hero h1 { font-size: clamp(37px, 4.1vw, 65px); letter-spacing: -.055em; }
@media (min-width: 1800px) { .hero { padding-top: 120px; padding-bottom: 38px; } }
@media (max-width: 900px) {
  .appbar__nav { display: none; }
  .hero { padding-inline: 22px; }
  .appbar__inner { padding-inline: 24px; }
}
@media (max-width: 600px) {
  .hero { height: auto; min-height: 100svh; padding: 90px 18px 24px; gap: 16px; grid-template-rows: auto auto auto; }
  .hero h1 { font-size: clamp(34px, 9vw, 52px); line-height: 1.15; margin-top: 17px; }
  .hero h1 br { display: block; }
  .hero h1 em { margin-left: 0; }
  .hero__eyebrow { font-size: 9px; }
  .hero__lede { max-width: 380px; font-size: 12px; }
  .hero__actions { margin-top: 16px; gap: 14px; }
  .hero__actions .btn { padding-inline: 18px; font-size: 12px; }
  .hero__guide { font-size: 12px; }
  .appbar__inner { height: 68px; gap: 10px; padding-inline: 20px; }
  .appbar .brand { font-size: 18px; }
  .appbar .brand img { width: 25px; height: 25px; }
  .appbar .appbar__cta { min-width: auto; padding-inline: 15px; }
  .appbar .appbar__icon { width: 26px; }
  .appbar .menu__trigger { padding-inline: 6px; }
  .appbar a.appbar__icon[href="https://github.com/boltguo/Luti"] { display: none; }
  .factory { margin-inline: 0; width: 100%; }
  .factory__scene { aspect-ratio: 900 / 1360; height: auto; }
  .factory__label { font-size: 24px; }
  .factory__station--hub .factory__label { font-size: 30px; }
  .factory__boundary text { font-size: 18px; }
  .factory__tunnel text { font-size: 14.5px; }
  .factory__tunnel .factory__caption { display: none; }
  :root:lang(zh) .hero h1 { font-size: clamp(31px, 8.3vw, 45px); }
  :root:lang(ja) .hero h1 { font-size: clamp(30px, 8.1vw, 44px); }
}
@media (prefers-reduced-motion: reduce) { .hero * { transition: none !important; } }
