:root {
  --ink: #13233a;
  --ink-soft: #3a4d66;
  --paper: #f3f6fb;
  --sky-top: #8fc0ea;
  --sky-mid: #c5dcf3;
  --sky-bot: #eef4fb;
  --accent: #e4572e;
  --accent-deep: #c43d18;
  --line: rgba(19, 35, 58, 0.12);
  --blue: #1f6fbf;
  --shadow: 0 18px 50px rgba(19, 35, 58, 0.12);
  --radius: 18px;
  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-cn: "Noto Sans SC", "Space Grotesk", sans-serif;
  --rail: 240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-cn);
  background:
    radial-gradient(1100px 520px at 85% -5%, rgba(255,255,255,.5), transparent 55%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 30%, var(--sky-bot) 62%, var(--paper) 100%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.hidden { display: none !important; }

.sky { pointer-events: none; position: fixed; inset: 0; overflow: hidden; z-index: 0; }
.cloud {
  position: absolute;
  width: 220px; height: 70px;
  background: rgba(255,255,255,.55);
  border-radius: 999px;
  filter: blur(1px);
  animation: drift 42s linear infinite;
}
.cloud::before, .cloud::after {
  content: ""; position: absolute; background: inherit; border-radius: 50%;
}
.cloud::before { width: 90px; height: 90px; top: -42px; left: 36px; }
.cloud::after { width: 70px; height: 70px; top: -28px; left: 110px; }
.c1 { top: 12%; left: -10%; animation-duration: 48s; }
.c2 { top: 28%; left: 40%; width: 280px; opacity: .45; animation-duration: 56s; animation-delay: -12s; }
.c3 { top: 8%; left: 70%; width: 180px; opacity: .35; animation-duration: 38s; animation-delay: -20s; }
.vapor {
  position: absolute; inset: auto 0 0 0; height: 35%;
  background: linear-gradient(180deg, transparent, rgba(243,246,251,.7));
}
@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(35vw); }
}

.topbar, main, .site-foot { position: relative; z-index: 1; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem 1.25rem;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.5);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.brand {
  display: flex; align-items: center; gap: .75rem;
  text-decoration: none;
}
.brand-mark {
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #fff, #d7e8fa);
  box-shadow: inset 0 0 0 1px var(--line);
  transform: rotate(-18deg);
  animation: nose-up 3.5s ease-in-out infinite;
}
@keyframes nose-up {
  0%, 100% { transform: rotate(-18deg) translateY(0); }
  50% { transform: rotate(-8deg) translateY(-3px); }
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.5rem; letter-spacing: .04em;
}
.brand-text small { color: var(--ink-soft); font-size: .75rem; }
.topbar-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--ink-soft);
  font-size: .9rem;
}
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 0 0 1px var(--line);
}
.lang-switch::after {
  content: "";
  position: absolute;
  right: .7rem;
  width: .4rem;
  height: .4rem;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: translateY(-2px) rotate(45deg);
  pointer-events: none;
}
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .02em;
  line-height: 1.1;
  padding: .4rem 1.7rem .4rem .8rem;
  border-radius: 999px;
}
.lang-select:focus-visible {
  outline: 2px solid rgba(31,111,191,.45);
  outline-offset: 2px;
}

html[data-lang="en"] .lang-zh { display: none; }
html[data-lang="zh"] .lang-en { display: none; }

main { width: min(1220px, calc(100% - 2rem)); margin: 0 auto; padding: 0 0 4rem; }

