:root {
  color-scheme: dark;
  --bg: #070b12;
  --bg-raised: #0a111b;
  --surface: #0d1622;
  --surface-raised: #111e2c;
  --ink: #eef5fa;
  --muted: #96a8b8;
  --faint: #667988;
  --line: rgba(171, 206, 222, 0.14);
  --line-strong: rgba(171, 206, 222, 0.27);
  --accent: #10c7e9;
  --accent-bright: #2ee9d2;
  --accent-soft: rgba(16, 199, 233, 0.12);
  --accent-contrast: #031219;
  --card-shadow: 0 26px 90px rgba(0, 0, 0, 0.3);
  --control-bg: #0a111b;
  --control-border: rgba(171, 206, 222, 0.22);
  --control-radius: 9px;
  --control-height: 42px;
  --font-sans: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f7f7;
  --bg-raised: #eaf1f2;
  --surface: #ffffff;
  --surface-raised: #f5f9fa;
  --ink: #11232c;
  --muted: #536c77;
  --faint: #71868f;
  --line: rgba(18, 55, 69, 0.13);
  --line-strong: rgba(18, 55, 69, 0.25);
  --accent: #087f9a;
  --accent-bright: #04856f;
  --accent-soft: rgba(8, 127, 154, 0.09);
  --accent-contrast: #f5ffff;
  --card-shadow: 0 24px 72px rgba(17, 52, 68, 0.09);
  --control-bg: #ffffff;
  --control-border: rgba(18, 55, 69, 0.22);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 74px;
  scroll-snap-type: y mandatory;
}
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 74% 4%, rgba(13, 86, 105, 0.12), transparent 34rem),
    var(--bg);
  transition: background-color 260ms ease, color 260ms ease;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: 0.25em; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 4px;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
select, textarea {
  min-width: 0;
  min-height: var(--control-height);
  padding: 10px 12px;
  color: var(--ink);
  border: 1px solid var(--control-border);
  border-radius: var(--control-radius);
  background: var(--control-bg);
  font: 11px/1.5 var(--font-sans);
  transition: border-color 170ms ease, box-shadow 170ms ease, background-color 170ms ease;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):hover,
