@import url("./focus-appearance.css?v=20260907-focus1");

:root {
  color-scheme: light;
  --paper: #f5f7f3;
  --paper-2: #eef2ec;
  --surface: #ffffff;
  --surface-soft: #fafcf9;
  --surface-alpha: rgba(255, 255, 255, 0.82);
  --ink: #10231b;
  --ink-2: #17372a;
  --heading: #10231b;
  --inverse: #10231b;
  --inverse-hover: #17372a;
  --on-inverse: #ffffff;
  --text: #1f2d27;
  --muted: #66736d;
  --muted-2: #5f6c65;
  --line: #d9e0da;
  --line-strong: #c7d0c8;
  --lime: #b8eb72;
  --lime-strong: #8fd142;
  --lime-soft: #e9f7d4;
  --mint: #a8ddcf;
  --blue: #8eb1ff;
  --orange: #f1b865;
  --danger: #b64d3f;
  --success: #2f7754;
  --shadow: 0 24px 70px rgba(21, 43, 33, 0.10);
  --shadow-soft: 0 12px 36px rgba(21, 43, 33, 0.07);
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1240px;
  --header-bg: rgba(245, 247, 243, 0.90);
  --mega-panel: #ffffff;
  --mega-panel-heading: #666666;
  --mega-panel-muted: #8a8a8a;
  --mega-panel-line: #f8e5cb;
  --mega-panel-accent: #00797c;
  --mega-curtain: rgba(12, 19, 16, 0.14);
  --site-header-height: 68px;
  --grid-line: rgba(16, 35, 27, 0.045);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-standard: cubic-bezier(.22, .61, .36, 1);
  --motion-fast: 180ms;
  --motion-medium: 340ms;
  --motion-slow: 680ms;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}

/* Global header mother component ------------------------------------------------
   The approved Academic Discovery header is the single source of truth for
   every public route. These high-specificity locks intentionally override
   legacy page themes that used to alter header height, color and controls. */
html body:not(#site-header-legacy-height-override) {
  --site-header-height: 60px !important;
}

html body .site-header.site-header.site-header {
  position: fixed !important;
  z-index: 120 !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: var(--site-header-height) !important;
  border-bottom: 1px solid #dcded6 !important;
  color: #10231b !important;
  background: rgba(255, 254, 250, .97) !important;
  box-shadow: 0 8px 24px rgba(47, 61, 53, .08) !important;
  backdrop-filter: blur(16px) saturate(125%) !important;
  transform: translate3d(0, 0, 0) !important;
}

html body .site-header.site-header.site-header.is-header-hidden {
  transform: translate3d(0, calc(-100% - 10px), 0) !important;
}

/* Safari can flash fixed translucent layers while a long academic result page
   is moving quickly. The header is already visually opaque, so avoid the
   unnecessary live backdrop recomposition on this route. */
html body.academic-index-page .site-header.site-header.site-header {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html body .site-header.site-header.site-header .header-inner.container {
  width: min(calc(100% - 48px), 1240px) !important;
  max-width: 1240px !important;
  height: var(--site-header-height) !important;
  grid-template-columns: 224px minmax(0, 1fr) 236px !important;
}

html body .site-header.site-header.site-header .portal-utility {
  display: none !important;
}

html body .site-header.site-header.site-header .brand-mark {
  width: 38px !important;
  height: 38px !important;
  border: 1px solid #dcded6 !important;
}

html body .site-header.site-header.site-header .brand-copy strong,
html body .site-header.site-header.site-header .nav-primary,
html body .site-header.site-header.site-header .nav-expand,
html body .site-header.site-header.site-header .header-icon,
html body .site-header.site-header.site-header .menu-toggle {
  color: #10231b !important;
}

html body .site-header.site-header.site-header .brand-copy strong {
  font-size: 17px !important;
  letter-spacing: .08em !important;
}

html body .site-header.site-header.site-header .brand-copy small {
  display: block !important;
  margin-top: 3px !important;
  color: #6f7d76 !important;
  font-size: 9px !important;
  letter-spacing: .16em !important;
}

html body .site-header.site-header.site-header .main-nav {
  gap: 18px !important;
}

html body .site-header.site-header.site-header .nav-primary {
  padding-inline: 10px !important;
  font-size: 15px !important;
}

html body .site-header.site-header.site-header .nav-primary::after {
  background: #1765f2 !important;
}

html body .site-header.site-header.site-header .header-actions {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 14px !important;
}

html body .site-header.site-header.site-header .header-quick-actions {
  display: flex !important;
  min-height: 42px !important;
  padding: 3px !important;
  border: 1px solid #dcded6 !important;
  border-radius: 12px !important;
  background: rgba(255, 254, 250, .86) !important;
  box-shadow: 0 4px 18px rgba(16, 35, 27, .035) !important;
}

html body .site-header.site-header.site-header .header-icon {
  display: grid !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 9px !important;
}

html body .site-header.site-header.site-header .header-icon + .header-icon::before {
  background: #dcded6 !important;
}

html body .site-header.site-header.site-header .header-icon:hover {
  color: #1765f2 !important;
  background: #f4f7fb !important;
}

html body .site-header.site-header.site-header .theme-toggle {
  display: grid !important;
}

html body .site-header.site-header.site-header .header-contact {
  display: inline-flex !important;
  min-height: 42px !important;
  padding-inline: 20px !important;
  border-radius: 11px !important;
  color: #fff !important;
  background: #0d2858 !important;
  box-shadow: none !important;
}

html body .site-header.site-header.site-header .header-contact:hover {
  color: #fff !important;
  background: #0b3f9d !important;
}

html body .site-header.site-header.site-header .menu-toggle {
  display: none !important;
}

/* One page-scroll indicator only: full-width and attached to the lower edge
   of the shared header. Legacy top-edge indicators are disabled globally. */
html body .site-header.site-header.site-header .site-scroll-progress {
  position: absolute !important;
  z-index: 121 !important;
  top: auto !important;
  right: 0 !important;
  bottom: -1px !important;
  left: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 2px !important;
}

html body .site-header.site-header.site-header .site-scroll-progress i {
  background: #5c8172 !important;
}

html body.ro-smooth-enabled::after,
html body.site-smooth-enabled.news-scroll-feedback::after {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  content: none !important;
}

html body :is(.lab-scroll-progress, .archive-progress, .release-page-progress, .detail-progress, .article-progress) {
  display: none !important;
}

body[data-page="home"] > main {
  padding-top: var(--site-header-height);
}

html[data-theme="dark"] body .site-header.site-header.site-header {
  border-bottom-color: #303a33 !important;
  color: #edf3ef !important;
  background: rgba(14, 20, 16, .96) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .24) !important;
}

html[data-theme="dark"] body .site-header.site-header.site-header .brand-mark,
html[data-theme="dark"] body .site-header.site-header.site-header .header-quick-actions {
  border-color: #303a33 !important;
  background: rgba(20, 28, 23, .9) !important;
}

html[data-theme="dark"] body .site-header.site-header.site-header :is(.brand-copy strong, .nav-primary, .nav-expand, .header-icon, .menu-toggle) {
  color: #edf3ef !important;
}

html[data-theme="dark"] body .site-header.site-header.site-header .brand-copy small {
  color: #9eaaa3 !important;
}

html[data-theme="dark"] body .site-header.site-header.site-header .header-icon + .header-icon::before {
  background: #303a33 !important;
}

@media (max-width: 960px) {
  html body:not(#site-header-legacy-height-override) { --site-header-height: 72px !important; }
  html body .site-header.site-header.site-header .header-inner.container {
    width: min(calc(100% - 36px), 1240px) !important;
    grid-template-columns: 1fr auto !important;
  }
  html body .site-header.site-header.site-header .main-nav {
    top: var(--site-header-height) !important;
    height: calc(100dvh - var(--site-header-height)) !important;
    gap: 0 !important;
  }
  html body .site-header.site-header.site-header .main-nav .nav-primary {
    padding: 17px 4px !important;
    font-size: 18px !important;
  }
  html body .site-header.site-header.site-header .header-contact {
    display: none !important;
  }
  html body .site-header.site-header.site-header .menu-toggle {
    display: block !important;
  }
}

@media (max-width: 640px) {
  html body:not(#site-header-legacy-height-override) { --site-header-height: 64px !important; }
  html body .site-header.site-header.site-header .header-inner.container {
    width: min(calc(100% - 28px), 1240px) !important;
  }
  html body .site-header.site-header.site-header .brand-mark {
    width: 34px !important;
    height: 34px !important;
  }
  html body .site-header.site-header.site-header .brand-copy small {
    display: none !important;
  }
  html body .site-header.site-header.site-header .header-icon {
    width: 38px !important;
    height: 38px !important;
  }
}

/* Cross-document view-transition snapshots race with the generated header
   shell and can briefly reveal an empty header slot. The site already owns a
   deterministic navigation curtain, so keep document navigation native. */

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0d1511;
  --paper-2: #111c17;
  --surface: #16211b;
  --surface-soft: #19261f;
  --surface-alpha: rgba(22, 33, 27, 0.84);
  --heading: #eff6f1;
  --text: #d8e2db;
  --muted: #9aa89f;
  --muted-2: #93a198;
  --line: #2b3931;
  --line-strong: #405148;
  --lime-soft: #263820;
  --header-bg: rgba(13, 21, 17, 0.89);
  --mega-panel: #161617;
  --mega-panel-heading: #f5f5f7;
  --mega-panel-muted: #a1a1a6;
  --mega-panel-line: rgba(255, 255, 255, 0.10);
  --mega-panel-accent: #61c4c5;
  --mega-curtain: rgba(0, 0, 0, 0.28);
  --grid-line: rgba(184, 235, 114, 0.055);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-width: 0;
  scroll-behavior: smooth;
  background: var(--paper);
}

html.site-smooth-scroll { scroll-behavior: auto; }

body.site-smooth-enabled { overflow-x: hidden; }

.site-smooth-viewport {
  position: fixed;
  z-index: 1;
  width: 100vw;
  max-width: none;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  contain: paint;
  transition: top 360ms var(--ease-out), height 360ms var(--ease-out);
}

.ro-smooth-viewport {
  transition: top 360ms var(--ease-out), height 360ms var(--ease-out);
}

.site-smooth-content {
  position: relative;
  width: 100%;
  transition: transform .68s cubic-bezier(.35, .73, .5, 1);
  will-change: transform;
}

.site-smooth-content.is-syncing { transition: none !important; }

.site-smooth-floating-sticky {
  will-change: top, left;
  transform: translateZ(0);
  transition: opacity 180ms ease;
}

body.site-footer-visible .site-smooth-floating-sticky {
  opacity: 0 !important;
  pointer-events: none !important;
}

.site-smooth-sticky-placeholder { user-select: none; }

.site-smooth-enabled .site-header { z-index: 100; }

body {
  width: 100%;
  min-width: 0;
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html.theme-changing body,
html.theme-changing .site-header,
html.theme-changing :where(.site-footer, .tool-nav, .page-subnav) {
  transition: color var(--motion-medium) var(--ease-standard), background-color var(--motion-medium) var(--ease-standard), border-color var(--motion-medium) var(--ease-standard);
}

body.nav-open,
body.standards-detail-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
h4,
ul,
ol,
dl,
dd {
  margin-top: 0;
}

::selection {
  color: var(--ink);
  background: var(--lime);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: white;
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  width: 100%;
  max-width: none;
  height: var(--site-header-height);
  overflow: visible;
  border-bottom: 1px solid rgba(16, 35, 27, 0.09);
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(150%);
  transform: translate3d(0, 0, 0);
  will-change: transform, background-color, backdrop-filter;
  transition:
    height 520ms var(--ease-out),
    transform 360ms var(--ease-out),
    background var(--motion-medium) var(--ease-standard),
    border-color var(--motion-medium) var(--ease-standard),
    box-shadow var(--motion-medium) var(--ease-standard),
    backdrop-filter var(--motion-medium) var(--ease-standard);
}

body:not([data-page="home"]) .site-header.is-scrolled {
  box-shadow: 0 10px 32px rgba(8, 25, 17, 0.065);
}

body:not([data-page="home"]) .site-header.is-header-hidden {
  transform: translate3d(0, calc(-100% - 10px), 0);
}

body:not([data-page="home"]):not(.site-smooth-enabled):not(.ro-smooth-enabled) {
  padding-top: var(--site-header-height);
}

body:not([data-page="home"]):not(.site-smooth-enabled):not(.ro-smooth-enabled) .site-header {
  position: fixed;
  right: 0;
  left: 0;
}

body.mega-open .site-header,
body.nav-open .site-header,
body.site-search-open .site-header {
  transform: translate3d(0, 0, 0) !important;
}

.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr) 236px;
  align-items: center;
  height: var(--site-header-height);
  transition: height 520ms var(--ease-out);
}

