.page-home {
  --home-pad-y: clamp(3rem, 8vw, 6rem);
  background: var(--ink);
  color: var(--paper);
}

.page-home .lede {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.85;
  max-width: 36ch;
}

.page-home .inline-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 107, 44, .45);
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

.page-home .inline-link:hover,
.page-home .inline-link:focus-visible {
  color: var(--accent-soft);
  border-bottom-color: var(--accent-soft);
}

.page-home .btn--ghost {
  border: 1px solid var(--line);
  color: var(--paper);
}

/* ---------- hero ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.6rem, 9vw, 5.5rem) 0 clamp(2.6rem, 7vw, 4.25rem);
  border-bottom: 1px solid var(--line);
}

.page-home .home-hero__wedge {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 34%;
  background: var(--accent);
  opacity: .92;
  clip-path: polygon(0 100%, 100% 24%, 100% 100%);
  pointer-events: none;
}

.page-home .home-hero__rule {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  stroke: rgba(244, 247, 251, .16);
  stroke-width: 1;
  pointer-events: none;
}

.page-home .home-hero__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 3.25rem);
  align-items: center;
}

.page-home .home-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .2em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 .85rem;
}

.page-home .home-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 8.4vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--paper);
  margin: 0 0 1.15rem;
}

.page-home .home-hero__lede {
  max-width: 34ch;
}

.page-home .home-hero__figure {
  position: relative;
  margin: 0;
}

.page-home .home-hero__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(11, 27, 58, .4);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}

.page-home .home-hero__cap {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .14em;
  color: rgba(11, 27, 58, .82);
  margin-top: .55rem;
}

/* ---------- quick query ---------- */
.page-home .home-query {
  margin-top: 1.9rem;
  max-width: 33rem;
  padding: 1.2rem clamp(1rem, 3vw, 1.55rem) 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.page-home .home-query__label {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .18em;
  color: var(--muted);
  margin: 0;
}

.page-home .home-query__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: .8rem 0 1.15rem;
}

.page-home .home-query__chip {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .06em;
  padding: .38rem .7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  text-decoration: none;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}

.page-home .home-query__chip:hover,
.page-home .home-query__chip:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.page-home .home-query__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

/* ---------- chapter rail ---------- */
.page-home .home-rail {
  display: none;
}

/* ---------- tag matrix ---------- */
.page-home .home-matrix {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background: var(--ink-deep);
  border-bottom: 1px solid var(--line);
}

.page-home .home-matrix__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 3.4vw, 1.95rem);
  letter-spacing: .01em;
  margin: 0 0 1.4rem;
}

.page-home .home-matrix__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .tag-node {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.05rem 1.1rem 1.2rem;
  background: var(--surface);
  color: var(--paper);
  text-decoration: none;
  transition: background-color .18s var(--ease);
}

.page-home .tag-node::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .3s var(--ease);
}

.page-home .tag-node:hover,
.page-home .tag-node:focus-visible {
  background: #12294e;
}

.page-home .tag-node:hover::before,
.page-home .tag-node:focus-visible::before {
  width: 100%;
}

.page-home .tag-node__code {
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .16em;
  color: var(--index);
}

.page-home .tag-node__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: .01em;
}

.page-home .tag-node__meta {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--muted);
}

.page-home .tag-node__more {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-family: var(--font-mono);
  font-size: .6875rem;
  line-height: 1.5;
  color: var(--accent-soft);
  transition: max-height .28s var(--ease), opacity .22s var(--ease);
}

.page-home .tag-node:hover .tag-node__more,
.page-home .tag-node:focus-visible .tag-node__more {
  max-height: 3.5rem;
  opacity: 1;
}

/* ---------- section shell ---------- */
.page-home .home-sec {
  padding: var(--home-pad-y) 0;
  border-bottom: 1px solid var(--line);
}

.page-home .home-sec--tight {
  padding: clamp(2.5rem, 6vw, 4.25rem) 0;
}

