.page-home {
  --home-space: clamp(2.75rem, 7vw, 5rem);
  --home-gap: clamp(1rem, 3vw, 1.5rem);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  overflow-x: clip;
}

.page-home * {
  box-sizing: border-box;
}

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

.page-home a {
  color: inherit;
}

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

.page-home section[id] {
  scroll-margin-top: 3.75rem;
}

.page-home .home-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.page-home .home-crumbs .crumbs__sep {
  color: var(--line);
}

.page-home .home-eyebrow {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--mint);
}

.page-home .home-hero {
  position: relative;
  padding-block: clamp(1.5rem, 4vw, 2.75rem) 0;
  background: var(--ink);
  overflow: hidden;
}

.page-home .home-hero__cut {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--pine);
  clip-path: polygon(0 0, 100% 0, 100% 58%, 0 92%);
}

.page-home .home-hero__cut::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(69, 240, 178, 0.08), transparent 38%, rgba(246, 184, 74, 0.05) 82%, transparent);
}

.page-home .home-hero .container {
  position: relative;
  z-index: 1;
}

.page-home .home-hero__grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.page-home .home-hero__lead,
.page-home .home-hero__aside {
  min-width: 0;
}

.page-home .home-title {
  margin-top: 0.75rem;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.7rem, 9.5vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  color: var(--paper);
}

.page-home .home-title__mint {
  color: var(--mint);
}

.page-home .home-lede {
  max-width: 44ch;
  margin-top: 1.25rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.8;
  color: var(--paper);
}

.page-home .home-keyword {
  max-width: 46ch;
  margin-top: 1.15rem;
  padding-left: 0.85rem;
  border-left: 3px solid var(--mint);
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .home-keyword a {
  margin-left: 0.25rem;
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.page-home .home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.page-home .home-actions .btn {
  text-decoration: none;
}

.page-home .home-status {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.page-home .home-status__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.page-home .home-status__title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.page-home .home-status__link {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--mint);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.page-home .home-status__link:hover {
  border-bottom-color: var(--mint);
}

.page-home .home-status__list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.page-home .home-status__item {
  min-width: 0;
  padding: 0.95rem 1rem 1rem 1.15rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  background: rgba(18, 51, 40, 0.35);
}

.page-home .home-status__item:nth-child(1) {
  border-left-color: var(--amber);
}

.page-home .home-status__item:nth-child(2) {
  border-left-color: var(--mint-soft);
  background: var(--card);
}

.page-home .home-status__item:nth-child(3) {
  border-left-color: var(--mint);
  background: rgba(69, 240, 178, 0.07);
}

.page-home .home-status .tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.page-home .home-status__name {
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--paper);
}

.page-home .home-status__desc {
  margin-top: 0.3rem;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .home-figures {
  display: grid;
  gap: 1px;
  margin-top: 1.5rem;
  border: var(--edge);
  background: var(--line);
  box-shadow: var(--slab-sm);
}

.page-home .home-figures__cell {
  min-width: 0;
  padding: 0.9rem 1rem;
  background: var(--ink);
}

.page-home .home-figures__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  line-height: 1;
  color: var(--mint);
}

.page-home .home-figures__desc {
  margin-top: 0.45rem;
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--muted);
}

.page-home .home-hero__aside {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.page-home .home-hero__figure {
  position: relative;
  margin: 0;
  border: var(--edge);
  background: var(--card);
  box-shadow: var(--slab);
}

.page-home .home-hero__figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.05);
}

.page-home .home-hero__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 54%, rgba(7, 18, 15, 0.72));
}

.page-home .home-hero__stamp {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  z-index: 2;
  padding: 0.28rem 0.5rem;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
}

.page-home .home-jump {
  border-top: 2px solid var(--line);
}

.page-home .home-jump__label {
  padding: 0.65rem 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.page-home .home-jump__list {
  display: grid;
}

.page-home .home-jump__link {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: baseline;
  min-width: 0;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.page-home .home-jump__link:hover {
  background: var(--card);
}

.page-home .home-jump__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--mint);
}

.page-home .home-jump__name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--paper);
}

.page-home .home-jump__meta {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--muted);
  white-space: nowrap;
}

.page-home .home-toc {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ink);
  border-block: 1px solid var(--line);
}

.page-home .home-toc__inner {
  display: flex;
  overflow-x: auto;
  scrollbar-width: thin;
}

.page-home .home-toc a {
  flex: 0 0 auto;
  padding: 0.85rem 0.95rem;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
}

.page-home .home-toc a:hover {
  color: var(--mint);
  background: var(--pine);
}