/* —— Hero: one composition —— */
.hero {
  min-height: min(72vh, 620px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.5rem, 5vw, 3rem) 0 2rem;
  animation: rise .7s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.hero-kicker {
  margin: 0 0 .45rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .76rem;
  color: var(--blue);
  font-weight: 600;
}
.hero-brand {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 11vw, 7rem);
  line-height: .88;
  letter-spacing: .02em;
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero-brand, .section-heading h2 {
    background: linear-gradient(115deg, var(--ink) 8%, var(--blue) 58%, #64a5d8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
  }
}
.hero-lead {
  margin: 1rem 0 1.35rem;
  max-width: 28rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.55;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; }

.hero-visual {
  position: relative;
  height: min(360px, 48vw);
  display: grid;
  place-items: center;
}
.paper-plane {
  position: relative;
  width: 220px;
  height: 120px;
  animation: fly 11s cubic-bezier(.45,.05,.55,.95) infinite;
}
.paper-plane .fuselage {
  position: absolute;
  left: 18%; top: 42%;
  width: 68%; height: 10px;
  background: linear-gradient(90deg, #fff, #e8eef7);
  border-radius: 2px;
  box-shadow: 0 8px 20px rgba(19,35,58,.12);
  transform: skewX(-18deg);
}
.paper-plane .wing {
  position: absolute;
  top: 18%;
  width: 0; height: 0;
  border-style: solid;
  filter: drop-shadow(0 10px 16px rgba(19,35,58,.12));
}
.paper-plane .wing.left {
  left: 28%;
  border-width: 0 0 58px 110px;
  border-color: transparent transparent #f7fafc transparent;
  transform: rotate(-8deg);
}
.paper-plane .wing.right {
  right: 8%;
  border-width: 0 90px 48px 0;
  border-color: transparent #e4edf7 transparent transparent;
  transform: rotate(12deg);
}
.paper-plane .trail {
  position: absolute;
  left: -44%; top: 48%;
  width: 38%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(31,111,191,.4));
  animation: trail 2.6s ease-in-out infinite;
}
@keyframes fly {
  0%   { transform: translate(-104px, 46px) rotate(-14deg); opacity: 0; }
  9%   { opacity: 1; }
  30%  { transform: translate(-30px, 18px) rotate(-9deg); }
  52%  { transform: translate(26px, -10px) rotate(-5deg); }
  74%  { transform: translate(74px, -32px) rotate(-3deg); }
  92%  { opacity: 1; }
  100% { transform: translate(124px, -58px) rotate(-1deg); opacity: 0; }
}
@keyframes trail {
  0%, 100% { opacity: .28; width: 32%; }
  50% { opacity: .8; width: 48%; }
}

.btn {
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(228, 87, 46, .28);
}
.btn.primary:hover { background: var(--accent-deep); }
.btn.ghost {
  background: rgba(255,255,255,.7);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn.back {
  background: rgba(255,255,255,.8);
  box-shadow: inset 0 0 0 1px var(--line);
  margin: 1.25rem 0 1rem;
}

/* —— Hangar: rail + grid —— */
.hangar-body {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding-top: .5rem;
}

.filter-rail {
  position: sticky;
  top: 4.5rem;
  display: grid;
  gap: .85rem;
  padding: .15rem 0;
}
.filter-rail .search input,
.filter-rail select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.85);
  border-radius: 12px;
  padding: .7rem .85rem;
  color: var(--ink);
}
.sort-label {
  display: grid;
  gap: .35rem;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
fieldset {
  margin: 0;
  border: 0;
  padding: 0;
  display: grid;
  gap: .35rem;
}
legend {
  padding: 0;
  margin-bottom: .25rem;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
fieldset label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .92rem;
  cursor: pointer;
  color: var(--ink);
}

.plane-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.plane-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(19, 35, 58, .08);
  transition: transform .18s ease, box-shadow .18s ease;
  animation: rise .5s ease both;
}
.plane-card:hover {
  transform: translateY(-4px) rotate(-0.35deg);
  box-shadow: 0 18px 36px rgba(19, 35, 58, .14);
}
.plane-card .thumb {
  aspect-ratio: 6 / 5;
  object-fit: cover;
  background: #e8eef7;
}
.plane-card .body { padding: .85rem .95rem 1rem; }
.plane-card h3 {
  margin: 0 0 .35rem;
  font-size: 1.02rem;
  line-height: 1.25;
}
.meta-row { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip {
  display: inline-flex; align-items: center;
  padding: .18rem .5rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  background: #eef3f9;
  color: var(--ink-soft);
}
.chip.diff-Easy { background: #dff5ea; color: #176b45; }
.chip.diff-Medium { background: #fff1d6; color: #9a6700; }
.chip.diff-Hard { background: #ffe4d6; color: #b24616; }
.chip.diff-Expert { background: #fde2e2; color: #9f1239; }
.chip.cut { background: #e8e0ff; color: #5b21b6; }
.badge {
  position: absolute; top: .7rem; left: .7rem;
  background: var(--ink); color: #fff;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .28rem .5rem; border-radius: 999px;
}
.empty {
  text-align: center;
  color: var(--ink-soft);
  padding: 2.5rem 1rem;
}

/* —— Home content: recommendations + folding guide —— */
.section-heading {
  max-width: 46rem;
  margin: 0 0 1.25rem;
}
.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.25;
  letter-spacing: -.02em;
}
.section-heading p {
  margin: .55rem 0 0;
  color: var(--ink-soft);
  line-height: 1.7;
}
.catalog-heading { margin-bottom: 1rem; }
.catalog-heading p { font-size: .92rem; }
.content-section { margin-top: clamp(2.75rem, 6vw, 4.5rem); }

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.recommend-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(19,35,58,.08);
  transition: transform .18s ease, box-shadow .18s ease;
}
.recommend-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(19,35,58,.12);
}
.recommend-card:focus-visible {
  outline: 3px solid rgba(31,111,191,.35);
  outline-offset: 3px;
}
.recommend-type {
  color: var(--blue);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.recommend-card h3 {
  margin: .45rem 0 .55rem;
  font-size: 1.25rem;
  line-height: 1.3;
}
.recommend-card p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
  font-size: .94rem;
  line-height: 1.7;
}
.recommend-card .text-link {
  margin-top: auto;
  color: var(--accent-deep);
  font-size: .9rem;
  font-weight: 600;
}

.faq-list { display: grid; gap: .75rem; }
.faq-item {
  padding: 0 1.1rem;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(19,35,58,.05);
}
.faq-item[open] { background: rgba(255,255,255,.92); }
.faq-item summary {
  padding: 1rem 0;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.55;
}
.faq-item summary::marker { color: var(--blue); }
.faq-item p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
  line-height: 1.75;
}

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.feature-card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.25rem 1.3rem;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(19,35,58,.06);
}
.feature-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(31,111,191,.14), rgba(31,111,191,.04));
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.feature-card h3 { margin: 0; font-size: 1.02rem; }
.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.65;
}

