/* ==========================================================================
   乐通登录 · 共享样式 /assets/site.css
   1. Reset  2. Tokens  3. Base  4. Layout & Type  5. Components
   6. Skip link  7. Header  8. Footer  9. Responsive  10. Motion
   ========================================================================== */

/* 1. Reset ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
h5,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

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

/* 2. Tokens --------------------------------------------------------------- */
:root {
  --c-blue: #1b6cff;
  --c-blue-deep: #0f59e0;
  --c-orange: #ff6b2c;
  --c-green: #0e3b2e;
  --c-green-2: #163b33;
  --c-mint: #3ef2c8;
  --c-paper: #f7f4ec;
  --c-stone: #d8d2c4;
  --c-mist: #a9b2ae;
  --c-ink: #0b1d2a;
  --c-clay: #b8561f;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "PingFang SC", "Noto Sans SC", "Source Han Sans SC",
    "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, "Noto Sans Mono", monospace;

  --shell: 1280px;
  --radius-pill: 999px;
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --line: 1px solid rgba(11, 29, 42, 0.14);
  --shadow-lift: 0 22px 46px -32px rgba(11, 29, 42, 0.75);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* 3. Base ----------------------------------------------------------------- */
body {
  min-height: 100vh;
  padding-top: clamp(84px, 8vw, 104px);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.8;
  color: var(--c-ink);
  background-color: var(--c-paper);
  background-image:
    radial-gradient(46% 32% at 6% -8%, rgba(27, 108, 255, 0.14), transparent 70%),
    radial-gradient(38% 28% at 96% 0%, rgba(255, 107, 44, 0.13), transparent 68%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--c-mint);
  color: var(--c-green);
}

:focus-visible {
  outline: 3px solid var(--c-orange);
  outline-offset: 3px;
}

/* 4. Layout & Type -------------------------------------------------------- */
.page-shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: clamp(18px, 4vw, 44px);
}

.section {
  padding-block: clamp(36px, 5.5vw, 78px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 24px;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.section-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--c-clay);
  transform: skewX(-6deg);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.section-lead {
  max-width: 32em;
  color: #3e4c53;
  line-height: 1.85;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--c-green);
}

.lede {
  max-width: 32em;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.85;
  color: #2c3b44;
}

.muted {
  color: #67757a;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.layout-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
}

.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Breadcrumbs */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #6d7a78;
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumbs-list li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--c-mist);
}

.breadcrumbs-list a:hover {
  color: var(--c-blue);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn--primary {
  background: var(--c-blue);
  color: #fff;
  box-shadow: 0 14px 26px -18px rgba(27, 108, 255, 0.95);
}

.btn--primary:hover {
  background: var(--c-blue-deep);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  border-color: rgba(11, 29, 42, 0.22);
  color: var(--c-ink);
}

.btn--outline:hover {
  border-color: var(--c-blue);
  color: var(--c-blue);
}

.btn--ghost {
  background: rgba(14, 59, 46, 0.07);
  color: var(--c-green);
}

.btn--ghost:hover {
  background: rgba(14, 59, 46, 0.13);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 13.5px;
}

/* 5. Components ----------------------------------------------------------- */
/* Paper card */
.paper-card {
  position: relative;
  padding: clamp(18px, 2.6vw, 30px);
  border: var(--line);
  border-radius: var(--radius-lg);
  background: var(--c-paper);
  box-shadow: var(--shadow-lift);
}

.paper-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: clamp(18px, 2.6vw, 30px);
  width: 58px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-mint));
}

.paper-card--flat {
  box-shadow: none;
  background: #fbf9f3;
}

.paper-card--dark {
  background: var(--c-green);
  border-color: rgba(62, 242, 200, 0.28);
  color: var(--c-paper);
}

.paper-card--dark::before {
  background: linear-gradient(90deg, var(--c-mint), var(--c-orange));
}

.paper-card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.4;
  margin-bottom: 8px;
}

/* Channel strip */
.channel-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 13px 20px;
  border: 1px solid rgba(27, 108, 255, 0.26);
  border-radius: var(--radius-pill);
  background: linear-gradient(
    90deg,
    rgba(27, 108, 255, 0.1),
    rgba(62, 242, 200, 0.18)
  );
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
}

/* Status dot */
.status-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-mint);
  box-shadow: 0 0 0 0 rgba(62, 242, 200, 0.5);
  animation: signal-pulse 2.8s ease-out infinite;
}

.status-dot--warm {
  background: var(--c-orange);
  box-shadow: 0 0 0 0 rgba(255, 107, 44, 0.5);
  animation-name: signal-pulse-warm;
}

