:root {
  --space-void: #070B1A;
  --space-ink: #0E1328;
  --nebula: #6D4AFF;
  --plum: #2A1D5C;
  --paper: #F2EBDD;
  --white: #F7F9FF;
  --silver: #C7D2E5;
  --cyan: #39D6C4;
  --orange: #FF7A3D;
  --line: rgba(199, 210, 229, 0.22);
  --line-soft: rgba(199, 210, 229, 0.12);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "HarmonyOS Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --header-h: 82px;
  --maxw: 1280px;
  --pad: clamp(18px, 4vw, 44px);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --shadow-hard: 8px 8px 0 rgba(42, 29, 92, 0.9);
  --shadow-hard-sm: 4px 4px 0 rgba(42, 29, 92, 0.85);
}

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

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

body {
  margin: 0;
  background-color: var(--space-void);
  background-image:
    radial-gradient(circle at 82% -6%, rgba(109, 74, 255, 0.22), transparent 46%),
    radial-gradient(circle at 4% 42%, rgba(42, 29, 92, 0.55), transparent 52%);
  background-repeat: no-repeat;
  color: var(--white);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0.005em;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.5em;
  font-family: var(--sans);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--white);
}

h1 { font-size: clamp(34px, 5vw, 61px); }
h2 { font-size: clamp(26px, 3.4vw, 39px); }
h3 { font-size: clamp(20px, 2.2vw, 25px); }
h4 { font-size: clamp(17px, 1.6vw, 20px); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover { color: var(--white); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: 0.35em; }

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

button { font: inherit; }

[hidden] { display: none !important; }

::selection {
  background: var(--nebula);
  color: var(--white);
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-200%);
  padding: 12px 20px;
  background: var(--cyan);
  color: var(--space-void);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
  border: 3px solid var(--space-void);
  text-decoration: none;
  transition: transform 0.18s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--space-void);
}

/* ---------- layout primitives ---------- */

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.shell--narrow {
  max-width: 820px;
}

.section {
  padding-block: clamp(44px, 7vw, 88px);
}

.rule {
  height: 3px;
  border: 0;
  margin-block: clamp(32px, 5vw, 56px);
  background: linear-gradient(90deg, var(--nebula), var(--cyan) 48%, transparent 96%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--cyan);
  flex: none;
}

.prose {
  max-width: 68ch;
  color: var(--silver);
  line-height: 1.8;
}

.prose h2,
.prose h3,
.prose h4 {
  color: var(--white);
  margin-top: 1.6em;
}

.prose h2:first-child,
.prose h3:first-child { margin-top: 0; }

.prose ul,
.prose ol { color: var(--silver); }

.prose strong { color: var(--white); font-weight: 800; }

.prose a {
  color: var(--cyan);
  border-bottom: 2px solid rgba(57, 214, 196, 0.45);
}

.prose a:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

/* ---------- panels / paper / tags ---------- */

.panel {
  background: var(--space-ink);
  border: 3px solid var(--line);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-hard);
}

.panel--lift {
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}

.panel--lift:hover {
  transform: translateY(-2px);
  border-color: var(--nebula);
  box-shadow: 10px 12px 0 rgba(42, 29, 92, 0.95);
}

.paper {
  background: var(--paper);
  color: #1A1F33;
  border: 3px solid var(--space-void);
  padding: clamp(22px, 4vw, 48px);
  box-shadow: var(--shadow-hard);
}

.paper h1,
.paper h2,
.paper h3,
.paper h4 { color: var(--space-void); }

.paper a {
  color: #4B2BD6;
  border-bottom: 2px solid rgba(75, 43, 214, 0.4);
}

.paper a:hover { color: var(--space-void); border-bottom-color: var(--space-void); }

.paper .prose { color: #2A3050; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
  border: 1px solid var(--line);
  background: rgba(109, 74, 255, 0.14);
}

.tag--cyan {
  color: var(--cyan);
  border-color: rgba(57, 214, 196, 0.5);
  background: rgba(57, 214, 196, 0.08);
}

.tag--orange {
  color: var(--orange);
  border-color: rgba(255, 122, 61, 0.5);
  background: rgba(255, 122, 61, 0.1);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver);
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(57, 214, 196, 0.18);
  animation: status-breathe 3.6s ease-in-out infinite;
}

@keyframes status-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ---------- buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 3px solid transparent;
  background: transparent;
  color: var(--white);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background-color 0.15s var(--ease),
    border-color 0.15s var(--ease), color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.btn:active { transform: translate(1px, 1px); }

.btn--signal {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--space-void);
  box-shadow: 4px 4px 0 rgba(255, 122, 61, 0.26);
}