.factor-grid {
  display: grid;
  gap: .8rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.factor-card {
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,.66);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.factor-card h3 { margin: 0 0 .35rem; font-size: .95rem; }
.factor-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .88rem;
  line-height: 1.6;
}

/* —— Detail: sticky aside + steps —— */
.detail { animation: rise .35s ease both; padding-top: .25rem; }
.detail-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 1.5rem 1.75rem;
  align-items: start;
}
.detail-aside {
  position: sticky;
  top: 4.6rem;
}
@media (max-height: 860px), (max-width: 900px) {
  .detail-aside { position: static; }
}
.detail-aside .square {
  width: 100%;
  border-radius: 16px;
  background: #e8eef7;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.detail-aside h1 {
  margin: 0 0 .45rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: .03em;
  line-height: .95;
}
.detail-aside .blurb {
  margin: 0 0 .9rem;
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: .98rem;
}
.detail-stats {
  display: flex; flex-wrap: wrap; gap: .4rem;
}
.detail-stats .chip { font-size: .8rem; padding: .3rem .65rem; }

.perf-card {
  margin-top: .9rem;
  padding: 1rem 1.05rem;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(19,35,58,.06);
}
.perf-title {
  margin: 0 0 .7rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.perf-list { margin: 0; display: grid; gap: .55rem; }
.perf-list > div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: .55rem;
  align-items: baseline;
}
.perf-list dt {
  color: var(--ink-soft);
  font-size: .78rem;
  line-height: 1.45;
}
.perf-list dd {
  margin: 0;
  font-size: .86rem;
  line-height: 1.5;
}
.perf-note {
  margin: .8rem 0 0;
  font-size: .74rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.detail-faq { margin-top: clamp(2rem, 5vw, 3rem); }

.steps-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: .04em;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
  align-items: start;
}
.steps-title { grid-column: 1 / -1; }
.step {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: .8rem;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(19,35,58,.05);
}
.step-media img {
  width: 100%;
  border-radius: 12px;
  background: #edf2f8;
  cursor: zoom-in;
  box-shadow: 0 8px 22px rgba(19, 35, 58, .08);
}
.step .n {
  display: inline-grid;
  place-items: center;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  margin-right: .45rem;
}
.step h3 {
  margin: 0;
  display: flex;
  align-items: center;
  font-size: 1rem;
}
.step p {
  margin: .4rem 0 0;
  line-height: 1.6;
  font-size: 1.02rem;
}
.step p.lang-en,
.step p.lang-zh {
  margin-top: .4rem;
}
html:not([data-lang="en"]) .step p.lang-en,
html[data-lang="en"] .step p.lang-zh,
[hidden] {
  display: none !important;
}

