.page-home {
  --home-gap: 16px;
  --home-pad: 18px;
  --home-line: var(--line-600);
  display: block;
  padding-bottom: 56px;
  overflow-x: clip;
}

.page-home h1,
.page-home h2,
.page-home h3 {
  margin: 0;
}

.page-home .home-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 14px;
  padding-block: 14px 4px;
}

.page-home .home-top__stamp {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--slate);
}

.page-home .home-top__stamp span {
  position: relative;
  padding-left: 12px;
}

.page-home .home-top__stamp span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--cyan);
}

.page-home .home-top__stamp span:last-child::before {
  background: var(--mint);
}

/* ---------- hero ---------- */
.page-home .home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
  padding-block: 12px 0;
  background-image:
    radial-gradient(120% 80% at 6% 0%, rgba(45, 226, 208, 0.1), transparent 62%),
    radial-gradient(90% 70% at 100% 14%, rgba(255, 155, 84, 0.08), transparent 60%);
  background-repeat: no-repeat;
}

.page-home .home-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.page-home .home-hero__copy h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 7.4vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--mist);
  max-width: 15em;
}

.page-home .home-hero__intro {
  margin: 0;
  max-width: 36em;
  font-size: 15px;
  line-height: 1.78;
  color: var(--slate);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .home-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 2px 0 0;
}

.page-home .home-stats > div {
  border: 1px solid var(--home-line);
  border-radius: var(--r-sm);
  background: rgba(10, 28, 43, 0.66);
  padding: 10px 12px;
  min-width: 0;
}

.page-home .home-stats dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--slate);
}

.page-home .home-stats dd {
  margin: 5px 0 0;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.page-home .home-stats > div:last-child dd {
  color: var(--mint);
}

/* hero side */
.page-home .home-hero__side {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: end;
  padding: 14px;
  min-height: 320px;
  border: 1px solid var(--home-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-800);
  isolation: isolate;
}

.page-home .home-hero__side::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 21, 33, 0.2) 0%, rgba(7, 21, 33, 0.86) 68%);
  z-index: 0;
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  z-index: 0;
}

.page-home .home-slip {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(45, 226, 208, 0.24);
  border-radius: var(--r-md);
  background: var(--glass-strong);
  backdrop-filter: blur(8px);
  padding: 12px 14px;
  box-shadow: 0 18px 34px -26px #000;
}

.page-home .home-slip--alert {
  border-color: rgba(255, 110, 106, 0.34);
}

.page-home .home-slip__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--mist);
}

.page-home .home-slip__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--slate);
}

.page-home .home-slip__list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.page-home .home-slip__ver {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  border: 1px solid rgba(255, 155, 84, 0.4);
  border-radius: 999px;
  padding: 1px 7px;
  flex: none;
}

.page-home .home-slip__link {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--coral);
  border-bottom: 1px solid rgba(255, 110, 106, 0.5);
  padding-bottom: 1px;
}

/* ---------- stacked blocks ---------- */
.page-home .home-block {
  margin-top: var(--home-gap);
  padding: var(--home-pad);
  border: 1px solid var(--home-line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(45, 226, 208, 0.05), rgba(45, 226, 208, 0) 160px),
    var(--glass);
  box-shadow: var(--shadow-panel);
  scroll-margin-top: 90px;
}

.page-home .home-block--plain {
  background: var(--ink-700);
}

.page-home .home-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--home-line);
}

.page-home .home-block__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  border: 1px solid rgba(45, 226, 208, 0.35);
  border-radius: 999px;
  padding: 2px 9px;
  flex: none;
}

.page-home .home-block__head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 5vw, 32px);
  line-height: 1.16;
  letter-spacing: 0.01em;
  color: var(--mist);
  min-width: 0;
}

.page-home .home-block__note {
  margin: 0;
  flex: 1 1 200px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--slate);
}

.page-home .home-block__body {
  min-width: 0;
}

.page-home .home-block__more {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
}

/* ---------- legend / mini table ---------- */
.page-home .home-key {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 14px;
  padding: 0;
  font-size: 12px;
  color: var(--slate);
}

.page-home .home-key li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-home .home-key__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.page-home .home-key__dot--alert {
  background: var(--coral);
}

.page-home .home-mini {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-home .home-mini__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  padding: 11px 13px;
  border: 1px solid var(--home-line);
  border-radius: var(--r-sm);
  background: rgba(10, 28, 43, 0.62);
}

.page-home .home-mini__env {
  font-size: 13px;
  color: var(--mist);
  min-width: 0;
}

.page-home .home-mini__addr {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
  overflow-wrap: anywhere;
}

.page-home .home-mini__row .tag {
  justify-self: end;
  font-size: 11px;
}

/* ---------- figures ---------- */
.page-home .home-figure {
  margin: 0 0 16px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--home-line);
  background: var(--ink-800);
}

.page-home .home-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .home-figure .media__caption {
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--slate);
  border-top: 1px solid var(--home-line);
}

/* ---------- device cards ---------- */
.page-home .home-devs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.page-home .home-dev {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--home-line);
  border-left: 3px solid var(--cyan);
  border-radius: var(--r-md);
  background: rgba(10, 28, 43, 0.7);
  min-width: 0;
}

.page-home .home-dev:nth-child(3) {
  border-left-color: var(--orange);
}

.page-home .home-dev:nth-child(4) {
  border-left-color: var(--sage);
}

