:root {
  --ink: #071014;
  --ink-soft: #101d22;
  --paper: #f1eadb;
  --white: #fffaf0;
  --lime: #d8f85e;
  --blue: #9be8ff;
  --orange: #ff6846;
  --pink: #ffb0ce;
  --muted: #93a6a5;
  --line: rgba(241, 234, 219, 0.28);
  --display: "Arial Black", "Segoe UI Black", system-ui, sans-serif;
  --body: "Segoe UI", "Microsoft YaHei", sans-serif;
  --mono: Consolas, "SFMono-Regular", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--body); font-size: 16px; }
body::selection { background: var(--lime); color: var(--ink); }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { border: 0; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
[hidden] { display: none !important; }

.site-shell { min-height: 100vh; overflow: hidden; background: radial-gradient(circle at 82% 12%, rgba(155, 232, 255, 0.09), transparent 22rem), var(--ink); }
.topbar { height: 70px; display: flex; align-items: center; gap: 24px; padding: 0 4vw; border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.04em; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; color: var(--ink); background: var(--lime); font-size: 17px; }
.page-nav { display: flex; gap: 16px; margin-left: auto; }
.page-nav a { padding: 8px 0; color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; border-bottom: 1px solid transparent; }
.page-nav a[aria-current="page"] { color: var(--paper); border-color: var(--lime); }
.signal { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; }
.signal i, .toolbar-status i { display: block; width: 7px; height: 7px; background: var(--lime); border-radius: 50%; }
.locale-controls { display: flex; align-items: center; gap: 6px; }
.locale-controls select { width: clamp(112px, 15vw, 160px); min-height: 32px; padding: 0 24px 0 9px; color: var(--paper); background: var(--ink-soft); border: 1px solid var(--line); border-radius: 0; font-family: var(--mono); font-size: 11px; cursor: pointer; }
.locale-controls select:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.locale-controls select option { color: var(--ink); background: var(--paper); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.page { min-height: calc(100vh - 70px); padding: 6vw 4vw 3vw; }
.page-g { display: grid; align-content: center; position: relative; }
.g-grid { width: min(1120px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(240px, .72fr) minmax(360px, 1fr); align-items: center; gap: clamp(34px, 7vw, 96px); }
.g-copy { max-width: 400px; }
.scan-label, .machine-top, .machine-bottom, .card-tag, .section-label, .toolbar-status, .g-footer-note, .card-index, .s-end { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.scan-label { display: flex; justify-content: space-between; gap: 18px; color: var(--lime); font-size: 11px; margin-bottom: 38px; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 460px; margin-bottom: 20px; font-family: var(--display); font-size: clamp(4.2rem, 9vw, 6.5rem); line-height: 0.84; letter-spacing: -0.08em; }
h1 em { color: var(--lime); font-style: normal; }
.g-lede { max-width: 16ch; color: var(--blue); font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.2; letter-spacing: -0.04em; margin-bottom: 0; }
.g-description { max-width: 36ch; color: var(--muted); line-height: 1.65; }
.g-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 30px 0 0; }
.primary-button, .outline-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 20px; background: var(--lime); color: var(--ink); font-weight: 800; }
.primary-button:hover, .outline-button:hover { background: var(--white); }
.text-button { padding: 12px 0; background: transparent; color: var(--paper); border-bottom: 1px solid var(--paper); font-size: 14px; }
.text-button span { color: var(--lime); }
.g-meta { display: flex; flex-wrap: wrap; gap: 28px; border-top: 1px solid var(--line); padding-top: 18px; }
.g-meta div { display: grid; gap: 4px; }
.g-meta strong { color: var(--paper); font-family: var(--display); font-size: 1.5rem; letter-spacing: -0.06em; }
.g-meta span { color: var(--muted); font-family: var(--mono); font-size: 11px; }

.hero-machine { width: min(100%, 560px); justify-self: end; padding: 9px; background: var(--ink-soft); border: 1px solid rgba(155, 232, 255, 0.46); box-shadow: 0 16px 30px rgba(0,0,0,0.28); }
.machine-top, .machine-bottom { display: flex; justify-content: space-between; align-items: center; color: var(--blue); font-size: 11px; padding: 10px 8px; }
.machine-dot { width: 9px; height: 9px; background: var(--orange); border-radius: 50%; }
.hero-frame { position: relative; min-height: min(65vh, 590px); overflow: hidden; background: #26342f; }
.hero-frame img { display: block; width: 100%; height: 100%; min-height: min(65vh, 590px); object-fit: cover; object-position: center 30%; filter: saturate(0.9) contrast(1.04); }
.hero-stamp { position: absolute; top: 18px; left: 18px; padding: 8px; color: var(--ink); background: var(--lime); font-family: var(--mono); font-size: 11px; line-height: 1.05; font-weight: 800; }
.hero-caption { position: absolute; right: 18px; bottom: 18px; max-width: 190px; display: grid; gap: 8px; padding: 12px; color: var(--ink); background: rgba(241, 234, 219, 0.93); }
.hero-caption span { font-family: var(--mono); font-size: 11px; color: #485b56; }
.hero-caption strong { font-size: 15px; line-height: 1.25; }
.hero-crosshair { display: none; position: absolute; inset: 11% 10%; border: 1px solid rgba(216, 248, 94, .8); pointer-events: none; }
.hero-crosshair::before, .hero-crosshair::after { content: ""; position: absolute; background: var(--lime); }
.hero-crosshair::before { width: 24px; height: 1px; left: calc(50% - 12px); top: -1px; box-shadow: 0 calc(100% + 1px) 0 var(--lime); }
.hero-crosshair::after { width: 1px; height: 24px; left: -1px; top: calc(50% - 12px); box-shadow: calc(100% + 1px) 0 0 var(--lime); }
.hero-crosshair span { position: absolute; width: 14px; height: 14px; border: 1px solid var(--lime); }
.hero-crosshair span:first-child { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hero-crosshair span:last-child { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.scanline { display: none; position: absolute; left: 0; right: 0; top: 31%; height: 1px; background: var(--lime); animation: scan 5s ease-in-out infinite; opacity: .65; }
@keyframes scan { 0%, 100% { transform: translateY(-30px); opacity: .18; } 50% { transform: translateY(240px); opacity: .65; } }
.g-footer-note { width: min(1200px, 100%); margin: 0 auto; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 11px; }
.g-footer-note > span:last-child { margin-left: auto; color: var(--lime); }
.scroll-pulse { width: 38px; height: 1px; background: var(--lime); position: relative; }
.scroll-pulse::after { content: ""; position: absolute; right: 0; top: -2px; border: 3px solid transparent; border-left-color: var(--lime); }

.page-s { width: min(1360px, 100%); margin: 0 auto; padding-top: 4vw; }
.s-intro { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.section-label { color: var(--lime); font-size: 11px; margin-bottom: 14px; }
h2 { font-family: var(--display); font-size: clamp(3rem, 8vw, 7.5rem); line-height: .85; letter-spacing: -.1em; }
.s-intro > p { max-width: 26ch; color: var(--blue); font-size: clamp(1.1rem, 2vw, 1.6rem); line-height: 1.25; margin-bottom: 0; text-align: right; }
.s-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0 28px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; color: var(--muted); background: transparent; border: 1px solid var(--line); font-size: 13px; }
.filter span { color: var(--blue); font-family: var(--mono); font-size: 11px; }
.filter:hover, .filter.is-active { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.filter.is-active span, .filter:hover span { color: var(--ink); }
.toolbar-status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.toolbar-status b { color: var(--paper); font-weight: 700; }
.archive-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 34px 18px; }
.archive-card, .archive-card.card-wide { grid-column: span 1; min-width: 0; margin-top: 0; }
.card-image-wrap { position: relative; }
.card-image { display: block; width: 100%; padding: 0; background: #222; position: relative; overflow: hidden; text-align: left; }
.card-image img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: var(--focus, 50% 28%); background: #172326; transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .55s ease; }
.card-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, transparent 58%, rgba(7,16,20,.34)); pointer-events: none; }
.card-image:hover img { transform: scale(1.05); filter: saturate(1.1); }
.card-index { position: absolute; left: 10px; top: 10px; z-index: 1; color: var(--lime); font-size: 11px; text-shadow: 0 1px 10px var(--ink); }
.open-mark { position: absolute; right: 12px; bottom: 9px; z-index: 2; display: grid; place-items: center; width: 25px; height: 25px; color: var(--ink); background: var(--lime); font-size: 21px; line-height: 1; }
.download-mark { position: absolute; right: 45px; bottom: 9px; z-index: 2; display: grid; place-items: center; width: 25px; height: 25px; color: var(--ink); background: var(--blue); }
.download-mark svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.download-mark:hover { background: var(--white); }
.card-info { min-height: 132px; padding-top: 12px; }
.card-info h3 { margin-bottom: 4px; color: var(--paper); font-family: var(--display); font-size: clamp(1.1rem, 2.2vw, 1.6rem); letter-spacing: -.06em; }
.card-info p { min-height: 2.9em; margin-bottom: 12px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.card-tag { color: var(--blue); font-size: 11px; }
.card-dark .card-info h3, .card-red .card-info h3 { color: var(--orange); }
.card-blue .card-info h3 { color: var(--blue); }
.category-palette .archive-card[data-category="猫系"] .card-info h3 { color: var(--orange); }
.category-palette .archive-card[data-category="飞行系"] .card-info h3 { color: var(--blue); }
.category-palette .archive-card[data-category="合成系"] .card-info h3 { color: var(--lime); }
.category-palette .archive-card[data-category="其他系"] .card-info h3 { color: var(--pink); }
.s-end { display: flex; align-items: center; gap: 18px; padding: 90px 0 30px; color: var(--muted); font-size: 11px; }
.s-end .outline-button { min-height: 42px; margin-left: auto; padding: 0 14px; background: transparent; color: var(--lime); border: 1px solid var(--lime); font-size: 13px; }
.s-end .outline-button:hover { color: var(--ink); background: var(--lime); }
.back-link { color: var(--paper); border-bottom: 1px solid var(--paper); font-family: var(--body); font-size: 13px; text-transform: none; letter-spacing: 0; }

.page-fb { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 14px; overflow: hidden; }
.fb-guide-backdrop { position: absolute; inset: 0; background: #8e9699; }
.fb-guide-sheet { position: relative; width: min(100%, 420px); max-height: calc(100vh - 28px); overflow: auto; padding: 32px 22px 24px; color: #27313a; background: #fff; border-radius: 20px 20px 0 0; box-shadow: 0 18px 48px rgba(0, 0, 0, .16); font-family: var(--body); }
.fb-close { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; color: #687179; background: transparent; border: 2px solid #087fad; border-radius: 50%; font-size: 25px; font-weight: 300; line-height: 1; }
.fb-close:hover { color: #27313a; background: #eef9fc; }
.safari-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 20px; padding: 4px; border: 1px solid #dce5ea; border-radius: 15px; }
.safari-icon svg { display: block; width: 54px; height: 54px; }
.fb-guide-sheet h2 { max-width: 320px; margin: 0 auto 16px; color: #27313a; font-family: var(--body); font-size: clamp(1.45rem, 5vw, 1.8rem); font-weight: 800; line-height: 1.2; letter-spacing: -.04em; text-align: center; }
.fb-lede { margin: 0 0 16px; color: #69737c; font-size: 14px; line-height: 1.7; }
.fb-steps { display: grid; gap: 4px; }
.fb-step { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; padding: 7px 0; background: transparent; border: 0; }
.fb-step > span { display: grid; place-items: center; width: 28px; height: 28px; color: #1687ae; background: #eaf7fb; border-radius: 50%; font-size: 14px; }
.fb-step p { margin: 2px 0 0; color: #3f474e; font-size: 14px; line-height: 1.7; }
.fb-copy-divider { height: 1px; margin: 10px 0 16px; background: #e0e5e8; }
.fb-copy-note { margin: 0 0 14px; color: #7c858b; font-size: 13px; text-align: center; }
.fb-copy-button { width: 100%; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; color: #fff; background: #0785af; border-radius: 10px; font-size: 14px; font-weight: 800; }
.fb-copy-button:hover { background: #066f93; }
.fb-copy-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.fb-copy-status { min-height: 18px; margin: 8px 0 0; color: #0785af; font-size: 12px; text-align: center; }

.lightbox { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 18px; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(4, 10, 12, .88); }
.lightbox-panel { position: relative; z-index: 1; width: min(930px, 100%); max-height: 92vh; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(200px, .55fr); gap: 24px; padding: 12px; background: var(--ink-soft); border: 1px solid var(--line); overflow: auto; }
.lightbox-panel > img { width: 100%; height: min(76vh, 720px); object-fit: contain; background: #131d1f; }
.lightbox-copy { align-self: end; padding: 14px; }
.lightbox-copy span { color: var(--lime); font-family: var(--mono); font-size: 11px; }
.lightbox-copy h2 { margin: 14px 0; font-size: clamp(2.4rem, 5vw, 4rem); color: var(--paper); }
.lightbox-copy p { color: var(--blue); line-height: 1.6; }
.close-button { position: absolute; right: 20px; top: 17px; z-index: 2; width: 34px; height: 34px; color: var(--ink); background: var(--lime); font-size: 24px; line-height: 1; }

@media (max-width: 1020px) and (min-width: 761px) {
  .archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .topbar { height: auto; min-height: 60px; padding: 8px 14px; gap: 8px; flex-wrap: wrap; }
  .brand { font-size: 13px; }
  .signal { display: none; }
  .page-nav { gap: 10px; margin-left: auto; }
  .page-nav a { font-size: 11px; }
  .locale-controls { width: auto; order: 3; margin-right: auto; }
  .locale-controls select { width: clamp(104px, 31vw, 136px); min-width: 0; min-height: 30px; padding-left: 8px; font-size: 10px; }
  .page { min-height: calc(100vh - 60px); min-height: calc(100dvh - 60px); padding: 16px 14px 12px; }
  .page-g { align-content: start; }
  .g-grid { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
  .g-copy { max-width: none; }
  h1 { margin-bottom: 8px; font-size: clamp(3.25rem, 16vw, 5.4rem); }
  .g-lede { max-width: 15ch; font-size: 1rem; line-height: 1.15; }
  .g-actions { gap: 12px; margin-top: 12px; }
  .g-actions .primary-button { min-height: 42px; padding: 0 16px; font-size: 14px; }
  .g-actions .text-button { padding: 8px 0; font-size: 13px; }
  .hero-machine { width: 100%; }
  .hero-machine { padding: 5px; }
  .machine-top, .machine-bottom { padding: 6px 5px; font-size: 9px; }
  .hero-frame { height: min(34vh, 250px); min-height: 0; }
  .hero-frame img { height: 100%; min-height: 0; }
  .hero-caption { right: 8px; bottom: 8px; max-width: 140px; padding: 8px; }
  .hero-caption strong { font-size: 13px; }
  .s-intro { align-items: start; flex-direction: column; gap: 18px; }
  .s-intro > p { text-align: left; }
  .s-toolbar { align-items: start; flex-direction: column; }
  .toolbar-status { align-self: flex-end; }
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 12px; }
  .archive-card, .archive-card.card-wide { grid-column: span 1; }
  .card-image img, .card-wide .card-image img { aspect-ratio: 4 / 5; }
  .card-info { min-height: 0; }
  .card-info p { min-height: 0; }
  .card-info h3 { font-size: 1.18rem; }
  .card-info p { font-size: 13px; }
  .s-end { flex-wrap: wrap; padding-top: 58px; }
  .s-end .outline-button { margin-left: 0; }
  .page-fb { place-items: end center; padding: 0; }
  .fb-guide-backdrop { background: #8e9699; }
  .fb-guide-sheet { width: 100%; min-height: calc(100vh - 12px); max-height: calc(100vh - 12px); padding: 32px 21px 22px; border-radius: 20px 20px 0 0; }
  .safari-icon { margin-bottom: 18px; }
  .fb-guide-sheet h2 { font-size: 1.45rem; }
  .fb-lede { margin-bottom: 12px; font-size: 13px; line-height: 1.65; }
  .fb-step { padding: 5px 0; }
  .fb-step p { font-size: 13px; line-height: 1.55; }
  .fb-copy-divider { margin: 9px 0 13px; }
  .fb-copy-note { margin-bottom: 12px; font-size: 12px; }
  .fb-copy-button { min-height: 48px; }
  .lightbox-panel { grid-template-columns: 1fr; max-height: 94vh; }
  .lightbox-panel > img { height: 58vh; }
  .lightbox-copy { padding: 4px 8px 12px; }
  .lightbox-copy h2 { margin: 8px 0; }
}

@media (max-width: 760px) and (max-height: 700px) {
  .page-g { padding-top: 12px; }
  .g-grid { gap: 11px; }
  h1 { font-size: clamp(3.1rem, 15vw, 4.8rem); }
  .g-actions { margin-top: 10px; }
  .hero-frame { height: min(30vh, 190px); }
  .hero-caption { display: none; }
}

@media (max-width: 360px) {
  .topbar { padding-inline: 11px; }
  .page-nav { gap: 8px; }
  .page-nav a { font-size: 10px; }
  .locale-controls select { width: 100px; }
  .page { padding-inline: 12px; }
  .g-actions { gap: 10px; }
  .g-actions .primary-button { padding-inline: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* G / full-bleed specimen cover: the image is the page, copy floats in the quiet side. */
.site-shell[data-page="g"] { position: relative; }
.site-shell[data-page="g"] .topbar {
  position: absolute;
  inset: 0 0 auto;
  background: linear-gradient(180deg, rgba(7, 16, 20, .88), rgba(7, 16, 20, .16));
  border-bottom-color: rgba(241, 234, 219, .18);
}
.site-shell[data-page="g"] .page-g {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  display: block;
  overflow: hidden;
  background: #172326;
}
.site-shell[data-page="g"] .g-grid {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: block;
}
.site-shell[data-page="g"] .hero-machine {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: #172326;
  border: 0;
  box-shadow: none;
}
.site-shell[data-page="g"] .hero-frame {
  position: absolute;
  inset: 0;
  min-height: 0;
  height: 100%;
  background: #172326;
}
.site-shell[data-page="g"] .hero-frame img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 72% 35%;
  filter: saturate(.88) contrast(1.04) brightness(.76);
}
.site-shell[data-page="g"] .hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 16, 20, .9) 0%, rgba(7, 16, 20, .62) 26%, rgba(7, 16, 20, .08) 66%, rgba(7, 16, 20, .16) 100%),
    linear-gradient(180deg, rgba(7, 16, 20, .24), transparent 30%, rgba(7, 16, 20, .28));
}
.site-shell[data-page="g"] .g-copy {
  position: relative;
  z-index: 2;
  max-width: 390px;
  padding: clamp(110px, 15vh, 170px) 4vw 40px;
}
.site-shell[data-page="g"] h1 {
  margin-bottom: 18px;
  text-shadow: 0 3px 22px rgba(7, 16, 20, .4);
}
.site-shell[data-page="g"] .g-lede { text-shadow: 0 2px 12px rgba(7, 16, 20, .7); }
.site-shell[data-page="g"] .g-actions { margin-top: 26px; }
.site-shell[data-page="g"] .hero-stamp,
.site-shell[data-page="g"] .hero-caption,
.site-shell[data-page="g"] .hero-crosshair,
.site-shell[data-page="g"] .scanline,
.site-shell[data-page="g"] .machine-top,
.site-shell[data-page="g"] .machine-bottom { display: none; }

@media (max-width: 760px) {
  .site-shell[data-page="g"] .page-g,
  .site-shell[data-page="g"] .g-grid { min-height: 100vh; min-height: 100dvh; }
  .site-shell[data-page="g"] .topbar { padding-top: 8px; }
  .site-shell[data-page="g"] .hero-frame img { object-position: 28% 34%; }
  .site-shell[data-page="g"] .hero-frame::after {
    background:
      linear-gradient(90deg, rgba(7, 16, 20, .86) 0%, rgba(7, 16, 20, .48) 42%, rgba(7, 16, 20, .08) 76%, rgba(7, 16, 20, .16) 100%),
      linear-gradient(180deg, rgba(7, 16, 20, .18), transparent 38%, rgba(7, 16, 20, .32));
  }
  .site-shell[data-page="g"] .g-copy {
    max-width: 58%;
    padding: 108px 18px 28px;
  }
  .site-shell[data-page="g"] h1 {
    margin-bottom: 12px;
    font-size: clamp(3.25rem, 16vw, 5.2rem);
  }
  .site-shell[data-page="g"] .g-lede { max-width: 12ch; font-size: 1rem; }
  .site-shell[data-page="g"] .g-actions { align-items: flex-start; gap: 10px; margin-top: 18px; }
  .site-shell[data-page="g"] .g-actions .primary-button { min-height: 40px; padding: 0 13px; font-size: 13px; }
  .site-shell[data-page="g"] .g-actions .text-button { font-size: 12px; }
}

@media (max-width: 390px) {
  .site-shell[data-page="g"] .hero-frame img { object-position: 24% 34%; }
  .site-shell[data-page="g"] .g-copy { max-width: 60%; padding-left: 14px; }
  .site-shell[data-page="g"] h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
}

/* FB guidance floats over the G cover instead of replacing it. */
.site-shell[data-overlay="fb"] .page-fb {
  background: transparent;
  place-items: center;
  padding: 16px;
}
.site-shell[data-overlay="fb"] .fb-guide-backdrop {
  background: rgba(7, 16, 20, .48);
  backdrop-filter: blur(2px);
}
.site-shell[data-overlay="fb"] .fb-guide-sheet {
  width: min(100%, 420px);
  max-height: min(84dvh, 640px);
  border-radius: 20px;
  box-shadow: 0 20px 56px rgba(0, 0, 0, .34);
}

@media (max-width: 760px) {
  .site-shell[data-overlay="fb"] .page-fb {
    place-items: end center;
    padding: 12px;
  }
  .site-shell[data-overlay="fb"] .fb-guide-sheet {
    width: min(100%, 420px);
    min-height: 0;
    max-height: calc(100dvh - 84px);
    padding: 24px 18px 18px;
    border-radius: 20px;
  }
}