.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(10, 18, 30, .78);
  display: grid; place-items: center;
  padding: 1rem;
  cursor: zoom-out;
}
.lightbox img {
  max-height: min(90vh, 900px);
  max-width: min(92vw, 700px);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

.site-foot {
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.5);
  padding: 1.1rem 1.25rem 1.4rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: .88rem;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .9rem;
  justify-content: center;
  margin-top: .55rem;
}
.foot-links a {
  font-size: .78rem;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.guides-tldr {
  margin: 1.2rem 0 1.4rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
}
.guides-tldr h2 {
  margin: 0 0 .55rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: .03em;
}
.guides-tldr-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.65;
}
.guides-tldr-list li { margin: .35rem 0; }
.guides-tldr-list strong { color: var(--ink); }
.guides-grid { margin-bottom: 1.6rem; }

@media (min-width: 901px) {
  .hero-brand {
    font-size: clamp(3rem, 5.5vw, 4.5rem);
    line-height: .95;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 1.25rem;
  }
  .hero-visual { height: 180px; order: -1; }
  .hangar-body {
    grid-template-columns: 1fr;
  }
  .recommend-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .filter-rail {
    position: static;
    grid-template-columns: 1fr 1fr;
    gap: .75rem 1rem;
    padding: .9rem;
    background: rgba(255,255,255,.7);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
  .filter-rail .search,
  .filter-rail .sort-label { grid-column: 1 / -1; }
  .detail-layout { grid-template-columns: 1fr; }
  .perf-list > div { grid-template-columns: 1fr; gap: .12rem; }
}

@media (max-width: 560px) {
  .filter-rail { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* —— Top navigation —— */
.topnav {
  display: flex;
  align-items: center;
  gap: .15rem;
  margin-left: auto;
  padding: .2rem;
  border-radius: 999px;
  background: rgba(255,255,255,.6);
  box-shadow: inset 0 0 0 1px var(--line);
}
.topnav-link {
  padding: .34rem .82rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink-soft);
  text-decoration: none;
}
.topnav-link:hover { color: var(--ink); }
.topnav-link.is-active {
  background: var(--ink);
  color: #fff;
}
.topnav-dd {
  position: relative;
}
.topnav-dd > summary {
  list-style: none;
  cursor: pointer;
}
.topnav-dd > summary::-webkit-details-marker { display: none; }
.topnav-sub {
  position: absolute;
  top: calc(100% + .35rem);
  right: 0;
  min-width: 10.5rem;
  padding: .35rem;
  border-radius: 12px;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(19, 35, 58, .12);
  z-index: 30;
}
.topnav-sub-link {
  display: block;
  padding: .45rem .7rem;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.topnav-sub-link:hover,
.topnav-sub-link.is-active {
  background: rgba(31, 111, 191, .1);
  color: var(--blue);
}

/* —— Paper mache crafts —— */
.pm-main {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}
.pm-hero {
  margin: 1rem 0 1.35rem;
  padding: 1.35rem 1.3rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.28)),
    linear-gradient(160deg, #d7e8f6 0%, #eef4fb 100%);
  box-shadow: var(--shadow);
}
.pm-hero h1 {
  margin: .25rem 0 .55rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3rem);
  letter-spacing: .03em;
  line-height: 1;
}
.pm-lead {
  margin: 0;
  max-width: 44rem;
  color: var(--ink-soft);
  line-height: 1.65;
}
.pm-cats h2,
.pm-section h2,
.pm-step h2 {
  font-family: var(--font-display);
  letter-spacing: .03em;
  margin: 0 0 .65rem;
}
.pm-cat-grid {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .75rem;
}
.pm-cat {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  height: 100%;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.pm-cat:hover { border-color: rgba(31, 111, 191, .35); }
.pm-cat-kicker {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
}
.pm-cat strong { font-size: 1.05rem; }
.pm-cat span:last-child {
  color: var(--ink-soft);
  font-size: .85rem;
  line-height: 1.5;
}
.pm-section {
  margin: 0 0 1.4rem;
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
}
.pm-section p,
.pm-section li,
.pm-step p {
  color: var(--ink-soft);
  line-height: 1.65;
}
.pm-steps {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.pm-step {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
}
.pm-step img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: .35rem 0 .7rem;
  background: #e8eef6;
}
.pm-back {
  margin: 1.2rem 0 0;
  color: var(--ink-soft);
  line-height: 1.6;
}
.pm-back a { font-weight: 700; color: var(--blue); }

/* —— Fly page —— */
.fly-main { padding-top: .5rem; }
.fly-hero {
  max-width: 760px;
  margin-bottom: 1.6rem;
}
.fly-hero h1 {
  margin: .3rem 0 .6rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.9rem);
  letter-spacing: .03em;
  background: var(--brand-gradient, linear-gradient(90deg, #1f6fbf, #2aa9a1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fly-hero p { margin: 0; color: var(--ink-soft); line-height: 1.7; }
.fly-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 1.2rem;
  align-items: start;
}
.fly-panel {
  padding: 1.1rem;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(19,35,58,.06);
}
.fly-panel h2 {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
}
.fly-panel .panel-lead {
  margin: 0 0 .85rem;
  color: var(--ink-soft);
  font-size: .86rem;
  line-height: 1.6;
}
.plane-picker {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  max-height: 240px;
  overflow-y: auto;
  padding-right: .2rem;
}
.pick-chip {
  appearance: none;
  cursor: pointer;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.85);
  color: var(--ink);
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  padding: .35rem .7rem;
  border-radius: 999px;
  line-height: 1.2;
}
.pick-chip:hover { border-color: rgba(31,111,191,.4); }
.pick-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.model-stage {
  position: relative;
  height: 320px;
  border-radius: 16px;
  background: linear-gradient(180deg, #cfe7ff, #ecf6ff);
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
.model-stage:active { cursor: grabbing; }
.model-stage canvas { width: 100%; height: 100%; display: block; }
.stage-hint {
  position: absolute;
  left: .8rem;
  bottom: .7rem;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: var(--ink-soft);
  font-size: .72rem;
}
.viewer-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.2rem;
  margin-top: .9rem;
  font-size: .85rem;
}
.viewer-stats span { color: var(--ink-soft); }
.viewer-stats strong { color: var(--ink); font-size: .95rem; }
.flight-stage {
  position: relative;
  height: 300px;
  border-radius: 16px;
  background: linear-gradient(180deg, #c9e4ff 0%, #eaf6ff 62%, #dcf0e3 100%);
  overflow: hidden;
}
.flight-stage canvas { width: 100%; height: 100%; display: block; }
.flight-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem 1rem;
  margin-top: .9rem;
}
.flight-controls label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--ink-soft);
}
.flight-controls input[type="range"] { width: 130px; accent-color: var(--blue); }
.launch-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: .55rem 1.15rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
}
.launch-btn:disabled { opacity: .55; cursor: default; }
.flight-readouts {
  display: flex;
  gap: 1.6rem;
  margin-top: .9rem;
}
.flight-readouts div { display: flex; flex-direction: column; gap: .1rem; }
.flight-readouts span { color: var(--ink-soft); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; }
.flight-readouts strong { font-family: var(--font-display); font-size: 1.55rem; line-height: 1.1; }
.fly-notes {
  margin-top: 1.6rem;
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.fly-notes article {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(255,255,255,.66);
  border: 1px solid var(--line);
}
.fly-notes p { margin: 0; color: var(--ink-soft); font-size: .88rem; line-height: 1.65; }

@media (max-width: 900px) {
  .fly-grid { grid-template-columns: 1fr; }
  .model-stage { height: 260px; }
  .flight-stage { height: 240px; }
}
@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; row-gap: .5rem; }
  .topnav { order: 3; width: 100%; justify-content: center; margin-left: 0; }
}
.flight-status {
  margin: .55rem 0 0;
  min-height: 1.1em;
  font-size: .8rem;
  color: var(--ink-soft);
}
@media (max-width: 640px) {
  .steps { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
  .step { padding: .55rem; }
}

/* —— Learn hangar —— */
.learn-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}
.learn-hero {
  margin: 1rem 0 0;
  padding: 1.35rem 1.35rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.28)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 19px,
      rgba(31, 111, 191, .08) 19px,
      rgba(31, 111, 191, .08) 20px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 19px,
      rgba(31, 111, 191, .08) 19px,
      rgba(31, 111, 191, .08) 20px
    ),
    linear-gradient(160deg, #cfe4f8 0%, #e7f1fb 55%, #f4f8fd 100%);
  box-shadow: var(--shadow);
}
.crumbs {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .85rem;
  font-size: .78rem;
  color: var(--ink-soft);
}
.crumbs a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.learn-hero h1 {
  margin: 0 0 .55rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  letter-spacing: .03em;
  line-height: .95;
}
.learn-lead {
  margin: 0 0 1.15rem;
  max-width: 46rem;
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: .98rem;
}
.learn-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: .55rem;
}
.learn-filters button {
  appearance: none;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: rgba(255,255,255,.82);
  color: var(--ink);
  border-radius: 999px;
  padding: .38rem .9rem;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
}
.learn-filters button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.learn-filter-status {
  min-height: 1.1em;
  margin: 0 0 .75rem;
  font-size: .8rem;
  color: var(--ink-soft);
}
.family-jump {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.1rem;
}
.family-jump a {
  font-size: .86rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--ink);
}
.family-jump a .jump-count {
  color: var(--ink-soft);
  font-weight: 500;
  text-decoration: none;
}
.family-jump a.is-empty { display: none; }

