:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: rgba(14, 12, 13, 0.82);
  --panel-strong: rgba(20, 9, 10, 0.9);
  --red: #f20d22;
  --red-deep: #95000f;
  --red-soft: rgba(242, 13, 34, 0.2);
  --white: #f8f8f6;
  --muted: #bbb7b4;
  --line: rgba(255, 255, 255, 0.14);
  --gold: #ffcd6a;
  --cyan: #69d7ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#process,
#official,
#community,
#contact {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Noto Sans CJK SC",
    Arial,
    sans-serif;
  background:
    radial-gradient(circle at 82% 8%, rgba(242, 13, 34, 0.2), transparent 30%),
    linear-gradient(180deg, #020202 0%, #100708 48%, #040404 100%);
  color: var(--white);
  overflow-x: hidden;
}

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

.scanline {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 100% 4px,
    radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 40%), rgba(255, 255, 255, 0.08), transparent 18rem);
  mix-blend-mode: screen;
  opacity: 0.48;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px 42px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.18));
  backdrop-filter: blur(12px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background: linear-gradient(135deg, #ff2038, #b50011);
  box-shadow: 0 0 26px rgba(242, 13, 34, 0.58);
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 22px;
  line-height: 1;
}

.brand-copy small {
  color: var(--muted);
  font-size: 13px;
}

.top-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(242, 13, 34, 0.35);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.34);
}

.top-links a,
.header-action,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 8px;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.top-links a {
  padding: 0 18px;
  color: #f4c5ca;
  font-weight: 800;
}

.top-links a:hover {
  background: rgba(242, 13, 34, 0.2);
  color: var(--white);
}

.header-action {
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

.header-action:hover,
.secondary-action:hover {
  border-color: var(--red);
  background: var(--red-soft);
}

.hero {
  position: relative;
  min-height: 820px;
  padding: 132px 42px 32px;
  isolation: isolate;
  overflow: hidden;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg {
  background-image: url("hero-afun.png");
  background-position: center top;
  background-size: cover;
  transform: scale(1.02);
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.62) 34%, rgba(0, 0, 0, 0.14) 72%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.16) 56%, rgba(0, 0, 0, 0.9) 100%),
    repeating-linear-gradient(135deg, rgba(242, 13, 34, 0.16) 0 1px, transparent 1px 20px);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  top: 92px;
  left: 44px;
  right: 44px;
  height: 1px;
  background: linear-gradient(90deg, var(--red), transparent 62%);
  box-shadow: 0 0 30px rgba(242, 13, 34, 0.75);
}

.hero::after {
  right: -16%;
  top: -18%;
  width: 54%;
  height: 36%;
  background: #d9081a;
  transform: rotate(-13deg);
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 70%);
  opacity: 0.72;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.7));
}

.hero-frame {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 520px;
  max-width: 1320px;
  margin: 0 auto;
}

.hero-copy {
  max-width: 760px;
  padding-top: 52px;
}

.hero-kicker {
  display: inline-flex;
  max-width: 100%;
  margin: 0 0 22px;
  padding: 11px 18px;
  border: 1px solid rgba(242, 13, 34, 0.55);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.48);
  color: #ff5e69;
  font-weight: 900;
  line-height: 1.4;
  box-shadow: inset 0 0 20px rgba(242, 13, 34, 0.16);
}

.hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: 104px;
  line-height: 0.92;
  font-weight: 950;
  text-shadow:
    0 3px 0 #8f0010,
    0 0 24px rgba(242, 13, 34, 0.9),
    0 20px 40px rgba(0, 0, 0, 0.95);
}

.hero h1 span {
  display: block;
  color: var(--red);
  -webkit-text-stroke: 2px var(--white);
}

.hero-subtitle {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  margin: 24px 0 0;
  padding: 0 34px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.74);
  font-size: 30px;
  font-weight: 950;
  box-shadow:
    inset 0 0 20px rgba(242, 13, 34, 0.22),
    0 0 26px rgba(0, 0, 0, 0.72);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 640px;
  margin-top: 18px;
}

.hero-metrics > div {
  position: relative;
  min-height: 82px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.54);
  box-shadow:
    inset 0 0 22px rgba(242, 13, 34, 0.12),
    0 0 22px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.hero-metrics > div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--red);
  box-shadow: 0 0 16px rgba(242, 13, 34, 0.85);
}

.hero-metrics > div::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.13) 45%, transparent 60%);
  transform: translateX(-120%);
  animation: sweep 4.8s ease-in-out infinite;
}

