.page-home {
  --home-section: clamp(56px, 8vw, 104px);
  --home-gap: clamp(20px, 3vw, 34px);
  background: var(--ink);
  color: var(--text);
  overflow-x: hidden;
}

.page-home .eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber);
}

.page-home .plate--amber {
  border-color: rgba(242, 169, 59, .45);
  color: var(--amber);
}

/* ---------- hero ---------- */

.page-home .hero {
  padding: clamp(16px, 3vw, 34px) var(--pad) 0;
}

.page-home .hero-frame {
  position: relative;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 92% at 88% 2%, rgba(18, 49, 42, .92) 0%, rgba(11, 31, 25, .52) 44%, rgba(6, 17, 14, 0) 74%),
    var(--ink);
  padding: clamp(24px, 4vw, 54px);
  overflow: hidden;
}

.page-home .hero-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(to right, rgba(30, 74, 62, .34) 0 1px, transparent 1px var(--tick)),
    repeating-linear-gradient(to bottom, rgba(30, 74, 62, .34) 0 1px, transparent 1px var(--tick));
  opacity: .5;
  pointer-events: none;
}

.page-home .hero-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(198, 255, 61, .16);
  pointer-events: none;
}

.page-home .hero-notch {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  padding: 2px 14px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-top: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--faint);
  white-space: nowrap;
}

.page-home .hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(30px, 4vw, 52px);
}

.page-home .hero-kicker {
  margin: 0 0 clamp(16px, 2.4vw, 26px);
}

.page-home .hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 7.6vw, 86px);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--text);
}

.page-home .hero-lead {
  margin: clamp(16px, 2.4vw, 24px) 0 0;
  max-width: 34em;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.78;
  color: var(--muted);
}

.page-home .hero-entries {
  list-style: none;
  margin: clamp(22px, 3.4vw, 36px) 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .entry {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 14px;
  align-items: start;
  height: 100%;
  padding: 15px 16px;
  background: rgba(11, 31, 25, .82);
  color: var(--text);
  text-decoration: none;
  transition: background .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}

.page-home .entry:hover,
.page-home .entry:focus-visible {
  background: var(--board);
  box-shadow: inset 0 0 0 1px var(--lime);
  transform: translateY(-2px);
}

.page-home .entry-no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--amber);
  line-height: 1.7;
}

.page-home .entry-text {
  display: block;
}

.page-home .entry-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
}

.page-home .entry-note {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.page-home .hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: clamp(22px, 3vw, 34px) 0 0;
  font-size: 13px;
  letter-spacing: .05em;
  color: var(--muted);
}

.page-home .hero-trust::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--lime);
  flex: none;
}

.page-home .hero-side {
  position: relative;
}

.page-home .hero-media {
  position: relative;
  border: 1px solid var(--line);
  overflow: hidden;
}

.page-home .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(196deg, rgba(6, 17, 14, .18) 0%, rgba(6, 17, 14, .84) 92%);
}

.page-home .hero-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(.62) brightness(.7);
}

.page-home .hero-stat-card {
  position: relative;
  margin-top: 14px;
  padding: 18px 20px;
  background: rgba(18, 49, 42, .95);
  border: 1px solid var(--line);
  border-left: 2px solid var(--amber);
}

.page-home .stat-stack {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .stat-stack li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(30, 74, 62, .7);
}

.page-home .stat-stack li:first-child {
  padding-top: 0;
  border-top: 0;
}

.page-home .stat-num {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1;
  letter-spacing: .04em;
  color: var(--amber);
}

.page-home .stat-unit {
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--muted);
}

/* ---------- catalog ---------- */

.page-home .catalog {
  position: relative;
  margin-top: clamp(56px, 8vw, 100px);
  padding: var(--home-section) var(--pad);
  background: var(--deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .cat-mark {
  display: none;
}

.page-home .cat-head {
  max-width: 42em;
}

.page-home .cat-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -.005em;
}

.page-home .cat-lead {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .cat-body {
  display: grid;
  gap: var(--home-gap);
  margin-top: clamp(28px, 4vw, 46px);
}

.page-home .cat-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: start;
}

.page-home .kind {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  background: rgba(6, 17, 14, .6);
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}

.page-home .kind-no {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--faint);
}