.learn-body {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--ink);
}
.learn-family {
  margin-bottom: 2.1rem;
}
.learn-family.is-empty { display: none; }
.family-head {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: .75rem 1.5rem;
  margin-bottom: 1rem;
  align-items: start;
}
.family-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.5vw, 2.1rem);
  letter-spacing: .03em;
  line-height: 1;
}
.family-head p {
  margin: .15rem 0 0;
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: .92rem;
}

.learn-plane-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: .75rem;
}
.learn-card.is-filtered-out { display: none; }
.learn-card a {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  height: 100%;
  padding: .7rem .7rem .85rem;
  text-decoration: none;
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(19, 35, 58, 0.06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.learn-card a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(19, 35, 58, 0.12);
}
.lc-art {
  display: block;
  aspect-ratio: 6 / 5;
  border-radius: 10px;
  overflow: hidden;
  background: #e8eef6;
}
.lc-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lc-name {
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.25;
}
.lc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  color: var(--ink-soft);
  font-size: .78rem;
}
.dots {
  display: inline-flex;
  gap: 3px;
}
.dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(19, 35, 58, 0.18);
}
.dots i.on { background: var(--ink); }
.lc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .28rem;
  min-height: 1.2em;
}
.lc-chips > span {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: .12rem .4rem;
  border-radius: 999px;
  background: rgba(31, 111, 191, .1);
  color: var(--blue);
}