.hero-metrics strong,
.hero-metrics span {
  position: relative;
  z-index: 1;
  display: block;
}

.hero-metrics .metric-count {
  display: inline;
  font-size: 32px;
  line-height: 0.9;
}

.hero-metrics .metric-text {
  font-size: 28px;
  line-height: 1;
}

.hero-metrics strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.05;
  font-weight: 950;
  text-shadow: 0 0 18px rgba(242, 13, 34, 0.72);
}

.hero-metrics > div > span:last-child {
  margin-top: 8px;
  color: #d8d3d0;
  font-size: 13px;
  font-weight: 800;
}

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

.primary-action,
.secondary-action {
  min-width: 160px;
  padding: 0 22px;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 17px;
  font-weight: 950;
}

.primary-action {
  background: linear-gradient(135deg, #ff1830, #9a0010);
  box-shadow: 0 16px 34px rgba(242, 13, 34, 0.38);
}

.primary-action:hover,
.panel-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(242, 13, 34, 0.32);
}

.secondary-action {
  background: rgba(0, 0, 0, 0.62);
}

.global-badge {
  position: absolute;
  right: 48px;
  bottom: 76px;
  display: grid;
  gap: 8px;
  width: 230px;
  min-height: 150px;
  place-content: center;
  border: 2px solid rgba(242, 13, 34, 0.72);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.68), rgba(149, 0, 15, 0.18));
  color: #ff4354;
  text-align: center;
  transform: rotate(-6deg);
  box-shadow:
    inset 0 0 30px rgba(242, 13, 34, 0.18),
    0 0 38px rgba(242, 13, 34, 0.24);
}

.global-badge span {
  font-size: 18px;
  font-weight: 900;
}

.global-badge strong {
  color: #ff2038;
  font-size: 38px;
  line-height: 1;
  text-shadow: 0 0 20px rgba(242, 13, 34, 0.9);
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  max-width: 1320px;
  margin: 42px auto 0;
}

.service-strip > div {
  display: grid;
  grid-template-columns: 58px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  min-height: 86px;
  padding: 12px 18px;
  border: 1px solid rgba(242, 13, 34, 0.55);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(29, 5, 8, 0.78));
  box-shadow: inset 0 0 20px rgba(242, 13, 34, 0.12);
}

.service-strip p,
.service-strip b {
  margin: 0;
}

.service-strip p {
  font-size: 17px;
  font-weight: 950;
}

.service-strip b {
  color: #f0c9cc;
  font-size: 15px;
}

.service-icon {
  display: grid;
  place-items: center;
  grid-row: span 2;
  width: 52px;
  height: 52px;
  color: var(--red);
}

.service-icon svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 12px rgba(242, 13, 34, 0.65));
}

.service-strip > div:nth-child(3) .service-icon,
.service-strip > div:nth-child(5) .service-icon {
  color: var(--cyan);
}

.service-strip > div:nth-child(4) .service-icon {
  color: var(--gold);
}

.process {
  position: relative;
  padding: 70px 42px 76px;
  background:
    radial-gradient(circle at 15% 0%, rgba(105, 215, 255, 0.09), transparent 28%),
    linear-gradient(180deg, #050505, #100405 58%, #050505);
  overflow: hidden;
}

.process::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 100% 42px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 42px 100%;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 72%, transparent);
  pointer-events: none;
}

.process-heading {
  margin-bottom: 30px;
}

.process-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  max-width: 1320px;
  margin: 0 auto;
}

.process-grid::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 7%;
  right: 7%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(242, 13, 34, 0.72), rgba(105, 215, 255, 0.42), transparent);
  box-shadow: 0 0 22px rgba(242, 13, 34, 0.58);
}

.process-grid article {
  position: relative;
  min-height: 174px;
  padding: 20px;
  border: 1px solid rgba(242, 13, 34, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(20, 8, 10, 0.92), rgba(2, 2, 2, 0.82)),
    radial-gradient(circle at 50% 0%, rgba(242, 13, 34, 0.22), transparent 55%);
  box-shadow:
    inset 0 0 28px rgba(242, 13, 34, 0.11),
    0 22px 50px rgba(0, 0, 0, 0.22);
}

.process-grid article::after {
  content: "";
  position: absolute;
  top: 27px;
  left: 20px;
  width: 46px;
  height: 2px;
  background: var(--red);
  box-shadow: 0 0 18px rgba(242, 13, 34, 0.9);
}

.process-grid span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.62);
  color: var(--gold);
  font-weight: 950;
}

.process-grid h3,
.process-grid p {
  margin: 0;
}

