/* ══ HUMAN–AI INTERACTION — page-only additions ══════════════════════════════
   Loaded after research-strategy.css on selected-work-human-ai-interaction.html
   only. Everything else on that page uses the shared components. */

/* ── 01 · Four dimensions, drawn as a diagram ───────────────────────────────
   A 2 × 2 grid split by a hairline cross, with a ring at the crossing that
   names what the four share. The ring's background masks the cross, so the
   lines read as spokes running into a hub. Drawn in HTML and CSS rather than
   shipped as an image: the text stays real, selectable, and translatable.
   The ring sits in the inner corners, so each quadrant pads its inner edge
   by more than the ring's radius (--hai-ring / 2) to keep text clear of it. */
.hai-dims {
  --hai-ring: 13rem;
  --hai-clear: calc(var(--hai-ring) / 2 + 2rem);
  position: relative;
  margin: var(--space-xl) 0;
}
.hai-dims-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hai-dim { padding: var(--space-md) var(--space-xl) var(--hai-clear) 0; }
.hai-dim:nth-child(even) { padding-left: var(--space-xl); padding-right: 0; }
.hai-dim:nth-child(odd) { border-right: 1px solid var(--ink); }
.hai-dim:nth-child(-n + 2) { border-bottom: 1px solid var(--ink); }
.hai-dim:nth-child(n + 3) { padding-top: var(--hai-clear); padding-bottom: var(--space-md); }

.hai-dim-n {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  color: var(--rs-accent);
}
.hai-dim-name {
  margin: 0.6rem 0 0.75rem;
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hai-dim-text {
  max-width: 24rem;
  font-size: 19px;
  line-height: 1.6;
  color: var(--body);
}

/* The hub. Four accent dots mark where the cross meets the ring: one
   transparent point at the centre, drawn four times by its shadows. */
.hai-dims-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--hai-ring);
  height: var(--hai-ring);
  padding: 1.75rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--bg);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.hai-dims-core::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  --hai-r: calc(var(--hai-ring) / 2 - 0.5px);
  box-shadow:
    0 calc(var(--hai-r) * -1) 0 var(--rs-accent),
    0 var(--hai-r) 0 var(--rs-accent),
    calc(var(--hai-r) * -1) 0 0 var(--rs-accent),
    var(--hai-r) 0 0 var(--rs-accent);
}

/* Narrow screens: the grid becomes one spine. A single line runs down the
   left with an accent node per dimension and ends in the hub, now a pill. */
@media (max-width: 700px) {
  .hai-dims-grid {
    grid-template-columns: minmax(0, 1fr);
    margin-left: 4px;
    border-left: 1px solid var(--ink);
  }
  .hai-dim,
  .hai-dim:nth-child(odd),
  .hai-dim:nth-child(even),
  .hai-dim:nth-child(-n + 2),
  .hai-dim:nth-child(n + 3) {
    position: relative;
    padding: 0 0 var(--space-xl) var(--space-lg);
    border-right: 0;
    border-bottom: 0;
  }
  .hai-dim::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 0.3rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--rs-accent);
  }
  .hai-dims-core {
    position: static;
    transform: none;
    display: inline-flex;
    width: auto;
    height: auto;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
  }
  .hai-dims-core::before { display: none; }
}

/* ── 04 · Interaction modalities, as one compact strip ──────────────────────
   Five short definitions read faster side by side than as full-width rows.
   Each sits under its own ink rule so the strip scans left to right; it
   folds to three, two, then one column as the measure narrows. */
.hai-modes {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-lg) 1.5rem;
  margin: var(--space-lg) 0 0;
}
.hai-mode { padding-top: 0.9rem; border-top: 1px solid var(--ink); }
.hai-mode-name {
  margin-bottom: 0.4rem;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hai-mode-text {
  font-size: 18px;
  line-height: 1.55;
  color: var(--body);
}
@media (max-width: 1100px) {
  .hai-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .hai-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .hai-modes { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
}

/* ── 04 · Wonderpath pair ───────────────────────────────────────────────────
   Two near-2:1 screens side by side, held at one shared height so they read as
   a matched pair and their captions start on the same line. The images are
   within 2% of 2:1, so the cover crop trims only a sliver of edge. */
.hai-pair .bvs-frame img { aspect-ratio: 2 / 1; height: auto; object-fit: cover; }
