/* Home page ("index" redesign). Loaded only when page.home is true. */
body.home {
  --hm-ink: #1b1815;
  --hm-mute: #6f685f;
  --hm-faint: #6f685f;
  --hm-card: #f7f4ec;
  --hm-line: rgb(27 24 21 / 16%);
  --hm-accent: #d6451f;
  --hm-accent-text: #b8381a;
  --hm-serif: "Newsreader", Georgia, serif;
  --hm-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  background-color: #efece3;
  background-image:
    linear-gradient(rgb(27 24 21 / 3.5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(27 24 21 / 3.5%) 1px, transparent 1px);
  background-size: 46px 46px;
  color: var(--hm-ink);
  font-family: var(--hm-serif);
  overflow-x: hidden;
}

.home .hm-header, .home .site-main, .home .hm-footer { width: min(100% - 3.5rem, 73.75rem); margin: 0 auto; }
.home .site-main { padding: 0; }
.home a:focus-visible { outline: 2px solid var(--hm-accent); outline-offset: 3px; }

.hm-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 20px 0 10px; border-bottom: 1px solid rgb(27 24 21 / 14%); }
.hm-brand { display: flex; align-items: baseline; gap: 12px; color: var(--hm-ink); text-decoration: none; font-family: var(--hm-mono); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.hm-sub { font-size: 11px; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hm-mute); }
.hm-nav { display: flex; gap: 22px; font-family: var(--hm-mono); font-size: 12px; letter-spacing: 0.04em; }
.hm-nav a { color: var(--hm-mute); text-decoration: none; padding-bottom: 2px; }
.hm-nav a.on { color: var(--hm-ink); border-bottom: 1px solid var(--hm-accent); }
.hm-nav a:hover { color: var(--hm-accent-text); }

.hm-ticker { padding: 8px 0; overflow: hidden; border-bottom: 1px solid rgb(27 24 21 / 14%); }
.hm-ticker-track { display: flex; width: max-content; animation: hm-tick 34s linear infinite; font-family: var(--hm-mono); font-size: 11px; letter-spacing: 0.22em; color: var(--hm-mute); }
.hm-ticker-track span { padding-right: 32px; white-space: nowrap; }
@keyframes hm-tick { to { transform: translateX(-50%); } }
@keyframes hm-blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0.2; } }