.page-home .home-dev h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--mist);
}

.page-home .home-dev__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--cyan);
  overflow-wrap: anywhere;
}

.page-home .home-dev__txt {
  margin: 0;
  font-size: 13px;
  line-height: 1.68;
  color: var(--slate);
}

/* ---------- timeline ---------- */
.page-home .home-tl {
  list-style: none;
  margin: 0;
  padding: 0 0 0 22px;
  position: relative;
}

.page-home .home-tl::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), var(--line-600));
}

.page-home .home-tl__item {
  position: relative;
  margin-bottom: 10px;
}

.page-home .home-tl__item:last-child {
  margin-bottom: 0;
}

.page-home .home-tl__item::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 17px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-900);
  border: 2px solid var(--line-500);
}

.page-home .home-tl__item--now::before {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(45, 226, 208, 0.15);
}

.page-home .home-tl__box {
  border: 1px solid var(--home-line);
  border-radius: var(--r-md);
  background: rgba(10, 28, 43, 0.7);
  overflow: hidden;
}

.page-home .home-tl__item--now .home-tl__box {
  border-color: rgba(45, 226, 208, 0.4);
  background: rgba(14, 36, 54, 0.9);
}

.page-home .home-tl__box summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  color: var(--mist);
}

.page-home .home-tl__box summary::-webkit-details-marker {
  display: none;
}

.page-home .home-tl__ver {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cyan);
  flex: none;
}

.page-home .home-tl__label {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--slate);
  font-size: 12px;
}

.page-home .home-tl__sign {
  position: relative;
  width: 12px;
  height: 12px;
  flex: none;
}

.page-home .home-tl__sign::before,
.page-home .home-tl__sign::after {
  content: "";
  position: absolute;
  background: var(--slate);
  transition: transform 180ms var(--ease);
}

.page-home .home-tl__sign::before {
  left: 0;
  top: 5px;
  width: 12px;
  height: 1.5px;
}

.page-home .home-tl__sign::after {
  left: 5px;
  top: 0;
  width: 1.5px;
  height: 12px;
}

.page-home .home-tl__box[open] .home-tl__sign::after {
  transform: scaleY(0);
}

.page-home .home-tl__box p {
  margin: 0;
  padding: 0 14px 13px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--slate);
}

/* ---------- alerts ---------- */
.page-home .home-alert-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.page-home .home-issues {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.page-home .home-issues li {
  padding: 11px 13px;
  border: 1px solid rgba(255, 110, 106, 0.28);
  border-radius: var(--r-sm);
  background: rgba(255, 110, 106, 0.06);
}

.page-home .home-issues__k {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--coral);
  margin-bottom: 4px;
}

.page-home .home-issues__v {
  display: block;
  font-size: 13px;
  line-height: 1.65;
  color: var(--slate);
}

.page-home .home-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--home-line);
  border-radius: var(--r-md);
  background: rgba(10, 28, 43, 0.62);
}

.page-home .home-flow__step {
  font-size: 12px;
  color: var(--mist);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-home .home-flow__step b {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--orange);
  font-weight: 700;
}

.page-home .home-flow__step--ok b {
  color: var(--mint);
}

.page-home .home-flow__arrow {
  width: 14px;
  height: 1px;
  background: var(--line-500);
  flex: none;
}

/* ---------- archive ---------- */
.page-home .home-archive {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.page-home .home-archive .home-figure {
  margin: 0;
}

.page-home .home-archive__text p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.78;
  color: var(--slate);
}

.page-home .home-archive__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-home .home-archive__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  color: var(--mist);
  padding: 9px 12px;
  border: 1px solid var(--home-line);
  border-radius: var(--r-sm);
  background: rgba(169, 199, 180, 0.06);
}

.page-home .home-archive__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--sage);
  border: 1px solid rgba(169, 199, 180, 0.42);
  border-radius: 999px;
  padding: 1px 8px;
  flex: none;
}

/* ---------- team ---------- */
.page-home .home-team {
  margin: 0;
  max-width: 40em;
  font-size: 14px;
  line-height: 1.85;
  color: var(--slate);
}

/* ---------- media queries ---------- */
@media (min-width: 560px) {
  .page-home .home-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .page-home .home-mini__row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 10px;
  }

  .page-home .home-mini__addr {
    grid-column: auto;
    text-align: left;
  }
}

@media (min-width: 860px) {
  .page-home {
    --home-gap: 18px;
    --home-pad: 26px;
  }

  .page-home .home-hero {
    grid-template-columns: 7fr 5fr;
    align-items: stretch;
    gap: 16px;
    padding-block: 20px 0;
  }

  .page-home .home-hero__copy {
    gap: 16px;
    justify-content: center;
  }

  .page-home .home-hero__intro {
    font-size: 16px;
  }

  .page-home .home-hero__side {
    min-height: 440px;
    padding: 16px;
  }

  .page-home .home-alert-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .page-home .home-alert-grid .home-figure {
    margin-bottom: 0;
  }

  .page-home .home-archive {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 20px;
  }

  .page-home .home-block__head {
    flex-wrap: nowrap;
    align-items: center;
  }

  .page-home .home-block__note {
    text-align: right;
  }
}

@media (min-width: 1180px) {
  .page-home .home-devs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .home-hero__copy h1 {
    font-size: clamp(44px, 4.4vw, 62px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-tl__sign::before,
  .page-home .home-tl__sign::after {
    transition: none;
  }
}
