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

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

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

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

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

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

a { color: inherit; }

/* ===== 01. Tokens ===== */
:root {
  --ink: #0B0B12;
  --ink-2: #121020;
  --indigo: #1B1430;
  --violet: #7C4DFF;
  --violet-deep: #5A2EE6;
  --cyan: #29E3D0;
  --coral: #FF6B4A;
  --teal: #0E3B3B;
  --wine: #4E1B2E;
  --mist: #F3F0FA;
  --ash: #9A92B5;
  --lilac: #C9B6FF;

  --line: rgba(201, 182, 255, 0.16);
  --line-strong: rgba(201, 182, 255, 0.34);

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

  --fs-12: 12px;
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-20: 20px;
  --fs-28: 28px;
  --fs-40: 40px;
  --fs-64: 64px;
  --fs-96: 96px;

  --shell: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-total: 106px;

  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 32px;
  --radius-xl: 44px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ===== 02. Base ===== */
body {
  background-color: var(--ink);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: var(--fs-16);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.005em;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58vw 58vw at 88% -12%, rgba(124, 77, 255, 0.22), transparent 65%),
    radial-gradient(46vw 46vw at -10% 20%, rgba(41, 227, 208, 0.11), transparent 62%),
    radial-gradient(42vw 42vw at 62% 110%, rgba(255, 107, 74, 0.09), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px);
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p { line-height: 1.75; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(124, 77, 255, 0.5);
  color: #fff;
}

/* ===== 03. Layout ===== */
.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px);
}

.section--indigo { background: linear-gradient(180deg, rgba(27, 20, 48, 0.92), rgba(27, 20, 48, 0.5)); }
.section--teal { background: linear-gradient(180deg, rgba(14, 59, 59, 0.78), rgba(14, 59, 59, 0.34)); }
.section--wine { background: linear-gradient(180deg, rgba(78, 27, 46, 0.78), rgba(78, 27, 46, 0.3)); }

.section__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: clamp(24px, 3vw, 42px);
  max-width: 76ch;
}

.section__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section__eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.section__title {
  font-size: clamp(28px, 4vw, 40px);
}

.section__lead {
  color: var(--ash);
  max-width: 70ch;
}

/* ===== 04. Grid ===== */
.grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 26px);
}

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

@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* ===== 05. Type utilities ===== */
.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.num-anchor {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--cyan);
}

.num-anchor--coral { color: var(--coral); }
.num-anchor--violet { color: var(--lilac); }

.prose {
  max-width: 72ch;
  color: var(--mist);
}

.prose p { margin-bottom: 1.1em; }

.prose h2 { font-size: var(--fs-28); margin: 1.6em 0 0.6em; }
.prose h3 { font-size: var(--fs-20); margin: 1.4em 0 0.5em; }

.prose a {
  color: var(--lilac);
  text-decoration: underline;
  text-decoration-color: rgba(201, 182, 255, 0.42);
  text-underline-offset: 3px;
}

.prose ul {
  list-style: none;
  margin-bottom: 1.1em;
}

.prose ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 0.5em;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

/* ===== 06. Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: var(--fs-14);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn--primary {
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  color: #fff;
  box-shadow: 0 12px 28px -16px rgba(124, 77, 255, 0.95), inset 0 0 0 1px rgba(201, 182, 255, 0.35);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px -14px rgba(124, 77, 255, 1), inset 0 0 0 1px rgba(201, 182, 255, 0.6);
}

.btn--ghost {
  background: rgba(41, 227, 208, 0.08);
  border-color: rgba(41, 227, 208, 0.45);
  color: var(--cyan);
}

.btn--ghost:hover { background: rgba(41, 227, 208, 0.18); }

.btn--coral {
  background: rgba(255, 107, 74, 0.14);
  border-color: rgba(255, 107, 74, 0.55);
  color: #FFA98F;
}

.btn--coral:hover { background: rgba(255, 107, 74, 0.24); }

/* ===== 07. Skip link ===== */
.skip-link {
  position: absolute;
  left: 16px;
  top: -72px;
  z-index: 130;
  padding: 12px 20px;
  border-radius: 0 0 14px 14px;
  background: var(--violet);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-14);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 0;
  outline-offset: 2px;
}

