.dnd-hero .sub-hero__media img { object-position: 46% 50%; }

.dnd-team-hero .sub-hero__media img { object-position: 100% 50%; }
@media (max-width: 760px) {
  .dnd-team-hero .sub-hero__media img { --mx0: 44%; }
}

@media (min-width: 1001px) {
  .dnd-hero:not(.dnd-team-hero) .sub-hero__media { left: 44%; }
  .dnd-hero:not(.dnd-team-hero) .sub-hero__copy { max-width: min(31rem, 40%); }
}

@media (min-width: 761px) {
  .dnd-team-hero { min-height: min(80vh, 720px); }
  .dnd-team-hero .sub-hero__media { left: 50%; }
  .dnd-team-hero .sub-hero__media img { --mx0: 48%; }
}

.dnd-clarity { padding-top: clamp(1.5rem, 4vh, 2.5rem); }
.dnd-clarity .sub-section__head { margin-bottom: clamp(1.2rem, 3vh, 2rem); }
.dnd-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.6rem, 3vw, 2.6rem) clamp(1.6rem, 4vw, 3.4rem);
  max-width: 68rem;
}
.dnd-fact { padding-top: 1.15rem; border-top: 1px solid var(--line); }

.dnd-fact::before { display: block; width: 2.2rem; height: 2px; margin: -1.2rem 0 1.05rem; background: var(--red); content: ""; }
.dnd-fact h3 { margin: 0 0 0.45rem; font-size: 1.15rem; font-weight: 720; line-height: 1.3; letter-spacing: -0.012em; }
.dnd-fact p { color: var(--ink-2); }

.dnd-person { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; max-width: 66rem; }
.dnd-person .lead { margin-bottom: 0; }

.dnd-portals {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.2rem;
  max-width: 72rem;
  margin: 0 0 clamp(3.5rem, 9vh, 6rem);
  padding-top: 1.6rem;
}
.dnd-portals::before {
  position: absolute;
  top: calc(1.6rem + 6px);
  left: 6px;

  right: calc((100% - 4.8rem) / 5 - 7px);
  height: 1.5px;
  background: rgba(30, 35, 43, 0.22);
  content: "";
}
.dnd-portals a {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.2rem;
  padding: 1.75rem 0.4rem 0.4rem 0;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
}
.dnd-portals a::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--red);
  border-radius: 50%;
  background: var(--paper);
  content: "";
  transition: background 0.25s, transform 0.3s var(--ease-out);
}
.dnd-portals strong { font-size: 1.04rem; font-weight: 720; line-height: 1.3; }
.dnd-portals span { color: var(--muted); font-size: 0.94rem; line-height: 1.45; }
.dnd-portals span[aria-hidden] { color: var(--red); font-weight: 700; transition: transform 0.3s var(--ease-out); }
.dnd-portals a:hover strong, .dnd-portals a:focus-visible strong { color: var(--red); }
.dnd-portals a:hover::before, .dnd-portals a:focus-visible::before { background: var(--red); transform: scale(1.15); }
.dnd-portals a:hover span[aria-hidden] { transform: translateX(4px); }

@media (min-width: 761px) {
  .dnd-portals a { grid-template-rows: auto 1fr auto; }
  .dnd-portals span[aria-hidden] { align-self: end; }
}

.dnd-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.8rem, 3.5vw, 2.8rem) clamp(2rem, 5vw, 4.5rem); max-width: 68rem; }
.dnd-card {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;

  scroll-margin-top: 1rem;
}
.dnd-card h3 { margin: 0; font-size: 1.25rem; font-weight: 720; line-height: 1.3; letter-spacing: -0.012em; transition: color 0.25s; }
.dnd-card p { max-width: var(--measure); color: var(--ink-2); text-wrap: pretty; }
.dnd-card > span {
  justify-self: start;
  margin-top: 0.35rem;
  font-weight: 680;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
.dnd-card > span span { display: inline-block; color: var(--red); transition: transform 0.3s var(--ease-out); }
.dnd-card:hover h3, .dnd-card:focus-visible h3 { color: var(--red); }
.dnd-card:hover > span span { transform: translateX(4px); }

.dnd-card:target { border-top-color: var(--red); }

.dnd-style__head { align-items: center; }
.dnd-style__head > .sub-section__head { margin-bottom: 0; }

.dnd-d20 img {
  --mx0: 30%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 60% 55%;
}
.dnd-principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.8rem, 3.5vw, 2.6rem) clamp(2rem, 5vw, 4.5rem);
  max-width: 68rem;
  margin-top: clamp(2rem, 5vh, 3.2rem);
}
.dnd-principles article { padding-top: 1.2rem; border-top: 1px solid var(--line); }
.dnd-principles h3 { margin: 0 0 0.5rem; font-size: 1.2rem; font-weight: 720; line-height: 1.3; letter-spacing: -0.012em; }
.dnd-principles p { max-width: var(--measure); color: var(--ink-2); text-wrap: pretty; }

@media (min-width: 901px) {
  .dnd-split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
  .dnd-split > .lead, .dnd-campaign__copy { padding-top: 0.6rem; }
}
.dnd-split > .sub-section__head { margin-bottom: 0; }
.dnd-campaign__copy .lead { margin-bottom: 1.2rem; }

.dnd-final .title { max-width: 18em; }

.dnd-team-hero .lead { max-width: 34rem; }
.dnd-impulses { padding-top: clamp(1.5rem, 4vh, 2.5rem); }
.dnd-impulse__tag {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.dnd-impulses .sub-row__body > .sub-row__title { margin-top: 0.25rem; }
.dnd-impulses .sub-row__text { margin-top: 0.45rem; }

@media (min-width: 1100px) {
  .dnd-impulses .sub-timeline, .dnd-impulses .sub-rows, .dnd-impulses .sub-row__body { max-width: none; }
  .dnd-impulses .sub-row__body { display: grid; grid-template-columns: minmax(14rem, 0.45fr) minmax(0, 1fr); column-gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
  .dnd-impulses .sub-row__body > .sub-row__text { grid-column: 2; grid-row: 1 / span 2; max-width: var(--measure); margin-top: 0; }
}

@media (max-width: 1000px) {
  .dnd-portals { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2rem; }
  .dnd-portals::before { display: none; }
}

@media (max-width: 900px) {
  .dnd-facts { grid-template-columns: 1fr; gap: 1.6rem; }
  .dnd-cards, .dnd-principles { grid-template-columns: 1fr; }
  .dnd-split { gap: 0.4rem; }
}

@media (max-width: 760px) {
  .dnd-hero .sub-hero__media { height: min(36vh, 290px); }
  .dnd-person { grid-template-columns: 1fr; }
  .dnd-person .sub-portrait { width: min(180px, 50vw); }

  .dnd-portals { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .dnd-portals::before { display: block; top: 0.9rem; bottom: 0.9rem; left: 6px; right: auto; width: 1.5px; height: auto; }
  .dnd-portals a { grid-template-columns: minmax(0, 1fr) auto; column-gap: 0.8rem; padding: 0.7rem 0 0.7rem 2rem; }
  .dnd-portals a::before { top: calc(0.7rem + 0.45em); }
  .dnd-portals strong, .dnd-portals span:not([aria-hidden]) { grid-column: 1; }
  .dnd-portals span[aria-hidden] { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

  .dnd-d20 img { --mx0: 14%; --my0: 20%; --my1: 66%; aspect-ratio: 3 / 2; }
}