select:hover, textarea:hover { border-color: var(--line-strong); }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):focus-visible,
select:focus-visible, textarea:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: 0; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; opacity: 0.58; }
select { appearance: none; padding-right: 38px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--faint) 50%), linear-gradient(135deg, var(--faint) 50%, transparent 50%); background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px; background-repeat: no-repeat; background-size: 5px 5px; }
select option { color: var(--ink); background: var(--surface); }
::selection { color: var(--accent-contrast); background: var(--accent-bright); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 1200;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: var(--accent-contrast);
  background: var(--accent-bright);
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.intro-screen {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 19px;
  color: #e8fbff;
  background: #050910;
  pointer-events: none;
  animation: intro-curtain 980ms cubic-bezier(0.7, 0, 0.2, 1) 80ms forwards;
}
.intro-screen img {
  width: clamp(82px, 11vw, 132px);
  height: auto;
  filter: drop-shadow(0 0 32px rgba(20, 219, 238, 0.42));
  animation: intro-mark 760ms cubic-bezier(0.17, 0.84, 0.27, 1) both;
}
.intro-screen span {
  color: rgba(196, 232, 240, 0.68);
  font: 10px/1.6 var(--font-mono);
  letter-spacing: 0.22em;
  animation: intro-label 460ms ease 220ms both;
}
.intro-orbit {
  position: absolute;
  width: min(54vw, 560px);
  aspect-ratio: 1;
  border: 1px solid rgba(22, 211, 226, 0.26);
  border-radius: 50%;
  box-shadow: 0 0 100px rgba(3, 164, 194, 0.12), inset 0 0 80px rgba(3, 164, 194, 0.08);
  animation: intro-orbit 850ms cubic-bezier(0.18, 0.84, 0.29, 1) both;
}
@keyframes intro-curtain {
  0%, 70% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}
@keyframes intro-mark {
  from { opacity: 0; transform: scale(0.48) rotate(-9deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes intro-label {
  from { opacity: 0; letter-spacing: 0.42em; }
  to { opacity: 1; letter-spacing: 0.22em; }
}
@keyframes intro-orbit {
  from { opacity: 0; transform: scale(0.56); }
  to { opacity: 1; transform: scale(1); }
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.header-inner {
  width: min(1320px, calc(100% - 72px));
  height: 74px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img { width: 39px; height: 39px; border-radius: 10px; object-fit: contain; }
.brand-name { font-size: 14px; font-weight: 720; letter-spacing: 0.03em; white-space: nowrap; }
.brand-name span { color: var(--muted); font: 11px var(--font-mono); }
.primary-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.primary-nav a {
  position: relative;
  padding: 10px 0;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
  transition: color 180ms ease;
}
.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}
.primary-nav a:hover, .primary-nav a[aria-current="location"] { color: var(--ink); }
.primary-nav a:hover::after, .primary-nav a[aria-current="location"]::after { transform: scaleX(1); }
.theme-toggle, .icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease, background-color 180ms ease;
}
.theme-toggle:hover, .icon-button:hover { color: var(--accent-bright); border-color: var(--accent); transform: rotate(-8deg); }
.theme-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-icon-moon { display: none; }
:root[data-theme="light"] .theme-icon-sun { display: none; }
:root[data-theme="light"] .theme-icon-moon { display: block; }

main { overflow: clip; }
.screen-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(1320px, calc(100% - 72px));
  min-height: max(680px, calc(100svh - 74px));
  margin-inline: auto;
  padding: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  isolation: isolate;
}
.section-motion-layer {
  --page-shift-y: 0px;
  --page-scale: 1;
  --page-opacity: 1;
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: inherit;
  padding-block: clamp(86px, 11vh, 144px);
  opacity: var(--page-opacity);
  transform: translate3d(0, var(--page-shift-y), 0) scale(var(--page-scale));
  transform-origin: 50% 50%;
}
.section-motion-ready .section-motion-layer { will-change: transform, opacity; }
.eyebrow {
  margin: 0 0 22px;
  color: var(--accent-bright);
  font: 10px/1.6 var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eyebrow > span:first-child:not(.status-dot) { color: var(--muted); }
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 14px var(--accent-bright);
  vertical-align: 1px;
}
.hero-section {
  min-height: calc(100svh - 74px);
}
.hero-section .section-motion-layer {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(330px, 0.87fr);
  align-items: center;
  gap: clamp(48px, 8vw, 132px);
  min-height: calc(100svh - 74px);
  padding-top: clamp(74px, 9vh, 114px);
  padding-bottom: clamp(90px, 13vh, 170px);
}
.hero-grid {
  position: absolute;
  z-index: -2;
  inset: -1px calc((100vw - min(1320px, 100vw - 72px)) / -2) 0;
  opacity: 0.28;
  background-image: linear-gradient(rgba(102, 171, 190, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(102, 171, 190, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, black, transparent 80%);
}
.hero-aura {
  position: absolute;
  z-index: -1;
  width: 440px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero-aura-one { top: 2%; right: 4%; background: rgba(0, 185, 220, 0.1); animation: aura-drift 10s ease-in-out infinite alternate; }
.hero-aura-two { right: 34%; bottom: 2%; width: 260px; background: rgba(0, 210, 162, 0.07); animation: aura-drift 13s ease-in-out -3s infinite alternate-reverse; }
@keyframes aura-drift { from { transform: translate3d(-10px, -14px, 0) scale(0.92); } to { transform: translate3d(15px, 20px, 0) scale(1.12); } }
.hero-content { max-width: 660px; }
.hero-content .eyebrow { margin-bottom: 30px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
.hero-content h1 {
  margin: 0;
  font-size: clamp(4rem, 8.2vw, 8rem);
  line-height: 1.04;
  letter-spacing: -0.075em;
  font-weight: 760;
}
.hero-content h1 span {
  color: transparent;
  background: linear-gradient(105deg, var(--ink) 10%, var(--accent) 65%, var(--accent-bright));
  background-clip: text;
  -webkit-background-clip: text;
}
.hero-subtitle { margin: 30px 0 0; color: var(--ink); font-size: clamp(15px, 1.5vw, 19px); letter-spacing: 0.1em; }
.hero-description { max-width: 440px; margin: 18px 0 0; color: var(--muted); font-size: 14px; line-height: 1.95; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 38px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 48px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.button:hover { transform: translateY(-3px); }
.button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms ease; }
.button:hover svg { transform: translateX(3px); }
.button-primary { color: var(--accent-contrast); background: linear-gradient(100deg, var(--accent), var(--accent-bright)); box-shadow: 0 10px 32px rgba(11, 194, 210, 0.14); }
.button-primary:hover { box-shadow: 0 14px 42px rgba(11, 194, 210, 0.25); }
.button-secondary { color: var(--ink); border-color: var(--line-strong); background: var(--surface-raised); }
.button-secondary:hover { border-color: var(--accent); }
.text-link { color: var(--muted); font-size: 12px; text-decoration: none; transition: color 180ms ease; }
.text-link span { display: inline-block; margin-left: 5px; color: var(--accent-bright); transition: transform 180ms ease; }
.text-link:hover { color: var(--ink); }
.text-link:hover span { transform: translate(2px, -2px); }

.terminal-card {
  --tilt-x: 2deg;
  --tilt-y: -4deg;
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(104, 199, 217, 0.23);
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(14, 29, 42, 0.97), rgba(7, 15, 25, 0.98));
  box-shadow: var(--card-shadow), 0 0 70px rgba(0, 177, 201, 0.06);
  transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--tilt-lift, 0px));
  transform-style: preserve-3d;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.25, 1), border-color 300ms ease, box-shadow 300ms ease;
}
.terminal-card:hover { --tilt-lift: -5px; border-color: rgba(32, 224, 212, 0.55); box-shadow: var(--card-shadow), 0 0 90px rgba(0, 177, 201, 0.14); }
.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 47px;
  padding: 0 17px;
  color: #8ca2b1;
  border-bottom: 1px solid rgba(144, 184, 199, 0.13);
  font: 10px var(--font-mono);
}
.terminal-lights { display: flex; gap: 6px; }
.terminal-lights i { width: 7px; height: 7px; border-radius: 50%; background: #516473; }
.terminal-lights i:first-child { background: #fa6861; }
.terminal-lights i:nth-child(2) { background: #e8bd55; }
.terminal-lights i:nth-child(3) { background: #44ca8f; }
.terminal-lock { color: #557382; font-size: 14px; }
.terminal-body { padding: clamp(20px, 3vw, 35px); }
.terminal-line { margin: 0 0 29px; color: #d1e0e6; font: 11px/1.7 var(--font-mono); }
.terminal-prompt { color: var(--accent-bright); }
.terminal-art { margin: 0 auto 30px; color: #718d9a; text-align: center; font: clamp(10px, 1.1vw, 13px)/1.9 var(--font-mono); }
.terminal-art b { color: var(--accent); font-weight: 600; }
.terminal-art i { color: var(--accent-bright); font-style: normal; }
.terminal-art em { color: #dbe8eb; font-style: normal; }
.terminal-art strong { color: #d6f3f5; font-weight: 520; letter-spacing: 0.15em; }
.terminal-result { display: flex; justify-content: space-between; gap: 12px; padding-top: 16px; color: #8fa8b5; border-top: 1px solid rgba(144, 184, 199, 0.14); font: 9px/1.6 var(--font-mono); }
.terminal-pulse { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #32ddbb; box-shadow: 0 0 12px #32ddbb; }
.terminal-scanline { position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(13, 33, 45, 0.13) 50%); background-size: 100% 4px; opacity: 0.17; pointer-events: none; }
.scroll-cue { position: absolute; bottom: 35px; left: 0; display: flex; align-items: center; gap: 16px; color: var(--faint); font: 9px var(--font-mono); letter-spacing: 0.16em; text-decoration: none; }
.scroll-cue i { position: relative; display: block; width: 52px; height: 1px; background: var(--line-strong); }
.scroll-cue i::after { position: absolute; inset: 0 auto 0 0; width: 20px; content: ""; background: var(--accent-bright); animation: cue-slide 1.8s ease-in-out infinite; }
@keyframes cue-slide { 0%, 100% { transform: translateX(0); opacity: 0.55; } 55% { transform: translateX(32px); opacity: 1; } }
.hero-index, .section-index { position: absolute; right: 0; bottom: 35px; color: var(--faint); font: 9px var(--font-mono); letter-spacing: 0.15em; }
.hero-index span, .section-index span { color: var(--accent-bright); }

.discover-section .section-motion-layer { padding-top: clamp(72px, 9vh, 112px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 38px; margin-bottom: 38px; }
.section-heading .eyebrow { margin-bottom: 17px; }
.section-heading h2, .developer-intro h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4.8vw, 4.3rem);
  line-height: 1.16;
  font-weight: 690;
  letter-spacing: -0.06em;
}
.section-aside { position: relative; margin: 0 0 4px; padding-right: 40px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.aside-mark { position: absolute; right: 0; bottom: 0; color: var(--accent-bright); font: 24px var(--font-mono); }
.showcase-shell { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--surface) 89%, transparent); box-shadow: var(--card-shadow); transform: perspective(1500px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--tilt-lift, 0px)); transform-style: preserve-3d; transition: transform 360ms cubic-bezier(0.2, 0.7, 0.25, 1), border-color 250ms ease, box-shadow 250ms ease; }
.showcase-topline { display: flex; justify-content: space-between; align-items: center; min-height: 50px; padding: 0 22px; border-bottom: 1px solid var(--line); }
.showcase-label { color: var(--muted); font: 9px var(--font-mono); letter-spacing: 0.14em; }
.showcase-label .status-dot { width: 6px; height: 6px; margin-right: 8px; }
.catalog-count { margin-left: 12px; color: var(--faint); letter-spacing: 0.04em; }
.showcase-counter { color: var(--muted); font: 10px var(--font-mono); }
.showcase-counter i { padding-inline: 5px; color: var(--faint); font-style: normal; }
.tab-strip {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  overscroll-behavior-x: contain;
}
.showcase-tab {
  position: relative;
  flex: 0 0 auto;
  min-height: 56px;
  padding: 0 18px;
  color: var(--muted);
  border: 0;
  background: transparent;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease;
}
.showcase-tab > span { margin-right: 7px; color: var(--faint); font: 9px var(--font-mono); }
.showcase-tab::after { position: absolute; right: 16px; bottom: -1px; left: 16px; height: 2px; content: ""; background: linear-gradient(90deg, var(--accent), var(--accent-bright)); transform: scaleX(0); transition: transform 220ms ease; }
.showcase-tab:hover { color: var(--ink); background: var(--accent-soft); }
.showcase-tab[aria-selected="true"] { color: var(--ink); }
.showcase-tab[aria-selected="true"] > span { color: var(--accent-bright); }
.showcase-tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab-panel { min-height: 395px; padding: clamp(22px, 3vw, 38px); }
.tab-panel.is-entering { animation: panel-enter 280ms cubic-bezier(0.2, 0.68, 0.25, 1) both; }
@keyframes panel-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.empty-state { display: grid; justify-items: center; align-content: center; min-height: 315px; text-align: center; }
.empty-glyph { display: grid; place-items: center; width: 47px; height: 47px; margin-bottom: 23px; color: var(--accent-bright); border: 1px solid var(--line-strong); border-radius: 14px; background: var(--accent-soft); font-size: 22px; transform: rotate(-8deg); }
.empty-state .eyebrow { margin-bottom: 10px; font-size: 9px; }
.empty-state h3 { margin: 0; font-size: clamp(20px, 2.2vw, 27px); font-weight: 620; letter-spacing: -0.035em; }
.empty-state > p:not(.eyebrow) { max-width: 460px; margin: 10px 0 22px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.empty-state .button { min-height: 42px; }
.swipe-hint { display: none; }
.section-footerline { display: flex; justify-content: space-between; gap: 20px; margin-top: 23px; color: var(--faint); font-size: 10px; }
.section-footerline a { color: var(--muted); text-decoration: none; transition: color 180ms ease; }
.section-footerline a:hover { color: var(--accent-bright); }
.section-footerline a span { color: var(--accent-bright); }

.catalog-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.catalog-intro h3 { margin: 0 0 5px; font-size: 17px; font-weight: 620; }
.catalog-intro p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.catalog-search { display: flex; align-items: stretch; gap: 0; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--surface-raised) 88%, transparent); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 3%, transparent), 0 8px 24px color-mix(in srgb, var(--ink) 3%, transparent); transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease; }
.catalog-search:focus-within { border-color: color-mix(in srgb, var(--accent) 58%, var(--line-strong)); box-shadow: 0 0 0 3px var(--accent-soft), inset 0 1px 0 color-mix(in srgb, var(--ink) 3%, transparent); }
.catalog-search label, .catalog-search-field { display: grid; min-width: 0; gap: 3px; padding: 4px 11px; color: var(--faint); font-size: 9px; }
.catalog-search label + .catalog-search-field { border-left: 1px solid var(--line); }
.catalog-search-field:focus-within > span { color: var(--accent-bright); }
.catalog-search input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]) { width: 100%; min-height: 42px; padding: 8px 28px 8px 0; border: 0; border-radius: 0; background-color: transparent; box-shadow: none; }
.catalog-search input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):focus-visible,
.catalog-select-trigger:focus-visible { border-color: transparent; box-shadow: none; outline: 0; }
.catalog-search > label:first-child { flex: 1 1 230px; }
.catalog-search > .catalog-search-field { flex: 0 0 142px; }
.catalog-search > button { margin-left: 6px; }
.catalog-select { position: relative; min-width: 0; }
.catalog-select-trigger { display: flex; width: 100%; min-height: 42px; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; color: var(--ink); border: 0; border-radius: 0; background: transparent; font: 11px/1.5 var(--font-sans); text-align: left; cursor: pointer; }
.catalog-select-trigger:hover { color: var(--accent-bright); }
.catalog-select-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-select-chevron { width: 8px; height: 8px; flex: 0 0 auto; margin: -4px 3px 0 0; border-right: 1.5px solid var(--faint); border-bottom: 1.5px solid var(--faint); transform: rotate(45deg); transition: transform 180ms ease; }
.catalog-select[data-open="true"] .catalog-select-chevron { margin-top: 4px; transform: rotate(225deg); }
.catalog-select-listbox { position: absolute; z-index: 40; top: calc(100% + 7px); left: 0; min-width: max(100%, 168px); max-width: min(320px, 78vw); max-height: min(280px, 42svh); padding: 6px; overflow: auto; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); box-shadow: 0 18px 42px color-mix(in srgb, var(--ink) 17%, transparent); scrollbar-color: var(--line-strong) transparent; scrollbar-width: thin; }
.catalog-select[data-placement="above"] .catalog-select-listbox { top: auto; bottom: calc(100% + 7px); }
.catalog-select-listbox[hidden] { display: none; }
.catalog-select-option { display: flex; min-height: 38px; align-items: center; padding: 7px 10px; color: var(--muted); border-radius: 7px; outline: 0; font: 11px/1.45 var(--font-sans); cursor: pointer; transition: color 140ms ease, background-color 140ms ease; }
.catalog-select-option:hover, .catalog-select-option:focus-visible, .catalog-select-option[data-active="true"] { color: var(--ink); background: var(--accent-soft); }
.catalog-select-option.is-selected { color: var(--accent-bright); }
.catalog-select-option.is-selected::after { width: 7px; height: 4px; flex: 0 0 auto; margin-left: auto; border-bottom: 1.5px solid currentColor; border-left: 1.5px solid currentColor; content: ""; transform: rotate(-45deg) translateY(-1px); }
.catalog-search input::placeholder { color: var(--faint); }
.catalog-search > button { display: grid; flex: 0 0 var(--control-height); place-items: center; width: var(--control-height); height: var(--control-height); padding: 0; color: var(--accent-contrast); border: 1px solid transparent; border-radius: var(--control-radius); background: linear-gradient(100deg, var(--accent), var(--accent-bright)); box-shadow: 0 8px 22px rgba(11, 194, 210, 0.14); cursor: pointer; transition: filter 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.catalog-search > button:hover { filter: brightness(1.08); box-shadow: 0 11px 28px rgba(11, 194, 210, 0.22); transform: translateY(-2px); }
.catalog-search > button:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }
.catalog-search > button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.catalog-status { min-height: 20px; margin: 0 0 12px; color: var(--muted); font-size: 10px; }
.catalog-grid {
  display: grid;
  grid-auto-columns: min(350px, calc(100vw - 88px));
  grid-auto-flow: column;
  gap: 12px;
  padding: 5px 3px 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}
.catalog-grid > * { scroll-snap-align: start; }
.friend-link-card { min-height: 220px; }
.friend-link-mark { display: grid; place-items: center; color: var(--accent-bright); border: 1px solid var(--line-strong); border-radius: 9px; background: var(--accent-soft); font: 18px var(--font-mono); }
.friend-link-summary { min-height: 56px; overflow-wrap: anywhere; }
.friend-link-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; margin-top: 26px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--surface-raised) 86%, transparent); }
.friend-link-form-title { grid-column: 1 / -1; margin: 0; font-size: 13px; font-weight: 620; }
.friend-link-form-help { grid-column: 1 / -1; margin: -5px 0 3px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.friend-link-field { display: grid; min-width: 0; gap: 6px; color: var(--muted); font-size: 10px; }
.friend-link-field-wide { grid-column: 1 / -1; }
.friend-link-field textarea { min-height: 82px; resize: vertical; }
.friend-link-form > button { justify-self: start; min-height: 40px; }
.friend-link-submit-status { align-self: center; min-height: 18px; margin: 0; color: var(--muted); font-size: 10px; }
.friend-link-submit-status.is-error { color: var(--danger); }
.friend-link-empty { min-height: 218px; }
.catalog-empty-state {
  display: grid;
  grid-column: auto;
  justify-items: center;
  align-content: center;
  min-height: 270px;
  padding: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  text-align: center;
  width: min(100%, 420px);
  scroll-snap-align: start;
}
.catalog-empty-state .empty-glyph { margin-bottom: 15px; }
.catalog-empty-state h4 { margin: 0; font-size: 15px; font-weight: 620; }
.catalog-empty-state p { max-width: 390px; margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.catalog-empty-state .button { margin-top: 17px; min-height: 38px; }
.app-card {
  --pointer-x: 50%;
  --pointer-y: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 268px;
  scroll-snap-align: start;
  padding: 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-raised);
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--tilt-lift, 0px));
  transform-style: preserve-3d;
  transition: border-color 220ms ease, transform 220ms cubic-bezier(0.2, 0.7, 0.25, 1), box-shadow 250ms ease;
}
.app-card::before { position: absolute; inset: 0; content: ""; opacity: 0; background: radial-gradient(320px circle at var(--pointer-x) var(--pointer-y), rgba(26, 204, 220, 0.09), transparent 60%); transition: opacity 260ms ease; pointer-events: none; }
.app-card:hover { --tilt-lift: -4px; z-index: 1; border-color: rgba(31, 209, 221, 0.48); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.17); }
.app-card:hover::before { opacity: 1; }
.app-card-head, .app-card-copy, .app-card-actions { position: relative; z-index: 1; }
.app-card-head { display: flex; align-items: center; gap: 11px; }
.app-mark {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 43px;
  height: 43px;
  color: var(--accent-bright);
  border: 1px solid rgba(31, 209, 221, 0.32);
  overflow: visible;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  font-size: 17px;
  font-weight: 720;
}
.app-initial { position: relative; z-index: 0; }
.app-icon { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.platform-badges { position: absolute; z-index: 2; right: -7px; bottom: -5px; display: flex; gap: 2px; max-width: 75px; }
.platform-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 13px; padding: 0 3px; color: #dbfaff; border: 1px solid rgba(66, 219, 224, 0.42); border-radius: 4px; background: #10232e; box-shadow: 0 2px 7px rgba(0, 0, 0, 0.35); font: 6px/1 var(--font-mono); white-space: nowrap; }
.platform-badge-more { color: var(--accent-bright); }
.app-title-wrap { min-width: 0; }
.app-title-wrap h3 { margin: 0; overflow: hidden; font-size: 13px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.app-publisher { margin: 4px 0 0; color: var(--faint); font: 9px var(--font-mono); overflow-wrap: anywhere; }
.app-maintenance { display: inline-flex; align-items: center; width: fit-content; margin-top: 6px; padding: 3px 7px; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; background: var(--surface-raised); font-size: 9px; line-height: 1.35; }
.app-category { display: inline-flex; align-items: center; min-height: 21px; margin-top: 14px; padding: 0 8px; color: var(--accent-bright); border: 1px solid var(--line); border-radius: 99px; background: var(--accent-soft); font: 8px var(--font-mono); }
.app-summary { display: -webkit-box; min-height: 40px; margin: 10px 0 0; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.8; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.channel-list, .dialog-channels { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.channel-chip { padding: 4px 7px; color: var(--faint); border: 1px solid var(--line); border-radius: 4px; font: 8px var(--font-mono); }
.app-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 16px; }
.action-chip {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 28px;
  padding: 0 8px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  font-size: 9px;
  text-decoration: none;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.action-chip:hover { color: var(--ink); border-color: var(--line-strong); background: var(--surface-raised); transform: translateY(-1px); }
.action-chip.is-primary { color: var(--accent-bright); border-color: rgba(31, 209, 221, 0.34); }
.action-chip[aria-disabled="true"] { color: var(--faint); border-style: dashed; cursor: help; }
.action-chip[aria-disabled="true"]::after {
  position: absolute;
  z-index: 10;
  bottom: calc(100% + 8px);
  left: 50%;
  width: max-content;
  max-width: 220px;
  padding: 7px 9px;
  color: #e7f6f8;
  border: 1px solid rgba(126, 196, 207, 0.25);
  border-radius: 5px;
  background: #10212c;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  content: attr(data-tooltip);
  font-size: 9px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
}
.action-chip[aria-disabled="true"]:hover::after, .action-chip[aria-disabled="true"]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 20px; }
.pagination button { min-height: var(--control-height); padding: 0 15px; color: var(--ink); border: 1px solid var(--control-border); border-radius: var(--control-radius); background: var(--control-bg); font-size: 11px; cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease; }
.pagination button:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-2px); }
.pagination button:disabled { color: var(--faint); cursor: not-allowed; opacity: 0.55; }
.pagination span { min-width: 112px; color: var(--muted); font: 10px var(--font-mono); text-align: center; }

.developer-section { min-height: max(700px, calc(100svh - 74px)); }
.developer-section .section-motion-layer { display: grid; align-items: center; }
.developer-layout { display: grid; grid-template-columns: 0.82fr 1.18fr; align-items: center; gap: clamp(48px, 10vw, 150px); }
.developer-orbit { position: absolute; z-index: -1; top: 50%; right: -8%; width: min(55vw, 660px); aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; transform: translateY(-50%); }
.developer-orbit::before, .developer-orbit::after { position: absolute; inset: 9%; content: ""; border: 1px solid var(--line); border-radius: inherit; }
.developer-orbit::after { inset: 22%; border-color: rgba(27, 205, 220, 0.14); box-shadow: 0 0 80px rgba(25, 193, 214, 0.06); }
.developer-intro { max-width: 480px; }
.developer-intro h2 { margin-bottom: 21px; }
.developer-intro > p:not(.eyebrow) { max-width: 430px; margin: 0 0 27px; color: var(--muted); font-size: 13px; line-height: 2; }
.developer-intro > .text-link { display: flex; width: fit-content; margin-top: 12px; }
.developer-directory { min-width: 0; }
.developer-status { min-height: 22px; margin: 0 0 10px; color: var(--muted); font-size: 10px; }
.developer-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.developer-card { min-width: 0; padding: 16px; border: 1px solid var(--line-strong); border-radius: 11px; background: color-mix(in srgb, var(--surface-raised) 90%, transparent); box-shadow: var(--card-shadow); transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--tilt-lift, 0px)); transform-style: preserve-3d; transition: transform 220ms ease, border-color 180ms ease, background-color 180ms ease; }
.developer-card:hover { --tilt-lift: -3px; border-color: color-mix(in srgb, var(--accent) 55%, var(--line-strong)); }
.developer-card-head { display: flex; align-items: center; gap: 11px; }
.developer-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 48px; height: 48px; overflow: hidden; color: var(--accent-bright); border: 1px solid color-mix(in srgb, var(--accent) 46%, var(--line)); border-radius: 50%; background: var(--accent-soft); font: 15px var(--font-mono); }
.developer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.developer-card-identity { min-width: 0; }
.developer-card-identity h3 { margin: 0 0 4px; overflow: hidden; font-size: 13px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.developer-handle { color: var(--faint); font: 9px var(--font-mono); }
.developer-bio { display: -webkit-box; min-height: 37px; margin: 12px 0; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.8; white-space: pre-line; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.developer-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 11px 0; }
.developer-social-link { padding: 5px 7px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; font-size: 8px; text-decoration: none; transition: color 160ms ease, border-color 160ms ease; }
.developer-social-link:hover { color: var(--accent-bright); border-color: var(--line-strong); }
.developer-profile-link { display: inline-block; margin-top: 8px; color: var(--accent-bright); font-size: 9px; text-decoration: none; }
.developer-profile-link:hover { text-decoration: underline; }
.developer-empty {
  position: relative;
  max-width: 620px;
  min-height: 450px;
  padding: clamp(27px, 5vw, 58px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface-raised) 94%, transparent), color-mix(in srgb, var(--surface) 90%, transparent));
  box-shadow: var(--card-shadow);
  transform: perspective(1500px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--tilt-lift, 0px));
  transform-style: preserve-3d;
  transition: transform 360ms cubic-bezier(0.2, 0.7, 0.25, 1), border-color 250ms ease, box-shadow 250ms ease;
}
.developer-empty:hover { --tilt-lift: -3px; border-color: color-mix(in srgb, var(--accent) 45%, var(--line-strong)); box-shadow: var(--card-shadow), 0 0 60px color-mix(in srgb, var(--accent) 8%, transparent); }
.developer-empty::before { position: absolute; top: -130px; right: -130px; width: 310px; aspect-ratio: 1; content: ""; border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 0 0 34px color-mix(in srgb, var(--line) 22%, transparent), 0 0 0 70px color-mix(in srgb, var(--line) 16%, transparent); }
.profile-preview { position: relative; display: grid; grid-template-columns: 68px 1fr; align-items: center; gap: 18px; max-width: 330px; margin-bottom: 37px; padding-bottom: 21px; border-bottom: 1px solid var(--line); }
.profile-avatar { position: relative; display: grid; place-items: center; width: 61px; height: 61px; color: var(--accent-bright); border: 1px solid rgba(31, 209, 221, 0.38); border-radius: 50%; background: var(--accent-soft); font: 15px var(--font-mono); }
.profile-avatar span { position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 20px; height: 20px; color: var(--accent-contrast); border: 2px solid var(--surface); border-radius: 50%; background: var(--accent-bright); font-size: 13px; }
.profile-lines { display: grid; gap: 8px; }
.profile-lines i { display: block; width: 70%; height: 6px; border-radius: 99px; background: var(--line-strong); }
.profile-lines i:first-child { width: 46%; height: 9px; background: color-mix(in srgb, var(--muted) 48%, transparent); }
.profile-lines i:last-child { width: 58%; }
.profile-grid { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.profile-grid i { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 5px; background: var(--accent-soft); }
.profile-grid i:nth-child(3n) { background: rgba(46, 233, 210, 0.18); }
.profile-state { color: var(--accent-bright); font: 9px var(--font-mono); letter-spacing: 0.12em; }
.profile-state i { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--accent-bright); vertical-align: 1px; }
.developer-empty h3 { position: relative; margin: 18px 0 9px; font-size: clamp(20px, 2.2vw, 27px); font-weight: 620; letter-spacing: -0.035em; }
.developer-empty > p { position: relative; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }

.about-section .section-motion-layer { padding-bottom: 74px; }
.about-lede { max-width: 440px; margin: 0 0 5px; color: var(--muted); font-size: 12px; line-height: 2; }
.about-columns { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 13px; }
.about-card { min-width: 0; min-height: 263px; padding: clamp(19px, 2.7vw, 30px); border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--surface) 83%, transparent); transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--tilt-lift, 0px)); transform-style: preserve-3d; transition: transform 220ms ease, border-color 180ms ease, box-shadow 220ms ease; }
.about-card:hover { --tilt-lift: -3px; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--card-shadow); }
.subsection-topline { display: flex; justify-content: space-between; gap: 15px; color: var(--faint); font: 9px var(--font-mono); letter-spacing: 0.1em; }
.subsection-topline .eyebrow { margin: 0; font-size: 9px; }
.about-card h3 { margin: 18px 0 10px; font-size: 18px; font-weight: 620; }
.inline-status { min-height: 20px; margin: 0 0 10px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.announcement-list, .faq-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.announcement-item { padding: 11px 0; border-top: 1px solid var(--line); }
.announcement-item h4 { margin: 0 0 4px; font-size: 11px; font-weight: 580; }
.announcement-item time { color: var(--faint); font: 8px var(--font-mono); }
.announcement-item p { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.75; white-space: pre-wrap; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; color: var(--ink); font-size: 11px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { color: var(--accent-bright); content: "+"; font: 17px var(--font-mono); transition: transform 180ms ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item > p { margin: 0 0 12px; color: var(--muted); font-size: 10px; line-height: 1.85; white-space: pre-wrap; }
.about-bottom { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-top: 22px; padding: 22px 0 0; border-top: 1px solid var(--line); }
.school-mark-wrap { display: flex; align-items: center; gap: 16px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.school-logo-link { display: inline-flex; border-radius: 8px; outline-offset: 5px; }
.school-logo-link:focus-visible { outline: 2px solid var(--accent-bright); }
.school-logo-art { transition: transform 180ms ease; }
.school-logo-link:hover .school-logo-art { transform: translateY(-2px); }
.school-logo-art { display: flex; flex: 0 0 auto; width: min(clamp(150px, 20vw, 230px), 195px); aspect-ratio: 3 / 1; overflow: hidden; }
.school-logo-seal { flex: 0 0 33.3333%; aspect-ratio: 1; background-image: url("../assets/jianghan-wordmark.png"); background-repeat: no-repeat; background-position: left center; background-size: 300% 100%; }
.school-logo-wordmark { flex: 1 1 auto; min-width: 0; background-color: #f2f7fc; -webkit-mask-image: url("../assets/jianghan-wordmark.png"); mask-image: url("../assets/jianghan-wordmark.png"); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: right center; mask-position: right center; -webkit-mask-size: 150% 100%; mask-size: 150% 100%; }
.school-mark-wrap span, .about-bottom-copy > span { color: #9ab2bd; font: 8px/1.7 var(--font-mono); letter-spacing: 0.09em; }
:root[data-theme="light"] .school-logo-wordmark { background-color: #153b5d; }
:root[data-theme="light"] .school-mark-wrap span { color: var(--muted); }
.about-bottom-copy { max-width: 380px; text-align: right; }
.about-bottom-copy p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 14px max(36px, calc((100vw - 1320px) / 2));
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
}
.footer-brand { gap: 8px; font-size: 10px; font-weight: 620; text-decoration: none; white-space: nowrap; }
.footer-brand img { width: 25px; height: 25px; border-radius: 7px; object-fit: contain; }
.footer-disclaimer { color: var(--faint); font-size: 9px; line-height: 1.6; text-align: center; }
.filing-link { color: var(--muted); font-size: 9px; text-decoration: none; white-space: nowrap; }
.filing-link span { color: var(--accent-bright); }
.filing-link:hover { color: var(--accent-bright); }

.app-dialog {
  position: fixed;
  inset: 50% auto auto 50%;
  width: min(620px, calc(100% - 32px));
  max-height: min(82svh, 760px);
  padding: 0;
  overflow: auto;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -47%);
  opacity: 0;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 0.7, 0.25, 1), overlay 180ms allow-discrete, display 180ms allow-discrete;
}
.app-dialog[open] { opacity: 1; transform: translate(-50%, -50%); }
.app-dialog::backdrop { background: rgba(2, 7, 12, 0.74); backdrop-filter: blur(5px); }
.dialog-dismiss { position: sticky; z-index: 2; top: 0; display: flex; justify-content: end; padding: 14px 14px 0; }
.dialog-dismiss .icon-button { width: 34px; height: 34px; font-size: 20px; line-height: 1; }
.dialog-content { padding: 7px clamp(22px, 5vw, 42px) 38px; }
.dialog-content .eyebrow { margin: 0 0 11px; }
.dialog-content h2 { margin: 0; font-size: clamp(24px, 5vw, 34px); letter-spacing: -0.05em; }
.dialog-byline { margin: 10px 0 20px; color: var(--muted); font-size: 10px; }
.dialog-summary, .dialog-description { color: var(--ink); font-size: 12px; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; }
.dialog-summary { color: var(--muted); }
.dialog-description { padding-top: 12px; border-top: 1px solid var(--line); }
.dialog-homepage { margin-top: 24px; }
.toast {
  position: fixed;
  z-index: 500;
  right: 22px;
  bottom: 22px;
  max-width: min(380px, calc(100% - 32px));
  padding: 12px 16px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-raised);
  box-shadow: var(--card-shadow);
  font-size: 11px;
  line-height: 1.7;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
.motion-ready .reveal-on-scroll { opacity: 0; transform: translateY(18px); transition: opacity 650ms ease, transform 650ms cubic-bezier(0.18, 0.66, 0.28, 1); }
.motion-ready .reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.motion-ready .terminal-card.reveal-on-scroll { --tilt-lift: 18px; transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--tilt-lift)); }
.motion-ready .terminal-card.reveal-on-scroll.is-visible { --tilt-lift: 0px; }
.motion-ready .showcase-shell.reveal-on-scroll[data-pointer-tilt] { --reveal-offset: 18px; transform: perspective(1500px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(calc(var(--tilt-lift, 0px) + var(--reveal-offset))); }
.motion-ready .showcase-shell.reveal-on-scroll[data-pointer-tilt].is-visible { --reveal-offset: 0px; }

[data-pointer-tilt] { will-change: transform; }

::view-transition-old(root) { animation: none; }
::view-transition-new(root) {
  animation: theme-reveal 680ms cubic-bezier(0.18, 0.72, 0.24, 1) both;
}
:root.theme-revealing::before {
  position: fixed;
  z-index: 2000;
  top: var(--theme-origin-y, 50vh);
  left: var(--theme-origin-x, 50vw);
  width: 1px;
  height: 1px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 24%, transparent);
  content: "";
  opacity: 0.78;
  pointer-events: none;
  animation: theme-button-ripple 680ms cubic-bezier(0.18, 0.72, 0.24, 1) both;
}
@keyframes theme-button-ripple {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 24%, transparent); opacity: 0.78; }
  72% { opacity: 0.2; }
  100% { box-shadow: 0 0 0 150vmax transparent; opacity: 0; }
}
@keyframes theme-reveal {
  from { clip-path: circle(0 at var(--theme-origin-x, 50vw) var(--theme-origin-y, 50vh)); }
  to { clip-path: circle(150vmax at var(--theme-origin-x, 50vw) var(--theme-origin-y, 50vh)); }
}