.page-home .home-sec--last {
  border-bottom: 0;
  padding-bottom: clamp(3rem, 8vw, 5.5rem);
}

.page-home .home-sec__head {
  display: grid;
  gap: .55rem;
  margin-bottom: clamp(1.6rem, 4vw, 2.6rem);
}

.page-home .chapter-mark {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2rem, 6.5vw, 3.1rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--accent);
  display: block;
}

.page-home .home-sec__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.6vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -.005em;
  margin: 0;
}

.page-home .home-sec__note {
  margin: .65rem 0 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.page-home .home-sec__tail {
  margin: 1.8rem 0 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: .9875rem;
  line-height: 1.85;
}

/* ---------- steps ---------- */
.page-home .step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .step {
  padding: 1.35rem 1.1rem 1.45rem;
  background: var(--ink);
  border-left: 2px solid transparent;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}

.page-home .step:hover {
  border-left-color: var(--accent);
  background: var(--surface);
}

.page-home .step__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: .7rem;
}

.page-home .step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 .5rem;
  letter-spacing: .01em;
}

.page-home .step__text {
  margin: 0;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.8;
}

.page-home .home-timing {
  margin: 1.6rem 0 0;
  padding: .85rem 1rem;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .78rem;
  line-height: 1.75;
  letter-spacing: .02em;
}

/* ---------- stats + table ---------- */
.page-home .stat-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 1.8rem;
}

.page-home .stat {
  padding: 1.25rem 1.1rem 1.35rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.page-home .stat__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.7rem, 5.6vw, 2.4rem);
  line-height: 1;
  color: var(--paper);
  letter-spacing: -.01em;
}

.page-home .stat__label {
  font-size: .85rem;
  color: var(--muted);
  letter-spacing: .04em;
}

.page-home .home-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .home-table-wrap .data-table {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
  font-size: .9375rem;
}

.page-home .home-table-wrap .data-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .16em;
  color: var(--index);
  font-weight: 400;
  padding: .8rem .85rem;
  border-bottom: 1px solid var(--line);
}

.page-home .home-table-wrap .data-table td {
  padding: .95rem .85rem;
  color: var(--paper);
  line-height: 1.7;
  border-bottom: 1px solid rgba(28, 62, 112, .55);
}

.page-home .home-table-wrap .data-table td:first-child {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--accent-soft);
  white-space: nowrap;
}

.page-home .home-table-wrap .data-table tbody tr:nth-child(even) {
  background: var(--surface);
}

/* ---------- split media ---------- */
.page-home .split,
.page-home .device-layout {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

.page-home .split__media,
.page-home .device-layout__media,
.page-home .wide-media {
  margin: 0;
}

.page-home .media-box__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.page-home .media-box__cap {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .13em;
  color: var(--index);
  margin-top: .6rem;
}

.page-home .split__body p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
  max-width: 38ch;
}

.page-home .usage-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .7rem;
}

.page-home .usage-list__item {
  position: relative;
  padding-left: 1.35rem;
  color: var(--paper);
  font-size: .9375rem;
  line-height: 1.75;
}

.page-home .usage-list__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62rem;
  width: 9px;
  height: 9px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

/* ---------- device grid ---------- */
.page-home .device-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .9rem;
}

.page-home .device-frame {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding: .8rem .85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-home .device-frame__bar {
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .16em;
  color: var(--index);
  padding-bottom: .5rem;
  border-bottom: 1px dashed var(--line);
}

.page-home .device-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .3rem;
}

.page-home .device-chips .tag {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .04em;
  text-align: center;
  padding: .32rem .25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: transparent;
}

.page-home .device-frame--mobile .device-chips { grid-template-columns: 1fr; }
.page-home .device-frame--land .device-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-home .device-frame--tablet .device-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-home .device-frame--desktop .device-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.page-home .device-layout__note {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.8;
  max-width: 44ch;
}

