/* CodePC design refresh — shared by the portal and legal page. */
:root { color-scheme: dark; --radius-lg: 18px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
img { max-width: 100%; }
html { scroll-padding-top: 96px; }
body { -webkit-font-smoothing: antialiased; }
html, body { overflow-x: clip; }
::selection { background: #00e5ff; color: #0a0e17; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 5px; }
button, input, select, textarea { font: inherit; }
.container, .nav-container { width: min(94vw, 2200px); max-width: none; }
.hero-bg-layer { position: absolute; height: 950px; background-image: linear-gradient(180deg, rgba(10,14,23,.8), #0a0e17), url('assets/bg-hero.jpg'); }
.grid-overlay { opacity: .28; background-size: 72px 72px; }
.navbar { background: rgba(10,14,23,.92); }
.navbar.scrolled { background: rgba(10,14,23,.98); border-bottom-color: #ffffff26; }
.mobile-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg) translate(5px,5px); }
.mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg) translate(5px,-5px); }
.nav-container { min-height: 80px; gap: 32px; }
.brand-logo { gap: 12px; font-size: 1.35rem; flex-shrink: 0; }
.logo-symbol { padding: 8px; border-radius: 10px; }
.brand-subpill { display: none; }
.nav-links { gap: 26px; }
.nav-link { font-size: .8rem; white-space: nowrap; }
.btn-discord-nav { display: none; }
.btn-primary-sm, .btn-primary { background: var(--accent-cyan); color: #061219; box-shadow: none; border-radius: 8px; }
.btn-primary:hover, .btn-primary-sm:hover { background: #8af4ff; box-shadow: 0 6px 24px #00e5ff20; }
.btn-secondary { border-radius: 8px; background: transparent; }
.btn-primary, .btn-secondary { min-height: 50px; padding: 13px 22px; font-size: .86rem; }
.hero-section { padding: 148px 0 54px; }
.hero-widescreen-grid { grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); align-items: center; gap: 64px; }
.hero-main-panel { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; backdrop-filter: none; overflow: visible; justify-content: flex-start; }
.hero-main-panel::before { display: none; }
.hero-main-panel .badge-pill { margin: 0 0 28px; padding: 0; border: 0; background: none; box-shadow: none; color: var(--text-muted); font-size: .74rem; gap: 10px; }
.hero-eyebrow { margin-bottom: 16px; font-size: .65rem; letter-spacing: .14em; font-weight: 500; }
.hero-main-panel .hero-title { font-size: clamp(2.9rem,4.5vw,4.25rem); font-weight: 700; letter-spacing: -.065em; line-height: 1.08; margin-bottom: 25px; }
.hero-title .gradient-text { background: none; -webkit-text-fill-color: var(--accent-cyan); color: var(--accent-cyan); animation: none; }
.hero-main-panel .hero-subtitle { max-width: 510px; font-size: 1rem; line-height: 1.85; color: var(--text-muted); margin: 0 0 28px; }
.hero-main-panel .hero-cta-group { gap: 12px; margin-bottom: 36px; }
.hero-main-panel .stats-grid { margin-top: 0; padding-top: 26px; border-top: 1px solid var(--border-color); gap: 16px; }
.hero-main-panel .stat-card { background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.stat-number { color: var(--text-main); font-family: var(--font-sans); font-size: 1.65rem; letter-spacing: -.05em; }
.stat-label { font-size: .63rem; font-weight: 500; line-height: 1.6; letter-spacing: .02em; color: var(--text-dim); text-transform: none; }
.hero-showcase-panel { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; gap: 18px; }
.deck-top-bar { padding-bottom: 12px; }
.deck-kicker { font-size: .63rem; letter-spacing: .15em; }
.deck-heading { font-size: .85rem; font-weight: 500; margin-top: 4px; }
.deck-status-pill { font-size: .57rem; padding: 5px 8px; }
.deck-cards-grid { gap: 12px; flex: initial; }
.deck-brand-tile { aspect-ratio: 2 / 1; min-height: 0; padding: 16px; border-radius: 12px; background: linear-gradient(180deg, rgba(7,9,14,.03) 8%, rgba(7,9,14,.3) 52%, #090f1cf5 100%), var(--tile-bg) center/cover no-repeat !important; }
.deck-brand-tile:nth-child(even) { transform: none; }
.deck-brand-tile:hover { transform: translateY(-3px); }
.deck-brand-tile:nth-child(even):hover { transform: translateY(-3px); }
.deck-tag { font-size: .58rem; padding: 3px 6px; background: #091321ed !important; }
.deck-crest { display: none; }
.deck-tile-bottom { max-width: 100%; }
.deck-tile-bottom h3 { font-size: .94rem; line-height: 1.35; margin-bottom: 4px; }
.deck-tile-bottom p { display: none; }
.deck-domain { font-size: .59rem; }
.deck-telemetry-footer { margin-top: 16px; gap: 12px; }
.telemetry-item { border: 0; border-radius: 0; padding: 0; background: none; }
.telemetry-label { font-size: .51rem; }
.telemetry-val { font-size: .64rem; white-space: normal; }
.hero-network-bar { margin-top: 60px; padding: 25px 28px; border-radius: 14px; border-color: var(--border-color); background: #111827bd; box-shadow: none; gap: 18px; }
.network-kicker { font-size: .58rem; letter-spacing: .16em; color: var(--text-dim); }
.network-bar-label strong { font-size: .87rem; font-weight: 500; }
.network-bar-links { gap: 8px; }
.net-pill { padding: 8px 12px; border-radius: 6px; font-size: .65rem; min-height: 36px; background: #0a0e1759; border-color: #ffffff12; }
.net-dot { flex-shrink: 0; width: 5px; height: 5px; }
.net-sub { font-size: .58rem; }
.directory-note { color: var(--text-dim); font-size: .7rem; line-height: 1.7; }
.project-results { color: var(--text-dim); font-size: .75rem; margin: -10px 0 20px; }
.section { padding: 76px 0; }
.section-header-split { align-items: flex-start; gap: 48px; margin-bottom: 30px; padding-bottom: 26px; }
.section-header-left { flex: 1; max-width: 580px; }
.section-header-right { flex: 1; max-width: 550px; align-items: flex-start; text-align: left; }
.section-tag { font-family: var(--font-mono); font-size: .65rem; font-weight: 500; letter-spacing: .12em; color: var(--accent-cyan); margin-bottom: 13px; }
.section-title { font-size: clamp(1.7rem,2.6vw,2.5rem); line-height: 1.2; letter-spacing: -.045em; font-weight: 600; }
.section-desc { font-size: .88rem; line-height: 1.8; color: var(--text-muted); }
.section-header-right .project-filter-group { justify-content: flex-start; gap: 6px; }
.filter-btn { border-radius: 6px; padding: 8px 11px; font-size: .66rem; min-height: 36px; }
.projects-grid { grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 22px; }
.project-card { background: var(--bg-card); border-radius: 14px; box-shadow: none; transition: border-color .2s, transform .2s; }
.project-card.featured-card { grid-column: auto; }
.project-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px #0003; }
.card-glow { display: none; }
.card-banner.has-photo { min-height: 0; padding: 14px; background-size: auto, 100% 100% !important; }
.card-header { padding: 22px 22px 10px; }
.card-body { padding: 0 22px 20px; }
.card-footer { padding: 18px 22px; background: #0a0e1733; }
.project-title { font-size: 1.18rem; letter-spacing: -.035em; }
.project-category { font-size: .64rem; }
.card-header { flex-wrap: wrap; gap: 8px; }
.project-status { font-size: .65rem; }
.project-desc { font-size: .83rem; line-height: 1.8; }
.project-tagline { font-size: .76rem; }
.project-features { font-size: .76rem; }
.banner-badge { font-size: .62rem; }
.wordmark-showcase-box { height: 72px; padding: 10px 16px; }
.card-inline-wordmark { max-height: 52px; max-width: min(100%, 300px); }
.partners-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.partner-card { background: var(--bg-card); border-radius: 12px; box-shadow: none; }
.partner-banner { min-height: 0; background-size: auto, 100% 100% !important; }
.partner-card-inner { padding: 18px; }
.partner-card.has-partner-banner .partner-logo-container { height: 64px; box-shadow: none; background: #0a0e1759; }
.partner-card p { font-size: .79rem; }
.timeline-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.timeline-card { background: var(--bg-card); border-radius: 12px; }
.timeline-banner { min-height: 0; max-height: none; background-size: auto, 100% 100% !important; }
.timeline-card-body { padding: 22px; }
.timeline-title { font-size: 1rem; }
.timeline-card p { font-size: .8rem; line-height: 1.8; }
.about-grid { grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 44px; align-items: start; }
.about-text p { font-size: .89rem; line-height: 1.85; }
.about-details-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 10px; }
.detail-tile { padding: 16px; background: var(--bg-card); border-radius: 8px; }
.detail-label { font-size: .59rem; }
.detail-value { font-size: .76rem; overflow-wrap: anywhere; }
.terminal-card { background: #0c1320; border-radius: 12px; box-shadow: 0 20px 60px #0003; }
.terminal-bar { flex-wrap: wrap; gap: 12px; padding: 16px; }
.terminal-title { font-size: .6rem; }
.terminal-body { max-height: 480px; overflow: auto; font-size: .67rem; line-height: 1.9; padding: 22px; scrollbar-width: thin; }
.terminal-source { color: var(--accent-cyan); font-family: var(--font-mono); font-size: .65rem; }
.credentials-block { margin-top: 64px; padding: 30px 0 0; border: 0; border-top: 1px solid var(--border-color); background: none; box-shadow: none; }
.credentials-heading { font-size: 1.5rem; line-height: 1.4; letter-spacing: -.035em; }
.credentials-sub { font-size: .84rem; line-height: 1.8; }
.cred-card { background: var(--bg-card); border-radius: 10px; box-shadow: none; }
.contact-box { padding: 36px; border-radius: 18px; background: #111827c9; box-shadow: none; }
.contact-widescreen-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 28px; }
.contact-channel { padding: 22px; background: #0a0e1770; border-radius: 10px; box-shadow: none; }
.contact-channel p { font-size: .83rem; }
.contact-widescreen-grid .quick-inquiry-box { background: #0a0e1770; padding: 26px; border-radius: 10px; justify-content: flex-start; gap: 24px; }
.capabilities-strip { grid-template-columns: repeat(4,minmax(0,1fr)); }
.cap-card { align-items: stretch; padding: 12px; }
.cap-thumb { width: 140px; height: auto; aspect-ratio: 16 / 10; object-fit: contain; }
.detail-tile .detail-value { font-size: .8rem; }
.inquiry-header h3 { font-size: 1.2rem; }
.inquiry-help { font-size: .75rem; line-height: 1.8; color: var(--text-muted); margin-top: 8px; }
.inquiry-help a { color: var(--accent-cyan); }
.form-footer { flex-wrap: wrap; gap: 12px; }
.form-status { flex-basis: 100%; color: var(--text-muted); font-size: .8rem; line-height: 1.6; }
#inquiryDraft label { display: block; margin-bottom: 8px; font-size: .8rem; }
#inquiryDraftText { font-family: var(--font-mono); font-size: .75rem; line-height: 1.7; }
.input-field, .form-input, .form-select, .form-textarea { border-radius: 7px; }
.footer { margin-top: 30px; background: #080d17b3; }
.footer-top { gap: 44px; }
.footer-brand { max-width: 260px; }
.footer-tagline { font-size: .8rem; line-height: 1.8; }
.footer-nav { gap: 28px; }
.footer-col a, .footer-info-text { font-size: .72rem; overflow-wrap: anywhere; }
.footer-copyright-banner { text-align: center; border-radius: 10px; box-shadow: none; }
.legal-page { width: calc(100% - 48px); max-width: 940px; padding-top: 130px; }
.legal-page h1 { font-size: clamp(2rem,4vw,3rem); letter-spacing: -.05em; line-height: 1.2; }
.legal-page h2 { margin-bottom: 16px; font-size: 1.2rem; }
.legal-page p, .legal-page li { line-height: 1.9; }
@media (min-width: 1600px) {
  .projects-grid { grid-template-columns: repeat(4,minmax(0,1fr)) !important; }
}
@media (min-width: 1400px) {
  .container, .nav-container { width: calc(100% - 200px); }
}
@media (min-width: 1101px) and (max-width: 1399px) {
  .container, .nav-container { width: min(92vw, 1480px); }
}
@media (max-width: 1100px) {
  .container, .nav-container { width: min(92vw, 1480px); }
  .nav-links { gap: 16px; }
  .nav-link { font-size: .72rem; }
  .hero-widescreen-grid { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 32px; }
  .hero-main-panel .hero-title { font-size: 3.25rem; }
  .hero-main-panel .hero-subtitle { font-size: .9rem; }
  .hero-main-panel .hero-cta-group { flex-wrap: wrap; }
  .deck-brand-tile { min-height: 0; padding: 13px; }
  .deck-status-pill { display: none; }
  .projects-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .partners-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .capabilities-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-top { flex-direction: column; }
  .footer-brand { max-width: 450px; }
  .footer-nav { width: 100%; }
}
@media (max-width: 900px) {
  .mobile-toggle { display: flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border-radius: 8px; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 20px 28px; background: #0d1422; border-bottom: 1px solid var(--border-color); gap: 6px; }
  .nav-links.open { display: flex; flex-direction: column; align-items: stretch; }
  .nav-link { padding: 12px; font-size: .9rem; }
  .nav-links .btn-primary-sm { text-align: center; margin-top: 8px; }
  .hero-section { padding-top: 126px; }
  .hero-widescreen-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-main-panel .hero-title { font-size: clamp(3.2rem,7vw,4.2rem); }
  .hero-main-panel .hero-subtitle { max-width: 580px; font-size: 1rem; }
  .deck-brand-tile { min-height: 0; }
  .deck-status-pill { display: inline-flex; }
  .deck-tile-bottom h3 { font-size: 1.15rem; }
  .deck-domain { font-size: .7rem; }
  .deck-telemetry-footer { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .section-header-split { flex-direction: column; gap: 16px; }
  .timeline-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .about-grid, .contact-widescreen-grid { grid-template-columns: 1fr; }
  .terminal-body { max-height: 340px; }
  .credentials-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .container, .nav-container { width: calc(100% - 28px); }
  .nav-container { min-height: 72px; padding-top: 10px; padding-bottom: 10px; }
  .hero-section { padding-top: 110px; padding-bottom: 30px; }
  .hero-main-panel .badge-pill { font-size: .65rem; margin-bottom: 24px; }
  .hero-eyebrow { font-size: .55rem; line-height: 1.8; max-width: 300px; }
  .hero-main-panel .hero-title { font-size: clamp(2.5rem,11vw,3.6rem); }
  .hero-main-panel .hero-subtitle { font-size: .9rem; line-height: 1.8; }
  .hero-main-panel .hero-cta-group { display: grid; grid-template-columns: 1fr; width: 100%; gap: 10px; margin-bottom: 28px; }
  .hero-cta-group a { justify-content: center; }
  .hero-main-panel .stats-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; padding-top: 22px; }
  .stat-number { font-size: 1.4rem; }
  .stat-label { font-size: .55rem; }
  .hero-showcase-panel { padding: 0; }
  .deck-cards-grid { grid-template-columns: 1fr; gap: 12px; }
  .deck-brand-tile { min-height: 0; padding: 14px; }
  .deck-tile-bottom h3 { font-size: .9rem; }
  .deck-domain { font-size: .52rem; overflow-wrap: anywhere; }
  .deck-tag { font-size: .5rem; }
  .deck-heading { font-size: .76rem; }
  .deck-status-pill { font-size: .48rem; }
  .telemetry-val { font-size: .57rem; }
  .telemetry-label { font-size: .46rem; }
  .hero-network-bar { margin-top: 36px; padding: 22px 14px; }
  .network-bar-links { width: 100%; display: grid; grid-template-columns: 1fr; }
  .net-pill { display: flex; font-size: .67rem; padding: 10px 12px; text-align: left; }
  .net-sub { margin-left: auto; }
  .section { padding: 48px 0; }
  .section-title { font-size: 1.85rem; }
  .section-header-split { gap: 14px; padding-bottom: 24px; }
  .section-desc { font-size: .84rem; }
  .projects-grid { grid-template-columns: 1fr !important; }
  .partners-grid, .timeline-grid, .capabilities-strip { grid-template-columns: 1fr; gap: 22px; }
  .card-header { padding-top: 20px; }
  .card-banner.has-photo { aspect-ratio: 2 / 1; }
  .partner-banner, .timeline-banner { max-height: none; }
  .about-grid { gap: 28px; }
  .about-details-grid { grid-template-columns: 1fr !important; }
  .detail-value { font-size: .85rem; }
  .credentials-grid { grid-template-columns: 1fr; }
  .credentials-grid .cred-card { grid-column: auto; }
  .credentials-heading { font-size: 1.4rem; }
  .terminal-bar { gap: 8px; }
  .terminal-title { font-size: .53rem; }
  .contact-box { padding: 24px 16px; }
  .contact-channel, .contact-widescreen-grid .quick-inquiry-box { padding: 18px; }
  .contact-email { font-size: .72rem; }
  .contact-phone { font-size: .87rem; }
  .email-wrap { flex-wrap: wrap; }
  .form-row { grid-template-columns: 1fr; }
  .footer-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 20px; }
  .footer-copyright-banner { padding: 22px 14px; }
  .legal-page { padding-top: 110px; }
  .legal-page ~ .footer .footer-nav { grid-template-columns: 1fr; }
  .legal-page .about-details-grid .detail-value { font-size: .85rem; }
  .legal-page .quick-inquiry-box { padding: 22px !important; }
}
/* Completion pass: stronger brand rhythm, consistent cards, useful motion, and compact mobile exploration. */
.reading-progress {
  --page-progress: 0;
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), #54f4c8 68%, #8a7dff);
  transform: scaleX(var(--page-progress));
  transform-origin: left center;
  box-shadow: 0 0 18px #00e5ff8f;
  pointer-events: none;
}
.brand-logo { position: relative; }
.logo-symbol { border: 1px solid #00e5ff55; background: linear-gradient(145deg,#092130,#08101c); box-shadow: inset 0 0 18px #00e5ff10, 0 0 0 1px #0006; }
.nav-link { position: relative; color: #c3ccda; transition: color .2s ease; }
.nav-link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 1px; background: var(--accent-cyan); transform: scaleX(0); transform-origin: center; transition: transform .2s ease; }
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.section { position: relative; isolation: isolate; }
.projects-section::before, .timeline-section::before, .contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, #1118277a 12%, #11182754 88%, transparent);
  border-block: 1px solid #ffffff08;
}
.partners-section::after, .about-section::after {
  content: "";
  position: absolute;
  width: min(42vw,720px);
  aspect-ratio: 1;
  right: -24vw;
  top: 8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle,#00e5ff0d,transparent 68%);
  pointer-events: none;
}
.section-header-left { position: relative; padding-left: 18px; }
.section-header-left::before { content: ""; position: absolute; inset: 2px auto 2px 0; width: 2px; border-radius: 2px; background: linear-gradient(180deg,var(--accent-cyan),#8a7dff); box-shadow: 0 0 18px #00e5ff55; }
.section-tag { display: block; }
.project-card, .partner-card, .timeline-card, .cred-card, .cap-card, .contact-channel {
  border-color: #ffffff16;
  transition: transform .24s cubic-bezier(.2,.8,.2,1), border-color .24s ease, box-shadow .24s ease;
}
.project-card { display: flex; flex-direction: column; overflow: hidden; }
.project-card .card-body { flex: 1; }
.project-card .card-footer { margin-top: auto; }
.project-card::after, .partner-card::after, .timeline-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(130deg,#ffffff08,transparent 25%,transparent 72%,#00e5ff08);
  opacity: .7;
}
.project-card, .partner-card, .timeline-card { position: relative; }
.cap-card { min-width: 0; }
.cap-info h4 { letter-spacing: -.02em; }
.mobile-gallery-toolbar { display: none; }

@media (min-width: 1700px) {
  .brand-subpill { display: inline-flex; align-items: center; min-height: 28px; margin-left: 4px; padding: 0 9px; border: 1px solid #ffffff14; border-radius: 999px; color: var(--text-dim); background: #ffffff05; font: 500 .52rem/1 var(--font-mono); letter-spacing: .1em; }
}
@media (hover: hover) and (pointer: fine) {
  .project-card:hover, .partner-card:hover, .timeline-card:hover, .cred-card:hover, .cap-card:hover, .contact-channel:hover { transform: translateY(-5px); border-color: #00e5ff42; box-shadow: 0 20px 50px #0005, 0 0 0 1px #00e5ff0a; }
  .deck-brand-tile:hover { border-color: #00e5ff55; box-shadow: 0 18px 44px #0005; }
}
@media (max-width: 900px) {
  .section-header-left { padding-left: 14px; }
  .mobile-gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 12px; color: var(--text-dim); }
  .mobile-gallery-label { font: 600 .61rem/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
  .mobile-gallery-actions { display: flex; align-items: center; gap: 8px; }
  .gallery-count { min-width: 42px; text-align: center; color: var(--text-muted); font: 600 .63rem/1 var(--font-mono); }
  .gallery-arrow { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid #ffffff1f; border-radius: 50%; color: #fff; background: #111827; cursor: pointer; }
  .gallery-arrow:disabled { opacity: .32; cursor: default; }
  [data-mobile-gallery] {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
    grid-template-columns: none !important;
    gap: 14px !important;
    width: auto;
    margin-inline: -14px;
    padding: 2px 14px 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 14px;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  [data-mobile-gallery]::-webkit-scrollbar { display: none; }
  [data-mobile-gallery] > * { scroll-snap-align: start; scroll-snap-stop: always; flex: 0 0 calc(100vw - 56px); max-width: 348px; }
  .network-bar-links[data-mobile-gallery] > * { flex-basis: min(78vw,290px); }
  .network-bar-links[data-mobile-gallery] .net-pill { display: flex; }
  .deck-cards-grid[data-mobile-gallery] > * { flex-basis: calc(100vw - 56px); }
  .projects-grid[data-mobile-gallery] > .project-card { flex-basis: calc(100vw - 48px); max-width: 356px; }
  .capabilities-strip[data-mobile-gallery] > .cap-card { flex-basis: calc(100vw - 72px); max-width: 330px; }
  .partners-grid[data-mobile-gallery] > .partner-card,
  .timeline-grid[data-mobile-gallery] > .timeline-card,
  .credentials-grid[data-mobile-gallery] > .cred-card,
  .contact-channels-col[data-mobile-gallery] > .contact-channel { flex-basis: calc(100vw - 64px); max-width: 340px; }
  .hero-network-bar .mobile-gallery-toolbar { width: 100%; margin-top: 4px; }
  .hero-network-bar .network-bar-links { width: calc(100% + 28px); }
  .projects-section .project-results { margin-bottom: 8px; }
  .project-card, .partner-card, .timeline-card, .cred-card, .cap-card { transform: none !important; }
  .contact-channels-col[data-mobile-gallery] > .contact-channel { justify-content: flex-start; }
  .contact-channels-col[data-mobile-gallery] .contact-action-wrap { margin-top: 8px; }
  .contact-channels-col[data-mobile-gallery] .channel-subtext { margin-top: 18px; }
  .footer { margin-top: 0; }
}
@media (min-width: 601px) and (max-width: 900px) {
  [data-mobile-gallery] > * { flex-basis: min(72vw,520px); max-width: 520px; }
  .network-bar-links[data-mobile-gallery] > * { flex-basis: min(44vw,320px); }
  .deck-cards-grid[data-mobile-gallery] > *,
  .projects-grid[data-mobile-gallery] > .project-card { flex-basis: min(72vw,520px); max-width: 520px; }
  .capabilities-strip[data-mobile-gallery] > .cap-card,
  .partners-grid[data-mobile-gallery] > .partner-card,
  .timeline-grid[data-mobile-gallery] > .timeline-card,
  .credentials-grid[data-mobile-gallery] > .cred-card,
  .contact-channels-col[data-mobile-gallery] > .contact-channel { flex-basis: min(62vw,450px); max-width: 450px; }
}

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