.page-home .home-section {
  padding-block: var(--home-space);
}

.page-home .home-section--pine {
  background: var(--pine);
  border-block: 1px solid var(--line);
}

.page-home .home-section__head {
  display: grid;
  gap: 0.9rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.page-home .home-section__head > * {
  min-width: 0;
}

.page-home .home-section__index {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--mint);
}

.page-home .home-section__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.95rem, 5.2vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--paper);
}

.page-home .home-section__lede {
  max-width: 52ch;
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .home-index-layout {
  display: grid;
  gap: 1.5rem;
}

.page-home .home-index-figure {
  margin: 0;
  border: var(--edge);
  background: var(--card);
  box-shadow: var(--slab);
}

.page-home .home-index-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.05);
}

.page-home .home-index-figure .media-frame__caption {
  padding: 0.65rem 0.8rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  line-height: 1.5;
  color: var(--muted);
}

.page-home .home-cat-grid {
  display: grid;
  gap: 1px;
  min-width: 0;
  border: var(--edge);
  background: var(--line);
  box-shadow: var(--slab-sm);
}

.page-home .home-cat {
  min-width: 0;
  padding: 0.95rem 1rem;
  background: var(--ink);
}

.page-home .home-cat:nth-child(3n + 2) {
  background: var(--pine);
}

.page-home .home-cat__num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--mint);
}

.page-home .home-cat h3 {
  margin-top: 0.3rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  color: var(--paper);
}

.page-home .home-cat p {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--muted);
}

.page-home .home-fee__layout {
  display: grid;
  gap: 1.5rem;
}

.page-home .home-fee__main,
.page-home .home-fee__figure {
  min-width: 0;
}

.page-home .home-table-hint {
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--amber);
}

.page-home .home-table-wrap {
  overflow-x: auto;
  border: var(--edge);
  background: var(--ink);
  box-shadow: var(--slab);
  -webkit-overflow-scrolling: touch;
}

.page-home .home-fee-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.page-home .home-fee-table th {
  padding: 0.8rem;
  border-bottom: 2px solid var(--line);
  background: var(--card);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.page-home .home-fee-table th:nth-child(2),
.page-home .home-fee-table th:nth-child(5) {
  color: var(--amber);
}

.page-home .home-fee-table td {
  padding: 0.8rem;
  border-bottom: 1px solid var(--line);
  color: var(--paper);
  line-height: 1.6;
  vertical-align: top;
}

.page-home .home-fee-table tbody tr:nth-child(even) td {
  background: rgba(18, 51, 40, 0.4);
}

.page-home .home-fee-table tbody tr:nth-child(even) td:first-child {
  background: #0a1a14;
}

.page-home .home-fee-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 8.5rem;
  background: var(--ink);
  font-weight: 700;
}

.page-home .home-fee-table td:nth-child(2),
.page-home .home-fee-table td:nth-child(5) {
  color: var(--amber-soft);
}

.page-home .home-table-note {
  margin-top: 0.7rem;
  font-size: 0.74rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .home-budget {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.page-home .home-budget__item {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  background: rgba(7, 18, 15, 0.55);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.page-home .home-budget__item:hover {
  border-color: var(--amber);
  background: var(--ink);
}

.page-home .home-budget__item strong {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--amber);
}

.page-home .home-budget__item span {
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--muted);
}

.page-home .home-fee__figure {
  margin: 0;
  border: var(--edge);
  background: var(--card);
  box-shadow: var(--slab);
}

.page-home .home-fee__figure img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.05);
}

.page-home .home-fee__figure .media-frame__caption {
  padding: 0.65rem 0.8rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  line-height: 1.5;
  color: var(--muted);
}

.page-home .home-terminal__layout {
  display: grid;
  gap: 1.5rem;
}

.page-home .home-terminal__figure {
  margin: 0;
  border: var(--edge);
  background: var(--card);
  box-shadow: var(--slab);
}

.page-home .home-terminal__figure img {
  width: 100%;
  aspect-ratio: 14 / 9;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.05);
}

.page-home .home-terminal__figure .media-frame__caption {
  padding: 0.65rem 0.8rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  line-height: 1.5;
  color: var(--muted);
}

.page-home .home-terminal__cards {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.page-home .home-terminal__card {
  min-width: 0;
  padding: clamp(1rem, 3vw, 1.4rem);
  border: var(--edge);
  background: var(--card);
  box-shadow: var(--slab-sm);
}

.page-home .home-terminal__meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--mint);
}

.page-home .home-terminal__card h3 {
  margin-top: 0.35rem;
  font-family: var(--font-head);
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 800;
  color: var(--paper);
}