@keyframes signal-pulse {
  0% { box-shadow: 0 0 0 0 rgba(62, 242, 200, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(62, 242, 200, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 242, 200, 0); }
}

@keyframes signal-pulse-warm {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 44, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(255, 107, 44, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 44, 0); }
}

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(11, 29, 42, 0.2);
  border-radius: 6px;
  background: rgba(216, 210, 196, 0.5);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #2f3d44;
  line-height: 1.6;
}

.tag--mint {
  border-color: rgba(62, 242, 200, 0.6);
  background: rgba(62, 242, 200, 0.18);
  color: #0b5d4a;
}

.tag--blue {
  border-color: rgba(27, 108, 255, 0.4);
  background: rgba(27, 108, 255, 0.12);
  color: #12439c;
}

.tag--orange {
  border-color: rgba(255, 107, 44, 0.45);
  background: rgba(255, 107, 44, 0.14);
  color: #a13f0f;
}

/* Media frame */
.media-frame {
  position: relative;
  overflow: hidden;
  border: var(--line);
  border-radius: var(--radius-lg);
  background-color: var(--c-stone);
  background-image:
    linear-gradient(120deg, rgba(27, 108, 255, 0.18), transparent 55%),
    repeating-linear-gradient(
      135deg,
      rgba(11, 29, 42, 0.07) 0 1px,
      transparent 1px 12px
    );
  aspect-ratio: 16 / 9;
}

.media-frame > img,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--portrait { aspect-ratio: 4 / 5; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--band { aspect-ratio: 24 / 7; }

.media-frame-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(14, 59, 46, 0.82);
  color: var(--c-mint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}

/* Reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Flow progress */
.flow-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(
    90deg,
    var(--c-blue),
    var(--c-mint) 55%,
    var(--c-orange)
  );
  pointer-events: none;
}

/* 6. Skip link ------------------------------------------------------------ */
.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 200;
  padding: 10px 22px;
  border-radius: 0 0 14px 14px;
  background: var(--c-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transform: translate(-50%, -140%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
  outline-offset: -3px;
}

/* 7. Header --------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 14px clamp(12px, 3vw, 28px) 0;
  pointer-events: none;
  transition: padding 0.32s var(--ease);
}

.site-header[data-scrolled="true"] {
  padding-top: 8px;
}

.header-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  max-width: var(--shell);
  margin: 0 auto;
  padding: 10px clamp(12px, 1.8vw, 20px) 10px clamp(14px, 2vw, 24px);
  border: 1px solid rgba(11, 29, 42, 0.14);
  border-radius: var(--radius-pill);
  background: rgba(247, 244, 236, 0.93);
  box-shadow: 0 20px 44px -30px rgba(11, 29, 42, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: auto;
  transition: padding 0.32s var(--ease), box-shadow 0.32s var(--ease),
    background-color 0.32s var(--ease);
}

.site-header[data-scrolled="true"] .header-shell {
  padding-block: 6px;
  background: rgba(247, 244, 236, 0.97);
  box-shadow: 0 14px 32px -24px rgba(11, 29, 42, 0.65);
}

/* Brand */
.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--c-ink);
}

.brand-mark {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 3px;
  width: 26px;
}

.brand-mark span {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--c-blue);
  transform: skewX(-20deg);
  transition: width 0.3s var(--ease);
}

.brand-mark span:nth-child(1) { width: 100%; }
.brand-mark span:nth-child(2) { width: 74%; background: var(--c-orange); }
.brand-mark span:nth-child(3) { width: 46%; background: var(--c-green); }

.brand:hover .brand-mark span:nth-child(3) { width: 100%; }

.brand-text {
  display: block;
  min-width: 0;
}

.brand-name {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: 0.04em;
  transform: skewX(-4deg);
}

.brand-desc {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  color: var(--c-mist);
  white-space: nowrap;
}

/* Nav island */
.nav-island {
  margin-left: auto;
  margin-right: auto;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: var(--c-green);
  box-shadow: inset 0 1px 0 rgba(62, 242, 200, 0.16);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item {
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px clamp(9px, 1vw, 14px);
  border-radius: var(--radius-pill);
  font-size: clamp(12.5px, 1.05vw, 14px);
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: rgba(247, 244, 236, 0.8);
  white-space: nowrap;
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease);
}

.nav-link:hover {
  color: #fff;
  background: rgba(62, 242, 200, 0.12);
}

.nav-link[aria-current="page"] {
  color: #fff;
  background: rgba(62, 242, 200, 0.16);
}

.nav-link[aria-current="page"]::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-mint);
  box-shadow: 0 0 0 3px rgba(62, 242, 200, 0.22);
}

/* Header actions */
.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.chip-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid rgba(11, 29, 42, 0.2);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--c-ink);
  transition: border-color 0.22s var(--ease), color 0.22s var(--ease),
    background-color 0.22s var(--ease);
}

.chip-link::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-mint);
  box-shadow: 0 0 0 3px rgba(62, 242, 200, 0.22);
}