/* ===== 08. Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(11, 11, 18, 0.97), rgba(11, 11, 18, 0.88));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-rail {
  background: linear-gradient(90deg, rgba(124, 77, 255, 0.3), rgba(41, 227, 208, 0.14) 55%, rgba(255, 107, 74, 0.18));
  border-bottom: 1px solid var(--line);
}

.header-rail__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.04em;
}

.header-rail__tagline {
  color: var(--lilac);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-rail__note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ash);
  white-space: nowrap;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(41, 227, 208, 0.18);
  flex: 0 0 auto;
}

.header-main__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: #0B0B12;
  background: linear-gradient(135deg, var(--cyan), var(--violet) 72%);
  box-shadow: 0 0 0 1px rgba(201, 182, 255, 0.42), 0 12px 26px -14px rgba(124, 77, 255, 0.95);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.12;
}

.brand__name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav__link {
  display: inline-block;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--ash);
  text-decoration: none;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.site-nav__link:hover {
  color: var(--mist);
  background: rgba(124, 77, 255, 0.16);
}

.site-nav__link[aria-current="page"] {
  color: var(--mist);
  background: rgba(124, 77, 255, 0.26);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.site-nav__cta { margin-left: 6px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(124, 77, 255, 0.14);
  color: var(--mist);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-toggle:hover { background: rgba(124, 77, 255, 0.24); }

.nav-toggle__bars {
  display: grid;
  gap: 4px;
}

.nav-toggle__bars span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__label {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(8, 6, 16, 0.66);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s var(--ease), visibility 0.24s var(--ease);
}

.nav-scrim[data-open] {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1080px) {
  html.nav-open,
  html.nav-open body { overflow: hidden; }

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

  .site-nav {
    position: fixed;
    top: var(--header-total);
    right: 0;
    bottom: 0;
    z-index: 60;
    width: min(88vw, 360px);
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 26px 22px 40px;
    overflow-y: auto;
    background: linear-gradient(180deg, #16112A, #0B0B12 62%);
    border-left: 1px solid var(--line-strong);
    transform: translateX(104%);
    visibility: hidden;
    transition: transform 0.24s var(--ease), visibility 0.24s var(--ease);
  }

  .site-nav[data-open] {
    transform: translateX(0);
    visibility: visible;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .site-nav__link {
    display: block;
    padding: 13px 16px;
    font-size: var(--fs-16);
    border-radius: var(--radius-s);
  }

  .site-nav__cta {
    margin-left: 0;
    width: 100%;
    padding-block: 14px;
  }
}

@media (max-width: 760px) {
  .header-rail__note { display: none; }
}

@media (max-width: 480px) {
  .brand__sub { display: none; }
  .brand__mark { width: 38px; height: 38px; font-size: 17px; }
  .brand__name { font-size: 17px; }
}

/* ===== 09. Footer ===== */
.site-footer {
  margin-top: clamp(48px, 6vw, 90px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(27, 20, 48, 0.88), rgba(11, 11, 18, 0.99));
}

.site-footer__inner {
  padding-block: clamp(36px, 5vw, 64px) 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr 1.3fr;
  gap: clamp(20px, 3vw, 40px);
}

.footer-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.footer-block__title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--mist);
}

.footer-block--brand .footer-block__title {
  font-size: 19px;
  letter-spacing: -0.02em;
}

.footer-block__text {
  color: var(--ash);
  font-size: var(--fs-14);
  line-height: 1.7;
  max-width: 34ch;
}

.footer-block__mono {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  display: inline-block;
  font-size: var(--fs-14);
  color: var(--ash);
  text-decoration: none;
  transition: color 0.18s var(--ease), padding-left 0.18s var(--ease);
}

.footer-link:hover {
  color: var(--lilac);
  padding-left: 4px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ash);
}

.footer-contact__label {
  min-width: 44px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lilac);
}

.footer-contact__value {
  color: var(--mist);
  word-break: break-all;
}

.copy-btn {
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(41, 227, 208, 0.1);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.copy-btn:hover { background: rgba(41, 227, 208, 0.2); }

.copy-btn[data-copy-state="done"] {
  background: rgba(255, 107, 74, 0.2);
  border-color: rgba(255, 107, 74, 0.6);
  color: #FFA98F;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(24px, 3vw, 40px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.04em;
  color: var(--ash);
}

.footer-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ===== 10. Cards ===== */
.card {
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.014));
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 182, 255, 0.42);
  box-shadow: 0 20px 40px -30px rgba(124, 77, 255, 1);
}

.card__title {
  margin-bottom: 8px;
  font-size: var(--fs-20);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card__text {
  color: var(--ash);
  font-size: 15px;
}

.card__meta {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.06em;
  color: var(--cyan);
}

/* ===== 11. Tag / Chip ===== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(124, 77, 255, 0.12);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.06em;
  color: var(--lilac);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ash);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.chip:hover {
  color: var(--mist);
  border-color: var(--line-strong);
}

.chip[aria-pressed="true"] {
  background: rgba(41, 227, 208, 0.16);
  border-color: rgba(41, 227, 208, 0.6);
  color: var(--cyan);
}

/* ===== 12. Tabs ===== */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(27, 20, 48, 0.62);
  width: fit-content;
  max-width: 100%;
}

.tab {
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ash);
  font-size: var(--fs-14);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.tab:hover { color: var(--mist); }

.tab[aria-selected="true"] {
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  color: #fff;
  box-shadow: 0 12px 24px -16px rgba(124, 77, 255, 0.95);
}

.tab-panels { margin-top: 22px; }

.tab-panel {
  animation: panel-in 0.24s var(--ease) both;
}

.tab-panel[hidden] { display: none; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 13. Breadcrumbs ===== */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.04em;
  color: var(--ash);
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs__item[aria-current="page"] { color: var(--mist); }

.breadcrumbs__link {
  color: var(--ash);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.breadcrumbs__link:hover {
  color: var(--cyan);
  border-bottom-color: rgba(41, 227, 208, 0.5);
}

.breadcrumbs__sep { color: rgba(154, 146, 181, 0.55); }

/* ===== 14. Figures ===== */
.figure {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.figure__media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(124, 77, 255, 0.38), rgba(41, 227, 208, 0.18) 58%, rgba(255, 107, 74, 0.24)),
    var(--ink-2);
}

.figure__media--tall { aspect-ratio: 4 / 5; }
.figure__media--square { aspect-ratio: 1 / 1; }

.figure__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 5px);
}

.figure__caption {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.04em;
  color: var(--ash);
}

/* ===== 15. Scroll progress ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 120;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.05);
}

.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 55%, var(--coral));
  transition: width 0.12s linear;
}

/* ===== 16. Reveal ===== */
html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.52s var(--ease), transform 0.52s var(--ease);
}

html.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ===== 17. Reduced 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;
    scroll-behavior: auto !important;
  }

  html.js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .tab-panel { animation: none; }
}