/* ---------- help ---------- */
.page-home .wide-media {
  margin-bottom: 1.6rem;
}

.page-home .wide-media .media-box__img {
  aspect-ratio: 16 / 7;
}

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

.page-home .expander__item {
  border-bottom: 1px solid var(--line);
}

.page-home .expander__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.05rem .25rem;
  background: transparent;
  border: 0;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: color .18s var(--ease);
}

.page-home .expander__trigger:hover,
.page-home .expander__trigger:focus-visible {
  color: var(--accent);
}

.page-home .expander__label {
  flex: 1 1 auto;
}

.page-home .expander__icon {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  color: var(--accent);
  transition: transform .22s var(--ease);
}

.page-home .expander__item.is-open .expander__icon,
.page-home .expander__trigger[aria-expanded="true"] .expander__icon {
  transform: rotate(90deg);
}

.page-home .expander__panel {
  padding: 0 .25rem 1.25rem;
}

.page-home .help-steps {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.85;
}

.page-home .help-steps li {
  margin-bottom: .35rem;
}

.page-home .help-steps li::marker {
  font-family: var(--font-mono);
  color: var(--accent);
}

/* ---------- updates ---------- */
.page-home .update-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .update-card {
  padding: 1.3rem 1.15rem 1.45rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.page-home .update-card--accent {
  background: #12294e;
  border-top: 2px solid var(--accent);
}

.page-home .update-card__code {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .16em;
  color: var(--accent-soft);
}

.page-home .update-card__text {
  margin: 0;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.8;
}

.page-home .update-card .inline-link {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .06em;
}

.page-home .contact-note {
  margin-top: 1.6rem;
  padding: 1rem 1.1rem;
  border-left: 2px solid var(--line);
}

.page-home .contact-note__text {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .75rem;
  line-height: 1.9;
  letter-spacing: .03em;
  color: var(--index);
  word-break: break-word;
}

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .page-home .stat-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

@media (min-width: 760px) {
  .page-home .home-sec__head {
    grid-template-columns: 5.25rem minmax(0, 1fr);
    column-gap: 1.25rem;
    align-items: start;
  }

  .page-home .chapter-mark {
    grid-column: 1;
    padding-top: .1rem;
  }

  .page-home .home-sec__headtext {
    grid-column: 2;
  }

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

@media (min-width: 900px) {
  .page-home .home-hero__wedge {
    top: 0;
    bottom: 0;
    height: auto;
    width: 46%;
    clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%);
  }

  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
  }

  .page-home .home-hero__figure {
    z-index: 1;
  }

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

  .page-home .tag-node--a { grid-column: span 2; }
  .page-home .tag-node--b { grid-column: span 4; }
  .page-home .tag-node--c { grid-column: span 3; }
  .page-home .tag-node--d { grid-column: span 3; }
  .page-home .tag-node--e { grid-column: span 4; }
  .page-home .tag-node--f { grid-column: span 2; }

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

  .page-home .device-layout {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(1.75rem, 4vw, 3rem);
  }

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

@media (min-width: 1200px) {
  .page-home .home-rail {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    position: fixed;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
  }

  .page-home .home-rail__link {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .14em;
    color: var(--index);
    text-decoration: none;
    transition: color .18s var(--ease);
  }

  .page-home .home-rail__link::before {
    content: "";
    display: block;
    width: 14px;
    height: 1px;
    background: currentColor;
    transition: width .18s var(--ease);
  }

  .page-home .home-rail__link:hover,
  .page-home .home-rail__link:focus-visible {
    color: var(--accent);
  }

  .page-home .home-rail__link:hover::before,
  .page-home .home-rail__link:focus-visible::before {
    width: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .tag-node__more {
    transition: opacity .2s linear;
  }

  .page-home .tag-node::before,
  .page-home .expander__icon,
  .page-home .home-rail__link::before {
    transition: none;
  }
}
<<<END>>>