.hm-hero { padding: 54px 0 30px; }
.hm-status { display: flex; align-items: center; gap: 9px; margin: 0 0 22px; font-family: var(--hm-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--hm-mute); }
.hm-blink { color: var(--hm-accent); animation: hm-blink 1.6s steps(1) infinite; }
.home h1 { max-width: 14ch; margin: 0 0 26px; font-family: var(--hm-serif); font-weight: 500; font-size: clamp(44px, 7.6vw, 92px); font-stretch: normal; line-height: 0.96; letter-spacing: -0.025em; text-transform: none; }
.home h1 em { font-weight: 400; }
.hm-dot { color: var(--hm-accent); font-style: normal; }
.hm-deck { max-width: 62ch; margin: 0 0 30px; font-size: clamp(17px, 1.9vw, 21px); line-height: 1.5; color: #4a443c; }
.hm-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; max-width: 760px; }
.hm-figs a { display: block; color: inherit; text-decoration: none; border-top: 1px solid var(--hm-ink); padding-top: 10px; }
.hm-figlabel { display: block; font-family: var(--hm-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hm-accent-text); }
.hm-figtext { display: block; margin-top: 6px; font-size: 18px; line-height: 1.35; color: #4a443c; }

.hm-section { padding-top: 46px; }
.hm-section:nth-of-type(2) { padding-top: 18px; }
.hm-caption { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 11px; font-family: var(--hm-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hm-mute); }
.hm-caption h2 { margin: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.hm-caption-r { display: flex; gap: 18px; }
.hm-caption-r a { color: var(--hm-ink); text-decoration: none; border-bottom: 1px solid var(--hm-accent); }

.hm-graph { position: relative; border: 1px solid var(--hm-line); background: rgb(255 255 255 / 22%); overflow: hidden; }
.hm-graph-ixens { min-height: clamp(700px, 80vh, 780px); }
.hm-graph-iam { min-height: clamp(560px, 66vh, 620px); }
.hm-graph canvas { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hm-c { position: absolute; width: 14px; height: 14px; z-index: 1; border: 0 solid var(--hm-accent); }
.hm-c.tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hm-c.tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.hm-c.bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.hm-c.br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

.hm-node { position: absolute; transform: translate(-50%, -50%); width: 236px; z-index: 2; }
.hm-node-iam { width: 252px; z-index: 3; }
.hm-card { display: block; padding: 12px 14px 14px; background: var(--hm-card); border: 1px solid var(--hm-line); color: inherit; text-decoration: none; transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.28s, box-shadow 0.28s; }
.hm-card:hover, .hm-card:focus-visible { transform: translateY(-6px); border-color: var(--hm-accent); box-shadow: 0 20px 44px -24px rgb(27 24 21 / 55%); }
.hm-row { display: flex; justify-content: space-between; align-items: center; font-family: var(--hm-mono); font-size: 11px; letter-spacing: 0.1em; }
.hm-row b { color: var(--hm-accent-text); font-weight: 600; }
.hm-row span { color: var(--hm-mute); white-space: nowrap; }
.hm-titlerow { display: flex; align-items: center; gap: 9px; margin-top: 10px; }
.hm-titlerow svg { flex: none; }
.home .hm-card h3 { margin: 0; font-family: var(--hm-serif); font-weight: 500; font-size: 20px; line-height: 1.06; letter-spacing: 0; text-transform: none; }
.home .hm-card h3.hm-iam-title { margin-top: 10px; font-style: italic; font-size: 23px; line-height: 1.04; }
.hm-meta { display: block; margin-top: 8px; font-family: var(--hm-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--hm-mute); }
.home .hm-card p { margin: 7px 0 0; font-size: 14.5px; line-height: 1.42; color: #5a534a; }

.hm-label { position: absolute; bottom: 12px; z-index: 2; font-family: var(--hm-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--hm-mute); pointer-events: none; }
.hm-hover-label { left: 14px; }
.hm-stats { right: 14px; }

.hm-axis { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgb(27 24 21 / 28%); z-index: 1; }
.hm-ticks { position: absolute; left: 0; right: 0; top: calc(50% + 6px); z-index: 1; font-family: var(--hm-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--hm-mute); }
.hm-tick { position: absolute; top: -6px; height: 6px; border-left: 1px solid rgb(27 24 21 / 28%); }
.hm-tickl { position: absolute; top: 22px; transform: translateX(-50%); }
.hm-gap { position: absolute; top: calc(50% - 30px); border-top: 1px dashed rgb(27 24 21 / 30%); z-index: 1; }
.hm-gaplabel { position: absolute; top: calc(50% - 40px); transform: translateX(-50%); padding: 0 6px; background: #f2efe7; font-family: var(--hm-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--hm-mute); z-index: 2; white-space: nowrap; }
.hm-bar { position: absolute; height: 6px; background: rgb(27 24 21 / 55%); transition: background 0.25s; z-index: 2; }
.hm-lead { position: absolute; border-left: 1px solid rgb(27 24 21 / 22%); z-index: 1; }
.hm-bar.lit { background: var(--hm-accent); }
.hm-lead.lit { border-color: var(--hm-accent); }

.hm-origin { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding: 22px 24px; background: var(--hm-ink); border: 1px solid var(--hm-line); color: inherit; text-decoration: none; }
.hm-origin:hover { border-color: var(--hm-accent); }
.hm-origin-l { display: flex; flex-direction: column; gap: 6px; }
.hm-origin-k { font-family: var(--hm-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #b3aa9e; }
.hm-origin-t { font-size: clamp(22px, 3vw, 30px); font-style: italic; color: #efece3; }
.hm-origin-r { max-width: 38ch; font-family: var(--hm-mono); font-size: 11px; letter-spacing: 0.06em; color: #b3aa9e; }

.hm-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 38px; padding: 18px 0 44px; border-top: 1px solid rgb(27 24 21 / 14%); font-family: var(--hm-mono); font-size: 12px; color: var(--hm-mute); }
.hm-footer-links { display: flex; gap: 18px; }
.hm-footer a { color: var(--hm-mute); text-decoration: none; }
.hm-footer a:hover { color: var(--hm-accent-text); }

@media (max-width: 760px) {
  .hm-graph { display: flex; flex-direction: column; gap: 14px; min-height: 0; padding: 44px 14px; }
  .hm-node, .hm-node-iam { position: static; transform: none; width: auto; }
  .hm-c, .hm-axis, .hm-ticks, .hm-gap, .hm-gaplabel, .hm-bar, .hm-lead, .hm-label, .hm-graph canvas { display: none; }
  .hm-hide-s { display: none; }
  .hm-nav { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-ticker-track, .hm-blink { animation: none; }
}