@media (max-width: 960px) {
  .header-inner, .screen-section { width: min(100% - 48px, 900px); }
  .hero-section .section-motion-layer { grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr); gap: 36px; }
  .hero-content h1 { font-size: clamp(3.8rem, 9vw, 6rem); }
  .developer-layout { grid-template-columns: 0.85fr 1.15fr; gap: 40px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 64px; }
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .header-inner { width: calc(100% - 32px); height: 64px; gap: 12px; }
  .brand img { width: 34px; height: 34px; }
  .brand-name { font-size: 12px; }
  .theme-toggle { width: 36px; height: 36px; }
  .primary-nav {
    position: fixed;
    z-index: 200;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    left: max(12px, env(safe-area-inset-left));
    justify-content: space-around;
    gap: 4px;
    min-height: 56px;
    padding: 5px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    box-shadow: 0 12px 42px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  .primary-nav a { flex: 1; padding: 9px 2px; font-size: 10px; text-align: center; }
  .primary-nav a::after { right: 22%; bottom: 3px; left: 22%; }
  .screen-section { width: calc(100% - 32px); min-height: calc(100svh - 64px); }
  .section-motion-layer { min-height: inherit; padding-block: 76px 88px; }
  .hero-section .section-motion-layer { display: flex; min-height: calc(100svh - 64px); flex-direction: column; align-items: stretch; justify-content: center; gap: 36px; padding-top: 54px; padding-bottom: 96px; }
  .hero-grid { inset: -1px -20px 0; background-size: 38px 38px; opacity: 0.22; }
  .hero-aura-one { top: 2%; right: -35%; width: 300px; }
  .hero-aura-two { right: 50%; bottom: 28%; width: 210px; }
  .hero-content .eyebrow { margin-bottom: 20px; font-size: 8px; letter-spacing: 0.13em; }
  .hero-content h1 { font-size: clamp(3.5rem, 16vw, 5.8rem); }
  .hero-subtitle { margin-top: 20px; font-size: 13px; }
  .hero-description { max-width: 350px; font-size: 12px; }
  .hero-actions { gap: 18px; margin-top: 26px; }
  .button { min-height: 44px; padding-inline: 15px; font-size: 11px; }
  .terminal-card { display: none; }
  .scroll-cue { bottom: 28px; font-size: 8px; }
  .hero-index, .section-index { bottom: 27px; font-size: 8px; }
  .section-heading { align-items: start; flex-direction: column; gap: 20px; margin-bottom: 27px; }
  .section-heading h2, .developer-intro h2 { font-size: clamp(2.05rem, 10vw, 3.1rem); }
  .section-aside { font-size: 10px; }
  .showcase-topline { min-height: 46px; padding-inline: 13px; }
  .showcase-label { font-size: 8px; }
  .catalog-count { display: block; margin: 5px 0 0 14px; }
  .tab-strip { scroll-snap-type: x proximity; }
  .showcase-tab { min-height: 50px; padding-inline: 13px; scroll-snap-align: start; font-size: 10px; }
  .showcase-tab::after { right: 11px; left: 11px; }
  .tab-panel { min-height: 380px; padding: 18px 13px; }
  .empty-state { min-height: 335px; }
  .empty-state h3 { font-size: 20px; }
  .empty-state > p:not(.eyebrow) { font-size: 10px; }
  .swipe-hint { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; color: var(--faint); border-top: 1px solid var(--line); font: 8px var(--font-mono); }
  .swipe-hint i { color: var(--accent-bright); font-size: 13px; font-style: normal; }
  .section-footerline { margin-top: 16px; font-size: 9px; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .catalog-search { display: grid; grid-template-columns: minmax(0, 1fr) 42px; column-gap: 8px; align-items: stretch; }
  .catalog-search > label:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .catalog-search > .catalog-search-field { grid-column: 1; grid-row: 2; border-left: 0; }
  .catalog-search input { width: 100%; }
  .catalog-select-listbox { max-width: min(320px, 82vw); }
  .catalog-search > button { grid-column: 2; grid-row: 2; width: 42px; margin-left: 0; align-self: end; }
  .catalog-grid { grid-auto-columns: min(84vw, 360px); }
  .friend-link-form { grid-template-columns: 1fr; }
  .friend-link-form-title,.friend-link-form-help,.friend-link-field-wide { grid-column: auto; }
  .app-card { min-height: 242px; padding: 16px; }
  .developer-section { min-height: auto; }
  .developer-section .section-motion-layer { min-height: auto; }
  .developer-layout { grid-template-columns: 1fr; gap: 38px; }
  .developer-intro > p:not(.eyebrow) { font-size: 12px; }
  .developer-empty { min-height: 370px; padding: 25px; }
  .developer-grid { grid-template-columns: 1fr; }
  .profile-preview { margin-bottom: 29px; }
  .developer-orbit { top: 42%; right: -45%; width: 100vw; }
  .about-section .section-motion-layer { padding-bottom: 84px; }
  .about-lede { font-size: 11px; }
  .about-columns { grid-template-columns: 1fr; }
  .about-card { min-height: 220px; padding: 20px; }
  .about-bottom { align-items: start; flex-direction: column; gap: 18px; }
  .school-mark-wrap { align-items: start; flex-direction: column; gap: 8px; }
  .school-logo-art { width: min(64vw, 195px); }
  .about-bottom-copy { text-align: left; }
  .site-footer { align-items: start; flex-direction: column; gap: 9px; padding: 20px 16px 88px; }
  .footer-disclaimer { text-align: left; }
  .toast { right: 16px; bottom: calc(82px + env(safe-area-inset-bottom)); left: 16px; max-width: none; text-align: center; }
}
@media (max-width: 380px) {
  .header-inner { width: calc(100% - 24px); }
  .brand-name { font-size: 11px; }
  .screen-section { width: calc(100% - 24px); }
  .hero-content h1 { font-size: 3.35rem; }
  .hero-actions { align-items: start; flex-direction: column; gap: 14px; }
  .showcase-label { letter-spacing: 0.08em; }
}
@media (hover: none) {
  .app-card:hover { transform: none; }
  [data-pointer-tilt] { --tilt-x: 0deg; --tilt-y: 0deg; --tilt-lift: 0px; will-change: auto; }
  [data-pointer-tilt]:hover { --tilt-lift: 0px; }
  .action-chip[aria-disabled="true"]::after { display: none; }
}
@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;
  }
  .intro-screen { display: none; }
  .screen-section { opacity: 1 !important; transform: none !important; will-change: auto !important; }
  .motion-ready .reveal-on-scroll, .motion-ready .reveal-on-scroll.is-visible { opacity: 1; transform: none; }
  [data-pointer-tilt] { --tilt-x: 0deg; --tilt-y: 0deg; --tilt-lift: 0px; will-change: auto; }
  [data-pointer-tilt]:hover { --tilt-lift: 0px; }
  :root.theme-revealing::before { display: none; }
  ::view-transition-new(root) { animation: none; }
}