.btn--signal:hover {
  background: #FF9463;
  border-color: var(--cyan);
  color: var(--space-void);
}

.btn--primary {
  background: var(--nebula);
  border-color: var(--nebula);
  color: var(--white);
  box-shadow: var(--shadow-hard-sm);
}

.btn--primary:hover {
  background: #7F60FF;
  border-color: var(--cyan);
  color: var(--white);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--silver);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--white);
  background: rgba(57, 214, 196, 0.08);
}

[data-copy][data-copied="true"] {
  background: var(--cyan) !important;
  border-color: var(--cyan) !important;
  color: var(--space-void) !important;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
  color: var(--cyan);
  font-weight: 700;
  border-bottom: 2px solid rgba(57, 214, 196, 0.4);
  transition: gap 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.link-arrow:hover {
  gap: 15px;
  color: var(--white);
  border-bottom-color: var(--white);
}

/* ---------- breadcrumbs ---------- */

.breadcrumbs {
  padding-block: 22px 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--silver);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  margin: 0;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(199, 210, 229, 0.45);
}

.breadcrumbs a {
  color: var(--silver);
  border-bottom: 1px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.breadcrumbs a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* ---------- bento grid ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.bento__cell { grid-column: span 4; min-width: 0; }
.bento__cell--full { grid-column: span 12; }
.bento__cell--half { grid-column: span 6; }
.bento__cell--wide { grid-column: span 8; }
.bento__cell--narrow { grid-column: span 3; }

/* ---------- media frame ---------- */

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 3px solid var(--silver);
  background-color: var(--space-ink);
  background-image: radial-gradient(circle at 70% 24%, rgba(109, 74, 255, 0.5), transparent 58%),
    radial-gradient(circle at 22% 82%, rgba(57, 214, 196, 0.22), transparent 52%),
    linear-gradient(160deg, #0E1328, #2A1D5C 62%, #070B1A);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 11, 26, 0.55));
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }

.media-frame__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
  padding: 8px 14px;
  background: rgba(7, 11, 26, 0.88);
  border-top: 3px solid var(--nebula);
  color: var(--silver);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- search field / filter ---------- */

.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 3px solid var(--line);
  background: rgba(14, 19, 40, 0.92);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.search-field:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(57, 214, 196, 0.16);
}

.search-field input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 4px 0;
  background: transparent;
  border: 0;
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
}

.search-field input::placeholder { color: rgba(199, 210, 229, 0.55); }
.search-field input:focus { outline: none; }

.filter-empty {
  padding: 28px 20px;
  border: 3px dashed var(--line);
  color: var(--silver);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-align: center;
}

/* ---------- tabs ---------- */

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.tabs__btn {
  padding: 10px 18px;
  border: 3px solid var(--line);
  background: transparent;
  color: var(--silver);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.tabs__btn:hover {
  border-color: var(--cyan);
  color: var(--white);
}

.tabs__btn[aria-selected="true"] {
  background: var(--nebula);
  border-color: var(--nebula);
  color: var(--white);
  box-shadow: var(--shadow-hard-sm);
}

.tabs__panel { padding-top: 4px; }

/* ---------- site header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #0A0F20;
  background-image: radial-gradient(circle at 6% 10%, rgba(109, 74, 255, 0.36), transparent 44%),
    radial-gradient(circle at 92% 96%, rgba(57, 214, 196, 0.14), transparent 42%);
  border-bottom: 3px solid var(--silver);
}

.site-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--nebula) 70%, var(--orange));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

.site-scale {
  height: 6px;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(199, 210, 229, 0.55) 0 1px,
    transparent 1px 28px
  );
  opacity: 0.45;
}

.header-frame {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-block: 10px;
  color: var(--white);
  text-decoration: none;
  flex: none;
}

.brand:hover { color: var(--white); }

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 3px solid var(--nebula);
  background: rgba(109, 74, 255, 0.2);
  color: var(--cyan);
  font-size: 18px;
  line-height: 1;
  box-shadow: 4px 4px 0 rgba(109, 74, 255, 0.34);
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}

.brand:hover .brand__mark {
  border-color: var(--cyan);
  color: var(--white);
}

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

.brand__name {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.brand__badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 10px 14px;
  background: transparent;
  border: 3px solid var(--silver);
  color: var(--white);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars span {
  display: block;
  height: 3px;
  background: currentColor;
  transition: transform 0.2s var(--ease);
}

.site-header[data-open] .nav-toggle__bars span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.site-header[data-open] .nav-toggle__bars span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 24px);
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list li { margin: 0; }

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border: 3px solid transparent;
  color: var(--silver);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.site-nav__link:hover {
  color: var(--white);
  border-color: var(--cyan);
  background: rgba(57, 214, 196, 0.08);
}

.site-nav__link[aria-current="page"] {
  color: var(--white);
  border-color: var(--nebula);
  background: rgba(109, 74, 255, 0.22);
  box-shadow: 4px 4px 0 rgba(109, 74, 255, 0.28);
}

.site-nav__idx {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cyan);
  opacity: 0.9;
}

.site-nav__link[aria-current="page"] .site-nav__idx { color: var(--white); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* ---------- site footer ---------- */

.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  padding-top: clamp(44px, 6vw, 76px);
  background-color: #080D1E;
  background-image: radial-gradient(circle at 14% 0%, rgba(109, 74, 255, 0.32), transparent 48%),
    radial-gradient(circle at 88% 100%, rgba(57, 214, 196, 0.14), transparent 46%);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--nebula) 32%, var(--cyan) 72%, var(--silver));
}