.page-home .kind:hover,
.page-home .kind:focus-visible {
  border-color: var(--lime);
  background: var(--board);
  color: var(--lemon);
}

.page-home .cat-rows {
  display: grid;
  gap: clamp(26px, 3.4vw, 40px);
  min-width: 0;
}

.page-home .cat-group:target {
  box-shadow: inset 0 0 0 1px var(--lime);
  padding: 12px;
  margin: -12px;
}

.page-home .cat-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .05em;
}

.page-home .cat-group-no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--amber);
}

.page-home .cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .cat-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 6px;
  color: var(--text);
  text-decoration: none;
  transition: background .18s var(--ease), color .18s var(--ease);
}

.page-home .cat-row:hover,
.page-home .cat-row:focus-visible {
  background: var(--board);
  color: var(--lemon);
}

.page-home .cat-row-name {
  font-size: 14.5px;
  line-height: 1.6;
  flex: 0 1 auto;
}

.page-home .cat-row-dots {
  flex: 1 1 20px;
  min-width: 12px;
  border-bottom: 1px dotted var(--faint);
  transform: translateY(-4px);
}

.page-home .cat-row-meta {
  flex: none;
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--muted);
}

/* ---------- focus ---------- */

.page-home .focus {
  padding: var(--home-section) var(--pad) 0;
}

.page-home .focus-head {
  max-width: 40em;
}

.page-home .focus-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.12;
}

.page-home .focus-lead {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .round-switch {
  position: relative;
  margin-top: clamp(24px, 3.2vw, 38px);
}

.page-home .round-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-home .round-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .round-chip {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}

.page-home .round-chip:hover {
  border-color: var(--line);
  color: var(--text);
}

.page-home .round-input:nth-of-type(1):checked ~ .round-chips > label:nth-child(1),
.page-home .round-input:nth-of-type(2):checked ~ .round-chips > label:nth-child(2),
.page-home .round-input:nth-of-type(3):checked ~ .round-chips > label:nth-child(3) {
  border-color: var(--lime);
  background: rgba(198, 255, 61, .1);
  color: var(--lime);
}

.page-home .round-panels {
  margin-top: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-left: 2px solid var(--amber);
  background: rgba(18, 49, 42, .55);
  padding: clamp(20px, 3vw, 32px);
}

.page-home .round-panel {
  display: none;
}

.page-home .round-input:nth-of-type(1):checked ~ .round-panels > .round-panel:nth-child(1),
.page-home .round-input:nth-of-type(2):checked ~ .round-panels > .round-panel:nth-child(2),
.page-home .round-input:nth-of-type(3):checked ~ .round-panels > .round-panel:nth-child(3) {
  display: block;
}

.page-home .round-panel-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--lemon);
}

.page-home .round-note {
  margin: 0;
  max-width: 40em;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
}

.page-home .state-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .state-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  padding: 12px 14px;
  background: rgba(11, 31, 25, .88);
}

.page-home .state {
  flex: none;
  min-width: 88px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: .08em;
}

.page-home .state--go {
  border-color: rgba(198, 255, 61, .5);
  color: var(--lime);
}

.page-home .state--turn {
  border-color: rgba(242, 169, 59, .5);
  color: var(--amber);
}

.page-home .state--doubt {
  border-color: rgba(255, 107, 74, .5);
  color: var(--alert);
}

.page-home .state--out {
  border-color: rgba(255, 107, 74, .8);
  color: var(--alert);
}

.page-home .state--wait {
  border-color: var(--line);
  color: var(--muted);
}

.page-home .state-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .tag-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
}

.page-home .tag {
  padding: 5px 11px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--muted);
}

/* ---------- path ---------- */

.page-home .path {
  padding: var(--home-section) var(--pad) 0;
}

.page-home .path-inner {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.page-home .path-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.12;
}

.page-home .steps {
  list-style: none;
  margin: clamp(24px, 3.2vw, 36px) 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 16px;
  padding: 18px 16px;
  background: rgba(11, 31, 25, .9);
  transition: background .18s var(--ease);
}

.page-home .step:hover {
  background: var(--board);
}