.page-home .home-terminal__card ul {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.page-home .home-terminal__card li {
  position: relative;
  padding-left: 0.9rem;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .home-terminal__card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  background: var(--mint);
}

.page-home .home-terminal__link {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--mint);
  text-decoration: none;
  border-bottom: 1px solid var(--mint);
}

.page-home .home-terminal__help {
  margin-top: 1.35rem;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .home-terminal__help a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.page-home .home-notes {
  background: var(--pine);
  border-block: 1px solid var(--line);
}

.page-home .home-notes__list {
  display: grid;
  border-top: 2px solid var(--line);
}

.page-home .home-note {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  min-width: 0;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.page-home .home-note__num {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--line);
}

.page-home .home-note .tag {
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.page-home .home-note__time {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.page-home .home-note h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 800;
  color: var(--paper);
}

.page-home .home-note h3 a {
  text-decoration: none;
}

.page-home .home-note h3 a:hover {
  color: var(--mint);
  box-shadow: inset 0 -1px 0 var(--mint);
}

.page-home .home-note__desc {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .home-notes__actions {
  margin-top: 1.5rem;
}

.page-home .home-notes__actions .btn {
  text-decoration: none;
}

.page-home .home-service__layout {
  display: grid;
  gap: 2rem;
}

.page-home .home-service__main,
.page-home .home-contact {
  min-width: 0;
}

.page-home .home-service__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: var(--edge);
  background: var(--line);
  box-shadow: var(--slab-sm);
}

.page-home .home-stat {
  min-width: 0;
  padding: 0.95rem 1rem;
  background: var(--ink);
}

.page-home .home-stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4.2vw, 2.15rem);
  line-height: 1;
  color: var(--mint);
}

.page-home .home-stat__num--amber {
  color: var(--amber);
}

.page-home .home-stat__label {
  margin-top: 0.45rem;
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--muted);
}

.page-home .home-service__copy {
  max-width: 56ch;
  margin-top: 1.25rem;
}

.page-home .home-service__copy p {
  margin-top: 0.8rem;
  font-size: 0.86rem;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .home-service__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding-top: 0.35rem;
}

.page-home .home-service__links a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.page-home .home-service__links span {
  color: var(--line);
}

.page-home .home-contact {
  align-self: start;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: var(--edge);
  background: var(--card);
  box-shadow: var(--slab);
}

.page-home .home-contact__title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--mint);
}

.page-home .home-contact__list {
  display: grid;
  gap: 0.15rem;
  margin-top: 1rem;
}

.page-home .home-contact__list dt {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.page-home .home-contact__list dd {
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.page-home .home-contact__note {
  margin-top: 0.7rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .home-contact__cta {
  margin-top: 1rem;
  text-decoration: none;
}

.page-home .home-cta {
  padding-block: var(--home-space);
  background: var(--ink);
}

.page-home .home-cta__inner {
  display: grid;
  gap: 0.9rem;
  padding: clamp(1.25rem, 5vw, 3rem);
  border: var(--edge);
  background: linear-gradient(120deg, var(--card), var(--pine));
  box-shadow: var(--slab);
}

.page-home .home-cta__title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 900;
  color: var(--paper);
}

.page-home .home-cta__text {
  max-width: 50ch;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--muted);
}

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

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

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

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

@media (min-width: 960px) {
  .page-home .home-hero {
    padding-block: clamp(1.75rem, 3vw, 2.75rem) 0;
  }

  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
    padding-bottom: 3.5rem;
  }

  .page-home .home-hero__aside {
    margin-top: 1.5rem;
  }

  .page-home .home-toc__inner {
    justify-content: flex-start;
  }

  .page-home .home-section__head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 0.6rem 2rem;
    align-items: end;
  }

  .page-home .home-section__index {
    grid-column: 1 / -1;
  }

  .page-home .home-section__title {
    grid-column: 1;
  }

  .page-home .home-section__lede {
    grid-column: 2;
    align-self: end;
  }

  .page-home .home-index-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }

  .page-home .home-index-figure {
    position: sticky;
    top: 4.5rem;
  }

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

  .page-home .home-fee__layout {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    align-items: start;
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }

  .page-home .home-terminal__layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }

  .page-home .home-terminal__cards {
    gap: 1rem;
  }

  .page-home .home-notes__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
  }

  .page-home .home-note {
    padding: 1.4rem 1.35rem;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .page-home .home-note:last-child {
    border-right: 0;
  }

  .page-home .home-service__layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 4rem);
  }
}