.footer-shell { padding-bottom: 0; }

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(32px, 5vw, 56px);
}

.footer-brand__mark {
  margin: 0 0 12px;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--white);
  text-shadow: 4px 4px 0 rgba(109, 74, 255, 0.5);
}

.footer-brand__note {
  margin: 0;
  max-width: 24ch;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.9;
  color: var(--silver);
}

.footer-col__title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
}

.footer-col__title span { color: var(--cyan); }

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col__list li { margin: 0; }

.footer-link {
  display: inline-block;
  color: var(--silver);
  font-size: 15px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.footer-link:hover {
  color: var(--white);
  border-bottom-color: var(--cyan);
}

.footer-contact__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--silver);
}

.footer-contact__list li { margin: 0; }

.footer-contact__k {
  display: block;
  margin-bottom: 3px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(199, 210, 229, 0.6);
}

.footer-contact__val {
  color: var(--white);
  font-weight: 600;
  word-break: break-word;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  padding-block: 22px 30px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(199, 210, 229, 0.75);
}

.footer-legal__copy,
.footer-legal__icp { margin: 0; }

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-legal__links li { margin: 0; }

.footer-legal__links a {
  color: var(--silver);
  border-bottom: 1px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.footer-legal__links a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .site-nav__link { padding: 9px 8px; font-size: 13px; }
  .header-actions .btn { padding: 10px 14px; font-size: 13px; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }

  .site-scale { display: none; }

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

  .brand__mark {
    width: 36px;
    height: 36px;
    font-size: 16px;
    box-shadow: 3px 3px 0 rgba(109, 74, 255, 0.34);
  }

  .brand__name { font-size: 17px; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 90;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    margin: 0;
    padding: 10px var(--pad) 26px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background-color: #0B1022;
    background-image: radial-gradient(circle at 88% 0%, rgba(109, 74, 255, 0.42), transparent 56%);
    border-bottom: 3px solid var(--nebula);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
  }

  .site-header[data-open] .site-nav { display: flex; }

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

  .site-nav__link {
    justify-content: flex-start;
    gap: 12px;
    padding: 15px 6px;
    border: 0;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
    font-weight: 800;
    white-space: normal;
  }

  .site-nav__link:hover {
    border-color: transparent;
    border-bottom-color: var(--line);
    background: rgba(57, 214, 196, 0.08);
  }

  .site-nav__link[aria-current="page"] {
    border: 0;
    border-bottom: 1px solid var(--line);
    border-left: 4px solid var(--nebula);
    padding-left: 12px;
    background: rgba(109, 74, 255, 0.18);
    box-shadow: none;
  }

  .site-nav__idx { font-size: 11px; }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .header-actions .btn {
    width: 100%;
    padding-block: 13px;
    font-size: 14px;
  }

  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
  .bento__cell,
  .bento__cell--half,
  .bento__cell--wide { grid-column: span 6; }
  .bento__cell--narrow { grid-column: span 3; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

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

@media (max-width: 560px) {
  body { font-size: 16px; }

  .brand__badge { display: none; }
  .nav-toggle__label { display: none; }

  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bento__cell,
  .bento__cell--half,
  .bento__cell--wide,
  .bento__cell--narrow { grid-column: span 4; }

  .footer-top { grid-template-columns: 1fr; }

  .search-field { padding: 10px 12px; }
  .search-field input { font-size: 15px; }

  .btn { padding: 11px 16px; }
}

@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; }
  .panel--lift:hover { transform: none; }
  .btn:active { transform: none; }
  .link-arrow:hover { gap: 8px; }
}
