@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=Noto+Sans+SC:wght@400;500;700;800&display=swap");

:root {
  --bg: #081018;
  --panel: rgba(14, 24, 35, 0.94);
  --panel-strong: rgba(11, 19, 27, 0.98);
  --card: rgba(18, 30, 43, 0.94);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(92, 144, 255, 0.32);
  --text: #f2f7fb;
  --muted: #a4b5c4;
  --accent: #5c90ff;
  --accent-strong: #7aa6ff;
  --accent-cyan: #58c9df;
  --accent-gold: #d7ba78;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --content-width: 1380px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(88, 201, 223, 0.1), transparent 25%),
    radial-gradient(circle at 88% 10%, rgba(92, 144, 255, 0.14), transparent 23%),
    linear-gradient(180deg, #081018 0%, #09131d 40%, #081018 100%);
  font-family: "Chakra Petch", "Noto Sans SC", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72) 18%, #000 100%);
}

main section[id] {
  scroll-margin-top: 118px;
}

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

button,
input {
  font: inherit;
}

.gear-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 2.6vw, 2.3rem);
  background: linear-gradient(180deg, rgba(4, 8, 12, 0.96), rgba(4, 8, 12, 0.8));
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 98px;
  height: 56px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 16px 38px rgba(92, 144, 255, 0.22);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.82rem;
}

.gear-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.gear-nav a {
  position: relative;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.gear-nav a::before {
  content: "";
  position: absolute;
  left: 0.82rem;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(88, 201, 223, 0.7);
  transform: translateY(-50%) scale(0.5);
  opacity: 0;
  transition: transform 160ms ease, opacity 160ms ease;
}

.gear-nav a:hover,
.gear-nav a:focus-visible,
.gear-nav a.is-active {
  background: rgba(92, 144, 255, 0.16);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(122, 166, 255, 0.2);
  outline: none;
}

.gear-nav a:hover::before,
.gear-nav a:focus-visible::before,
.gear-nav a.is-active::before {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.gear-shell,
.gear-footer {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

.gear-shell {
  padding: 2rem 0 4rem;
}

.gear-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 1.2rem;
}

.hero-copy,
.hero-side,
.explorer-section,
.dataset-section,
.taxonomy-section,
.filter-panel,
.results-panel,
.side-card,
.note-card,
.family-card,
.footer-card {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(16, 27, 38, 0.92), rgba(10, 18, 26, 0.96));
  box-shadow: var(--shadow);
}

.hero-copy::before,
.hero-side::before,
.explorer-section::before,
.dataset-section::before,
.taxonomy-section::before,
.helper-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.2rem;
  right: 1.2rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(88, 201, 223, 0), rgba(88, 201, 223, 0.68), rgba(92, 144, 255, 0.7), rgba(88, 201, 223, 0));
  pointer-events: none;
}

.hero-copy::after,
.hero-side::after,
.explorer-section::after,
.dataset-section::after,
.taxonomy-section::after,
.helper-section::after {
  content: "";
  position: absolute;
  right: -7%;
  top: -12%;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 144, 255, 0.12), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hero-copy > *,
.hero-side > *,
.explorer-section > *,
.dataset-section > *,
.taxonomy-section > *,
.helper-section > * {
  position: relative;
  z-index: 1;
}

.hero-copy,
.hero-side,
.explorer-section,
.dataset-section,
.taxonomy-section {
  padding: clamp(1.4rem, 3vw, 2rem);
}

.eyebrow,
.section-label,
.side-label {
  margin: 0;
  color: var(--accent-cyan);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0.9rem 0 0;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.96;
}

.hero-description,
.hero-note,
.section-head p,
.family-card p,
.note-card p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-description {
  margin: 1.15rem 0 0;
  max-width: 62ch;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.88rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.button:hover,
.button:focus-visible,
.chip-button:hover,
.chip-button:focus-visible,
.build-action:hover,
.build-action:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #f8fbff;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.hero-note {
  margin: 1rem 0 0;
  font-size: 0.92rem;
}

.hero-side {
  display: grid;
  gap: 1rem;
}

.side-banner {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(7, 12, 18, 0.88);
}

.side-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 280ms ease, filter 280ms ease;
}

.hero-side:hover .side-banner img,
.results-media:hover img {
  transform: scale(1.04);
  filter: saturate(1.04) contrast(1.03);
}

