.page-home {
  --home-rule: 1px solid var(--line);
  --home-spine: 1.1rem;
  background: var(--rice);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
}

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

.page-home img {
  display: block;
  max-width: 100%;
  height: auto;
}

.page-home .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-home .section-title {
  margin: 0.5rem 0 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.page-home .lede {
  margin: 0.9rem 0 0;
  max-width: 34em;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--stone);
}

/* ---------- context strip ---------- */
.home-context {
  border-bottom: var(--home-rule);
  background: var(--paper);
}

.home-context__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  justify-content: space-between;
  padding-block: 0.6rem;
}

.home-context__crumb,
.home-context__geo {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
}

.home-context__crumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.home-context__crumb::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--cinnabar);
  flex: none;
}

/* ---------- hero ---------- */
.home-hero {
  padding-block: clamp(1.25rem, 4vw, 2.5rem) clamp(2rem, 5vw, 3.75rem);
  background: linear-gradient(180deg, var(--paper) 0%, var(--rice) 62%);
}

.home-hero__frame {
  position: relative;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem) 0;
}

.home-hero__frame::before,
.home-hero__frame::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--cinnabar);
  pointer-events: none;
}

.home-hero__frame::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.home-hero__frame::after {
  bottom: -1px;
  right: -1px;
  border-left: 0;
  border-top: 0;
}

.home-hero__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.home-hero__title {
  margin: 0.7rem 0 0;
  font-size: clamp(2.2rem, 8.4vw, 4.8rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.home-hero__mark {
  position: relative;
  display: inline-block;
  color: var(--cinnabar);
}

.home-hero__mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.12em;
  background: var(--cinnabar);
  opacity: 0.2;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.4rem;
  margin-top: clamp(1.25rem, 3vw, 1.9rem);
}

.home-hero__more {
  font-size: 0.85rem;
  color: var(--pine);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.15rem;
}

.home-hero__more:hover,
.home-hero__more:focus-visible {
  color: var(--cinnabar);
  border-color: var(--cinnabar);
}

.home-hero__figure .figure__frame {
  border: 1px solid var(--line-strong);
  padding: 6px;
  background: var(--rice);
}

.home-hero__figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.page-home .figure__caption {
  margin-top: 0.45rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--stone);
}

.home-stats {
  list-style: none;
  margin: clamp(1.25rem, 3vw, 2rem) 0 0;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.home-stats__item {
  padding: 0.9rem 0;
  border-bottom: var(--home-rule);
}

.home-stats__item:last-child {
  border-bottom: 0;
}

.home-stats__num {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.35rem, 3.6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.home-stats__label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--stone);
}

/* ---------- steps ---------- */
.home-steps {
  border-top: var(--home-rule);
  background: var(--rice);
}

.home-steps__head {
  max-width: 46rem;
}

.home-steps__body {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.home-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  border-top: 2px solid var(--ink);
}

.home-step {
  padding: 1.1rem 0 1.35rem;
  border-bottom: var(--home-rule);
}

.home-step__index {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--cinnabar);
}

.home-step h3 {
  margin: 0.4rem 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.home-step p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--stone);
}

.home-steps__figure .figure__frame {
  border: 1px solid var(--line-strong);
  padding: 6px;
  background: var(--paper);
}

.home-steps__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.home-steps__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.9rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line-strong);
  font-size: 0.88rem;
  color: var(--ink);
}

.home-steps__link::after {
  content: "→";
  margin-left: 0.5rem;
  font-family: var(--mono);
  color: var(--cinnabar);
}

.home-steps__link:hover,
.home-steps__link:focus-visible {
  color: var(--cinnabar);
}

/* ---------- archive cards ---------- */
.home-archive {
  background: var(--paper);
  border-top: 1px solid var(--line-strong);
}

.home-archive__head {
  max-width: 44rem;
}

.home-archive__grid {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.home-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.15rem 1.1rem 1.3rem;
  background: var(--rice);
  border: 1px solid var(--line-strong);
}

.home-card--celadon {
  background: var(--celadon);
  border-color: rgba(21, 21, 21, 0.3);
}

.home-card--ink {
  background: var(--ink);
  color: var(--rice);
  border-color: var(--ink);
}

.home-card__index {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--copper);
}

.home-card--ink .home-card__index {
  color: var(--copper);
}

.home-card h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.home-card p {
  margin: 0;
  font-size: 0.89rem;
  line-height: 1.85;
  color: var(--stone);
}

.home-card--celadon p {
  color: var(--pine);
}

.home-card--ink p {
  color: var(--ink-soft);
}

.home-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--pine);
}

.home-card__list li {
  padding-left: 0.85rem;
  position: relative;
}

.home-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 1px;
  background: var(--cinnabar);
}

.home-card__link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.85rem;
  color: var(--ink);
  border-bottom: 1px solid var(--cinnabar);
  padding-bottom: 0.1rem;
}

.home-card--ink .home-card__link {
  color: var(--rice);
}

.home-card__link:hover,
.home-card__link:focus-visible {
  color: var(--cinnabar);
}