.portal-utility {
  height: 30px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
}

.portal-utility-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.portal-utility-inner > span {
  font-weight: 650;
}

.portal-utility nav {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 100%;
}

.portal-utility a {
  display: inline-flex;
  height: 100%;
  align-items: center;
  transition: color var(--motion-fast) ease;
}

.portal-utility a:hover {
  color: var(--heading);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  padding: 3px;
  color: var(--lime);
  background: #f7f7f2;
  box-shadow: inset 0 0 0 1px rgba(16, 35, 27, 0.08), 0 3px 10px rgba(9, 29, 20, 0.08);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  border-radius: 7px;
  object-fit: cover;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  color: var(--heading);
  font-size: 16px;
  font-weight: 680;
  letter-spacing: 0.06em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, .72vw, 12px);
  height: 100%;
}

.nav-cluster {
  display: flex;
  height: 100%;
  align-items: center;
}

.nav-entry {
  display: flex;
  height: 100%;
  align-items: center;
}

.nav-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 10px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 620;
  letter-spacing: .015em;
  white-space: nowrap;
  transition: color 320ms ease, text-shadow 320ms ease;
}

.nav-expand {
  display: none;
}

.nav-primary::after {
  position: absolute;
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 2px;
  background: var(--ink);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 420ms var(--ease-out), opacity 260ms ease;
}

.nav-primary:hover,
.nav-primary[aria-current="page"],
.nav-cluster.is-expanded .nav-primary {
  color: var(--heading);
}

.nav-primary:focus-visible {
  outline: 0;
  color: var(--heading);
}