.chip-link:hover {
  border-color: var(--c-blue);
  color: var(--c-blue);
  background: rgba(27, 108, 255, 0.06);
}

/* Nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  background: var(--c-green);
  color: var(--c-paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.22s var(--ease);
}

.nav-toggle:hover {
  background: var(--c-green-2);
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s linear,
    width 0.3s var(--ease);
}

.nav-toggle-bar:nth-child(2) { width: 70%; }
.nav-toggle-bar:nth-child(3) { width: 45%; }

.site-header[data-open="true"] .nav-toggle-bar:nth-child(1) {
  width: 100%;
  transform: translateY(5px) rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header[data-open="true"] .nav-toggle-bar:nth-child(3) {
  width: 100%;
  transform: translateY(-5px) rotate(-45deg);
}

/* 8. Footer --------------------------------------------------------------- */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(56px, 8vw, 110px);
  background: var(--c-green);
  color: var(--c-paper);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(135deg, rgba(27, 108, 255, 0.22), transparent 44%),
    radial-gradient(60% 70% at 96% 0%, rgba(255, 107, 44, 0.16), transparent 70%),
    repeating-linear-gradient(
      135deg,
      rgba(62, 242, 200, 0.09) 0 1px,
      transparent 1px 28px
    );
  pointer-events: none;
}

.footer-shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 76px) clamp(20px, 4vw, 44px) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.85fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 64px);
}

.brand--footer {
  color: var(--c-paper);
}

.brand--footer .brand-mark span:nth-child(1) { background: var(--c-mint); }
.brand--footer .brand-mark span:nth-child(2) { background: var(--c-orange); }
.brand--footer .brand-mark span:nth-child(3) { background: var(--c-paper); }

.brand--footer .brand-desc {
  color: rgba(247, 244, 236, 0.55);
}

.footer-summary {
  max-width: 34em;
  margin-top: 18px;
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(247, 244, 236, 0.72);
}

.footer-contact-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.footer-contact-item {
  display: grid;
  grid-template-columns: 5.6em minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.footer-contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(62, 242, 200, 0.85);
}

.footer-contact-value {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: rgba(247, 244, 236, 0.9);
  word-break: break-word;
}

.footer-col-title {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--c-mint);
}

.footer-link-list {
  display: grid;
  gap: 12px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(247, 244, 236, 0.78);
  transition: color 0.22s var(--ease);
}

.footer-link::before {
  content: "";
  width: 12px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
  transition: width 0.25s var(--ease), opacity 0.22s var(--ease);
}

.footer-link:hover {
  color: var(--c-mint);
}

.footer-link:hover::before {
  width: 22px;
  opacity: 1;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  margin-top: clamp(30px, 4vw, 56px);
  padding-block: 22px 26px;
  border-top: 1px solid rgba(247, 244, 236, 0.16);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(247, 244, 236, 0.62);
}

.footer-copyright,
.footer-legal {
  margin: 0;
}

.footer-legal {
  color: rgba(247, 244, 236, 0.72);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-legal-links .footer-link {
  font-size: 12px;
  color: rgba(247, 244, 236, 0.66);
}

.footer-legal-links .footer-link::before {
  display: none;
}

.footer-legal-links .footer-link:hover {
  color: var(--c-mint);
}

/* 9. Responsive ----------------------------------------------------------- */
@media (max-width: 1080px) {
  .brand-desc { display: none; }
}

@media (max-width: 960px) {
  .site-header {
    padding-top: 10px;
  }

  .header-shell {
    border-radius: 24px;
    padding: 9px 12px 9px 14px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .chip-link {
    display: none;
  }

  .nav-island {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    margin: 0;
    padding: 10px;
    border-radius: 22px;
    background: var(--c-green);
    box-shadow: 0 26px 50px -30px rgba(11, 29, 42, 0.95);
  }

  .site-header[data-open="true"] .nav-island {
    display: block;
    animation: nav-drop 0.24s var(--ease);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    justify-content: space-between;
    padding: 13px 14px;
    border-radius: 14px;
    font-size: 15px;
  }

  .nav-link[aria-current="page"]::before {
    order: 2;
  }

  @keyframes nav-drop {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8 {
    grid-column: span 12;
  }
}

@media (max-width: 640px) {
  body {
    line-height: 1.78;
  }

  .header-actions {
    margin-left: auto;
  }

  .btn--sm {
    padding: 8px 13px;
    font-size: 12.5px;
  }

  .nav-toggle-text {
    display: none;
  }

  .nav-toggle {
    padding: 10px 12px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .footer-contact-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .footer-base {
    justify-content: flex-start;
  }
}

/* 10. Motion -------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .status-dot {
    animation: none;
    box-shadow: 0 0 0 3px rgba(62, 242, 200, 0.28);
  }

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