.hiw {
  --map: #a0c1df;
  --strategy: #c0aadf;
  --agents: #e2b57c;
  --select: #8fa2b2;
}
.hiw .learn-hero {
  padding-bottom: 40px;
}
.hiw section.block {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.hiw section.block > h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 12px;
}
.hiw section.block > .intro {
  max-width: 700px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 28px;
}
.hiw-stack {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) 2fr;
  gap: 48px;
  align-items: stretch;
}
.hiw-spine {
  background:
    radial-gradient(ellipse at top left, #e2b57c12, transparent 70%), #1b1c1f;
  border: 2px solid var(--amber);
  border-radius: 16px;
  padding: 30px;
  position: relative;
  box-shadow: 0 16px 40px #0003;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hiw-kicker {
  color: var(--amber);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hiw-core-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hiw-core-brand img,
.hiw-close img {
  filter: brightness(0) invert(94%);
  flex: none;
}
.hiw-core-brand h3 {
  font-size: clamp(30px, 2.7vw, 38px);
  font-weight: 700;
  letter-spacing: -0.055em;
}
.hiw-core-intro {
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin: 24px 0;
  color: var(--ivory);
}
.hiw-spine ul {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #d6d5d1;
  font-size: 14px;
  line-height: 1.6;
}
.hiw-spine li {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}
.hiw-spine li svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--amber);
}
.hiw-spine .foot {
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 24px;
  line-height: 1.6;
}
.hiw-layers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.hiw-spine::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 26px;
  border-top: 1px solid #8d7453;
}
.hiw-layers::before {
  content: "";
  position: absolute;
  left: -24px;
  top: calc(10% - 4px);
  bottom: calc(10% - 4px);
  border-left: 1px solid #8d7453;
}
.hiw-layer {
  flex: 1;
  display: grid;
  grid-template-columns: 6px 1fr auto;
  gap: 0 16px;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px 14px 14px;
  text-align: left;
  width: 100%;
  position: relative;
  color: var(--ivory);
}
.hiw-layer::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  width: 24px;
  border-top: 1px solid #8d7453;
}
.hiw-layer .bar {
  height: 100%;
  min-height: 36px;
  border-radius: 3px;
  background: var(--cat);
}
.hiw-layer strong {
  display: block;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
}
.hiw-layer span.sub {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}
.hiw-layer .status {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid #4a4b52;
  color: var(--muted);
  white-space: nowrap;
}
.hiw-layer.later {
  border-style: dashed;
}
.hiw-layer[aria-expanded="true"] {
  border-color: var(--select);
  box-shadow: inset 0 0 0 1px var(--select);
}
.hiw-loop {
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
}
.hiw-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.hiw-legend i {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  vertical-align: -1px;
  margin-right: 6px;
}
.hiw-legend i.dash {
  border: 1.5px dashed var(--muted);
  background: transparent;
}
.hiw-panel {
  margin-top: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--cat, var(--select));
  border-radius: 12px;
  padding: 22px 24px;
}
.hiw-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 14px;
}
.hiw-head h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
}
.hiw-pill {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #4a4b52;
  color: var(--muted);
}
.hiw-pill.built {
  background: var(--ivory);
  color: var(--charcoal);
  border-color: var(--ivory);
}
.hiw-pill.partial {
  color: var(--amber);
  border-color: #6b5438;
}
.hiw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.hiw-grid h4 {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.hiw-grid h4 + h4,
.hiw-chips + h4 {
  margin-top: 14px;
}
.hiw-grid p {
  font-size: 14px;
  line-height: 1.7;
  color: #d6d5d1;
}
.hiw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hiw-chip {
  font-size: 12px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
  line-height: 1.5;
}
.hiw-chip small {
  color: var(--muted);
}
.hiw-note {
  border-left: 2px solid var(--select);
  padding: 6px 16px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  max-width: 760px;
}
.hiw #analysis {
  --ill-line: #8a8f97;
  --ill-fill: #1b1c1f;
  --ill-soft: #3a3020;
  --ill-accent: #e2b57c;
  --ill-on-accent: #131416;
  --ill-muted: #9a9ca3;
  --ill-text: #e6e4df;
}
.hiw-payoff {
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  max-width: 700px;
}
.hiw-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.hiw-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 0 22px;
  overflow: hidden;
}
.hiw-illo {
  background: var(--raised);
  border-bottom: 1px solid var(--line);
  padding: 10px 14px 4px;
}
.hiw-illo svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 440px;
  margin: 0 auto;
}
.hiw-card h3 {
  font-size: 20px;
  margin: 18px 24px 10px;
  letter-spacing: -0.02em;
}
.hiw-card p {
  margin: 0 24px;
  font-size: 14px;
  line-height: 1.75;
  color: #d6d5d1;
}
.hiw-card small {
  display: block;
  margin: 12px 24px 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.hiw-ladder {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hiw-rung {
  display: grid;
  grid-template-columns: 170px 1fr 1fr;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  margin-left: calc(var(--i) * 26px);
  font-size: 13.5px;
  line-height: 1.55;
}
.hiw-rung b {
  font-weight: 500;
}
.hiw-rung span {
  color: var(--muted);
}
.hiw-rung em {
  font-style: normal;
  color: #d6d5d1;
}
.hiw-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}
.hiw-step {
  background:
    linear-gradient(145deg, #a0c1df09, transparent 60%), var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  font-size: 14px;
  line-height: 1.7;
}
.hiw-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.hiw-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #a0c1df30;
  background: #a0c1df0a;
  color: var(--map);
}
.hiw-step-number {
  color: #858992;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}
.hiw-step h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.hiw-step p {
  color: var(--muted);
}
.hiw-step-final {
  background:
    linear-gradient(145deg, #e2b57c12, transparent 70%), var(--surface);
  border-color: #8d7453;
}
.hiw-step-final .hiw-step-icon {
  color: var(--amber);
  background: #e2b57c0a;
  border-color: #e2b57c40;
}
.hiw-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.hiw-three .hiw-value {
  --value-accent: var(--map);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--value-accent);
  border-radius: 14px;
  padding: 32px;
}
.hiw-value:nth-child(2) {
  --value-accent: var(--strategy);
}
.hiw-value:nth-child(3) {
  --value-accent: var(--amber);
}
.hiw-value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff03;
  color: var(--value-accent);
  margin-bottom: 28px;
}
.hiw-value-icon svg {
  width: 38px;
  height: 38px;
}
.hiw-three .hiw-value-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--value-accent);
  margin-bottom: 12px;
}
.hiw-three h3 {
  font-size: 23px;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.hiw-three p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.hiw-close {
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid #e2b57c40;
  border-radius: 12px;
  background: #e2b57c05;
  padding: 24px 28px;
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.7;
  color: #d6d5d1;
}
.hiw-close strong {
  display: block;
  color: var(--ivory);
  font-weight: 500;
  font-size: 18px;
}
.hiw-close span {
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 1100px) {
  .hiw-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .hiw-stack {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hiw-spine::after {
    top: 100%;
    left: 50%;
    width: 0;
    height: 26px;
    border-top: 0;
    border-left: 1px solid #8d7453;
  }
  .hiw-layers::before,
  .hiw-layer::before {
    display: none;
  }
  .hiw-grid,
  .hiw-three,
  .hiw-cards {
    grid-template-columns: 1fr;
  }
  .hiw-rung {
    grid-template-columns: 1fr;
    margin-left: 0;
    gap: 2px;
  }
  .hiw-layer {
    grid-template-columns: 6px 1fr;
  }
  .hiw-layer .status {
    grid-column: 2;
    justify-self: start;
    margin-top: 6px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hiw-layer {
    transition:
      border-color 0.15s,
      box-shadow 0.15s;
  }
}

.hiw section[id] {
  scroll-margin-top: 100px;
}
.hiw-layer {
  cursor: pointer;
  font: inherit;
  scroll-margin-top: 100px;
}
.hiw-layer:focus-visible {
  outline: 2px solid var(--powder);
  outline-offset: 4px;
}
.hiw-panel[hidden] {
  display: none;
}
.hiw-comparables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.hiw-comparable {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--raised);
}
.hiw-comparable:hover {
  border-color: var(--powder);
}
.hiw-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 10px;
  background: #fff;
  border-radius: 4px;
  margin-bottom: 4px;
}
.hiw-logo img {
  display: block;
  width: 100%;
  max-width: 132px;
  height: 44px;
  object-fit: contain;
}
.hiw-logo.dark {
  background: #131416;
}
.hiw-logo img.symbol {
  max-width: 56px;
}
.hiw-comparable strong {
  font-size: 13px;
  font-weight: 500;
}
.hiw-comparable small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.hiw-grid .hiw-comparable-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 12px 0 18px;
}
.hiw-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 28px;
  font-size: 14px;
}
.hiw-jumps a,
.hiw-note a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hiw-pilot {
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 730px;
}
.hiw .learn-cta .button {
  margin-top: 24px;
  white-space: normal;
  text-align: center;
}
.hiw-header-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
  align-items: center;
}
.hiw-grid > div,
.hiw-stack > * {
  min-width: 0;
}
@media (max-width: 600px) {
  .hiw-spine {
    padding: 24px;
  }
  .hiw-core-brand img {
    width: 34px;
    height: 33px;
  }
  .hiw-core-brand h3 {
    font-size: 32px;
  }
  .hiw-steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .hiw-step-top {
    margin-bottom: 18px;
  }
  .hiw-three .hiw-value {
    padding: 26px;
  }
  .hiw-close {
    align-items: flex-start;
    padding: 22px;
  }
  .hiw-header-links {
    gap: 16px;
    font-size: 13px;
  }
  .hiw-panel {
    padding: 20px 18px;
  }
  .hiw section.block {
    padding: 36px 0;
  }
  .hiw-rung {
    padding: 14px;
  }
  .hiw .learn-hero h1 {
    font-size: clamp(2.4rem, 10vw, 3.4rem);
  }
}