.nav-primary:hover::after,
.nav-primary:focus-visible::after,
.nav-primary[aria-current="page"]::after,
.nav-cluster.is-expanded .nav-primary::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mega-menu {
  position: fixed;
  z-index: 103;
  top: calc(var(--site-header-height) - 1px);
  left: 50%;
  width: min(760px, calc(100vw - 48px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0 0 18px 18px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 24px 70px rgba(8, 25, 17, .16), 0 4px 14px rgba(8, 25, 17, .06);
  backdrop-filter: blur(22px) saturate(145%);
  backface-visibility: hidden;
  contain: layout paint;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, 0, 0);
  transform-origin: top center;
  visibility: hidden;
  will-change: opacity;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.nav-cluster.is-expanded .mega-menu {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 180ms ease, visibility 0s;
}

.nav-backdrop {
  display: none;
}

.mega-shell {
  display: grid;
  min-height: 0;
}

.mega-label {
  display: none;
}

.mega-sections {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 14px;
  background: var(--surface);
}

.mega-section-head {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 90px;
  padding: 16px 18px;
  border-left: 1px solid var(--line);
  transition: color 160ms ease, background 200ms ease;
}

.mega-section-head:first-child {
  border-left: 0;
}

.mega-section-index {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
}

.mega-section-head > span:last-child {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.mega-section-head strong {
  color: var(--heading);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.mega-section-head small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mega-section-head:hover,
.mega-section-head:focus-visible {
  background: var(--surface-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.header-quick-actions {
  display: flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-alpha) 88%, transparent);
  box-shadow: 0 4px 18px rgba(16, 35, 27, .035);
  transition: border-color var(--motion-fast) ease, background var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.header-icon {
  display: grid;
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  color: var(--heading);
  background: transparent;
  cursor: pointer;
  transition: background var(--motion-fast) ease, color var(--motion-fast) ease, transform 260ms var(--ease-out);
}

.header-icon + .header-icon::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: -3px;
  width: 1px;
  background: var(--line);
  content: "";
  transition: opacity var(--motion-fast) ease;
}

.header-icon:hover {
  color: var(--success);
  background: var(--surface);
}

.header-icon:active {
  box-shadow: none;
  transform: translateY(0) scale(.965);
}

.ui-icon {
  display: block;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  transition: opacity 180ms ease, transform 320ms var(--ease-out);
}

.ui-icon-search { -webkit-mask-image: url("./icons/lucide/search.svg"); mask-image: url("./icons/lucide/search.svg"); }
.ui-icon-sun { -webkit-mask-image: url("./icons/lucide/sun.svg"); mask-image: url("./icons/lucide/sun.svg"); }
.ui-icon-moon { -webkit-mask-image: url("./icons/lucide/moon.svg"); mask-image: url("./icons/lucide/moon.svg"); }
.ui-icon-chevron-right { -webkit-mask-image: url("./icons/lucide/chevron-right.svg"); mask-image: url("./icons/lucide/chevron-right.svg"); }

.theme-icon-dark { display: none; }
html[data-theme="dark"] .theme-icon-light { display: none; }
html[data-theme="dark"] .theme-icon-dark { display: block; }

.header-icon:hover .ui-icon {
  transform: scale(1.08);
}

html.theme-changing .theme-toggle .ui-icon {
  opacity: .55;
  transform: rotate(28deg) scale(.82);
}

.header-contact {
  min-height: 46px;
  padding-inline: 20px;
  border-radius: 11px;
}

.header-resource {
  color: var(--muted);
  font-size: 13px;
  font-weight: 560;
}

.header-resource:hover {
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 17px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--ink);
  content: "";
  transition: 180ms ease;
}

.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::before {
  transform: translateY(5.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-5.5px) rotate(-45deg);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: white;
  background: var(--ink);
  box-shadow: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  transition: transform 260ms var(--ease-out), background var(--motion-fast) ease, border-color var(--motion-fast) ease, box-shadow 260ms var(--ease-out);
}

.button:hover {
  background: var(--ink-2);
  box-shadow: 0 10px 24px rgba(16, 35, 27, 0.15);
  transform: translateY(-1px);
}

.button:active {
  box-shadow: none;
  transform: translateY(0) scale(.985);
}

.button:disabled {
  color: rgba(255, 255, 255, 0.62);
  background: #607069;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.button-light {
  border-color: var(--line-strong);
  color: var(--heading);
  background: var(--surface-alpha);
}

.button-light:hover {
  border-color: var(--heading);
  color: var(--heading);
  background: var(--surface);
}

.button-lime {
  color: var(--ink);
  background: var(--lime);
}

.button-lime:hover {
  background: #c5f287;
}

.button-plain {
  min-height: 40px;
  padding-inline: 0;
  color: var(--ink);
  background: transparent;
}

.button-plain:hover {
  background: transparent;
  box-shadow: none;
}

.button-sm {
  min-height: 40px;
  padding-inline: 15px;
  font-size: 13px;
}

.arrow {
  font-size: 1.08em;
  transition: transform 280ms var(--ease-out);
}

a:hover .arrow,
button:hover .arrow {
  transform: translateX(3px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #516158;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 22px;
  height: 2px;
  background: var(--lime-strong);
  content: "";
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 78px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(16, 35, 27, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 35, 27, 0.045) 1px, transparent 1px),
    var(--paper);
  background-position: center top;
  background-size: 72px 72px;
}

.home-hero::before {
  position: absolute;
  top: -260px;
  left: 34%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 235, 114, 0.26), rgba(184, 235, 114, 0) 68%);
  content: "";
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 62px;
}

.hero-copy h1 {
  max-width: 680px;
  margin-bottom: 25px;
  color: var(--ink);
  font-size: clamp(46px, 5.15vw, 68px);
  font-weight: 640;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.hero-copy h1 .accent {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}

.hero-copy h1 .accent::after {
  position: absolute;
  z-index: -1;
  right: -4px;
  bottom: 4px;
  left: -4px;
  height: 16px;
  border-radius: 3px;
  background: var(--lime);
  content: "";
}

.hero-lead {
  max-width: 590px;
  margin-bottom: 30px;
  color: #526159;
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tag {
  padding: 7px 11px;
  border: 1px solid rgba(16, 35, 27, 0.12);
  border-radius: 999px;
  color: #526159;
  background: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 560;
}

.hero-workbench {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  color: white;
  background: #0d2119;
  box-shadow: 0 32px 90px rgba(10, 33, 24, 0.24);
}

.workbench-topbar {
  display: flex;
  height: 60px;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.workbench-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 620;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(184, 235, 114, 0.12);
}

.workbench-state {
  color: rgba(255, 255, 255, 0.52);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.workbench-body {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  min-height: 440px;
}

.field-map {
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(rgba(184, 235, 114, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 235, 114, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 40% 30%, rgba(118, 178, 132, 0.22), transparent 48%),
    #10271e;
  background-size: 42px 42px, 42px 42px, auto, auto;
}

.field-map svg {
  position: absolute;
  inset: 7% 4% 8%;
  width: 92%;
  height: 85%;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.22));
}

.map-scan {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 18%;
  width: 1px;
  background: linear-gradient(transparent, var(--lime), transparent);
  box-shadow: 0 0 24px rgba(184, 235, 114, 0.7);
  animation: mapScan 7s ease-in-out infinite alternate;
}

@keyframes mapScan {
  to { transform: translateX(290px); }
}

.map-floating {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 18px;
  min-width: 178px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  background: rgba(9, 27, 20, 0.82);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.map-floating small {
  display: block;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.map-floating strong {
  display: block;
  font-size: 14px;
  font-weight: 620;
}

.mini-progress {
  height: 4px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.mini-progress span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: var(--lime);
}

.workbench-inspector {
  padding: 22px 18px;
  background: #0d2119;
}

.inspector-label {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.inspector-card {
  margin-bottom: 10px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.inspector-card span {
  display: block;
  color: rgba(255, 255, 255, 0.44);
  font-size: 10px;
}

.inspector-card strong {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
}

.inspector-card strong em {
  color: var(--lime);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
}

.inspector-chart {
  display: flex;
  height: 76px;
  align-items: flex-end;
  gap: 4px;
  margin: 18px 0;
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.inspector-chart span {
  flex: 1;
  min-width: 4px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(var(--lime), rgba(184, 235, 114, 0.2));
}

.inspector-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
}

.capability-bar {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.capability-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.capability-item {
  position: relative;
  min-height: 112px;
  padding: 24px 24px 22px 52px;
  border-right: 1px solid var(--line);
}

.capability-item:first-child {
  border-left: 1px solid var(--line);
}

.capability-number {
  position: absolute;
  top: 28px;
  left: 22px;
  color: var(--lime-strong);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
}

.capability-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.capability-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.section {
  padding: 108px 0;
}

.section-tight {
  padding: 76px 0;
}

.section-white {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.section-dark {
  color: white;
  background: var(--ink);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: end;
  gap: 60px;
  margin-bottom: 48px;
}

.section-heading h2 {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1.16;
}

.section-heading p {
  max-width: 520px;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.section-dark .section-heading h2,
.section-dark .section-heading p {
  color: white;
}

.section-dark .section-heading p {
  color: rgba(255, 255, 255, 0.62);
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  position: relative;
  display: flex;
  min-height: 355px;
  flex-direction: column;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.service-card:hover {
  border-color: #b8c3ba;
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.service-index {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 76px;
  color: var(--muted-2);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.service-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 11px;
  color: var(--ink);
  background: var(--lime-soft);
}

.service-icon svg {
  width: 20px;
  height: 20px;
}

.service-card h3 {
  margin-bottom: 13px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 630;
  letter-spacing: -0.025em;
}

.service-card p {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.service-card .text-link {
  margin-top: auto;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--ink);
  font-size: 13px;
  font-weight: 680;
}

.product-stage {
  display: grid;
  min-height: 570px;
  grid-template-columns: 0.72fr 1.28fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: #0b1a14;
}

.product-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.product-kicker {
  color: var(--lime);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-copy h3 {
  max-width: 430px;
  margin: 28px 0 18px;
  color: white;
  font-size: clamp(31px, 3.4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.18;
}

.product-copy p {
  max-width: 410px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
}

.product-points {
  display: grid;
  gap: 12px;
  margin: 38px 0;
}

.product-point {
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

.product-point::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  content: "";
}

.product-ui {
  position: relative;
  min-width: 0;
  padding: 42px 34px 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(184, 235, 114, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 235, 114, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(108, 167, 122, 0.14), transparent 48%),
    #0f231a;
  background-size: 40px 40px, 40px 40px, auto, auto;
}

.app-window {
  min-height: 526px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px 16px 0 0;
  background: #f8faf7;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.app-top {
  display: flex;
  height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid #e0e5df;
  color: var(--ink);
  background: white;
}

.app-top strong {
  font-size: 12px;
  font-weight: 680;
}

.app-top span {
  color: #7b867f;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.app-content {
  padding: 22px;
}

.app-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 16px;
}

.app-search span {
  display: flex;
  height: 42px;
  align-items: center;
  padding-inline: 14px;
  border: 1px solid #dce2dc;
  border-radius: 8px;
  color: #7c8780;
  background: white;
  font-size: 11px;
}

.app-search b {
  display: grid;
  min-width: 70px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--ink);
  font-size: 11px;
}

.app-filter-row {
  display: flex;
  gap: 6px;
  margin-bottom: 15px;
}

.app-filter-row span {
  padding: 5px 8px;
  border: 1px solid #dce2dc;
  border-radius: 999px;
  color: #6f7a73;
  background: white;
  font-size: 10px;
}

.app-filter-row span:first-child {
  border-color: #b2d78f;
  color: #33552d;
  background: #edf7e2;
}

.app-result {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid #e2e6e1;
}

.app-result strong,
.app-result span {
  display: block;
}

.app-result strong {
  margin-bottom: 5px;
  color: #1c2b24;
  font-size: 11px;
  font-weight: 650;
}

.app-result span {
  color: #7e8882;
  font-size: 10px;
}

.app-result em {
  padding: 4px 7px;
  border-radius: 6px;
  color: #2c673d;
  background: #e5f5e6;
  font-size: 10px;
  font-style: normal;
}

.resource-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr 0.65fr;
  grid-auto-rows: 250px;
  gap: 16px;
}

.resource-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.resource-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.resource-card.featured {
  grid-row: span 2;
  color: white;
  background: var(--ink);
}

.resource-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.resource-type {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-2);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured .resource-type {
  color: rgba(255, 255, 255, 0.5);
}

.resource-card h3 {
  margin: auto 0 10px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 630;
  letter-spacing: -0.025em;
}

.resource-card.featured h3 {
  margin-top: 74px;
  color: white;
  font-size: clamp(30px, 3.4vw, 44px);
}

.resource-card p {
  max-width: 500px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
}

.featured p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.resource-search-preview {
  margin-top: auto;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
}

.resource-search-preview div {
  display: flex;
  height: 45px;
  align-items: center;
  justify-content: space-between;
  padding-inline: 14px 9px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
}

.resource-search-preview b {
  display: grid;
  width: 66px;
  height: 31px;
  place-items: center;
  border-radius: 6px;
  color: var(--ink);
  background: var(--lime);
  font-size: 10px;
}

.home-cta,
.page-cta {
  position: relative;
  overflow: hidden;
  color: white;
  background: var(--ink);
}

.home-cta::after,
.page-cta::after {
  position: absolute;
  right: -160px;
  bottom: -260px;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(184, 235, 114, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(184, 235, 114, 0.035), 0 0 0 140px rgba(184, 235, 114, 0.025);
  content: "";
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 410px;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 70px;
}

.cta-inner h2 {
  max-width: 750px;
  margin-bottom: 18px;
  color: white;
  font-size: clamp(38px, 4.7vw, 60px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.12;
}

.cta-inner p {
  max-width: 630px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}

.cta-note {
  color: rgba(255, 255, 255, 0.44);
  font-size: 11px;
}

.site-footer {
  position: relative;
  z-index: 40;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #f1f2ec;
}

.footer-main {
  display: grid;
  min-height: 218px;
  grid-template-columns: minmax(190px, .82fr) minmax(390px, 1.48fr) minmax(265px, 1.1fr);
  align-items: center;
  gap: clamp(20px, 2vw, 34px);
  padding: 18px 0 16px;
}

.footer-brand {
  align-self: center;
}

.footer-directory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.35vw, 22px);
}

.footer-intro {
  max-width: 270px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.footer-brand-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin: 10px 0 0;
  color: var(--muted-2);
  font-size: 9px;
}

.footer-brand-meta > div,
.footer-brand-meta dd {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
}

.footer-brand-meta dt {
  color: var(--heading);
  font-weight: 720;
}

.footer-brand-meta dd i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #70a84c;
}

.footer-col strong {
  display: block;
  margin-bottom: 10px;
  color: var(--heading);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .02em;
}

.footer-col a,
.footer-col span {
  display: block;
  width: fit-content;
  color: var(--muted);
  font-size: 12px;
}

.footer-col a:hover {
  color: var(--lime);
}

.footer-col a {
  display: flex;
  min-height: 28px;
  align-items: center;
  margin: 0;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: #365443;
  transform: translateX(2px);
}

.footer-observatory {
  display: grid;
  min-width: 0;
  min-height: 184px;
  align-self: stretch;
  grid-template-rows: auto auto auto minmax(48px, 1fr);
  align-content: center;
  padding: 2px 0 1px clamp(24px, 2.5vw, 38px);
  border-left: 1px solid var(--line-strong);
}

.footer-observatory-head {
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line-strong);
}

.footer-observatory-head p {
  margin: 0 0 2px;
  color: #2f719b;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  font-weight: 760;
  letter-spacing: .18em;
}

.footer-observatory-head h2 {
  margin: 0;
  color: var(--heading);
  font-size: 17px;
  font-weight: 720;
  letter-spacing: .03em;
}

.footer-observatory-total {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 7px;
  border-bottom: 1px solid var(--line);
}

.footer-observatory-total span,
.footer-observatory-today dt,
.footer-observatory-trend-head {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 650;
}

.footer-observatory-total output {
  overflow: hidden;
  color: #245a48;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(28px, 2.4vw, 36px);
  font-weight: 760;
  line-height: .98;
  letter-spacing: .055em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-observatory[data-state="error"] .footer-observatory-total output {
  font-size: 17px;
  letter-spacing: .03em;
}

.footer-observatory-today {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.footer-observatory-today > div {
  min-width: 0;
}

.footer-observatory-today > div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.footer-observatory-today dt,
.footer-observatory-today dd {
  margin: 0;
}

.footer-observatory-today dd {
  margin-top: 2px;
  color: #245a48;
  font-size: 18px;
  font-weight: 760;
  line-height: 1.05;
}

.footer-observatory-trend {
  display: grid;
  min-height: 0;
  grid-template-rows: auto 1fr;
  padding-top: 6px;
}

.footer-observatory-trend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-observatory-trend-head small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 560;
}

.footer-observatory-trend-head small i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #86bb50;
}

.footer-observatory-trend ol {
  display: grid;
  min-height: 0;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
}

.footer-observatory-trend li {
  display: grid;
  height: 100%;
  min-height: 34px;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 3px;
}

.footer-observatory-trend li i {
  display: block;
  width: 100%;
  height: calc(var(--visit-level, 0) * 1%);
  min-height: 2px;
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(180deg, #a8cd68 0%, #3e8c69 100%);
  transform-origin: bottom;
  transition: height 460ms cubic-bezier(.2,.8,.2,1);
}

.footer-observatory-trend li span {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  line-height: 1;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
}

.footer-bottom {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.footer-bottom-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-bottom-status {
  padding-left: 16px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted-2);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-bottom-links > a,
.footer-filing {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-filing:hover,
.footer-filing:focus-visible,
.footer-bottom-links > a:hover,
.footer-bottom-links > a:focus-visible {
  color: #365443;
}

.footer-wordmark {
  display: block;
  width: min(214px, 100%);
  background: transparent;
}

.footer-wordmark img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-backtop {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  color: var(--heading);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.footer-backtop img {
  width: 14px;
  height: 14px;
  opacity: .72;
  transform: rotate(-90deg);
  transition: transform 180ms ease;
}

.footer-backtop:hover img,
.footer-backtop:focus-visible img {
  transform: rotate(-90deg) translateX(2px);
}

.site-scroll-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.site-scroll-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--lime-strong);
  transform: scaleX(var(--page-progress, 0));
  transform-origin: left;
  transition: transform 80ms linear;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Resource portal home */
body[data-page="home"] .site-header {
  position: fixed;
  right: 0;
  left: 0;
  border-bottom: 0 !important;
}

body[data-page="home"] .site-scroll-progress {
  display: none;
}

body[data-page="home"] .site-header:not(.is-scrolled) {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body[data-page="home"].mega-open .site-header:not(.is-scrolled) {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body[data-page="home"] .site-header:not(.is-scrolled) .brand-copy strong,
body[data-page="home"] .site-header:not(.is-scrolled) .nav-primary,
body[data-page="home"] .site-header:not(.is-scrolled) .header-icon {
  color: white;
}

body[data-page="home"] .site-header:not(.is-scrolled) .brand-copy small {
  color: rgba(255, 255, 255, 0.62);
}

body[data-page="home"] .site-header:not(.is-scrolled) .nav-primary::after {
  background: var(--lime);
}

body[data-page="home"] .site-header:not(.is-scrolled) .portal-utility {
  border-bottom-color: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .68);
}

body[data-page="home"] .site-header:not(.is-scrolled) .portal-utility a:hover {
  color: white;
}

body[data-page="home"] .site-header:not(.is-scrolled) .header-quick-actions,
body[data-page="home"] .site-header:not(.is-scrolled) .header-contact {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(10, 28, 20, 0.22);
  backdrop-filter: blur(14px);
}

body[data-page="home"] .site-header:not(.is-scrolled) .header-icon:hover,
body[data-page="home"] .site-header:not(.is-scrolled) .header-contact:hover {
  background: rgba(10, 28, 20, 0.48);
}

body[data-page="home"] .site-header:not(.is-scrolled) .header-icon + .header-icon::before {
  background: rgba(255, 255, 255, .22);
}

body[data-page="home"] .site-header.is-scrolled {
  box-shadow: 0 8px 30px rgba(8, 25, 17, 0.08);
}

.portal-hero-stage {
  position: relative;
  height: 118svh;
  background: #10231b;
  --hero-media-y: 0px;
  --hero-copy-y: 0px;
  --hero-copy-opacity: 1;
  --hero-ui-opacity: 1;
  --hero-shade-opacity: 1;
}

.portal-hero {
  display: grid;
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  color: white;
  background: #10231b;
}

.portal-hero-media,
.portal-hero-media::after,
.portal-hero-shade {
  position: absolute;
  inset: 0;
}

.portal-hero-media {
  transform: translate3d(0, var(--hero-media-y), 0);
  will-change: transform;
}

.portal-hero-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 52%;
  transform: scale(1.065);
  animation: portalLandscape 22s ease-in-out infinite alternate;
}

.portal-hero-shade {
  opacity: var(--hero-shade-opacity);
  background:
    linear-gradient(180deg, rgba(6, 18, 12, 0.42) 0%, rgba(8, 24, 16, 0.28) 34%, rgba(7, 21, 14, 0.58) 100%),
    radial-gradient(circle at 50% 42%, rgba(24, 59, 39, 0.05), rgba(4, 15, 10, 0.34) 76%);
}

html[data-theme="dark"] .portal-hero-shade {
  background:
    linear-gradient(180deg, rgba(4, 12, 8, 0.56) 0%, rgba(5, 16, 10, 0.42) 40%, rgba(3, 11, 7, 0.72) 100%),
    radial-gradient(circle at 50% 42%, transparent, rgba(3, 10, 7, 0.38) 76%);
}

.portal-contours {
  position: absolute;
  right: 0;
  bottom: -3%;
  left: 0;
  width: 100%;
  height: 66%;
  opacity: 0.42;
  filter: drop-shadow(0 0 10px rgba(184, 235, 114, 0.1));
}

.portal-contours path {
  fill: none;
  stroke: rgba(223, 248, 185, 0.52);
  stroke-width: 1.15;
  stroke-dasharray: 5 9;
  vector-effect: non-scaling-stroke;
  animation: portalContour 28s linear infinite;
}

.portal-contours path:nth-child(2) { animation-delay: -5s; }
.portal-contours path:nth-child(3) { animation-delay: -10s; }
.portal-contours path:nth-child(4) { animation-delay: -15s; }

.portal-points i {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(223, 248, 185, 0.7);
  border-radius: 50%;
  background: rgba(184, 235, 114, 0.65);
  box-shadow: 0 0 0 8px rgba(184, 235, 114, 0.07), 0 0 24px rgba(184, 235, 114, 0.35);
  animation: portalPoint 4.8s ease-in-out infinite;
}

.portal-points i:nth-child(1) { top: 23%; left: 12%; }
.portal-points i:nth-child(2) { top: 34%; right: 16%; animation-delay: -1.2s; }
.portal-points i:nth-child(3) { right: 34%; bottom: 24%; animation-delay: -2.5s; }
.portal-points i:nth-child(4) { bottom: 18%; left: 23%; animation-delay: -3.6s; }
.portal-points i:nth-child(5) { top: 19%; left: 64%; animation-delay: -4.1s; }

.portal-hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 128px 0 138px;
  opacity: var(--hero-copy-opacity);
  transform: translate3d(0, var(--hero-copy-y), 0);
  will-change: opacity, transform;
}

.portal-hero-copy {
  width: 100%;
  text-align: center;
}

.portal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 21px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.portal-kicker span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 7px rgba(184, 235, 114, 0.1);
  animation: portalPoint 3.6s ease-in-out infinite;
}

.portal-hero h1 {
  max-width: 1120px;
  margin: 0 auto 24px;
  color: white;
  font-size: clamp(56px, 7vw, 94px);
  font-weight: 600;
  letter-spacing: -0.062em;
  line-height: 1.02;
  text-wrap: balance;
  text-shadow: 0 4px 34px rgba(0, 0, 0, 0.22);
}

.portal-hero h1 em {
  color: #dcf7b6;
  font-style: normal;
  font-weight: inherit;
}

.kinetic-title-lead,
.kinetic-window {
  display: block;
}

.kinetic-title-lead {
  animation: kineticTitleIn 900ms cubic-bezier(.2,.72,.2,1) both;
}

.kinetic-window {
  height: 1.08em;
  overflow: hidden;
  color: #dcf7b6;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  animation: kineticTitleIn 900ms 120ms cubic-bezier(.2,.72,.2,1) both;
}

.kinetic-rail {
  display: block;
  will-change: transform;
  animation: kineticWords 12s 1.15s cubic-bezier(.72,0,.28,1) infinite;
}

.kinetic-rail > span {
  display: block;
  height: 1.08em;
  line-height: 1.08;
  white-space: nowrap;
}

.portal-hero-copy > p:not(.portal-kicker) {
  max-width: 720px;
  margin: 0 auto 31px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  line-height: 1.8;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.portal-nowrap {
  white-space: nowrap;
}

.portal-search {
  display: grid;
  width: min(760px, 100%);
  min-height: 62px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 auto 26px;
  padding: 7px 7px 7px 20px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 16px;
  color: #1a2c24;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 60px rgba(2, 15, 9, 0.24);
  backdrop-filter: blur(18px) saturate(145%);
  transition: border-color 220ms ease, box-shadow 420ms var(--ease-out), transform 420ms var(--ease-out), background 220ms ease;
}

.portal-search:focus-within {
  border-color: rgba(220, 247, 182, .94);
  background: rgba(255,255,255,.98);
  box-shadow: 0 28px 82px rgba(2,15,9,.31), 0 0 0 4px rgba(220,247,182,.14);
  transform: translateY(-2px);
}

.portal-search input {
  min-width: 0;
  height: 46px;
  padding: 0;
  border: 0;
  outline: 0;
  color: #173026;
  background: transparent;
  font-size: 15px;
}

.portal-search input::placeholder { color: #77827c; }

.portal-search button {
  min-width: 116px;
  height: 48px;
  padding: 0 19px;
  border: 0;
  border-radius: 11px;
  color: white;
  background: #153628;
  cursor: pointer;
  font-size: 13px;
  font-weight: 680;
  transition: background 180ms ease, transform 180ms ease;
}

.portal-search button:hover {
  background: #23513d;
  transform: translateY(-1px);
}

.portal-search button:active { transform: translateY(0) scale(.985); }

.portal-shortcuts {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
  margin-top: 14px;
}

.portal-shortcuts a {
  position: relative;
  display: grid;
  min-height: 104px;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 13px;
  padding: 17px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 15px;
  color: white;
  background: rgba(7, 26, 17, 0.32);
  text-align: left;
  backdrop-filter: blur(16px) saturate(125%);
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.portal-shortcuts a:hover {
  border-color: rgba(223, 248, 185, 0.56);
  background: rgba(9, 33, 22, 0.58);
  transform: translateY(-3px);
}

.portal-shortcuts a:focus-visible {
  border-color: rgba(223, 248, 185, 0.72);
  background: rgba(9, 33, 22, 0.64);
  outline-color: rgba(223,248,185,.62);
}

.portal-shortcuts a:active { transform: translateY(0) scale(.99); }

.portal-shortcut-index {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  color: #dcf7b6;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: .05em;
}

.portal-shortcuts strong,
.portal-shortcuts small {
  display: block;
}

.portal-shortcuts strong {
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 650;
}

.portal-shortcuts small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
}

.portal-shortcuts b {
  position: absolute;
  top: 8px;
  right: 9px;
  padding: 3px 6px;
  border-radius: 999px;
  color: rgba(223, 248, 185, 0.82);
  background: rgba(184, 235, 114, 0.1);
  font-size: 8px;
  font-weight: 680;
}

.portal-swipe-hint {
  display: none;
}

.portal-scroll {
  position: absolute;
  z-index: 4;
  bottom: 22px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translateX(-50%);
  opacity: var(--hero-ui-opacity);
}

.portal-scroll i {
  position: relative;
  width: 1px;
  height: 27px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
}

.portal-scroll i::after {
  position: absolute;
  top: -70%;
  left: 0;
  width: 1px;
  height: 70%;
  background: white;
  content: "";
  animation: portalScroll 2s ease-in-out infinite;
}

.motion-toggle {
  position: absolute;
  z-index: 5;
  right: 22px;
  bottom: 21px;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(5, 18, 11, 0.28);
  cursor: pointer;
  font-size: 10px;
  backdrop-filter: blur(10px);
  opacity: var(--hero-ui-opacity);
}

.motion-pause {
  width: 8px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.motion-play {
  display: none;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

.motion-toggle[aria-pressed="true"] .motion-pause { display: none; }
.motion-toggle[aria-pressed="true"] .motion-play { display: block; }

.portal-hero.motion-paused *,
.portal-hero.motion-paused *::before,
.portal-hero.motion-paused *::after {
  animation-play-state: paused !important;
}

.portal-hero.motion-paused .kinetic-rail {
  animation: none !important;
  transform: translateY(0) !important;
}

.portal-statusbar {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.portal-status-row {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.portal-status-row::-webkit-scrollbar { display: none; }

.portal-status-row > * {
  flex: 0 0 auto;
  padding: 0 17px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.portal-status-row > :first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 0;
  color: var(--heading);
}

.portal-status-row > :last-child { border-right: 0; }
.portal-status-row a:hover { color: var(--heading); }

.portal-status-row i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(47, 119, 84, 0.09);
}

.portal-heading {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  align-items: end;
  gap: 70px;
  margin-bottom: 46px;
}

.portal-heading h2,
.portal-available-intro h2 {
  margin-bottom: 0;
  color: var(--heading);
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 610;
  letter-spacing: -0.052em;
  line-height: 1.12;
  text-wrap: balance;
}

.portal-heading > p,
.portal-available-intro > p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.portal-story-section {
  position: relative;
  padding: 92px 0 108px;
  overflow: clip;
  background: var(--paper);
  scroll-margin-top: var(--site-header-height);
}

.portal-story-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 54px;
}

.portal-story-heading h2 {
  max-width: 720px;
  margin: 0;
  color: var(--heading);
  font-size: clamp(44px, 5.6vw, 74px);
  font-weight: 610;
  letter-spacing: -.062em;
  line-height: 1.04;
  text-wrap: balance;
}

.portal-story-heading > p {
  max-width: 500px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.portal-story-shell {
  display: grid;
  width: min(calc(100% - 48px), 1420px);
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
  align-items: start;
  gap: clamp(42px, 6vw, 92px);
  margin-inline: auto;
}

.portal-story-visuals {
  position: sticky;
  top: calc(var(--site-header-height) + 24px);
  height: calc(100svh - var(--site-header-height) - 48px);
  min-height: 560px;
  overflow: hidden;
  border-radius: 24px;
  background: #10231b;
  box-shadow: 0 26px 70px rgba(10, 30, 20, .12);
  isolation: isolate;
}

.portal-story-visual {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.045);
  visibility: hidden;
  transition: opacity 460ms ease, transform 900ms var(--ease-out), visibility 0s linear 900ms;
}

.portal-story-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,18,12,.04) 30%, rgba(4,15,10,.68) 100%);
  content: "";
}

.portal-story-visual.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  visibility: visible;
  transition: opacity 520ms ease, transform 1100ms var(--ease-out), visibility 0s;
}

.portal-story-visual img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.portal-story-visual:nth-child(1) img { object-position: 50% 50%; }
.portal-story-visual:nth-child(2) img { object-position: 50% 52%; }
.portal-story-visual:nth-child(3) img { object-position: 56% 50%; }
.portal-story-visual:nth-child(4) img { object-position: 50% 50%; }

.portal-story-visual figcaption {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 25px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  letter-spacing: .04em;
}

.portal-story-visual figcaption span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: #e0f6c2;
  font-size: 10px;
}

.portal-story-chapters {
  min-width: 0;
}

.portal-story-chapter {
  display: flex;
  min-height: 62svh;
  flex-direction: column;
  justify-content: center;
  padding: 72px 10px 72px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  transition: color 240ms ease, border-color 240ms ease;
}

.portal-story-chapter:last-child { border-bottom: 1px solid var(--line); }

.portal-story-no {
  display: block;
  margin-bottom: 36px;
  color: var(--muted-2);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: .12em;
}

.portal-story-chapter > small {
  margin-bottom: 12px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.portal-story-chapter h3 {
  margin: 0 0 18px;
  color: color-mix(in srgb, var(--heading) 58%, var(--paper));
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 610;
  letter-spacing: -.055em;
  line-height: 1.08;
  transition: color 260ms ease, transform 520ms var(--ease-out);
}

.portal-story-chapter p {
  max-width: 520px;
  margin: 0 0 30px;
  font-size: 15px;
  line-height: 1.9;
}

.portal-story-chapter strong {
  display: inline-flex;
  width: fit-content;
  padding-bottom: 7px;
  border-bottom: 1px solid currentColor;
  color: var(--heading);
  font-size: 12px;
  font-weight: 680;
  transition: color 200ms ease, padding 360ms var(--ease-out);
}

.portal-story-chapter.is-active {
  border-top-color: color-mix(in srgb, var(--success) 60%, var(--line));
  color: var(--text);
}

.portal-story-chapter.is-active h3 { color: var(--heading); transform: translateX(10px); }
.portal-story-chapter:hover strong,
.portal-story-chapter:focus-visible strong { color: var(--success); padding-inline: 6px; }

html[data-theme="dark"] .portal-story-visuals { box-shadow: 0 28px 80px rgba(0,0,0,.34); }

.portal-category-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 250px;
  gap: 15px;
}

.portal-category {
  position: relative;
  display: flex;
  grid-column: span 3;
  flex-direction: column;
  padding: 25px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.portal-category:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.portal-category:focus-visible {
  border-color: color-mix(in srgb, var(--success) 45%, var(--line));
  box-shadow: var(--shadow-soft);
}

.portal-category:active { transform: translateY(0) scale(.995); }

.portal-category-primary {
  grid-column: span 6;
  grid-row: span 2;
  color: white;
  background:
    radial-gradient(circle at 78% 12%, rgba(184, 235, 114, 0.2), transparent 34%),
    linear-gradient(145deg, #183b2b, #0c2017);
}

.portal-category:nth-child(4) { grid-column: span 6; }

.portal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-2);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.portal-category-primary .portal-card-top { color: rgba(255, 255, 255, 0.48); }

.status-chip {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-soft);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0;
  white-space: nowrap;
}

.status-chip.online { color: #286a49; background: #e7f5ea; border-color: #c6e5cf; }
.status-chip.download { color: #235f77; background: #e7f3f6; border-color: #c6e0e7; }
.status-chip.upcoming { color: #80642f; background: #f8f1df; border-color: #eadab5; }

html[data-theme="dark"] .status-chip.online { color: #99d9ad; background: #183125; border-color: #2e5c42; }
html[data-theme="dark"] .status-chip.download { color: #9bd5e4; background: #17313a; border-color: #2d5964; }
html[data-theme="dark"] .status-chip.upcoming { color: #dfc27e; background: #342c19; border-color: #5e4c25; }

.portal-category-index {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  margin: auto 0 24px;
  border-radius: 15px;
  color: var(--heading);
  background: var(--lime-soft);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: .05em;
}

.portal-category-primary .portal-category-index {
  width: 72px;
  height: 72px;
  color: #dcf7b6;
  background: rgba(184, 235, 114, 0.1);
  font-size: 16px;
}

.portal-category h3 {
  margin-bottom: 9px;
  color: var(--heading);
  font-size: 22px;
  font-weight: 630;
  letter-spacing: -0.03em;
}

.portal-category-primary h3 { color: white; font-size: 38px; }

.portal-category p {
  max-width: 540px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 12px;
}

.portal-category-primary p { color: rgba(255, 255, 255, 0.62); font-size: 14px; }

.portal-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--heading);
  font-size: 11px;
  font-weight: 670;
}

.portal-category-primary .portal-card-link { color: #dcf7b6; }
.portal-card-link i { font-style: normal; transition: transform 180ms ease; }
.portal-category:hover .portal-card-link i { transform: translateX(4px); }

.portal-available-layout {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: 90px;
  align-items: start;
}

.portal-available-intro {
  position: sticky;
  top: 120px;
}

.portal-available-intro h2 { margin-bottom: 20px; }
.portal-available-intro .text-link { margin-top: 20px; }

.portal-resource-list {
  border-top: 1px solid var(--line);
}

.portal-resource-row {
  display: grid;
  min-height: 132px;
  grid-template-columns: 48px 1fr auto 18px;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  transition: padding 180ms ease, background 180ms ease;
}

.portal-resource-row:hover {
  padding-inline: 14px;
  background: var(--surface-soft);
}

.portal-resource-row:focus-visible {
  padding-inline: 14px;
  background: var(--surface-soft);
}

.portal-resource-row:active { transform: scale(.997); }

.portal-resource-row > i {
  transition: color 180ms ease, transform 300ms var(--ease-out);
}

.portal-resource-row:hover > i,
.portal-resource-row:focus-visible > i {
  color: var(--success);
  transform: translate(3px, -2px);
}

.portal-resource-no {
  color: var(--muted-2);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.portal-resource-row small,
.portal-download-row small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portal-resource-row h3,
.portal-download-row h3 {
  margin-bottom: 4px;
  color: var(--heading);
  font-size: 18px;
  font-weight: 630;
  letter-spacing: -0.02em;
}

.portal-resource-row p,
.portal-download-row p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
}

.portal-resource-row > i {
  color: var(--muted-2);
  font-style: normal;
  font-size: 18px;
}

.portal-download-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  margin-top: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-2);
}

.portal-download-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.portal-service-band {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  color: white;
  background: #0b1d15;
  --service-media-y: 0px;
}

.portal-service-band::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(5,19,12,.93) 0%, rgba(5,19,12,.76) 48%, rgba(5,19,12,.46) 100%);
  content: "";
}

.portal-service-media {
  position: absolute;
  inset: -9% 0;
  transform: translate3d(0, var(--service-media-y), 0) scale(1.04);
  will-change: transform;
}

.portal-service-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 52%;
}

.portal-service-inner {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 440px;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 70px;
}

.portal-service-inner h2 {
  max-width: 760px;
  margin-bottom: 12px;
  color: white;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.14;
}

.portal-service-inner p:not(.eyebrow) {
  max-width: 700px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
}

.portal-service-inner > :last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.inverse-link { color: rgba(255, 255, 255, 0.72); }

@keyframes portalLandscape {
  0% { transform: scale(1.065) translate3d(-0.5%, -0.2%, 0); }
  100% { transform: scale(1.115) translate3d(1.2%, 0.8%, 0); }
}

@keyframes portalContour {
  to { stroke-dashoffset: -140; }
}

@keyframes portalPoint {
  50% { opacity: 0.46; transform: scale(0.72); box-shadow: 0 0 0 14px rgba(184, 235, 114, 0.025), 0 0 14px rgba(184, 235, 114, 0.18); }
}

@keyframes portalScroll {
  to { top: 100%; }
}

@keyframes kineticTitleIn {
  from { opacity: 0; transform: translateY(24px); filter: blur(7px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes kineticWords {
  0%, 20% { transform: translateY(0); }
  25%, 45% { transform: translateY(-1.08em); }
  50%, 70% { transform: translateY(-2.16em); }
  75%, 100% { transform: translateY(-3.24em); }
}

/* Inner pages */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 86px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(16, 35, 27, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 35, 27, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 72px 72px;
}

.page-hero::after {
  position: absolute;
  top: -330px;
  right: -130px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 221, 207, 0.34), transparent 66%);
  content: "";
  pointer-events: none;
}

.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: 70px;
}

.page-hero h1 {
  max-width: 850px;
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(44px, 5.3vw, 68px);
  font-weight: 620;
  letter-spacing: -0.052em;
  line-height: 1.1;
}

.page-hero h1.page-title-long {
  font-size: clamp(40px, 4.45vw, 58px);
  line-height: 1.14;
}

.page-hero-side p {
  max-width: 520px;
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-subnav {
  position: sticky;
  z-index: 80;
  top: var(--site-header-height);
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(15px);
}

.subnav-inner {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.subnav-inner::-webkit-scrollbar {
  display: none;
}

.subnav-inner a {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.subnav-inner a:hover {
  color: var(--ink);
}

.solution-block {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 100px;
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.solution-block:first-child {
  border-top: 0;
}

.solution-meta {
  position: sticky;
  top: 152px;
  align-self: start;
}

.solution-meta .service-icon {
  margin-bottom: 28px;
}

.solution-meta h2 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(30px, 3.2vw, 43px);
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 1.18;
}

.solution-meta p {
  color: var(--muted);
  font-size: 14px;
}

.solution-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.detail-card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.detail-card small {
  display: block;
  margin-bottom: 36px;
  color: var(--muted-2);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.detail-card h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 640;
}

.detail-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: process;
}

.process-step {
  position: relative;
  min-height: 255px;
  padding: 30px 26px;
  border-block: 1px solid rgba(255, 255, 255, 0.13);
  border-right: 1px solid rgba(255, 255, 255, 0.13);
  counter-increment: process;
}

.process-step:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.process-step::before {
  color: var(--lime);
  content: "0" counter(process);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.process-step h3 {
  margin: 82px 0 10px;
  color: white;
  font-size: 19px;
  font-weight: 620;
}

.process-step p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.53);
  font-size: 13px;
}

/* Products */
.product-list {
  display: grid;
  gap: 20px;
}

.product-card-large {
  display: grid;
  min-height: 460px;
  grid-template-columns: 0.85fr 1.15fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.product-card-large:nth-child(even) {
  grid-template-columns: 1.15fr 0.85fr;
}

.product-card-large:nth-child(even) .product-card-copy {
  order: 2;
}

.product-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px;
}

.product-card-copy .product-kicker {
  color: #53705e;
}

.product-card-copy h2 {
  margin: 18px 0 15px;
  color: var(--ink);
  font-size: clamp(32px, 3.7vw, 48px);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.product-card-copy p {
  color: var(--muted);
  font-size: 14px;
}

.product-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.product-card-visual {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: var(--paper-2);
}

.visual-dark {
  background:
    linear-gradient(rgba(184, 235, 114, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 235, 114, 0.05) 1px, transparent 1px),
    var(--ink);
  background-size: 40px 40px;
}

.visual-app-card {
  position: absolute;
  inset: 48px -22px -34px 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 17px 0 0 0;
  background: white;
  box-shadow: var(--shadow);
}

.visual-app-card .app-content {
  min-width: 520px;
}

.visual-tool-orbit {
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(16, 35, 27, 0.13);
  border-radius: 50%;
}

.visual-tool-orbit::before,
.visual-tool-orbit::after {
  position: absolute;
  border: 1px solid rgba(16, 35, 27, 0.09);
  border-radius: 50%;
  content: "";
}

.visual-tool-orbit::before { inset: 16%; }
.visual-tool-orbit::after { inset: 32%; }

.tool-node {
  position: absolute;
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  font-size: 12px;
  font-weight: 650;
  text-align: center;
}

.tool-node:nth-child(1) { top: 9%; left: 18%; }
.tool-node:nth-child(2) { top: 23%; right: 9%; }
.tool-node:nth-child(3) { right: 22%; bottom: 10%; }
.tool-node:nth-child(4) { bottom: 21%; left: 8%; }

.tool-node-center {
  top: 50% !important;
  left: 50% !important;
  color: var(--lime);
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.download-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 11px;
}

.download-note::before {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--lime-strong);
  content: "";
}

/* Resource center */
.resource-directory {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 48px;
}

.resource-sidebar {
  position: sticky;
  top: 150px;
  align-self: start;
}

.resource-sidebar strong {
  display: block;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 13px;
}

.resource-filter {
  display: grid;
  gap: 5px;
}

.resource-filter button {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
}

.resource-filter button:hover,
.resource-filter button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--surface);
}

.resource-filter button span {
  color: var(--muted-2);
  font-size: 10px;
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.directory-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.directory-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.directory-card[hidden] {
  display: none;
}

.directory-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.directory-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  color: var(--ink);
  background: var(--lime-soft);
}

.directory-icon svg {
  width: 21px;
  height: 21px;
}

.directory-badge {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.directory-card h2 {
  margin: 50px 0 10px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 640;
  letter-spacing: -0.025em;
}

.directory-card p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
}

.directory-card .text-link {
  margin-top: auto;
}

.resource-filter-status {
  margin: 16px 0 0;
  color: var(--muted-2);
  font-size: 10px;
}

.directory-meta {
  margin-top: 34px;
  color: var(--muted-2);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.directory-card .directory-meta + h2 {
  margin-top: 10px;
}

.directory-download {
  grid-column: 1 / -1;
  min-height: 270px;
  background:
    radial-gradient(circle at 88% 10%, rgba(184, 235, 114, 0.18), transparent 30%),
    var(--surface);
}

.directory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.directory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.directory-tags span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 10px;
}

.directory-upcoming {
  border-style: dashed;
}

.resource-guidance {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}

.resource-guidance-inner {
  display: grid;
  min-height: 126px;
  grid-template-columns: 170px 1fr auto;
  align-items: center;
  gap: 30px;
}

.resource-guidance-inner strong {
  color: var(--heading);
  font-size: 14px;
}

.resource-guidance-inner p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
}

.resource-guidance-inner a {
  color: var(--heading);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.principles {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.principles h2 {
  color: white;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.principle-list {
  display: grid;
  gap: 0;
}

.principle-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.principle-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.principle-item b {
  color: var(--lime);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.principle-item strong {
  display: block;
  margin-bottom: 5px;
  color: white;
  font-size: 14px;
}

.principle-item p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 90px;
  align-items: start;
}

.contact-intro {
  position: sticky;
  top: 120px;
}

.contact-intro h2 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 1.18;
}

.contact-intro p {
  color: var(--muted);
  font-size: 14px;
}

.contact-email {
  display: inline-flex;
  margin-top: 24px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-size: 14px;
  font-weight: 620;
}

.contact-form {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 16px;
}

.field {
  min-width: 0;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.field label small {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 500;
}

.control {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  color: var(--ink);
  background: var(--surface-soft);
  font-size: 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

textarea.control {
  min-height: 150px;
  padding-block: 12px;
  resize: vertical;
}

.control:focus {
  border-color: #7f9b87;
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(89, 132, 98, 0.1);
}

.control::placeholder {
  color: #a1aaa5;
}

.field-hint,
.form-privacy,
.form-status {
  color: var(--muted);
  font-size: 11px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 25px;
}

.form-actions .form-privacy {
  max-width: 390px;
  margin-bottom: 0;
}

.form-status {
  min-height: 20px;
  margin: 12px 0 0;
}

.prepare-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}

.prepare-item {
  min-height: 180px;
  padding: 25px;
  border-right: 1px solid var(--line);
}

.prepare-item:first-child {
  border-left: 1px solid var(--line);
}

.prepare-item b {
  color: var(--lime-strong);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.prepare-item strong {
  display: block;
  margin: 55px 0 6px;
  color: var(--ink);
  font-size: 14px;
}

.prepare-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

/* Tool pages */
.tool-hero {
  padding: 70px 0 48px;
  border-bottom: 1px solid var(--line);
}

.tool-hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  align-items: end;
  gap: 70px;
}

.tool-hero h1 {
  max-width: 800px;
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 620;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.tool-hero p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 15px;
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: 10px;
  font-weight: 600;
}

.privacy-pill::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  content: "";
}

.tool-nav {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.tool-nav-inner {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tool-nav-inner a {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.tool-nav-inner a:hover,
.tool-nav-inner a[aria-current="page"] {
  color: var(--ink);
}

.tool-workspace {
  display: grid;
  grid-template-columns: 0.93fr 1.07fr;
  gap: 18px;
  padding: 42px 0;
}

.tool-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.panel-kicker {
  margin-bottom: 8px;
  color: var(--muted-2);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-panel h2 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 630;
  letter-spacing: -0.03em;
}

.panel-intro {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 12px;
}

.tool-field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 14px;
}

.control-wrap {
  position: relative;
}

.control.has-unit {
  padding-right: 76px;
}

.unit {
  position: absolute;
  top: 50%;
  right: 13px;
  color: var(--muted);
  font-size: 11px;
  transform: translateY(-50%);
  pointer-events: none;
}

.required {
  margin-left: 3px;
  color: var(--danger);
}

.hint {
  margin: 6px 0 0;
  color: var(--muted-2);
  font-size: 10px;
}

.advanced {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
}

.advanced summary,
.formula summary {
  padding: 14px 16px;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}

.advanced-body {
  padding: 4px 16px 18px;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.form-message {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--danger);
  font-size: 11px;
}

.result-panel {
  color: white;
  background: var(--ink);
}

.result-panel .panel-kicker {
  color: var(--lime);
}

.result-panel h2 {
  color: white;
}

.result-panel .panel-intro {
  color: rgba(255, 255, 255, 0.5);
}

.empty-state {
  display: grid;
  min-height: 335px;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.17);
  border-radius: 13px;
  text-align: center;
}

.empty-state strong,
.empty-state span {
  display: block;
}

.empty-state strong {
  margin-bottom: 6px;
  color: white;
  font-size: 14px;
}

.empty-state span {
  max-width: 330px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.result-item {
  min-height: 122px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.result-label {
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 10px;
}

.result-value {
  margin-bottom: 0;
  color: white;
  font-size: 27px;
  font-weight: 620;
  letter-spacing: -0.03em;
}

.result-value small {
  margin-left: 6px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
}

.result-note {
  margin: 16px 0 0;
  padding: 14px;
  border-left: 2px solid var(--lime);
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.035);
  font-size: 11px;
}

.copy-actions {
  margin-top: 15px;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 70px;
}

.support-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.support-card h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 16px;
}

.formula-lines,
.bullet-list {
  color: var(--muted);
  font-size: 11px;
}

.formula-line {
  margin: 8px 0;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.bullet-list {
  margin-bottom: 0;
  padding-left: 18px;
}

.bullet-list li {
  margin: 7px 0;
}

.tool-consult {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  margin-bottom: 80px;
  padding: 28px 30px;
  border-radius: var(--radius);
  color: white;
  background: var(--ink);
}

.tool-consult h2 {
  margin-bottom: 6px;
  color: white;
  font-size: 20px;
  font-weight: 620;
}

.tool-consult p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
}

/* Standards app */
.standards-shell {
  display: grid;
  min-height: calc(100vh - var(--site-header-height));
  grid-template-columns: 260px minmax(0, 1fr);
  background: var(--paper-2);
}

.standards-sidebar {
  position: sticky;
  top: var(--site-header-height);
  height: calc(100vh - var(--site-header-height));
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  background: var(--surface-soft);
}

.standards-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.standards-sidebar h1 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 660;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.standards-sidebar > p {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 11px;
}

.standards-filters {
  display: grid;
  gap: 18px;
}

.filter-group label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.filter-group .control {
  min-height: 42px;
  font-size: 12px;
}

.standards-safety {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.6;
}

.standards-main {
  min-width: 0;
  padding: 32px;
}

.standards-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  max-width: 1040px;
  margin: 0 auto 26px;
}

.standards-search {
  position: relative;
}

.standards-search input {
  width: 100%;
  height: 54px;
  padding: 0 120px 0 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 8px 25px rgba(27, 49, 38, 0.05);
  font-size: 14px;
}

.standards-search input:focus {
  border-color: #849a89;
  box-shadow: 0 0 0 4px rgba(65, 105, 74, 0.09), 0 8px 25px rgba(27, 49, 38, 0.05);
}

.standards-search svg {
  position: absolute;
  top: 17px;
  left: 17px;
  width: 19px;
  color: var(--muted);
}

.standards-search button {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 94px;
  min-height: 42px;
}

.standards-clear {
  min-width: 90px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.standards-content {
  display: grid;
  max-width: 1040px;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  margin: 0 auto;
}

.results-panel,
.detail-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.results-head,
.detail-head {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.results-head strong,
.detail-head strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.results-head span {
  color: var(--muted);
  font-size: 10px;
}

.detail-close {
  display: none;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
}

.result-list {
  max-height: calc(100vh - 260px);
  overflow-y: auto;
}

.standard-result {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 18px;
  border: 0;
  border-bottom: 1px solid #edf0ed;
  color: inherit;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: background 150ms ease;
}

.standard-result:hover,
.standard-result[aria-selected="true"] {
  background: var(--surface-soft);
}

.standard-code {
  margin-bottom: 5px;
  color: #4e6f5a;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 650;
}

.standard-result h2 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 630;
  line-height: 1.55;
}

.standard-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
}

.status-badge {
  align-self: start;
  padding: 5px 8px;
  border-radius: 999px;
  color: #2e714c;
  background: #e8f5e9;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.status-badge.withdrawn {
  color: #885041;
  background: #faede8;
}

.status-badge.upcoming {
  color: #78622c;
  background: #fbf3db;
}

.app-state {
  display: grid;
  min-height: 430px;
  place-items: center;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.app-state-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 15px;
  color: var(--ink);
  background: var(--lime-soft);
  font-size: 21px;
  font-weight: 680;
  line-height: 1;
}

.app-state strong,
.app-state span {
  display: block;
}

.app-state strong {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 13px;
}

.app-state span {
  max-width: 330px;
  font-size: 10px;
}

.loading-ring {
  width: 28px;
  height: 28px;
  margin: 0 auto 15px;
  border: 2px solid #dfe7df;
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.detail-body {
  max-height: calc(100vh - 315px);
  padding: 18px;
  overflow-y: auto;
}

.detail-title {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.5;
}

.detail-fields {
  display: grid;
  gap: 0;
  margin-bottom: 18px;
}

.detail-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid #edf0ed;
  font-size: 10px;
}

.detail-row dt {
  color: var(--muted);
}

.detail-row dd {
  margin: 0;
  color: var(--text);
}

.detail-action {
  display: grid;
  gap: 8px;
}

.download-status {
  min-height: 16px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.source-notice {
  margin-top: 14px;
  padding: 11px;
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 10px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  border-top: 1px solid var(--line);
}

.pagination button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  font-size: 10px;
}

.pagination button:disabled {
  color: #adb5b0;
  cursor: not-allowed;
}

.pagination span {
  color: var(--muted);
  font-size: 10px;
}

.mobile-filters {
  display: none;
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal.reveal-ready {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--motion-slow) var(--ease-out) var(--reveal-delay, 0ms), transform var(--motion-slow) var(--ease-out) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.reveal-ready.is-visible {
  will-change: auto;
}

html[data-theme="dark"] body :where(h1, h2, h3, h4) {
  color: var(--heading);
}

html[data-theme="dark"] :where(
  .eyebrow,
  .hero-lead,
  .hero-tag,
  .capability-item span,
  .page-hero-side p,
  .tool-hero p
) {
  color: var(--muted);
}

html[data-theme="dark"] :where(
  .text-link,
  .directory-icon,
  .resource-sidebar strong,
  .resource-filter button[aria-pressed="true"],
  .contact-email,
  .field label,
  .control,
  .tool-nav-inner a[aria-current="page"],
  .advanced summary,
  .formula summary,
  .results-head strong,
  .detail-head strong,
  .standard-result h2,
  .pagination button
) {
  color: var(--heading);
}

html[data-theme="dark"] :where(
  .service-card,
  .detail-card,
  .product-card-large,
  .tool-node,
  .directory-card,
  .contact-form,
  .privacy-pill,
  .tool-nav,
  .tool-panel,
  .support-card,
  .standards-search input,
  .standards-clear,
  .results-panel,
  .detail-panel,
  .detail-close,
  .standard-result,
  .pagination button
) {
  background-color: var(--surface);
}

html[data-theme="dark"] .page-hero,
html[data-theme="dark"] .tool-hero {
  background-color: var(--paper);
}

html[data-theme="dark"] .standard-result {
  border-bottom-color: var(--line);
}

html[data-theme="dark"] .standard-result:hover,
html[data-theme="dark"] .standard-result[aria-selected="true"] {
  background: var(--surface-soft);
}

html[data-theme="dark"] .portal-hero h1,
html[data-theme="dark"] .portal-category-primary h3,
html[data-theme="dark"] .portal-service-inner h2,
html[data-theme="dark"] .process-step h3,
html[data-theme="dark"] .principles h2 {
  color: white;
}

html[data-theme="dark"] .button-lime {
  color: var(--inverse);
}

html[data-theme="dark"] .button-lime {
  background: var(--lime);
}

html[data-theme="dark"] .menu-toggle span,
html[data-theme="dark"] .menu-toggle::before,
html[data-theme="dark"] .menu-toggle::after {
  background: var(--heading);
}

html[data-theme="dark"] .nav-primary::after {
  background: var(--lime);
}

@media (max-width: 1080px) {
  .header-inner { grid-template-columns: 190px 1fr 150px; }
  .main-nav { gap: 7px; }
  .nav-primary { font-size: 12px; }
  .header-contact { display: none; }
  .mega-menu { width: min(720px, calc(100vw - 36px)); }
  .portal-shortcuts { grid-template-columns: repeat(2, 1fr); max-width: 850px; margin-inline: auto; }
  .portal-hero-inner { padding-top: 118px; padding-bottom: 100px; }
  .hero-grid { gap: 36px; }
  .workbench-body { grid-template-columns: 1.45fr 0.55fr; }
  .workbench-inspector { padding: 18px 12px; }
  .inspector-card { padding: 10px; }
  .resource-directory { grid-template-columns: 230px 1fr; gap: 30px; }
  .standards-content { grid-template-columns: minmax(0, 1fr) 300px; }
}

@media (min-width: 961px) {
  .nav-cluster {
    position: relative;
  }

  .mega-menu {
    display: grid;
    position: absolute;
    top: calc(100% - 1px);
    right: auto;
    left: 50%;
    width: max-content;
    min-width: 0;
    height: auto;
    grid-template-rows: 0fr;
    padding: 10px 0 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    color: var(--mega-panel-heading);
    background: transparent !important;
    box-shadow: none;
    backdrop-filter: none;
    contain: layout style;
    filter: blur(4px);
    opacity: 0;
    transform: translate3d(-50%, -10px, 0) scale(.965);
    transform-origin: center top;
    will-change: grid-template-rows, opacity, transform, filter;
    transition:
      grid-template-rows 460ms var(--ease-out),
      opacity 260ms ease,
      transform 460ms var(--ease-out),
      filter 360ms ease,
      visibility 0s linear 460ms;
  }

  .nav-cluster.is-expanded .mega-menu {
    grid-template-rows: 1fr;
    opacity: 1;
    filter: blur(0);
    transform: translate3d(-50%, 0, 0) scale(1);
    transition:
      grid-template-rows 460ms var(--ease-out),
      opacity 260ms ease,
      transform 460ms var(--ease-out),
      filter 360ms ease,
      visibility 0s step-start;
  }

  body.nav-switching .nav-cluster .mega-menu {
    transition:
      grid-template-rows 360ms var(--ease-out),
      opacity 220ms ease,
      transform 360ms var(--ease-out),
      filter 280ms ease,
      visibility 0s step-start;
  }

  .mega-shell {
    display: block;
    position: relative;
    width: max-content;
    min-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
  }

  .mega-sections {
    display: flex;
    position: relative;
    width: max-content;
    flex-direction: column;
    gap: 2px;
    padding: 11px 12px 9px;
    border: 1px solid color-mix(in srgb, var(--mega-panel-line) 78%, transparent);
    border-radius: 14px;
    background: color-mix(in srgb, var(--mega-panel) 94%, transparent);
    box-shadow: 0 18px 44px rgba(8, 25, 17, .16), 0 3px 10px rgba(8, 25, 17, .08);
    backdrop-filter: blur(22px) saturate(145%);
  }

  .mega-sections::before {
    position: absolute;
    top: 4px;
    left: 50%;
    width: 52px;
    height: 2px;
    border-radius: 999px;
    background: var(--mega-panel-accent);
    content: "";
    opacity: .72;
    transform: translateX(-50%) scaleX(.55);
    transition: transform 520ms var(--ease-out), opacity 320ms ease;
  }

  .nav-cluster.is-expanded .mega-sections::before {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
  }

  .mega-section-head,
  .mega-section-head:first-child {
    display: grid;
    width: 100%;
    min-height: 38px;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    place-items: center;
    margin: 0;
    padding: 5px 4px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    opacity: 0;
    transform: translateY(-7px) scale(.98);
    text-align: center;
    white-space: nowrap;
    transition:
      opacity 360ms ease,
      transform 460ms var(--ease-out),
      color 240ms ease,
      background 240ms ease;
  }

  .nav-cluster.is-expanded .mega-section-head {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .nav-cluster.is-expanded .mega-section-head:nth-child(1) { transition-delay: 45ms; }
  .nav-cluster.is-expanded .mega-section-head:nth-child(2) { transition-delay: 75ms; }
  .nav-cluster.is-expanded .mega-section-head:nth-child(3) { transition-delay: 105ms; }
  .nav-cluster.is-expanded .mega-section-head:nth-child(4) { transition-delay: 135ms; }

  .mega-section-index {
    display: none;
  }

  .mega-section-head > span:last-child {
    display: block;
    width: auto;
    text-align: center !important;
  }

  .mega-section-head strong {
    display: block;
    width: auto;
    color: var(--mega-panel-heading);
    font-size: 13px;
    font-weight: 540;
    letter-spacing: 0;
    line-height: 1.35;
    text-align: center !important;
    transition: color 180ms ease;
  }

  .mega-section-head small {
    display: none;
  }

  .mega-section-head:hover,
  .mega-section-head:focus-visible {
    background: color-mix(in srgb, var(--mega-panel-accent) 10%, transparent);
    transform: translateY(0) scale(1.02);
  }

  .mega-section-head:hover strong,
  .mega-section-head:focus-visible strong {
    color: var(--mega-panel-accent);
  }

  .nav-backdrop {
    display: none;
  }

  .nav-primary::after {
    bottom: 4px;
  }
}

@media (max-width: 960px) {
  :root { --site-header-height: 72px; }
  .container { width: min(calc(100% - 36px), var(--container)); }
  .site-header { height: 72px; }
  .portal-utility { display: none; }
  .page-subnav { top: var(--site-header-height); }
  .header-inner { height: 72px; grid-template-columns: 1fr auto; }
  .main-nav {
    position: fixed;
    inset: var(--site-header-height) 0 auto;
    display: flex;
    height: calc(100vh - var(--site-header-height));
    height: calc(100dvh - var(--site-header-height));
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    overflow-y: auto;
    padding: 20px 18px 64px;
    color: var(--text);
    background: var(--surface);
    border-top: 1px solid var(--line);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    visibility: hidden;
    transition: opacity 240ms ease, transform 360ms var(--ease-out), visibility 0s linear 360ms;
  }
  .main-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); visibility: visible; transition-delay: 0s; }
  body[data-page="home"].nav-open .site-header { border-color: var(--line); background: var(--header-bg); backdrop-filter: blur(18px) saturate(150%); }
  body[data-page="home"].nav-open .site-header .brand-copy strong,
  body[data-page="home"].nav-open .site-header .nav-primary,
  body[data-page="home"].nav-open .site-header .header-icon { color: var(--heading); }
  body[data-page="home"].nav-open .site-header .brand-copy small { color: var(--muted); }
  .nav-cluster { display: block; height: auto; }
  .nav-entry {
    display: flex;
    width: 100%;
    height: auto;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }
  .nav-primary {
    width: auto;
    flex: 1 1 auto;
    height: auto;
    justify-content: flex-start;
    padding: 17px 4px;
    color: var(--heading);
    font-size: 18px;
    text-align: left;
    opacity: 0;
    transform: translateY(-5px);
    transition: color 180ms ease, opacity 260ms ease, transform 360ms var(--ease-out);
  }
  .main-nav.is-open .nav-primary { opacity: 1; transform: translateY(0); }
  .nav-expand {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-5px);
    transition: color 180ms ease, background 180ms ease, opacity 260ms ease, transform 360ms var(--ease-out);
  }
  .main-nav.is-open .nav-expand { opacity: 1; transform: translateY(0); }
  .nav-expand:hover,
  .nav-expand:focus-visible { color: var(--heading); background: var(--surface-soft); }
  .nav-expand .ui-icon { transition: transform 260ms var(--ease-out); }
  .nav-expand[aria-expanded="true"] .ui-icon { transform: rotate(90deg); }
  .main-nav .nav-primary:hover,
  .main-nav .nav-primary:focus-visible,
  .main-nav .nav-primary[aria-current="page"] { color: var(--success); }
  .main-nav.is-open .nav-cluster:nth-child(2) .nav-primary { transition-delay: 35ms; }
  .main-nav.is-open .nav-cluster:nth-child(3) .nav-primary { transition-delay: 70ms; }
  .main-nav.is-open .nav-cluster:nth-child(4) .nav-primary { transition-delay: 105ms; }
  .main-nav.is-open .nav-cluster:nth-child(5) .nav-primary { transition-delay: 140ms; }
  .main-nav.is-open .nav-cluster:nth-child(6) .nav-primary { transition-delay: 175ms; }
  .nav-primary::after { display: none; }
  .mega-menu {
    position: static;
    display: block;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    opacity: 1;
    pointer-events: none;
    transform: none;
    visibility: hidden;
    transition: max-height 260ms var(--ease-out), visibility 0s linear 260ms;
  }
  .nav-cluster.is-expanded .mega-menu { max-height: var(--nav-panel-height, 480px); pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .mega-shell { min-height: 0; }
  .mega-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 4px 0 13px 22px;
    border-right: 0;
    background: transparent;
  }
  .mega-section-head {
    min-height: 42px;
    padding: 7px 8px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    opacity: 1;
    transform: none;
  }
  .mega-section-head:hover,
  .mega-section-head:focus-visible { border-left: 0; background: transparent; transform: none; }
  .mega-section-head small { display: none; }
  .nav-backdrop { display: none; }
  .header-resource,
  .header-actions .button { display: none; }
  .menu-toggle { display: block; }
  .portal-hero h1 { font-size: clamp(52px, 8vw, 72px); }
  .portal-hero-inner { padding-top: 112px; padding-bottom: 92px; }
  .portal-shortcuts { grid-template-columns: repeat(2, 1fr); }
  .portal-heading,
  .portal-available-layout,
  .portal-service-inner { grid-template-columns: 1fr; }
  .portal-heading { gap: 22px; }
  .portal-category-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .portal-category,
  .portal-category-primary,
  .portal-category:nth-child(4) { grid-column: auto; grid-row: auto; min-height: 320px; }
  .portal-category-primary { grid-column: 1 / -1; min-height: 430px; }
  .portal-available-layout { gap: 44px; }
  .portal-available-intro { position: static; }
  .portal-service-inner { min-height: 0; gap: 30px; padding: 68px 0; }
  .hero-grid,
  .page-hero-grid,
  .tool-hero-grid,
  .section-heading,
  .cta-inner,
  .principles,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .hero-grid { gap: 50px; }
  .home-hero { padding-top: 66px; }
  .hero-copy h1 { max-width: 720px; }
  .hero-workbench { min-height: 470px; }
  .section-heading { gap: 20px; }
  .capability-row { grid-template-columns: repeat(2, 1fr); }
  .capability-item:nth-child(3) { border-left: 1px solid var(--line); }
  .capability-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cards-3 { grid-template-columns: 1fr; }
  .service-card { min-height: 280px; }
  .service-index { margin-bottom: 46px; }
  .product-stage { grid-template-columns: 1fr; }
  .product-copy { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .resource-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 250px; }
  .resource-card.featured { grid-column: 1 / -1; grid-row: auto; min-height: 390px; }
  .resource-card:nth-child(4) { grid-column: auto; }
  .cta-inner { min-height: 430px; gap: 30px; padding: 68px 0; }
  .footer-main { min-height: 0; grid-template-columns: 1fr; gap: 34px; }
  .footer-directory { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-observatory { min-height: 280px; padding: 28px 0 0; border-top: 1px solid var(--line-strong); border-left: 0; }
  .solution-block { grid-template-columns: 1fr; gap: 35px; }
  .solution-meta,
  .resource-sidebar,
  .contact-intro { position: static; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(3) { border-left: 1px solid rgba(255,255,255,.13); }
  .product-card-large,
  .product-card-large:nth-child(even) { grid-template-columns: 1fr; }
  .product-card-large:nth-child(even) .product-card-copy { order: initial; }
  .resource-directory { grid-template-columns: 1fr; }
  .resource-filter { grid-template-columns: repeat(5, auto); overflow-x: auto; }
  .resource-filter button { min-width: 126px; background: var(--surface); }
  .resource-guidance-inner { grid-template-columns: 140px 1fr; padding: 28px 0; }
  .resource-guidance-inner a { grid-column: 2; }
  .prepare-list { grid-template-columns: repeat(2, 1fr); }
  .prepare-item:nth-child(3) { border-left: 1px solid var(--line); }
  .prepare-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .tool-workspace { grid-template-columns: 1fr; }
  .standards-shell { grid-template-columns: 1fr; }
  .standards-sidebar { display: none; }
  .standards-main { padding: 24px 18px; }
  .mobile-filters { display: block; max-width: 1040px; margin: 0 auto 14px; }
  .mobile-filters summary { color: var(--heading); cursor: pointer; font-size: 12px; font-weight: 650; }
  .mobile-filter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; padding-top: 12px; }
}

@media (max-width: 640px) {
  :root { --site-header-height: 64px; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .site-header { height: 64px; }
  .header-inner { height: 64px; }
  .main-nav { top: var(--site-header-height); height: calc(100vh - var(--site-header-height)); height: calc(100dvh - var(--site-header-height)); }
  .mega-sections { grid-template-columns: 1fr; padding: 4px 0 12px 18px; }
  .brand-copy small { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .header-actions { gap: 7px; }
  .header-icon { width: 38px; height: 38px; border-radius: 10px; }
  .portal-hero { min-height: 100svh; }
  .portal-hero-inner { display: flex; min-height: 100svh; align-items: center; padding: 94px 0 74px; }
  .portal-kicker { margin-bottom: 16px; font-size: 10px; letter-spacing: .12em; }
  .portal-hero h1 { margin-bottom: 18px; font-size: clamp(40px, 12vw, 54px); line-height: 1.06; }
  .portal-hero-copy > p:not(.portal-kicker) { margin-bottom: 22px; font-size: 14px; line-height: 1.7; }
  .portal-search { min-height: 56px; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-bottom: 18px; padding: 5px 5px 5px 14px; border-radius: 13px; }
  .portal-search input { height: 44px; font-size: 13px; }
  .portal-search button { min-width: 88px; height: 44px; padding-inline: 12px; font-size: 11px; }
  .portal-shortcuts { display: flex; width: calc(100vw - 14px); gap: 9px; margin-left: 0; padding: 0 14px 5px 0; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .portal-shortcuts::-webkit-scrollbar { display: none; }
  .portal-shortcuts a { min-width: min(276px, 78vw); min-height: 94px; flex: 0 0 auto; scroll-snap-align: start; }
  .portal-swipe-hint { display: block; margin-top: 7px; color: rgba(255,255,255,.72); font-size: 10px; letter-spacing: .08em; }
  .portal-scroll { display: none; }
  .motion-toggle { right: 14px; bottom: 12px; }
  .motion-toggle span:last-child { display: none; }
  .portal-status-row { min-height: 52px; }
  .portal-heading { margin-bottom: 30px; }
  .portal-heading h2,
  .portal-available-intro h2 { font-size: 36px; }
  .portal-category-grid { grid-template-columns: 1fr; }
  .portal-category,
  .portal-category-primary,
  .portal-category:nth-child(4) { grid-column: auto; min-height: 290px; padding: 22px; }
  .portal-category-primary { min-height: 390px; }
  .portal-category-primary h3 { font-size: 32px; }
  .portal-resource-row { min-height: 126px; grid-template-columns: 32px 1fr 17px; gap: 10px; }
  .portal-resource-row .status-chip { display: none; }
  .portal-resource-row h3 { font-size: 16px; }
  .portal-resource-row p { display: none; }
  .portal-download-row { grid-template-columns: 1fr; padding: 22px; }
  .portal-download-actions .button { flex: 1; }
  .portal-service-inner h2 { font-size: 34px; }
  .page-subnav { top: var(--site-header-height); }
  .home-hero { padding: 52px 0 48px; background-size: 48px 48px; }
  .hero-copy h1 { font-size: 43px; letter-spacing: -0.05em; }
  .hero-copy h1 .accent { white-space: normal; }
  .hero-lead { font-size: 16px; }
  .hero-actions .button { width: 100%; }
  .hero-workbench { min-height: 420px; border-radius: 20px; }
  .workbench-body { grid-template-columns: 1fr; min-height: 360px; }
  .field-map { min-height: 360px; border-right: 0; }
  .workbench-inspector { display: none; }
  .map-scan { animation: none; left: 45%; }
  .capability-row { grid-template-columns: 1fr; }
  .capability-item,
  .capability-item:nth-child(3) { border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .section { padding: 76px 0; }
  .section-tight { padding: 58px 0; }
  .section-heading { margin-bottom: 32px; }
  .section-heading h2 { font-size: 36px; }
  .service-card { min-height: 300px; padding: 23px; }
  .product-copy { padding: 32px 25px; }
  .product-ui { min-height: 450px; padding: 28px 16px 0; }
  .app-content { padding: 16px; }
  .resource-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .resource-card { min-height: 235px; }
  .resource-card.featured { grid-column: auto; min-height: 390px; }
  .resource-card:nth-child(4) { grid-column: auto; }
  .cta-inner { padding: 64px 0; }
  .cta-inner h2 { font-size: 40px; }
  .footer-main { grid-template-columns: 1fr; gap: 23px; padding: 27px 0 20px; }
  .footer-directory {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 16px;
  }
  .footer-wordmark { width: min(228px, 76vw); }
  .footer-intro { max-width: 100%; margin-top: 9px; white-space: normal; }
  .footer-observatory { min-height: 292px; padding-top: 24px; }
  .footer-observatory-total output { font-size: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; padding-block: 14px; }
  .footer-bottom-meta { align-items: flex-start; flex-direction: column; gap: 3px; }
  .footer-bottom-status { padding-left: 0; border-left: 0; }
  .footer-bottom-links { width: 100%; align-items: flex-start; flex-wrap: wrap; gap: 8px 14px; }
  .footer-backtop { margin-left: auto; }
  .page-hero { padding: 62px 0 58px; background-size: 48px 48px; }
  .page-hero-grid { gap: 28px; }
  .page-hero h1 { font-size: 42px; }
  .page-hero-side p { font-size: 15px; }
  .page-hero-actions .button { width: 100%; }
  .solution-block { padding: 56px 0; }
  .solution-details { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step,
  .process-step:nth-child(3) { border-left: 1px solid rgba(255,255,255,.13); }
  .product-card-copy { padding: 34px 25px; }
  .product-card-visual { min-height: 380px; }
  .visual-app-card { inset: 32px -100px -40px 22px; }
  .tool-node { width: 82px; height: 82px; border-radius: 16px; font-size: 10px; }
  .resource-list { grid-template-columns: 1fr; }
  .resource-filter { grid-template-columns: repeat(5, 126px); }
  .directory-download { grid-column: auto; }
  .resource-guidance-inner { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .resource-guidance-inner a { grid-column: auto; margin-top: 4px; }
  .principles { gap: 30px; }
  .contact-form { padding: 23px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .form-actions { align-items: flex-start; flex-direction: column; }
  .form-actions .button { width: 100%; }
  .prepare-list { grid-template-columns: 1fr; }
  .prepare-item,
  .prepare-item:nth-child(3) { border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .tool-hero { padding-top: 50px; }
  .tool-hero-grid { gap: 24px; }
  .tool-hero h1 { font-size: 40px; }
  .tool-workspace { padding-top: 28px; }
  .tool-panel { padding: 22px; }
  .tool-field-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .result-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .tool-consult { grid-template-columns: 1fr; }
  .tool-consult .button { width: 100%; }
  .standards-main { padding: 18px 12px; }
  .standards-toolbar { grid-template-columns: 1fr; }
  .standards-clear { min-height: 42px; }
  .standards-content { grid-template-columns: 1fr; }
  .detail-panel { display: none; }
  .detail-panel.mobile-open { position: fixed; z-index: 120; inset: 0; display: block; height: 100vh; height: 100dvh; border: 0; border-radius: 0; overscroll-behavior: contain; }
  .detail-panel.mobile-open .detail-head { position: sticky; z-index: 2; top: 0; background: var(--surface); }
  .detail-panel.mobile-open .detail-body { max-height: calc(100vh - 56px); max-height: calc(100dvh - 56px); }
  .detail-panel.mobile-open .detail-close { display: inline-flex; align-items: center; }
  .mobile-filter-grid { grid-template-columns: 1fr; }
  .result-list { max-height: none; }
}

@media (max-width: 960px) {
  .portal-hero-stage { height: 112svh; }
  .portal-story-section { padding: 88px 0 104px; }
  .portal-story-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 52px; }
  .portal-story-heading > p { max-width: 680px; }
  .portal-story-shell { grid-template-columns: 1fr; gap: 0; }
  .portal-story-visuals {
    z-index: 2;
    top: calc(var(--site-header-height) + 14px);
    height: 55svh;
    min-height: 390px;
    border-radius: 18px;
  }
  .portal-story-chapters { position: relative; z-index: 3; }
  .portal-story-chapter { min-height: 48svh; padding: 64px 6px; }
  .portal-story-chapter h3 { font-size: clamp(40px, 7vw, 56px); }
  .portal-service-inner { min-height: 500px; }
}

@media (max-width: 640px) {
  .portal-hero-stage { height: 108svh; }
  .portal-story-section { padding: 72px 0 84px; }
  .portal-story-heading { margin-bottom: 38px; }
  .portal-story-heading h2 { font-size: 42px; }
  .portal-story-heading > p { font-size: 14px; line-height: 1.75; }
  .portal-story-shell { width: min(calc(100% - 28px), 1420px); }
  .portal-story-visuals { top: calc(var(--site-header-height) + 10px); height: 48svh; min-height: 326px; border-radius: 14px; }
  .portal-story-visual figcaption { right: 18px; bottom: 17px; left: 18px; }
  .portal-story-chapter { min-height: 46svh; padding: 48px 2px; }
  .portal-story-no { margin-bottom: 24px; }
  .portal-story-chapter h3 { font-size: 38px; }
  .portal-story-chapter p { font-size: 14px; line-height: 1.75; }
  .portal-service-band,
  .portal-service-inner { min-height: 520px; }
  .portal-service-band::after { background: linear-gradient(180deg, rgba(5,19,12,.8), rgba(5,19,12,.93)); }
}

/* Keep the footer compact in docked and tablet-width browsers. */
@media (min-width: 761px) and (max-width: 960px) {
  .footer-main {
    min-height: 218px;
    grid-template-columns: minmax(158px, .72fr) minmax(300px, 1.48fr) minmax(178px, .8fr);
    align-items: center;
    gap: 16px;
    padding: 18px 0 16px;
  }
  .footer-directory { gap: 10px; }
  .footer-wordmark { width: min(182px, 100%); }
  .footer-intro { max-width: 190px; }
  .footer-col strong { margin-bottom: 8px; font-size: 12px; }
  .footer-col a { min-height: 27px; font-size: 10px; }
  .footer-observatory {
    min-height: 184px;
    padding: 2px 0 1px 18px;
    border-top: 0;
    border-left: 1px solid var(--line-strong);
  }
  .footer-observatory-total output { font-size: 30px; }
}

@media (max-width: 760px) {
  .footer-main {
    min-height: 0;
    grid-template-columns: minmax(142px, .72fr) minmax(0, 1.28fr);
    grid-template-areas: "footer-brand footer-directory" "footer-observatory footer-observatory";
    align-items: center;
    gap: 15px 22px;
    padding: 20px 0 16px;
  }
  .footer-brand { grid-area: footer-brand; }
  .footer-directory { grid-area: footer-directory; gap: 8px; }
  .footer-observatory { grid-area: footer-observatory; }
  .footer-wordmark { width: min(176px, 100%); }
  .footer-intro { max-width: 180px; margin-top: 7px; font-size: 10px; line-height: 1.55; }
  .footer-brand-meta { margin-top: 7px; gap: 3px 9px; font-size: 8px; }
  .footer-col strong { margin-bottom: 6px; font-size: 11px; }
  .footer-col a { min-height: 25px; font-size: 9px; }
  .footer-observatory {
    display: grid;
    min-height: 78px;
    grid-template-columns: 86px 76px 160px minmax(0, 1fr);
    grid-template-rows: minmax(66px, auto);
    align-items: stretch;
    gap: 12px;
    padding: 12px 0 0;
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }
  .footer-observatory-head,
  .footer-observatory-total,
  .footer-observatory-today,
  .footer-observatory-trend {
    min-width: 0;
    padding: 0 0 0 12px;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 1px solid var(--line);
  }
  .footer-observatory-head { padding-left: 0; border-left: 0; }
  .footer-observatory-head h2 { font-size: 16px; }
  .footer-observatory-total { display: grid; align-content: start; gap: 4px; }
  .footer-observatory-total output { font-size: 29px; }
  .footer-observatory-today { align-content: start; gap: 0; }
  .footer-observatory-today > div + div { padding-left: 8px; }
  .footer-observatory-today dd { font-size: 16px; }
  .footer-observatory-trend { grid-template-rows: auto 1fr; }
  .footer-observatory-trend ol { min-height: 34px; }
}

@media (max-width: 520px) {
  .footer-main {
    grid-template-columns: minmax(108px, .62fr) minmax(0, 1.38fr);
    grid-template-areas: "footer-brand footer-directory" "footer-observatory footer-observatory";
    gap: 12px 15px;
    padding: 16px 0 12px;
  }
  .footer-directory { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .footer-wordmark { width: min(138px, 100%); }
  .footer-intro { font-size: 9px; line-height: 1.48; }
  .footer-brand-meta { display: grid; gap: 2px; }
  .footer-col strong { margin-bottom: 4px; font-size: 10px; }
  .footer-col a { min-height: 22px; font-size: 8px; }
  .footer-observatory {
    min-height: 106px;
    grid-template-columns: 72px 64px minmax(0, 1fr);
    grid-template-rows: 52px 46px;
    gap: 6px;
    padding-top: 8px;
  }
  .footer-observatory-head h2 { font-size: 14px; }
  .footer-observatory-total { gap: 2px; }
  .footer-observatory-total output { font-size: 24px; }
  .footer-observatory-today dd { font-size: 14px; }
  .footer-observatory-trend { grid-column: 1 / -1; padding: 5px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .footer-observatory-trend-head { font-size: 8px; }
  .footer-observatory-trend ol { min-height: 24px; margin-top: 3px; }
  .footer-observatory-trend li { min-height: 24px; }
  .footer-bottom { min-height: 66px; gap: 6px; padding-block: 9px; }
  .footer-bottom-meta { flex-direction: row; align-items: center; gap: 8px; }
  .footer-bottom-status { display: none; }
  .footer-bottom-links { gap: 6px 10px; }
}

/* Let the directory breathe on narrow phones. Keep this after the 520px
   footer rules so the narrower breakpoint wins in the cascade. */
@media (max-width: 420px) {
  .footer-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
  }
  .footer-col a { min-height: 24px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  .reveal.reveal-ready { opacity: 1; transform: none; }
  .portal-hero-media img { transform: scale(1.065); }
  .portal-hero-stage { height: 100svh; }
  .portal-hero { position: relative; }
  .portal-hero-media,
  .portal-hero-inner,
  .portal-service-media { transform: none !important; opacity: 1 !important; }
  .portal-story-visual,
  .portal-story-visual.is-active { transition: none !important; }
  .portal-contours path,
  .portal-points i,
  .portal-kicker span,
  .portal-scroll i::after,
  .kinetic-title-lead,
  .kinetic-window,
  .kinetic-rail { animation: none !important; }
  .kinetic-rail { transform: none !important; }
  .motion-toggle { display: none; }
}