.workshop-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: .75rem;
}
.workshop-card a {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  height: 100%;
  padding: 1rem 1.05rem;
  text-decoration: none;
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
}
.workshop-card a:hover { border-color: rgba(31, 111, 191, .35); }
.wc-kicker {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
}
.wc-title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
}
.wc-sum {
  color: var(--ink-soft);
  font-size: .85rem;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .family-head { grid-template-columns: 1fr; gap: .35rem; }
  .learn-hero { padding: 1.1rem 1rem 1rem; }
}

/* —— Read & Learn article —— */
.read-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}
.read-hero {
  margin: 1rem 0 0;
  padding: 1.35rem 1.35rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.28)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 19px,
      rgba(31, 111, 191, .08) 19px,
      rgba(31, 111, 191, .08) 20px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 19px,
      rgba(31, 111, 191, .08) 19px,
      rgba(31, 111, 191, .08) 20px
    ),
    linear-gradient(160deg, #cfe4f8 0%, #e7f1fb 55%, #f4f8fd 100%);
  box-shadow: var(--shadow);
}
.read-hero h1 {
  margin: 0 0 .55rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3rem);
  letter-spacing: .03em;
  line-height: 1;
  max-width: 18ch;
}
.read-lead {
  margin: 0 0 .7rem;
  max-width: 46rem;
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: .98rem;
}
.read-byline {
  margin: 0;
  font-size: .78rem;
  color: var(--ink-soft);
}
.read-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 1.75rem;
  margin-top: 1.4rem;
  align-items: start;
}
.read-article {
  padding: 1.15rem 1.2rem 1.4rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
}
.read-article h2 {
  margin: 1.6rem 0 .7rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: .03em;
  line-height: 1.05;
}
.read-article p,
.read-article li {
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: .95rem;
}
.read-article ul,
.read-article ol {
  margin: .4rem 0 1rem;
  padding-left: 1.2rem;
}
.read-article li { margin: .35rem 0; }
.read-note {
  margin: 0 0 1.1rem;
  padding: .9rem 1rem;
  border-radius: 12px;
  background: rgba(228, 87, 46, .1);
  border: 1px solid rgba(228, 87, 46, .22);
  color: var(--ink);
  line-height: 1.6;
  font-size: .92rem;
}
.read-note strong { color: var(--accent-deep); }