.portrait-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.portrait-card {
  margin: 0;
  padding: 0.8rem 0.6rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(19, 31, 44, 0.94), rgba(11, 19, 28, 0.96));
  text-align: center;
}

.portrait-card img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.32));
  transition: transform 240ms ease, filter 240ms ease;
}

.portrait-card:hover img {
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.36));
}

.portrait-card figcaption {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.stat-card,
.side-card,
.note-card,
.family-card,
.gear-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(19, 31, 44, 0.94), rgba(11, 19, 28, 0.96));
}

.stat-card::before,
.side-card::before,
.note-card::before,
.family-card::before,
.helper-card::before,
.insight-card::before,
.insight-feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(88, 201, 223, 0), rgba(88, 201, 223, 0.62), rgba(88, 201, 223, 0));
}

.stat-card,
.side-card {
  padding: 1.1rem;
}

.stat-card strong {
  display: block;
  font-size: 1.55rem;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.side-card h2,
.section-head h2 {
  margin: 0.72rem 0 0;
}

.side-list,
.detail-list,
.gear-stat-list {
  display: grid;
  gap: 0.55rem;
  margin: 0.95rem 0 0;
  padding-left: 1.1rem;
}

.side-list li,
.detail-list li,
.gear-stat-list li {
  color: var(--muted);
  line-height: 1.6;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.62rem 0.88rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(92, 144, 255, 0.12), rgba(88, 201, 223, 0.08));
  color: #dce8ff;
  white-space: nowrap;
}

.explorer-layout,
.dataset-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.filter-panel,
.results-panel {
  padding: 1.2rem;
}

.filter-panel {
  display: grid;
  gap: 1rem;
}

.field,
.field-group {
  display: grid;
  gap: 0.48rem;
}

.field span,
.group-label {
  color: var(--muted);
  font-size: 0.88rem;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 0.78rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
}

.field input:focus {
  border-color: rgba(92, 144, 255, 0.44);
  box-shadow: 0 0 0 4px rgba(92, 144, 255, 0.08);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip-button {
  min-height: 36px;
  padding: 0.42rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.chip-button.is-active {
  border-color: rgba(92, 144, 255, 0.32);
  background: rgba(92, 144, 255, 0.14);
}

.range-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
}

.toggle input {
  width: 18px;
  height: 18px;
}

.panel-actions {
  display: flex;
}

.results-panel {
  display: grid;
  gap: 1rem;
}

.results-media {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(7, 12, 18, 0.88);
}

.results-media img {
  display: block;
  width: 100%;
  height: clamp(180px, 22vw, 240px);
  object-fit: cover;
  object-position: center;
  opacity: 0.82;
  transition: transform 280ms ease, filter 280ms ease;
}

.results-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.results-bar h3 {
  margin: 0.65rem 0 0;
}

.results-note {
  margin: 0;
  color: var(--muted);
  max-width: 32ch;
  text-align: right;
}

.gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.gear-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 270px;
  padding: 1.15rem;
  transition: transform 180ms ease, border-color 180ms ease;
}

.gear-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.gear-card-visual {
  display: grid;
  place-items: center;
  min-height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background:
    radial-gradient(circle at top, rgba(92, 144, 255, 0.12), transparent 34%),
    rgba(7, 12, 18, 0.88);
}

.gear-card-visual img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  image-rendering: auto;
}

.gear-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.gear-grade,
.gear-family,
.gear-source,
.table-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.34rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
}

.gear-grade {
  background: rgba(92, 144, 255, 0.14);
  color: #dce8ff;
}

.gear-family {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.gear-card h3 {
  margin: 0;
  font-size: 1.18rem;
}

.gear-subtype {
  color: var(--muted);
  font-size: 0.88rem;
}

.gear-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.gear-source {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.gear-empty {
  padding: 2rem;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  color: var(--muted);
  text-align: center;
}

.dataset-layout {
  align-items: start;
}

.table-wrap {
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: var(--panel-strong);
}

.gear-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 960px;
}

.gear-table th,
.gear-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  vertical-align: top;
}

