:root {
  color-scheme: dark;
  --bg: #08111f;
  --bg-deep: #040914;
  --surface: rgba(10, 18, 32, 0.72);
  --surface-strong: rgba(15, 24, 42, 0.9);
  --line: rgba(166, 196, 255, 0.16);
  --text: #f5f7fb;
  --muted: #a5b5cc;
  --soft: #7d8ba3;
  --accent: #74c0fc;
  --accent-strong: #2f7df6;
  --accent-warm: #8ff0d2;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --content-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(47, 125, 246, 0.22), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(143, 240, 210, 0.12), transparent 22%),
    linear-gradient(180deg, #0b1322 0%, #07101d 45%, #040914 100%);
  line-height: 1.6;
}

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

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

main {
  display: block;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 16px 20px 0;
}

.nav-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 10, 20, 0.55);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 2px solid rgba(223, 241, 255, 0.8);
  box-shadow:
    0 0 0 4px rgba(116, 192, 252, 0.1),
    0 10px 22px rgba(0, 0, 0, 0.22);
  flex: 0 0 auto;
}

.brand-text {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

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

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  overflow: clip;
}

.hero-home {
  padding: 72px 20px 40px;
}

.hero-shell,
.projects-section,
.values-section,
.site-footer,
.about,
.content {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
}

.hero-shell {
  position: relative;
  display: block;
  align-items: stretch;
}

.hero-copy,
.project-card,
.value-card,
.about,
.content {
  position: relative;
  z-index: 1;
}

.hero-copy {
  padding: clamp(32px, 6vw, 72px);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(10, 19, 35, 0.9), rgba(6, 12, 24, 0.78));
  border: 1px solid rgba(166, 196, 255, 0.12);
  box-shadow: var(--shadow);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(116, 192, 252, 0.28), transparent 24%),
    radial-gradient(circle at 78% 24%, rgba(143, 240, 210, 0.18), transparent 20%),
    radial-gradient(circle at 60% 75%, rgba(78, 120, 255, 0.15), transparent 28%);
  filter: blur(18px);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-warm);
  font: 700 0.8rem/1.4 "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero-title,