.lane-figure {
  margin: .9rem 0 1.1rem;
  padding: .85rem;
  border-radius: 12px;
  background: rgba(243, 246, 251, .9);
  border: 1px solid var(--line);
}
.lane-figure svg { width: 100%; height: auto; display: block; }
.lane-floor { fill: #fff; stroke: var(--line); }
.lane-release { stroke: var(--accent); stroke-width: 3; }
.lane-marks circle { fill: var(--blue); opacity: .55; }
.lane-marks .lane-median { fill: var(--accent); opacity: 1; }
.lane-dim { stroke: var(--ink-soft); stroke-width: 1.5; fill: none; }
.lane-label, .lane-note {
  fill: var(--ink-soft);
  font-size: 11px;
  font-family: var(--font-cn);
}
.lane-figure figcaption {
  margin-top: .55rem;
  font-size: .8rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: .86rem;
}
.table-wrap caption {
  text-align: left;
  padding: .7rem .85rem .35rem;
  font-weight: 700;
  color: var(--ink);
}
.table-wrap th,
.table-wrap td {
  border-top: 1px solid var(--line);
  padding: .55rem .75rem;
  text-align: left;
  vertical-align: top;
}
.table-wrap th {
  background: rgba(31, 111, 191, .06);
  font-size: .78rem;
  letter-spacing: .02em;
}
.table-wrap tbody td:nth-child(2),
.table-wrap tbody td:nth-child(3) {
  min-width: 5.5rem;
}

.read-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 4.5rem;
}
.read-toc,
.read-cta {
  padding: 1rem 1.05rem;
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
}
.read-toc h2,
.read-cta h2 {
  margin: 0 0 .65rem;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-family: var(--font-cn);
  font-weight: 700;
}
.read-toc ol {
  margin: 0;
  padding-left: 1.1rem;
}
.read-toc li { margin: .45rem 0; }
.read-toc a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: .86rem;
  line-height: 1.4;
}
.read-cta h2 {
  text-transform: none;
  letter-spacing: .02em;
  font-size: 1rem;
  color: var(--ink);
  font-family: var(--font-display);
}
.read-cta p {
  margin: 0 0 .85rem;
  color: var(--ink-soft);
  font-size: .85rem;
  line-height: 1.55;
}
.read-cta .btn {
  display: inline-flex;
  text-align: center;
  justify-content: center;
  width: 100%;
}
.read-keep { margin-top: 1.8rem; }
.read-keep h2 { margin-bottom: .85rem; }

@media (max-width: 900px) {
  .read-layout { grid-template-columns: 1fr; }
  .read-aside { position: static; }
  .read-hero h1 { max-width: none; }
}
@media (max-width: 640px) {
  .topnav { flex-wrap: wrap; justify-content: center; }
}

