:root {
  --hm-bg: #060d16;
  --hm-surface: #0a1520;
  --hm-surface-2: #10202e;
  --hm-line: rgba(138, 196, 220, 0.22);
  --hm-text: #edf7fb;
  --hm-muted: #91a9b8;
  --hm-blue: #55c9ee;
  --hm-teal: #43d6b4;
  --hm-gold: #efc35b;
  --hm-topbar-height: 56px;
  --hm-max-width: 1600px;
}

.home-page {
  background: var(--hm-bg);
  color: var(--hm-text);
  overflow: hidden;
}

.home-bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 20% 25%, rgba(85, 201, 238, 0.07) 0%, transparent 42%),
    radial-gradient(circle at 55% 75%, rgba(67, 214, 180, 0.05) 0%, transparent 42%),
    radial-gradient(circle at 85% 30%, rgba(239, 195, 91, 0.05) 0%, transparent 42%),
    linear-gradient(rgba(138, 196, 220, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 196, 220, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

.home-page .topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--hm-topbar-height);
  background: rgba(6, 13, 22, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hm-line);
  z-index: 100;
}

.home-topnav {
  display: flex;
  gap: 10px;
  margin-left: auto;
  margin-right: 16px;
}

.topnav-link {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  text-decoration: none;
  border: 1px solid var(--hm-line);
  color: var(--hm-muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.topnav-link:hover { background: var(--hm-surface-2); }
.topnav-blue { color: var(--hm-blue); border-color: rgba(85, 201, 238, 0.35); }
.topnav-teal { color: var(--hm-teal); border-color: rgba(67, 214, 180, 0.35); }
.topnav-gold { color: var(--hm-gold); border-color: rgba(239, 195, 91, 0.35); }

.home-shell {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.home-screen {
  position: relative;
  height: calc(100svh - var(--hm-topbar-height));
  overflow: hidden;
  scroll-snap-align: start;
  padding: calc(var(--hm-topbar-height) + 10px) max(16px, calc((100vw - var(--hm-max-width)) / 2)) 8px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.home-screen .screen-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.home-screen .screen-header.compact {
  margin-bottom: 6px;
}

.home-screen .screen-number {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--hm-line);
  border-radius: 8px;
  color: var(--hm-blue);
  font: 700 16px var(--font-mono);
  background: var(--hm-surface);
}

.home-screen .screen-header h2 {
  margin: 0;
  color: var(--hm-text);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.25;
}

.home-screen .screen-desc {
  margin: 4px 0 0;
  color: var(--hm-muted);
  font-size: 14px;
  max-width: 960px;
  line-height: 1.5;
}

/* Screen 1: Hero */
.screen-home-hero {
  justify-content: center;
}

.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.home-hero .eyebrow {
  margin: 0;
  color: var(--hm-blue);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-hero h1 {
  margin: 0;
  color: var(--hm-text);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  background: linear-gradient(90deg, var(--hm-blue), var(--hm-teal), var(--hm-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-hero-subtitle {
  margin: 0;
  color: var(--hm-muted);
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.65;
  max-width: 860px;
}

.route-entry-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  margin-top: 6px;
}

.route-entry {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid var(--hm-line);
  border-radius: 14px;
  background: var(--hm-surface);
  text-decoration: none;
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.route-entry:hover {
  transform: translateY(-3px);
}

.route-entry.entry-blue:hover { box-shadow: 0 8px 28px rgba(85, 201, 238, 0.15); border-color: var(--hm-blue); }
.route-entry.entry-teal:hover { box-shadow: 0 8px 28px rgba(67, 214, 180, 0.15); border-color: var(--hm-teal); }
.route-entry.entry-gold:hover { box-shadow: 0 8px 28px rgba(239, 195, 91, 0.15); border-color: var(--hm-gold); }

.route-entry .entry-icon {
  width: 34px;
  height: 34px;
}

.route-entry .entry-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.entry-blue .entry-icon svg { stroke: var(--hm-blue); }
.entry-teal .entry-icon svg { stroke: var(--hm-teal); }
.entry-gold .entry-icon svg { stroke: var(--hm-gold); }

.route-entry strong {
  color: var(--hm-text);
  font-size: 16px;
}

.route-entry small {
  color: var(--hm-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.route-entry .entry-status {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  border: 1px solid var(--hm-line);
  color: var(--hm-muted);
}

.entry-blue .entry-status { color: var(--hm-blue); border-color: rgba(85, 201, 238, 0.35); }
.entry-teal .entry-status { color: var(--hm-teal); border-color: rgba(67, 214, 180, 0.35); }
.entry-gold .entry-status { color: var(--hm-gold); border-color: rgba(239, 195, 91, 0.35); }

.route-entry .entry-go {
  color: var(--hm-muted);
  font-size: 12px;
  margin-top: auto;
}

.coop-cta {
  margin-top: 4px;
  padding: 10px 26px;
  border-radius: 24px;
  border: 1px solid rgba(239, 195, 91, 0.45);
  color: var(--hm-gold);
  font-size: 14px;
  text-decoration: none;
  background: rgba(239, 195, 91, 0.08);
  transition: background 0.2s;
}

.coop-cta:hover {
  background: rgba(239, 195, 91, 0.16);
}

.scroll-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--hm-muted);
  font-size: 12px;
}

.scroll-hint i {
  width: 18px;
  height: 28px;
  border: 1.5px solid var(--hm-line);
  border-radius: 10px;
  position: relative;
}

.scroll-hint i::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 5px;
  background: var(--hm-blue);
  border-radius: 2px;
  animation: scrollHint 1.6s ease-in-out infinite;
}

@keyframes scrollHint {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.3; transform: translateX(-50%) translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint i::after { animation: none; }
}

/* Screen 2: Capabilities */
.capability-cards {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.cap-figure {
  flex: 1 1 auto;
  min-height: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.cap-figure img {
  flex: 1 1 auto;
  min-height: 0;
  width: auto;
  max-width: min(1150px, 100%);
  max-height: 100%;
  object-fit: contain;
  border: 1px solid var(--hm-line);
  border-radius: 12px;
}

.cap-figure figcaption {
  flex-shrink: 0;
  color: var(--hm-muted);
  font-size: 11.5px;
  text-align: center;
}

.cap-card-h {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--hm-line);
  border-radius: 14px;
  background: var(--hm-surface);
  min-height: 0;
  overflow: hidden;
}

.cap-card-h.cap-blue { border-top: 3px solid var(--hm-blue); }
.cap-card-h.cap-teal { border-top: 3px solid var(--hm-teal); }
.cap-card-h.cap-gold { border-top: 3px solid var(--hm-gold); }

.cap-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cap-head .cap-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

.cap-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cap-blue .cap-icon svg { stroke: var(--hm-blue); }
.cap-teal .cap-icon svg { stroke: var(--hm-teal); }
.cap-gold .cap-icon svg { stroke: var(--hm-gold); }

.cap-head strong {
  color: var(--hm-text);
  font-size: 15px;
  line-height: 1.3;
}

.cap-head small {
  display: block;
  color: var(--hm-muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.cap-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--hm-surface-2);
  border: 1px solid var(--hm-line);
}

.cap-metric strong {
  font: 700 clamp(22px, 2.2vw, 30px) var(--font-mono);
}

.cap-blue .cap-metric strong { color: var(--hm-blue); }
.cap-teal .cap-metric strong { color: var(--hm-teal); }
.cap-gold .cap-metric strong { color: var(--hm-gold); }

.cap-metric span {
  color: var(--hm-muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.cap-highlights {
  margin: 0;
  padding-left: 18px;
  color: var(--hm-text);
  font-size: 12.5px;
  line-height: 1.75;
  flex: 1 1 auto;
  min-height: 0;
}

.cap-link {
  align-self: flex-start;
  padding: 6px 16px;
  border-radius: 18px;
  border: 1px solid var(--hm-line);
  color: var(--hm-muted);
  font-size: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.cap-blue .cap-link { color: var(--hm-blue); border-color: rgba(85, 201, 238, 0.35); }
.cap-teal .cap-link { color: var(--hm-teal); border-color: rgba(67, 214, 180, 0.35); }
.cap-gold .cap-link { color: var(--hm-gold); border-color: rgba(239, 195, 91, 0.35); }

/* Screen 3: Loop */
.loop-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.loop-diagrams {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.loop-svg {
  width: 100%;
  height: 100%;
  min-height: 0;
  align-self: center;
}

.loop-figure {
  margin: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.loop-figure img {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  object-fit: contain;
  border: 1px solid var(--hm-line);
  border-radius: 12px;
}

.loop-figure figcaption {
  flex-shrink: 0;
  color: var(--hm-muted);
  font-size: 11.5px;
  text-align: center;
}

.loop-box {
  fill: var(--hm-surface);
  stroke-width: 1.5;
}

.loop-box-blue { stroke: rgba(85, 201, 238, 0.5); }
.loop-box-teal { stroke: rgba(67, 214, 180, 0.5); }
.loop-box-gold { stroke: rgba(239, 195, 91, 0.5); }
.loop-box-center { stroke: var(--hm-line); fill: var(--hm-surface-2); }

.loop-title {
  fill: var(--hm-text);
  font-size: 16px;
  font-weight: 600;
}

.loop-sub {
  fill: var(--hm-muted);
  font-size: 11.5px;
}

.loop-flow {
  fill: none;
  stroke-width: 2.5;
}

.loop-flow-return {
  stroke: rgba(145, 169, 184, 0.55);
  stroke-width: 2;
}

.loop-return-label {
  fill: var(--hm-muted);
  font-size: 12px;
}

.loop-steps {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.loop-step-chip {
  padding: 6px 14px;
  border-radius: 18px;
  border: 1px solid var(--hm-line);
  background: var(--hm-surface);
  color: var(--hm-text);
  font-size: 12px;
}

.loop-step-arrow {
  color: var(--hm-muted);
  font-size: 12px;
}

/* Screen 4: Team */
.team-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.5fr 0.6fr;
  gap: 14px;
}

.member-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--hm-line);
  border-radius: 14px;
  background: var(--hm-surface);
  min-height: 0;
  overflow: hidden;
}

.member-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.member-avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--hm-gold);
  background: var(--hm-surface-2);
  color: var(--hm-gold);
  font-size: 22px;
  font-weight: 700;
}

.member-name {
  color: var(--hm-text);
  font-size: 23px;
}

.member-titles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.member-titles span {
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 12.5px;
  border: 1px solid rgba(239, 195, 91, 0.35);
  color: var(--hm-gold);
}

.member-summary {
  margin: 0;
  color: var(--hm-text);
  font-size: 15px;
  line-height: 1.85;
  flex-shrink: 0;
}

.member-achievements {
  margin: 0;
  padding-left: 20px;
  color: var(--hm-text);
  font-size: 14px;
  line-height: 1.85;
  flex: 1 1 auto;
  min-height: 0;
}

.team-media {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.team-shot {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  padding: 0;
  border: 1px solid var(--hm-line);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  cursor: zoom-in;
  display: block;
}

.team-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.92;
}

.team-shot:hover img {
  opacity: 1;
}

.team-shot span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 12px;
  background: rgba(6, 13, 22, 0.88);
  color: var(--hm-muted);
  font-size: 11.5px;
  text-align: left;
}

/* Image modal */
.image-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal[hidden] {
  display: none;
}

.image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.image-modal-box {
  position: relative;
  width: min(1100px, 92vw);
  background: var(--hm-surface);
  border: 1px solid var(--hm-line);
  border-radius: 12px;
  padding: 12px;
  z-index: 1;
}

.image-modal-box img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  background: #000;
  border-radius: 8px;
}

.image-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--hm-line);
  background: var(--hm-surface-2);
  color: var(--hm-text);
  font-size: 18px;
  cursor: pointer;
}

.image-modal-caption {
  margin: 10px 2px 2px;
  color: var(--hm-muted);
  font-size: 12px;
}

.contact-email {
  color: var(--hm-gold);
  text-decoration: none;
}

.contact-email:hover {
  text-decoration: underline;
}

/* Screen 5: Cooperation */
.coop-cards {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.coop-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--hm-line);
  border-radius: 14px;
  background: var(--hm-surface);
  min-height: 0;
}

.coop-card .coop-icon {
  width: 32px;
  height: 32px;
}

.coop-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.coop-card:nth-child(1) .coop-icon svg { stroke: var(--hm-blue); }
.coop-card:nth-child(2) .coop-icon svg { stroke: var(--hm-teal); }
.coop-card:nth-child(3) .coop-icon svg { stroke: var(--hm-gold); }

.coop-card strong {
  color: var(--hm-text);
  font-size: 15px;
}

.coop-card p {
  margin: 0;
  color: var(--hm-muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.contact-card {
  flex-shrink: 0;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid rgba(239, 195, 91, 0.4);
  background: rgba(239, 195, 91, 0.07);
}

.contact-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  fill: none;
  stroke: var(--hm-gold);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-card strong {
  color: var(--hm-gold);
  font-size: 14px;
}

.contact-card p {
  margin: 2px 0 0;
  color: var(--hm-muted);
  font-size: 12.5px;
}

/* Navigator */
.screen-navigator {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.screen-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  width: 42px;
  padding: 6px 2px;
  border: 1px solid var(--hm-line);
  border-radius: 8px;
  background: var(--hm-surface);
  color: var(--hm-muted);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.screen-nav-item:hover {
  background: var(--hm-surface-2);
}

.screen-nav-item.active {
  background: var(--hm-blue);
  border-color: var(--hm-blue);
  color: var(--hm-bg);
}

.screen-nav-item span {
  font: 700 11px var(--font-mono);
}

.screen-nav-item small {
  font-size: 9px;
  line-height: 1;
}

.screen-progress {
  position: fixed;
  left: 0;
  bottom: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  background: var(--hm-surface);
}

.screen-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--hm-blue), var(--hm-teal), var(--hm-gold));
  transition: width 0.3s ease;
}

/* ICP 备案页脚：左下角常驻，极小弱化，不干扰整屏布局 */
.icp-footer {
  position: fixed;
  left: 14px;
  bottom: 8px;
  z-index: 55;
}

.icp-footer a {
  color: rgba(145, 169, 184, 0.5);
  font-size: 11px;
  text-decoration: none;
  transition: color 0.2s;
}

.icp-footer a:hover {
  color: var(--hm-muted);
}

/* Error panel */
.home-error {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px 28px;
  border: 1px solid #ef6c67;
  border-radius: 10px;
  background: var(--hm-surface);
  color: #ef6c67;
  z-index: 200;
}

/* Animations */
@keyframes hmFadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-screen.is-active .route-entry,
.home-screen.is-active .cap-card-h,
.home-screen.is-active .loop-svg,
.home-screen.is-active .member-card,
.home-screen.is-active .team-shot,
.home-screen.is-active .coop-card,
.home-screen.is-active .contact-card {
  animation: hmFadeInUp 0.5s ease backwards;
}

@media (prefers-reduced-motion: reduce) {
  .home-screen.is-active .route-entry,
  .home-screen.is-active .cap-card-h,
  .home-screen.is-active .loop-svg,
  .home-screen.is-active .member-card,
  .home-screen.is-active .team-shot,
  .home-screen.is-active .coop-card,
  .home-screen.is-active .contact-card {
    animation: none;
  }
}

/* Compact desktop: narrow width OR short viewport */
@media (max-width: 1400px), (max-height: 960px) {
  .home-screen {
    padding: calc(var(--hm-topbar-height) + 6px) max(16px, calc((100vw - var(--hm-max-width)) / 2)) 0px;
  }
  .home-screen .screen-header {
    margin-bottom: 4px;
  }
  .home-screen .screen-header.compact {
    margin-bottom: 2px;
  }
  .home-screen .screen-header h2 {
    font-size: 20px;
  }
  .home-screen .screen-desc {
    font-size: 13px;
  }
  .home-hero {
    gap: 12px;
  }
  .home-hero h1 {
    font-size: 32px;
  }
  .home-hero-subtitle {
    font-size: 13px;
  }
  .route-entry {
    padding: 12px 14px;
    gap: 6px;
  }
  .route-entry strong {
    font-size: 14px;
  }
  .cap-card-h {
    padding: 12px 14px;
    gap: 8px;
  }
  .cap-highlights {
    font-size: 11.5px;
    line-height: 1.6;
  }
  .cap-metric {
    padding: 8px 12px;
  }
  .coop-card {
    padding: 12px 14px;
    gap: 8px;
  }
  .coop-card p {
    font-size: 11.5px;
    line-height: 1.6;
  }
  .member-card {
    padding: 12px 14px;
    gap: 8px;
  }
  .member-summary {
    font-size: 13px;
    line-height: 1.7;
  }
  .member-achievements {
    font-size: 12.5px;
    line-height: 1.7;
  }
  .member-avatar {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    font-size: 18px;
  }
  .member-name {
    font-size: 19px;
  }
  .member-titles span {
    font-size: 11.5px;
  }
  .contact-card {
    padding: 10px 16px;
    margin-top: 8px;
  }
  .loop-title {
    font-size: 14px;
  }
  .loop-sub {
    font-size: 10.5px;
  }
}

/* Ultra-compact: short laptop windows */
@media (max-height: 700px) and (min-width: 1181px) {
  .home-hero h1 {
    font-size: 26px;
  }
  .home-hero-subtitle {
    font-size: 12px;
    line-height: 1.45;
  }
  .route-entry {
    padding: 10px 12px;
    gap: 4px;
  }
  .route-entry .entry-icon {
    width: 26px;
    height: 26px;
  }
  .route-entry strong {
    font-size: 13px;
  }
  .route-entry small {
    font-size: 10.5px;
  }
  .coop-cta {
    padding: 7px 20px;
    font-size: 12px;
  }
  .cap-card-h {
    padding: 10px 12px;
    gap: 6px;
  }
  .cap-head strong {
    font-size: 13px;
  }
  .cap-metric strong {
    font-size: 20px;
  }
  .cap-highlights {
    font-size: 11px;
    line-height: 1.5;
  }
  .coop-card p {
    font-size: 11px;
  }
  .contact-card p {
    font-size: 11.5px;
  }
  .member-card {
    padding: 8px 12px;
    gap: 6px;
  }
  .member-summary {
    font-size: 12px;
    line-height: 1.6;
  }
  .member-achievements {
    font-size: 11.5px;
    line-height: 1.55;
  }
  .member-avatar {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 16px;
  }
  .member-titles span {
    font-size: 10px;
    padding: 2px 8px;
  }
  .team-media {
    gap: 8px;
  }
}

/* Tablet and below: disable snap, stack */
@media (max-width: 1180px) {
  .home-shell {
    scroll-snap-type: none;
    height: auto;
    overflow-y: visible;
  }
  .home-screen {
    min-height: auto;
    height: auto;
    overflow: visible;
    padding: calc(var(--hm-topbar-height) + 12px) 16px 24px;
  }
  .route-entry-cards,
  .capability-cards,
  .coop-cards,
  .team-body {
    grid-template-columns: 1fr;
  }
  .loop-diagrams {
    grid-template-columns: 1fr;
  }
  .cap-figure img,
  .loop-figure img {
    max-height: 460px;
    width: 100%;
  }
  .team-shot img {
    max-height: 320px;
    object-fit: contain;
  }
  .home-topnav {
    display: none;
  }
  .screen-navigator, .screen-progress, .scroll-hint {
    display: none;
  }
}