.page-home .step-no {
  font-family: var(--font-mono);
  font-size: 22px;
  line-height: 1;
  letter-spacing: .04em;
  color: var(--amber);
}

.page-home .step-title {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: .03em;
}

.page-home .step-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .path-media {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--deep);
  overflow: hidden;
}

.page-home .path-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(.7) brightness(.82);
}

.page-home .path-media .media-cap {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- mobile ---------- */

.page-home .mob {
  padding: var(--home-section) var(--pad) 0;
}

.page-home .mob-inner {
  display: grid;
  gap: clamp(26px, 4vw, 52px);
  align-items: start;
  padding: clamp(22px, 3.4vw, 40px);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 100% at 12% 0%, rgba(18, 49, 42, .9) 0%, rgba(6, 17, 14, 0) 62%),
    var(--deep);
}

.page-home .mob-figure {
  margin: 0;
  border: 1px solid var(--line);
  transform: rotate(-1.2deg);
  overflow: hidden;
}

.page-home .mob-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: saturate(.85) brightness(.92);
}

.page-home .mob-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.8vw, 42px);
  line-height: 1.14;
}

.page-home .mob-lead {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .mob-list {
  list-style: none;
  margin: clamp(20px, 2.8vw, 28px) 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .mob-list li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(30, 74, 62, .7);
}

.page-home .mob-k {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--amber);
}

.page-home .mob-v {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
}

.page-home .mob-note {
  margin: 18px 0 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .mob-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(20px, 2.8vw, 28px);
}

/* ---------- end ---------- */

.page-home .end {
  padding: clamp(56px, 8vw, 104px) var(--pad) 0;
}

.page-home .end-inner {
  padding-top: clamp(24px, 3.4vw, 40px);
  border-top: 1px solid var(--line);
  max-width: 44em;
}

.page-home .end-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.18;
}

.page-home .end-note {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .end-note a {
  color: var(--lime);
  text-decoration: none;
  border-bottom: 1px solid rgba(198, 255, 61, .4);
}

.page-home .end-note a:hover,
.page-home .end-note a:focus-visible {
  color: var(--lemon);
  border-bottom-color: var(--lemon);
}

.page-home .end .btn {
  margin-top: clamp(20px, 2.8vw, 28px);
}

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

@media (min-width: 620px) {
  .page-home .hero-entries {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .mob-list li {
    grid-template-columns: 92px 1fr;
  }
}

@media (min-width: 900px) {
  .page-home .hero-inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }

  .page-home .hero-side {
    margin-top: clamp(28px, 5vw, 84px);
  }

  .page-home .hero-media {
    margin-right: -14px;
  }

  .page-home .hero-stat-card {
    width: 300px;
    margin: -74px -6px 0 auto;
  }

  .page-home .cat-body {
    grid-template-columns: minmax(0, 22%) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
  }

  .page-home .cat-kinds {
    position: sticky;
    top: 92px;
    flex-direction: column;
    flex-wrap: nowrap;
    align-self: start;
  }

  .page-home .kind {
    justify-content: flex-start;
    width: 100%;
  }

  .page-home .path-inner {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }

  .page-home .path-media {
    margin-top: clamp(28px, 4vw, 56px);
  }

  .page-home .mob-inner {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    align-items: center;
  }

  .page-home .mob-figure {
    margin-top: -18px;
  }
}

@media (min-width: 1100px) {
  .page-home .catalog {
    padding-top: calc(var(--home-section) + 28px);
  }

  .page-home .cat-mark {
    display: block;
    position: absolute;
    top: clamp(28px, 4vw, 56px);
    left: calc(var(--pad) + 6px);
    width: 116px;
    height: 116px;
    object-fit: cover;
    border: 1px solid var(--line);
    opacity: .42;
    filter: grayscale(.4) brightness(.9);
    z-index: 3;
    pointer-events: none;
  }

  .page-home .cat-head {
    padding-left: 148px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .entry,
  .page-home .kind,
  .page-home .cat-row,
  .page-home .step,
  .page-home .round-chip {
    transition: none;
  }

  .page-home .entry:hover,
  .page-home .entry:focus-visible {
    transform: none;
  }

  .page-home .mob-figure {
    transform: none;
  }
}