/* —— Video Guide catalog —— */
.vg-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}
.vg-hero {
  margin: 1rem 0 1.35rem;
  padding: 1.5rem 1.4rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(700px 280px at 85% 10%, rgba(255,255,255,.55), transparent 60%),
    linear-gradient(135deg, #9ec6ea 0%, #d5e7f7 48%, #eef4fb 100%);
  box-shadow: var(--shadow);
}
.vg-hero h1 {
  margin: .2rem 0 .55rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  letter-spacing: .03em;
  line-height: .95;
  max-width: 14ch;
}
.vg-lead {
  margin: 0 0 1rem;
  max-width: 40rem;
  color: var(--ink-soft);
  line-height: 1.65;
}
.vg-hero-cta { display: flex; flex-wrap: wrap; gap: .65rem; }

.vg-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.vg-filters {
  position: sticky;
  top: 4.5rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: .95rem;
}
.vg-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .5rem .85rem;
  background: #fff;
}
.vg-filters fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.vg-filters legend {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .35rem;
}
.vg-filters label {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .88rem;
  color: var(--ink);
  cursor: pointer;
}
.vg-rec-box {
  padding-top: .7rem;
  border-top: 1px solid var(--line);
}
.vg-rec-title {
  margin: 0;
  font-weight: 700;
  font-size: .9rem;
}
.vg-rec-lead {
  margin: .2rem 0 .65rem;
  font-size: .78rem;
  color: var(--ink-soft);
}
.vg-rec {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .45rem;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
}
.vg-rec img {
  width: 48px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  background: #e8eef6;
}
.vg-catalog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1rem;
  margin-bottom: .85rem;
}
.vg-catalog-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: .03em;
}
.vg-match {
  margin: 0;
  color: var(--ink-soft);
  font-size: .88rem;
}
.vg-match strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
  margin-right: .2rem;
}
.vg-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.vg-card.is-filtered-out { display: none; }
.vg-card {
  animation: vg-in .45s ease both;
}
@keyframes vg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.vg-link {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 1rem;
  padding: .85rem;
  text-decoration: none;
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(19, 35, 58, 0.06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.vg-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(19, 35, 58, 0.12);
}
.vg-media {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #e8eef6;
  aspect-ratio: 6 / 5;
}
.vg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vg-play {
  position: absolute;
  inset: auto auto .55rem .55rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(19, 35, 58, .82);
  color: #fff;
  font-size: .7rem;
  padding-left: 2px;
  box-shadow: 0 6px 16px rgba(19, 35, 58, .25);
}
.vg-body { min-width: 0; display: flex; flex-direction: column; gap: .45rem; }
.vg-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}
.vg-top h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.15;
}
.vg-diff {
  flex: none;
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .5rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
}
.vg-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .35rem;
}
.vg-stats li {
  display: grid;
  grid-template-columns: 72px 1.4rem 1fr;
  align-items: center;
  gap: .45rem;
  font-size: .8rem;
}
.vg-stat-label { color: var(--ink-soft); font-weight: 600; }
.vg-stat-val { font-weight: 700; text-align: right; }
.vg-bar {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(19, 35, 58, .1);
  position: relative;
  overflow: hidden;
}
.vg-bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--v) * 10%);
  border-radius: inherit;
}
.vg-bar.speed::after { background: #e6b422; }
.vg-bar.glide::after { background: #2aa36b; }
.vg-bar.accuracy::after { background: #1f6fbf; }
.vg-blurb {
  margin: 0;
  color: var(--ink-soft);
  font-size: .88rem;
  line-height: 1.55;
}
.vg-cta {
  font-size: .8rem;
  font-weight: 700;
  color: var(--blue);
}
.vg-empty {
  margin: 1rem 0 0;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .vg-shell { grid-template-columns: 1fr; }
  .vg-filters { position: static; }
  .vg-link { grid-template-columns: 120px 1fr; }
  .vg-hero h1 { max-width: none; }
}
@media (max-width: 560px) {
  .vg-link { grid-template-columns: 1fr; }
  .vg-media { aspect-ratio: 16 / 10; }
  .vg-stats li { grid-template-columns: 64px 1.2rem 1fr; }
}

/* —— 3D Learn —— */
.l3d-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.25rem;
  align-items: start;
  margin-top: 1.4rem;
}
.l3d-main .learn-body {
  margin-top: 0;
  padding-top: 1.1rem;
}
.l3d-card {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.l3d-select {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.72);
  border-radius: 14px;
  padding: .7rem .7rem .85rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  width: 100%;
  font: inherit;
  color: inherit;
  box-shadow: 0 8px 24px rgba(19, 35, 58, 0.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.l3d-select:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(19, 35, 58, 0.12);
}
.l3d-card.is-active .l3d-select {
  border-color: rgba(31, 111, 191, .55);
  box-shadow: 0 0 0 2px rgba(31, 111, 191, .18);
}
.l3d-actions {
  display: flex;
  gap: .45rem;
  padding: 0 .15rem;
}
.l3d-actions a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  font-size: .74rem;
  font-weight: 700;
  padding: .35rem .4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.8);
  color: var(--ink);
}
.l3d-actions .l3d-fly {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.l3d-stage-wrap {
  position: sticky;
  top: 4.5rem;
}
.l3d-stage-panel {
  padding: 1rem 1.05rem 1.15rem;
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.l3d-stage-kicker {
  margin: 0 0 .25rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
}
.l3d-stage-panel h2 {
  margin: 0 0 .35rem;
  font-size: 1.35rem;
  line-height: 1.15;
}
.l3d-blurb {
  margin: 0 0 .75rem;
  color: var(--ink-soft);
  font-size: .85rem;
  line-height: 1.55;
  min-height: 2.6em;
}
.l3d-stage {
  position: relative;
  height: 260px;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,.85), transparent 55%),
    linear-gradient(160deg, #c5daf0, #e8f0f8 70%);
  border: 1px solid var(--line);
  touch-action: none;
}
.l3d-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.l3d-stage .stage-hint {
  position: absolute;
  left: .7rem;
  bottom: .55rem;
  font-size: .72rem;
  color: var(--ink-soft);
  background: rgba(255,255,255,.7);
  padding: .2rem .45rem;
  border-radius: 999px;
}
.l3d-stage-stats {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin: .75rem 0;
  font-size: .8rem;
  color: var(--ink-soft);
}
.l3d-stage-stats strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-left: .25rem;
}
.l3d-stage-cta {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.l3d-stage-cta .btn {
  justify-content: center;
  text-align: center;
  width: 100%;
}

@media (max-width: 980px) {
  .l3d-layout { grid-template-columns: 1fr; }
  .l3d-stage-wrap { position: static; order: -1; }
  .l3d-stage { height: 240px; }
}