.process-grid h3 {
  font-size: 22px;
  line-height: 1.15;
}

.process-grid p {
  margin-top: 10px;
  color: #d0c9c6;
  font-size: 14px;
  line-height: 1.6;
}

.directory {
  position: relative;
  padding: 76px 42px 72px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(10, 3, 4, 0.98)),
    repeating-linear-gradient(90deg, rgba(242, 13, 34, 0.1) 0 1px, transparent 1px 88px);
}

.directory::before {
  content: "AFUN GROUP";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.035);
  font-size: 132px;
  line-height: 1;
  font-weight: 950;
  pointer-events: none;
}

.section-heading {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.section-heading p,
.section-heading h2 {
  margin: 0;
}

.section-heading p {
  color: #ff5968;
  font-weight: 950;
}

.section-heading h2 {
  font-size: 42px;
  line-height: 1.1;
}

.signal-divider {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto 22px;
  overflow: hidden;
  border-top: 1px solid rgba(242, 13, 34, 0.3);
  border-bottom: 1px solid rgba(242, 13, 34, 0.3);
  background: rgba(0, 0, 0, 0.44);
  color: #ff4354;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 46px;
  white-space: nowrap;
}

.signal-divider span {
  display: inline-block;
  padding-left: 16px;
  animation: drift 14s linear infinite;
}

.signal-divider.final {
  margin-top: 28px;
  margin-bottom: 0;
}

@keyframes drift {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(32px);
  }
}

.link-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1320px;
  margin: 0 auto;
}

.link-panel {
  min-height: 330px;
  padding: 20px;
  border: 1px solid rgba(242, 13, 34, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(26, 8, 10, 0.86), rgba(3, 3, 3, 0.92)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent);
  box-shadow:
    inset 0 0 26px rgba(242, 13, 34, 0.12),
    0 20px 60px rgba(0, 0, 0, 0.32);
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-index {
  display: grid;
  place-items: center;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(242, 13, 34, 0.34), rgba(0, 0, 0, 0.5));
  color: var(--gold);
  font-weight: 950;
}

.panel-head h3,
.panel-head p {
  margin: 0;
}

.panel-head h3 {
  font-size: 24px;
  line-height: 1.1;
}

.panel-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.panel-links {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.panel-links a {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 82px;
  padding: 12px 42px 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.08), transparent) -160% 0 / 70% 100% no-repeat,
    rgba(255, 255, 255, 0.055);
  overflow: hidden;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.panel-links a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--red);
  box-shadow: 0 0 18px rgba(242, 13, 34, 0.72);
}

.panel-links a::after {
  content: "↗";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--red);
  font-size: 22px;
  font-weight: 950;
}

.panel-links a:hover {
  border-color: rgba(242, 13, 34, 0.72);
  background:
    linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.12), transparent) 160% 0 / 70% 100% no-repeat,
    rgba(242, 13, 34, 0.16);
}

.panel-links span {
  font-size: 17px;
  font-weight: 950;
}