.gear-table th {
  position: sticky;
  top: 0;
  background: rgba(8, 13, 20, 0.98);
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gear-table td {
  color: var(--text);
  font-size: 0.92rem;
}

.table-secondary {
  color: var(--muted);
}

.table-name {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.table-thumb {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  image-rendering: auto;
}

.dataset-notes {
  display: grid;
  gap: 1rem;
}

.note-card,
.family-card {
  padding: 1.15rem;
}

.note-card h3,
.family-card h3 {
  margin: 0.7rem 0 0;
}

.taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.helper-section {
  position: relative;
  isolation: isolate;
  padding: clamp(1.4rem, 3vw, 2rem);
  margin-top: 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(16, 27, 38, 0.92), rgba(10, 18, 26, 0.96));
  box-shadow: var(--shadow);
}

.helper-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.helper-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 280px;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(19, 31, 44, 0.94), rgba(11, 19, 28, 0.96));
  transition: transform 180ms ease, border-color 180ms ease;
}

.helper-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.helper-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.helper-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.66;
}

.helper-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(92, 144, 255, 0.24), rgba(88, 201, 223, 0.12));
  color: #dfeaff;
  font-weight: 700;
}

.helper-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding-left: 1.1rem;
}

.helper-list li {
  color: var(--muted);
  line-height: 1.56;
}

.helper-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  margin-top: auto;
  padding: 0.68rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.helper-link:hover,
.helper-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(92, 144, 255, 0.34);
  background: rgba(92, 144, 255, 0.1);
  outline: none;
}

.family-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(92, 144, 255, 0.24), rgba(88, 201, 223, 0.12));
  color: #e3ecff;
  font-weight: 700;
}

.family-visual {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.family-visual img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  image-rendering: auto;
}

.insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.insight-feature,
.insight-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(19, 31, 44, 0.94), rgba(11, 19, 28, 0.96));
}

.insight-feature {
  display: grid;
  grid-template-columns: minmax(240px, 0.92fr) minmax(0, 1.08fr);
  gap: 1rem;
  padding: 1.1rem;
}

.insight-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(120px, 1fr);
  gap: 0.75rem;
}

.insight-media-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(7, 12, 18, 0.88);
}

.insight-media-card.is-tall {
  grid-row: span 2;
}

.insight-media-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
}

.insight-media-card figcaption {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.65rem;
  padding: 0.42rem 0.58rem;
  border-radius: 12px;
  background: rgba(5, 8, 12, 0.7);
  color: #f2f7fb;
  font-size: 0.78rem;
  line-height: 1.4;
}

.insight-copy,
.insight-stack {
  display: grid;
  gap: 0.9rem;
}

.insight-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: rgba(88, 201, 223, 0.14);
  color: #ddfbff;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.insight-copy h3,
.insight-card h3 {
  margin: 0;
}

.insight-copy p,
.insight-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.insight-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding-left: 1.1rem;
}

.insight-list li {
  color: var(--muted);
  line-height: 1.56;
}

.insight-card {
  display: grid;
  gap: 0.9rem;
  padding: 1.05rem;
}

.insight-card-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.insight-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(92, 144, 255, 0.24), rgba(88, 201, 223, 0.12));
  color: #dfeaff;
  font-size: 0.84rem;
  font-weight: 700;
}

.insight-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.insight-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.2rem 0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.76rem;
}

.insight-callout {
  padding: 0.88rem 0.95rem;
  border: 1px solid rgba(92, 144, 255, 0.18);
  border-radius: 18px;
  background: rgba(92, 144, 255, 0.08);
}

.gear-footer {
  padding: 0 0 2.5rem;
}

.gear-footer p {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  line-height: 1.72;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 680ms ease, transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .gear-hero,
  .explorer-layout,
  .dataset-layout,
  .insight-grid,
  .insight-feature {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .gear-header {
    flex-direction: column;
    align-items: stretch;
  }

  .gear-nav {
    justify-content: center;
  }

  .stat-grid,
  .range-row,
  .helper-grid,
  .taxonomy-grid {
    grid-template-columns: 1fr;
  }

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

  .results-bar,
  .section-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .results-note {
    text-align: left;
  }

  .insight-media-card.is-tall {
    grid-row: span 1;
  }
}

@media (max-width: 640px) {
  .gear-shell,
  .gear-footer {
    width: min(calc(100% - 1rem), var(--content-width));
  }

  .brand-mark {
    width: 84px;
    height: 48px;
    border-radius: 16px;
  }

  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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