.section-heading h2,
.about h1 {
  margin: 0;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2em;
  max-width: none;
  font-size: clamp(1.8rem, 4.3vw, 3.9rem);
  background: linear-gradient(135deg, #ffffff 0%, #b7d8ff 35%, #dbfff5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: floatIn 0.9s ease both;
}

.hero-title-static,
.hero-title-rotator {
  display: inline-block;
}

.hero-title-series {
  display: inline-flex;
  align-items: baseline;
  gap: 0.12em;
}

.hero-title-rotator {
  min-height: 1.05em;
  background: linear-gradient(135deg, #8ff0d2 0%, #f5f7fb 52%, #8fc7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(0.18em);
  filter: blur(8px);
  transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}

.hero-title-rotator.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.hero-title-suffix {
  display: inline-block;
  white-space: nowrap;
}

.hero-subtitle,
.section-copy,
.project-card p,
.value-card p,
.about p,
.content p {
  color: var(--muted);
}

.hero-subtitle {
  max-width: 52rem;
  margin: 24px 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #07101d;
  background: linear-gradient(135deg, #f3fbff, #8ff0d2);
  box-shadow: 0 14px 40px rgba(143, 240, 210, 0.18);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.stat-card {
  padding: 18px 18px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-card strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.glass-card {
  background: linear-gradient(180deg, rgba(17, 28, 48, 0.8), rgba(8, 16, 30, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.projects-section,
.values-section {
  padding: 56px 0 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading.compact {
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: clamp(1.65rem, 3.6vw, 2.7rem);
}

.section-copy {
  margin: 16px 0 0;
  font-size: 1rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(14, 23, 40, 0.96), rgba(9, 15, 28, 0.88)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.project-card-featured {
  background:
    radial-gradient(circle at top right, rgba(116, 192, 252, 0.18), transparent 35%),
    linear-gradient(180deg, rgba(15, 28, 48, 0.96), rgba(8, 16, 30, 0.88));
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(143, 240, 210, 0.28);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.project-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.project-card-head .project-meta {
  margin-bottom: 0;
}

.project-card-icon {
  width: 54px;
  height: 54px;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
  flex: 0 0 auto;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #d6e9ff;
  font: 700 0.75rem/1 "Space Grotesk", sans-serif;
  letter-spacing: 0.08em;
  background: rgba(116, 192, 252, 0.12);
  border: 1px solid rgba(116, 192, 252, 0.18);
}

.project-card h3,
.value-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.project-title-link {
  color: inherit;
  transition: color 0.25s ease;
}

.project-title-link:hover,
.project-title-link:focus-visible {
  color: #d7f2ff;
}

.project-card p {
  margin: 14px 0 22px;
  flex: 1;
}

.project-card a,
.site-footer a {
  color: #a9dcff;
}

.project-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.project-link-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-card a:hover,
.site-footer a:hover,
.project-card a:focus-visible,
.site-footer a:focus-visible {
  color: #d7f2ff;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: 72px;
}

.value-card {
  padding: 24px;
}

.value-card p {
  margin: 12px 0 0;
}

.about {
  padding: 100px clamp(24px, 5vw, 48px);
  text-align: center;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(116, 192, 252, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(12, 21, 38, 0.9), rgba(6, 12, 24, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  margin-top: 56px;
}

.about h1 {
  margin-top: 0;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
}

.about-lead {
  margin: 20px auto 0;
  max-width: 34rem;
  color: var(--text);
  font-size: clamp(1.08rem, 2.2vw, 1.3rem);
  font-weight: 600;
  line-height: 1.7;
}

.about p {
  margin: 16px auto 0;
  max-width: 42rem;
}

.about-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  color: #d7f2ff;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

.about-email:hover,
.about-email:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(143, 240, 210, 0.28);
}

.about-links-section {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 28px auto 0;
  padding-bottom: 72px;
}

.about-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.about-link-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius-md);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.about-link-card:hover,
.about-link-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(143, 240, 210, 0.28);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.24);
}

.about-link-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.about-link-card p {
  margin: 8px 0 0;
  color: var(--muted);
  word-break: break-word;
}

.about-link-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px;
  border: 1px solid rgba(116, 192, 252, 0.14);
  flex: 0 0 auto;
}

.credits-page {
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(47, 125, 246, 0.22), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(143, 240, 210, 0.12), transparent 22%),
    linear-gradient(180deg, #0b1322 0%, #07101d 45%, #040914 100%);
}

.credits-page .nav-inner {
  background: rgba(5, 10, 20, 0.55);
  border-color: var(--line);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.credits-page .nav-links a {
  color: var(--muted);
}

.credits-page .nav-links a:hover,
.credits-page .nav-links a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.credits-page .brand-text,
.credits-page .site-footer,
.credits-page .site-footer a {
  color: inherit;
}

.credits-main {
  padding: 56px 0 0;
}

.credits-hero-shell,
.credits-wall-section {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
}

.credits-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 22px;
  align-items: stretch;
}

.credits-header-card,
.credits-summary-card {
  padding: clamp(24px, 4vw, 32px);
  border-radius: 28px;
  border: 1px solid rgba(166, 196, 255, 0.12);
  background: linear-gradient(180deg, rgba(10, 19, 35, 0.9), rgba(6, 12, 24, 0.78));
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.credits-header-card h1 {
  margin: 0;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.credits-copy {
  color: var(--muted);
}

.credits-header-card .credits-copy {
  margin: 20px 0 0;
  max-width: 42rem;
  font-size: 1rem;
}

.credits-summary-card {
  display: grid;
  gap: 14px;
}

.credits-qr-card {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.credits-qr-image {
  width: min(100%, 220px);
  aspect-ratio: 1 / 1;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.credits-qr-caption {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.credits-stat {
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.credits-stat strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
}

.credits-stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.credits-wall-section {
  padding: 28px 0 72px;
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
}

.credit-person-card {
  padding: 16px 10px 14px;
  text-align: center;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(14, 23, 40, 0.96), rgba(9, 15, 28, 0.88));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.credit-person-card:hover,
.credit-person-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(143, 240, 210, 0.28);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
}

.credit-person-avatar {
  width: 58px;
  height: 58px;
  display: block;
  margin: 0 auto 10px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.credit-person-card h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.credits-footer {
  padding-bottom: 56px;
}

.help-page,
.doc-page {
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(47, 125, 246, 0.22), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(143, 240, 210, 0.12), transparent 22%),
    linear-gradient(180deg, #0b1322 0%, #07101d 45%, #040914 100%);
}

.help-main,
.doc-main {
  padding: 56px 0 72px;
}

.help-hero-shell,
.help-grid-section,
.doc-shell {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
}

.help-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 22px;
  align-items: stretch;
}

.help-header-card,
.help-summary-card {
  padding: clamp(24px, 4vw, 32px);
  border-radius: 28px;
  border: 1px solid rgba(166, 196, 255, 0.12);
  background: linear-gradient(180deg, rgba(10, 19, 35, 0.9), rgba(6, 12, 24, 0.78));
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.help-header-card h1 {
  margin: 0;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.3rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.help-copy,
.help-summary-card p {
  color: var(--muted);
}

.help-copy {
  margin: 20px 0 0;
  max-width: 42rem;
}

.help-summary-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.help-summary-card strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
}

.help-summary-card p {
  margin: 0;
}

.help-grid-section {
  padding-top: 28px;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.help-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 260px;
  padding: 24px;
  color: inherit;
  border-radius: var(--radius-md);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, opacity 0.28s ease;
}

.help-card-active:hover,
.help-card-active:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(143, 240, 210, 0.28);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
}

.help-card-disabled {
  opacity: 0.72;
}

.help-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.help-card-badge,
.help-card-platform {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font: 700 0.75rem/1 "Space Grotesk", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.help-card-badge {
  color: #06111d;
  background: linear-gradient(135deg, #f3fbff, #8ff0d2);
}

.help-card-badge-muted {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

.help-card-platform {
  color: #d6e9ff;
  background: rgba(116, 192, 252, 0.12);
  border: 1px solid rgba(116, 192, 252, 0.18);
  text-transform: none;
}

.help-card h3 {
  margin: 0;
  font-size: 1.5rem;
}

.help-card p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

.help-card-link {
  color: #a9dcff;
  font-weight: 700;
}

.doc-shell {
  padding: clamp(24px, 4vw, 40px);
  border-radius: 28px;
}

.doc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.doc-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: #d7f2ff;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.doc-kicker {
  margin: 0;
  color: var(--soft);
  font: 700 0.8rem/1.4 "Space Grotesk", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.doc-empty-state h1,
.doc-article h1,
.doc-article h2,
.doc-article h3 {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.doc-empty-state h1,
.doc-article h1 {
  margin: 0 0 20px;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
}

.doc-article h2 {
  margin: 40px 0 16px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.doc-article h3 {
  margin: 24px 0 12px;
  font-size: 1.18rem;
}

.doc-empty-state p,
.doc-article p,
.doc-article li {
  color: var(--muted);
}

.doc-article p,
.doc-article ul,
.doc-article ol,
.doc-article pre,
.doc-article hr {
  margin: 0 0 18px;
}

.doc-article ul,
.doc-article ol {
  padding-left: 1.4rem;
}

.doc-article li + li {
  margin-top: 8px;
}

.doc-article hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.doc-article a {
  color: #a9dcff;
}

.doc-article strong {
  color: var(--text);
}

.doc-article code {
  padding: 0.14em 0.4em;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #dff4ff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92em;
}

.doc-article pre {
  overflow-x: auto;
  padding: 18px;
  border-radius: 18px;
  background: rgba(6, 12, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.doc-article pre code {
  padding: 0;
  background: transparent;
}

.content {
  padding: 56px clamp(24px, 5vw, 40px);
}

.site-footer,
footer {
  padding: 0 0 48px;
  text-align: center;
}

.site-footer {
  display: grid;
  gap: 8px;
  color: var(--soft);
}

.site-footer p,
footer p {
  margin: 0;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 760px) {
  .nav {
    padding: 12px 14px 0;
  }

  .nav-inner {
    border-radius: 26px;
    padding: 14px;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-right {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links {
    width: auto;
    flex: 1;
    justify-content: flex-start;
  }

  .hero-home {
    padding: 28px 14px 20px;
  }

  .hero-shell,
  .projects-section,
  .values-section,
  .about-links-section,
  .help-hero-shell,
  .help-grid-section,
  .credits-hero-shell,
  .credits-wall-section,
  .site-footer,
  .about,
  .content,
  .doc-shell {
    width: min(var(--content-width), calc(100% - 28px));
  }

  .hero-copy {
    padding: 24px;
  }

  .credits-main {
    padding-top: 32px;
  }

  .help-main,
  .doc-main {
    padding-top: 32px;
  }

  .help-hero-shell,
  .credits-hero-shell {
    grid-template-columns: 1fr;
  }

  .help-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    gap: 0.18em;
    font-size: clamp(1.6rem, 7vw, 2.5rem);
  }

  .hero-stats,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .about-links-grid {
    grid-template-columns: 1fr;
  }

  .credits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card,
  .project-card-featured {
    grid-column: auto;
  }

  .projects-section,
  .values-section {
    padding-top: 40px;
  }

  .value-grid {
    padding-bottom: 56px;
  }
}

@media (max-width: 480px) {
  .brand {
    width: 100%;
  }

  .brand-text {
    font-size: 0.92rem;
  }

  .credit-person-avatar {
    width: 54px;
    height: 54px;
  }

  .nav-links a {
    padding: 8px 12px;
  }

  .brand-avatar {
    width: 42px;
    height: 42px;
  }

  .hero-subtitle,
  .section-copy {
    font-size: 0.98rem;
  }

  .hero-subtitle {
    white-space: normal;
  }

  .button {
    width: 100%;
  }
}