.panel-links small {
  justify-self: start;
  padding: 3px 8px;
  border: 1px solid rgba(255, 205, 106, 0.32);
  border-radius: 8px;
  background: rgba(255, 205, 106, 0.08);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.panel-links b {
  color: #d9d5d2;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  align-items: center;
  min-height: 76px;
  padding: 18px 24px;
  border-top: 1px solid rgba(242, 13, 34, 0.28);
  background: #030303;
  color: #d7d2cf;
  text-align: center;
}

.site-footer span {
  color: var(--red);
  font-weight: 950;
}

.site-footer p {
  margin: 0;
  font-weight: 800;
}

.mobile-dock {
  display: none;
}

@keyframes sweep {
  0%,
  55% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .top-links {
    display: none;
  }

  .hero {
    min-height: 760px;
  }

  .hero h1 {
    font-size: 82px;
  }

  .global-badge {
    right: 16px;
    bottom: 96px;
    width: 190px;
  }

  .global-badge strong {
    font-size: 32px;
  }

  .service-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .process-grid::before {
    display: none;
  }

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

@media (max-width: 760px) {
  .site-header {
    position: fixed;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.22));
  }

  .brand {
    min-width: 0;
    gap: 9px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 27px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy small {
    font-size: 11px;
  }

  .header-action {
    justify-self: end;
    min-height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }

  .hero {
    min-height: 660px;
    padding: 82px 12px 16px;
  }

  .hero-bg {
    background-position: 61% 40px;
    background-size: auto 500px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.58) 42%, rgba(0, 0, 0, 0.95) 76%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
  }

  .hero::before {
    top: 72px;
    left: 12px;
    right: 12px;
  }

  .hero::after {
    right: -50%;
    top: -12%;
    width: 100%;
    height: 24%;
  }

  .hero-frame {
    min-height: 374px;
    align-items: end;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero-kicker {
    display: block;
    max-width: 100%;
    margin-bottom: 12px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: 46px;
    line-height: 1;
  }

  .hero h1 span {
    -webkit-text-stroke: 1px var(--white);
  }

  .hero-subtitle {
    min-height: 42px;
    margin-top: 12px;
    padding: 0 14px;
    font-size: 18px;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }

  .hero-metrics > div {
    min-height: 58px;
    padding: 9px 10px 8px;
  }

  .hero-metrics strong {
    font-size: 14px;
  }

  .hero-metrics .metric-count {
    font-size: 26px;
  }

  .hero-metrics .metric-text {
    font-size: 22px;
  }

  .hero-metrics > div > span:last-child {
    margin-top: 5px;
    font-size: 12px;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 14px;
  }

  .primary-action,
  .secondary-action {
    flex: 1 1 132px;
    min-width: 0;
    min-height: 44px;
    padding: 0 12px;
    font-size: 14px;
  }

  .global-badge {
    position: absolute;
    top: 152px;
    right: 2px;
    bottom: auto;
    width: 132px;
    min-height: 82px;
    margin: 0;
    border-width: 1px;
  }

  .global-badge span {
    font-size: 12px;
  }

  .global-badge strong {
    font-size: 22px;
  }

  .service-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
  }

  .service-strip > div {
    min-height: 58px;
    grid-template-columns: 34px 1fr;
    column-gap: 8px;
    padding: 8px 10px;
  }

  .service-icon {
    width: 32px;
    height: 32px;
  }

  .service-icon svg {
    width: 30px;
    height: 30px;
    stroke-width: 2.4;
  }

  .service-strip p {
    font-size: 14px;
  }

  .service-strip b {
    font-size: 12px;
  }

  .service-strip > div:nth-child(5) {
    grid-column: 1 / -1;
  }

  .directory {
    padding: 36px 12px 42px;
  }

  .process {
    padding: 36px 12px 40px;
  }

  .process-heading {
    margin-bottom: 16px;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .process-grid article {
    display: grid;
    grid-template-columns: 46px 1fr;
    column-gap: 12px;
    min-height: 0;
    padding: 12px;
  }

  .process-grid article::after {
    top: 35px;
    left: 28px;
    width: 2px;
    height: calc(100% - 44px);
  }

  .process-grid span {
    grid-row: span 2;
    width: 42px;
    height: 42px;
    margin: 0;
    font-size: 13px;
  }

  .process-grid h3 {
    font-size: 18px;
  }

  .process-grid p {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.45;
  }

  .directory::before {
    top: 18px;
    font-size: 56px;
  }

  .section-heading {
    display: grid;
    gap: 6px;
    align-items: start;
    margin-bottom: 14px;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .section-heading p {
    font-size: 13px;
  }

  .signal-divider {
    margin-bottom: 14px;
    font-size: 12px;
    line-height: 32px;
  }

  .link-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .link-panel {
    min-height: 0;
    padding: 12px;
  }

  .panel-head {
    min-height: 54px;
    gap: 10px;
    padding-bottom: 10px;
  }

  .panel-index {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    font-size: 13px;
  }

  .panel-head h3 {
    font-size: 21px;
  }

  .panel-head p {
    margin-top: 3px;
    font-size: 12px;
  }

  .panel-links {
    gap: 8px;
    margin-top: 10px;
  }

  .panel-links a {
    min-height: 66px;
    padding: 9px 36px 9px 12px;
  }

  .panel-links span {
    font-size: 15px;
  }

  .panel-links b {
    font-size: 12px;
  }

  .panel-links small {
    padding: 2px 7px;
    font-size: 11px;
  }

  .site-footer {
    display: grid;
    gap: 6px;
    min-height: 64px;
    padding: 14px 18px 78px;
    font-size: 13px;
  }

  .mobile-dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(14px);
    box-shadow: 0 0 30px rgba(242, 13, 34, 0.32);
    opacity: 0;
    pointer-events: none;
    transform: translateY(84px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  body.dock-visible .mobile-dock {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-dock a {
    display: grid;
    place-items: center;
    min-height: 44px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 950;
  }

  .mobile-dock a:first-child {
    background: linear-gradient(135deg, #ff1830, #9a0010);
  }

  .mobile-dock a:last-child {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
  }
}

@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;
  }
}