.home-card--ink .home-card__link:hover,
.home-card--ink .home-card__link:focus-visible {
  color: var(--celadon);
}

.home-card__disclosure {
  border-top: 1px dashed rgba(21, 21, 21, 0.28);
  padding-top: 0.5rem;
}

.home-card__disclosure .disclosure__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}

.home-card__disclosure .disclosure__summary::-webkit-details-marker {
  display: none;
}

.home-card__disclosure .disclosure__summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--cinnabar);
  line-height: 1;
}

.home-card__disclosure[open] .disclosure__summary::after {
  content: "–";
}

.home-card__disclosure .disclosure__body p {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--pine);
}

.home-archive__figure .figure__frame {
  border: 1px solid var(--line-strong);
  padding: 5px;
  background: var(--rice);
  height: 100%;
}

.home-archive__figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  height: 100%;
  object-fit: cover;
}

/* ---------- batch ---------- */
.home-batch {
  background: var(--rice);
  border-top: 1px solid var(--line-strong);
}

.home-batch__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
}

.home-batch__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 1.1rem;
  font-size: 0.88rem;
  color: var(--ink);
  border-bottom: 1px solid var(--cinnabar);
}

.home-batch__link::after {
  content: "↗";
  margin-left: 0.45rem;
  font-family: var(--mono);
  color: var(--cinnabar);
}

.home-batch__link:hover,
.home-batch__link:focus-visible {
  color: var(--cinnabar);
}

.home-batch__figure {
  margin-top: 1.4rem;
}

.home-batch__figure .figure__frame {
  border: 1px solid var(--line-strong);
  padding: 6px;
  background: var(--paper);
}

.home-batch__figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.home-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 var(--home-spine);
  border-left: 1px solid var(--line-strong);
  display: grid;
  gap: 1.15rem;
}

.home-timeline__item {
  position: relative;
  padding-bottom: 0.2rem;
}

.home-timeline__item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--home-spine) - 5px);
  top: 0.55rem;
  width: 9px;
  height: 9px;
  background: var(--rice);
  border: 2px solid var(--cinnabar);
}

.home-timeline__tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line-strong);
  color: var(--pine);
}

.home-timeline__tag--ok {
  background: var(--celadon);
  border-color: rgba(21, 21, 21, 0.3);
  color: var(--ink);
}

.home-timeline__tag--watch {
  color: var(--copper);
  border-color: var(--copper);
}

.home-timeline__tag--retest {
  color: var(--paper);
  background: var(--cinnabar);
  border-color: var(--cinnabar);
}

.home-timeline__item h3 {
  margin: 0.55rem 0 0.35rem;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.home-timeline__item p {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.85;
  color: var(--stone);
}

/* ---------- brand voice ---------- */
.home-voice {
  position: relative;
  background: var(--ink);
  color: var(--rice);
  border-top: 1px solid var(--ink);
  overflow: hidden;
}

.home-voice::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(243, 239, 230, 0.07) 1px, transparent 1px);
  background-size: clamp(42px, 8vw, 96px) 100%;
  pointer-events: none;
}

.home-voice__inner {
  position: relative;
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
}

.home-voice .eyebrow {
  color: var(--celadon);
}

.home-voice .section-title {
  color: var(--rice);
}

.home-voice__lead p {
  margin: 0.9rem 0 0;
  max-width: 34em;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

.home-voice__cta {
  margin-top: 1.4rem;
  border: 1px solid var(--line-dark);
  color: var(--rice);
}

.home-voice__cta:hover,
.home-voice__cta:focus-visible {
  background: var(--rice);
  color: var(--ink);
  border-color: var(--rice);
}

.home-voice__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.home-voice__fact {
  border-top: 1px solid var(--line-dark);
  padding: 0.9rem 0;
}

.home-voice__fact b {
  display: block;
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.home-voice__fact span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

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

  .home-stats__item:nth-child(2n) {
    border-left: var(--home-rule);
    padding-left: 1rem;
  }

  .home-voice__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
  }
}

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

  .home-step {
    border-bottom: 0;
    border-right: var(--home-rule);
    padding: 1.1rem 1.1rem 1.4rem 0;
  }

  .home-step:last-child {
    border-right: 0;
    padding-right: 0;
  }

  .home-step:not(:first-child) {
    padding-left: 1.1rem;
  }
}

@media (min-width: 760px) {
  .home-archive__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .home-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: clamp(1.5rem, 3vw, 2.75rem);
  }

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

  .home-stats__item {
    border-bottom: 0;
    border-left: var(--home-rule);
    padding: 0.95rem 1rem;
  }

  .home-stats__item:first-child {
    border-left: 0;
    padding-left: 0;
  }

  .home-steps__body {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }

  .home-batch__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(1.75rem, 4vw, 3.5rem);
  }

  .home-voice__inner {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: start;
  }
}

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

  .home-archive__figure img {
    aspect-ratio: 3 / 4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home * {
    transition: none !important;
    animation: none !important;
  }
}
