/* Harbor Register round 02 — HR-P through HR-T.
   The selectors in this file intentionally stay inside the five review
   namespaces so the locked identity, hero, and approved E1/E2/E3 elements
   retain their shared ownership. */

.theme-p,
.theme-q,
.theme-r,
.theme-s,
.theme-t {
  --variant-rule: rgba(23, 59, 51, 0.25);
  --variant-mist: #dbe3dd;
  --variant-deep: #0d3029;
  --variant-brass-pale: #d8c49b;
}

.theme-p .hrp-opening,
.theme-p .hrp-assemblies,
.theme-p .hrp-materials,
.theme-p .hrp-build,
.theme-p .hrp-faq,
.theme-q .hrq-opening,
.theme-q .hrq-instruments,
.theme-q .hrq-observation-deck,
.theme-q .hrq-faq,
.theme-r .hrr-opening,
.theme-r .hrr-routing,
.theme-r .hrr-evidence,
.theme-r .hrr-faq,
.theme-s .hrs-opening,
.theme-s .hrs-signals,
.theme-s .hrs-sequence,
.theme-s .hrs-lantern,
.theme-s .hrs-faq,
.theme-t .hrt-opening,
.theme-t .hrt-index,
.theme-t .hrt-field-note,
.theme-t .hrt-confluence,
.theme-t .hrt-faq {
  padding: clamp(88px, 9vw, 154px) 0;
}

.theme-p .hrp-opening h2,
.theme-q .hrq-opening h2,
.theme-r .hrr-opening h2,
.theme-s .hrs-opening h2,
.theme-t .hrt-opening h2 {
  max-width: 1050px;
}

.theme-p .hrp-opening p,
.theme-p .hrp-assemblies p,
.theme-p .hrp-materials p,
.theme-p .hrp-build p,
.theme-q .hrq-opening p,
.theme-q .hrq-instruments p,
.theme-q .hrq-observation-deck p,
.theme-r .hrr-opening p,
.theme-r .hrr-routing p,
.theme-r .hrr-evidence p,
.theme-s .hrs-opening p,
.theme-s .hrs-signals p,
.theme-s .hrs-sequence p,
.theme-s .hrs-lantern p,
.theme-t .hrt-opening p,
.theme-t .hrt-index p,
.theme-t .hrt-field-note p,
.theme-t .hrt-confluence p {
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.7;
}

.theme-p .hrp-opening ol,
.theme-p .hrp-opening ul,
.theme-p .hrp-assemblies ol,
.theme-p .hrp-assemblies ul,
.theme-p .hrp-build ol,
.theme-q .hrq-instruments ol,
.theme-q .hrq-observation-deck ol,
.theme-r .hrr-routing ol,
.theme-r .hrr-evidence ol,
.theme-s .hrs-signals ol,
.theme-s .hrs-sequence ol,
.theme-t .hrt-index ol,
.theme-t .hrt-confluence ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* -------------------------------------------------------------------------- */
/* HR-P — Shipwright Assembly                                                  */
/* -------------------------------------------------------------------------- */

.theme-p {
  --variant-oak: #9b7140;
  --variant-chalk: #f4eee0;
}

.theme-p .hrp-opening {
  min-height: 760px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, transparent 0 72%, rgba(179, 139, 79, 0.09) 72%),
    repeating-linear-gradient(
      0deg,
      transparent 0 69px,
      rgba(23, 59, 51, 0.08) 70px 71px
    ),
    var(--variant-chalk);
}

.theme-p .hrp-keel-line {
  position: absolute;
  top: 15%;
  bottom: 15%;
  left: clamp(26px, 6.5vw, 118px);
  width: clamp(190px, 28vw, 520px);
  border-top: 2px solid var(--variant-oak);
  border-bottom: 2px solid var(--variant-oak);
  border-left: 2px solid var(--variant-oak);
  border-radius: 50% 0 0 50%;
  opacity: 0.72;
  transform: skewY(-7deg);
}

.theme-p .hrp-keel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(270px, 0.55fr);
  gap: clamp(68px, 10vw, 170px);
  align-items: end;
}

.theme-p .hrp-keel > .section-code {
  position: absolute;
  top: 2px;
  right: 0;
}

.theme-p .hrp-keel .eyebrow {
  margin-bottom: 24px;
  color: #704e2a;
}

.theme-p .hrp-keel .display {
  position: relative;
  padding-left: clamp(28px, 4vw, 66px);
  font-size: clamp(58px, 7.1vw, 112px);
}

.theme-p .hrp-keel .display::before {
  position: absolute;
  top: 0.14em;
  bottom: 0.11em;
  left: 0;
  width: 8px;
  background: var(--variant-oak);
  content: "";
}

.theme-p .hrp-keel > .lead {
  max-width: 420px;
  padding: 28px 0 0 26px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.theme-p .hrp-assemblies {
  background: var(--variant-deep);
  color: var(--light);
}

.theme-p .hrp-assemblies::before {
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background:
    linear-gradient(135deg, transparent 48%, var(--light) 49% 50%, transparent 51%)
      0 0 / 180px 180px,
    linear-gradient(45deg, transparent 48%, var(--light) 49% 50%, transparent 51%)
      0 0 / 180px 180px;
  content: "";
  pointer-events: none;
}

.theme-p .hrp-assemblies .section-head {
  position: relative;
  max-width: 900px;
}

.theme-p .hrp-assemblies .section-head .display {
  font-size: clamp(58px, 7.5vw, 112px);
}

.theme-p .hrp-assembly-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 250, 240, 0.45);
  border-left: 1px solid rgba(255, 250, 240, 0.45);
}

.theme-p .hrp-assembly-grid article {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 3.5vw, 58px);
  border-right: 1px solid rgba(255, 250, 240, 0.45);
  border-bottom: 1px solid rgba(255, 250, 240, 0.45);
}

.theme-p .hrp-assembly-grid article > span {
  margin: 34px 0 auto;
  color: var(--accent);
  font: 700 10px/1 var(--utility);
  letter-spacing: 0.16em;
}

.theme-p .hrp-assembly-grid h3 {
  margin: 22px 0 20px;
  font-family: var(--display);
  font-size: clamp(34px, 3.1vw, 48px);
  font-weight: 400;
  line-height: 1;
}

.theme-p .hrp-assembly-grid p {
  max-width: 360px;
  margin-bottom: 0;
  color: #c8d1ca;
}

.theme-p .hrp-joint {
  position: relative;
  width: 112px;
  height: 112px;
  color: var(--accent);
}

.theme-p .hrp-joint::before,
.theme-p .hrp-joint::after {
  position: absolute;
  content: "";
}

.theme-p .hrp-joint-a::before {
  inset: 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.theme-p .hrp-joint-a::after {
  top: 50%;
  left: 0;
  width: 100%;
  border-top: 8px double currentColor;
  transform: translateY(-50%);
}

.theme-p .hrp-joint-b::before {
  inset: 5px 31px;
  border: 1px solid currentColor;
}

.theme-p .hrp-joint-b::after {
  top: 31px;
  right: 5px;
  bottom: 31px;
  left: 5px;
  border: 1px solid currentColor;
}

.theme-p .hrp-joint-c::before {
  inset: 6px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

.theme-p .hrp-joint-c::after {
  inset: 30px;
  background: currentColor;
  border-radius: 50%;
}

.theme-p .hrp-materials {
  background: #e2d6bd;
}

.theme-p .hrp-materials::after {
  position: absolute;
  top: 0;
  right: 5vw;
  bottom: 0;
  width: 1px;
  background: var(--variant-rule);
  box-shadow: -36px 0 0 rgba(23, 59, 51, 0.08), 36px 0 0 rgba(23, 59, 51, 0.08);
  content: "";
}

.theme-p .hrp-material-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(340px, 1.2fr);
  gap: clamp(22px, 3vw, 48px);
  align-items: center;
}

.theme-p .hrp-material-grid > .section-code {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  background: rgba(244, 238, 224, 0.86);
}

.theme-p .hrp-material-grid figure {
  height: clamp(410px, 42vw, 650px);
  margin: 0;
  background: #b2c0bc;
}

.theme-p .hrp-material-grid figure:nth-of-type(2) {
  margin-top: 94px;
}

.theme-p .hrp-material-grid img {
  filter: saturate(0.58) contrast(0.92);
}

.theme-p .hrp-material-grid figcaption {
  min-height: 50px;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
  font: 700 9px/1.4 var(--utility);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.theme-p .hrp-material-grid article {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 5vw, 80px);
  border: 1px solid var(--ink);
  background: var(--surface);
}

.theme-p .hrp-material-grid blockquote {
  margin: 10px 0 44px;
  font-family: var(--display);
  font-size: clamp(38px, 4.2vw, 68px);
  letter-spacing: -0.045em;
  line-height: 1;
}

.theme-p .hrp-material-grid article > span:last-child {
  padding-top: 18px;
  border-top: 1px solid var(--ink);
  font: 700 10px/1 var(--utility);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.theme-p .hrp-build {
  background: #f8f3e8;
}

.theme-p .hrp-build-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(70px, 10vw, 160px);
  align-items: start;
}

.theme-p .hrp-build-grid .section-code {
  margin-bottom: 56px;
}

.theme-p .hrp-build-grid .display {
  font-size: clamp(52px, 6vw, 92px);
}

.theme-p .hrp-build-grid ol {
  counter-reset: join;
  border-top: 1px solid var(--ink);
}

.theme-p .hrp-build-grid li {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(110px, 0.55fr) 1fr;
  gap: 24px;
  min-height: 135px;
  align-items: center;
  border-bottom: 1px solid var(--variant-rule);
}

.theme-p .hrp-build-grid li::before,
.theme-p .hrp-build-grid li::after {
  position: absolute;
  right: 0;
  width: 26px;
  height: 12px;
  border-right: 1px solid var(--variant-oak);
  border-bottom: 1px solid var(--variant-oak);
  content: "";
}

.theme-p .hrp-build-grid li::before {
  top: calc(50% - 11px);
}

.theme-p .hrp-build-grid li::after {
  top: 50%;
  transform: scaleY(-1);
}

.theme-p .hrp-build-grid li > span {
  color: var(--variant-oak);
  font: 700 11px/1 var(--utility);
  letter-spacing: 0.15em;
}

.theme-p .hrp-build-grid h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(27px, 2.4vw, 38px);
  font-weight: 400;
}

.theme-p .hrp-build-grid li p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
}

.theme-p .e3-shipwright-assembly .e3-frame {
  border-style: double;
  border-width: 3px;
}

.theme-p .e3-shipwright-assembly .e3-frame::before,
.theme-p .e3-shipwright-assembly .e3-frame::after {
  position: absolute;
  top: 50%;
  width: 58px;
  border-top: 1px solid rgba(255, 250, 240, 0.5);
  content: "";
}

.theme-p .e3-shipwright-assembly .e3-frame::before {
  left: 0;
}

.theme-p .e3-shipwright-assembly .e3-frame::after {
  right: 0;
}

.theme-p .hrp-faq {
  background: #ded4bc;
}

.theme-p .footer-style-shipwright .footer-gesture span {
  font-family: var(--utility);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------------------- */
/* HR-Q — Coastal Observatory                                                  */
/* -------------------------------------------------------------------------- */

.theme-q {
  --variant-sky: #dbe7e4;
  --variant-night: #102c31;
  --variant-lens: #a7c6c2;
}

.theme-q .hrq-opening {
  min-height: 800px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 78% 49%, transparent 0 75px, rgba(23, 59, 51, 0.16) 76px 78px, transparent 79px 136px, rgba(23, 59, 51, 0.11) 137px 139px, transparent 140px),
    linear-gradient(90deg, var(--variant-sky), #eff2e9);
}

.theme-q .hrq-sightline {
  position: absolute;
  top: 12%;
  right: clamp(22px, 5vw, 90px);
  bottom: 12%;
  width: min(43vw, 720px);
  border: 1px solid rgba(23, 59, 51, 0.34);
  border-radius: 50%;
}

.theme-q .hrq-sightline::before,
.theme-q .hrq-sightline::after {
  position: absolute;
  content: "";
}

.theme-q .hrq-sightline::before {
  top: 50%;
  right: -12vw;
  left: -12vw;
  border-top: 1px solid rgba(23, 59, 51, 0.32);
}

.theme-q .hrq-sightline::after {
  top: -8vw;
  bottom: -8vw;
  left: 50%;
  border-left: 1px solid rgba(23, 59, 51, 0.32);
}

.theme-q .hrq-observatory {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(70px, 12vw, 200px);
  align-items: end;
}

.theme-q .hrq-observatory > .section-code {
  position: absolute;
  top: -70px;
  left: 0;
}

.theme-q .hrq-observatory .display {
  font-size: clamp(58px, 7.3vw, 112px);
}

.theme-q .hrq-observatory aside {
  min-height: 255px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid var(--ink);
  background: rgba(251, 247, 237, 0.72);
  backdrop-filter: blur(6px);
}

.theme-q .hrq-observatory aside span {
  font: 700 10px/1 var(--utility);
  letter-spacing: 0.18em;
}

.theme-q .hrq-observatory aside p {
  margin: 0;
}

.theme-q .hrq-instruments {
  background: var(--variant-night);
  color: var(--light);
}

.theme-q .hrq-instruments::before {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background:
    linear-gradient(rgba(255, 250, 240, 0.35) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255, 250, 240, 0.35) 1px, transparent 1px) 0 0 / 64px 64px;
  content: "";
}

.theme-q .hrq-instruments .section-head {
  position: relative;
}

.theme-q .hrq-dial-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 3vw, 48px);
}

.theme-q .hrq-dial-grid article {
  min-height: 560px;
  padding: clamp(30px, 3.5vw, 54px);
  border: 1px solid rgba(255, 250, 240, 0.36);
  background: rgba(8, 35, 39, 0.68);
}

.theme-q .hrq-dial {
  position: relative;
  width: min(100%, 260px);
  aspect-ratio: 1;
  margin: 0 auto 48px;
  border: 1px solid rgba(255, 250, 240, 0.5);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from -1deg, var(--accent) 0 1deg, transparent 1deg 15deg);
}

.theme-q .hrq-dial::before,
.theme-q .hrq-dial::after {
  position: absolute;
  inset: 17%;
  border: 1px solid rgba(255, 250, 240, 0.33);
  border-radius: 50%;
  content: "";
}

.theme-q .hrq-dial::after {
  inset: 40%;
  background: var(--accent);
}

.theme-q .hrq-dial i {
  position: absolute;
  bottom: 50%;
  left: 50%;
  width: 1px;
  height: 38%;
  background: var(--light);
  transform: rotate(32deg);
  transform-origin: bottom;
}

.theme-q .hrq-dial-grid article:nth-child(2) .hrq-dial i {
  transform: rotate(106deg);
}

.theme-q .hrq-dial-grid article:nth-child(3) .hrq-dial i {
  transform: rotate(-41deg);
}

.theme-q .hrq-dial-grid b {
  color: var(--accent);
  font: 700 10px/1 var(--utility);
  letter-spacing: 0.17em;
}

.theme-q .hrq-dial-grid h3 {
  margin: 18px 0 18px;
  font-family: var(--display);
  font-size: clamp(31px, 3vw, 45px);
  font-weight: 400;
  line-height: 1.02;
}

.theme-q .hrq-dial-grid p {
  margin: 0;
  color: #c8d4d1;
}

.theme-q .e1-coastal-observatory {
  background: #d8d2bd;
}

.theme-q .e1-coastal-observatory .e1-contours {
  background:
    repeating-radial-gradient(circle at 88% 48%, transparent 0 90px, rgba(23, 59, 51, 0.26) 91px 93px, transparent 94px 155px);
}

.theme-q .e1-coastal-observatory .e1-figure {
  clip-path: ellipse(69% 50% at 49% 50%);
}

.theme-q .e1-coastal-observatory .e1-panel {
  border: 1px solid var(--accent);
}

.theme-q .hrq-observation-deck {
  background:
    radial-gradient(circle at 16% 52%, transparent 0 78px, rgba(23, 59, 51, 0.1) 79px 81px, transparent 82px 145px, rgba(23, 59, 51, 0.08) 146px 148px, transparent 149px),
    #f6f1e5;
}

.theme-q .hrq-deck-title {
  display: grid;
  grid-template-columns: 64px minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  margin-bottom: 84px;
}

.theme-q .hrq-deck-title .eyebrow {
  margin-top: 8px;
}

.theme-q .hrq-deck-title .display {
  font-size: clamp(54px, 6.3vw, 96px);
}

.theme-q .hrq-observation-deck ol {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.theme-q .hrq-observation-deck ol::before {
  position: absolute;
  top: 72px;
  right: 7%;
  left: 7%;
  border-top: 1px solid var(--ink);
  content: "";
}

.theme-q .hrq-observation-deck li {
  position: relative;
  min-height: 300px;
  padding: 0 clamp(18px, 2.4vw, 34px);
  text-align: center;
}

.theme-q .hrq-reticle {
  position: relative;
  display: block;
  width: 145px;
  height: 145px;
  margin: 0 auto 34px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--surface);
}

.theme-q .hrq-reticle::before,
.theme-q .hrq-reticle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.theme-q .hrq-reticle::before {
  width: 32px;
  height: 32px;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.theme-q .hrq-reticle::after {
  width: 1px;
  height: 100%;
  background: var(--ink);
  box-shadow: 0 0 0 0;
}

.theme-q .hrq-observation-deck li:nth-child(even) .hrq-reticle::after {
  width: 100%;
  height: 1px;
}

.theme-q .hrq-observation-deck li b {
  color: #76532d;
  font: 700 10px/1 var(--utility);
  letter-spacing: 0.15em;
}

.theme-q .hrq-observation-deck h3 {
  margin: 14px 0 12px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
}

.theme-q .hrq-observation-deck p {
  margin: 0;
  color: var(--muted);
}

.theme-q .e3-coastal-observatory .e3-frame {
  border-radius: 50%;
}

.theme-q .e3-coastal-observatory .e3-corner {
  border-radius: 50%;
}

.theme-q .e3-coastal-observatory .e3-corner-a {
  top: 7%;
  left: 6%;
}

.theme-q .e3-coastal-observatory .e3-corner-b {
  right: 6%;
  bottom: 7%;
}

.theme-q .hrq-faq {
  background: var(--variant-sky);
}

.theme-q .footer-style-observatory .footer-gesture {
  opacity: 0.08;
}

.theme-q .footer-style-observatory .footer-gesture span {
  letter-spacing: -0.09em;
}

/* -------------------------------------------------------------------------- */
/* HR-R — Admiralty Dossier                                                    */
/* -------------------------------------------------------------------------- */

.theme-r {
  --variant-file: #d8cfba;
  --variant-ink: #152f2b;
  --variant-red: #76483b;
}

.theme-r .hrr-opening {
  min-height: 920px;
  background:
    repeating-linear-gradient(90deg, transparent 0 159px, rgba(23, 59, 51, 0.08) 160px 161px),
    #b9b59f;
}

.theme-r .hrr-dossier {
  position: relative;
  min-height: 680px;
  display: grid;
  place-items: center;
}

.theme-r .hrr-sheet {
  position: absolute;
  inset: 0;
  margin: auto;
  border: 1px solid rgba(23, 59, 51, 0.4);
}

.theme-r .hrr-sheet-back {
  width: 82%;
  height: 90%;
  background: #284941;
  transform: rotate(3deg) translate(32px, 12px);
}

.theme-r .hrr-sheet-mid {
  width: 86%;
  height: 88%;
  background: var(--accent);
  transform: rotate(-2deg) translate(-26px, 20px);
}

.theme-r .hrr-sheet-front {
  position: relative;
  width: min(980px, 84%);
  min-height: 630px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(64px, 8vw, 124px);
  background:
    linear-gradient(90deg, transparent 0 78%, rgba(118, 72, 59, 0.08) 78%),
    repeating-linear-gradient(0deg, transparent 0 48px, rgba(23, 59, 51, 0.08) 49px 50px),
    #f7f0df;
}

.theme-r .hrr-sheet-front .section-code {
  position: absolute;
  top: 28px;
  left: 28px;
}

.theme-r .hrr-sheet-front .display {
  font-size: clamp(54px, 6.5vw, 96px);
}

.theme-r .hrr-sheet-front .lead {
  max-width: 720px;
  margin-top: 30px;
}

.theme-r .hrr-stamp {
  position: absolute;
  right: 34px;
  bottom: 32px;
  padding: 12px 18px;
  border: 2px solid var(--variant-red);
  color: var(--variant-red);
  font: 800 9px/1 var(--utility);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: rotate(-5deg);
}

.theme-r .hrr-routing {
  background: var(--variant-deep);
  color: var(--light);
}

.theme-r .hrr-routing::before {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background:
    repeating-linear-gradient(0deg, transparent 0 71px, rgba(255, 250, 240, 0.25) 72px 73px),
    repeating-linear-gradient(90deg, transparent 0 143px, rgba(255, 250, 240, 0.2) 144px 145px);
  content: "";
}

.theme-r .hrr-routing .container,
.theme-r .hrr-routing .section-head {
  position: relative;
}

.theme-r .hrr-slip-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 36px);
}

.theme-r .hrr-slip-stack article {
  position: relative;
  min-height: 520px;
  padding: clamp(34px, 4vw, 62px);
  border: 1px solid rgba(23, 59, 51, 0.38);
  background: #f3ecdc;
  color: var(--ink);
  box-shadow: 8px 10px 0 rgba(179, 139, 79, 0.8);
}

.theme-r .hrr-slip-stack article:nth-child(2) {
  transform: translateY(44px);
}

.theme-r .hrr-slip-stack article::before {
  position: absolute;
  top: 0;
  right: 30px;
  width: 42px;
  height: 66px;
  background: var(--variant-red);
  content: "";
}

.theme-r .hrr-slip-stack span,
.theme-r .hrr-slip-stack b {
  display: block;
  font: 700 9px/1.35 var(--utility);
  letter-spacing: 0.17em;
}

.theme-r .hrr-slip-stack b {
  margin-top: 80px;
  color: var(--variant-red);
}

.theme-r .hrr-slip-stack h3 {
  margin: 22px 0 22px;
  font-family: var(--display);
  font-size: clamp(36px, 3.5vw, 54px);
  font-weight: 400;
  line-height: 1;
}

.theme-r .hrr-slip-stack p {
  margin: 0;
  color: var(--muted);
}

.theme-r .e1-admiralty-dossier {
  background: #ddd2b9;
}

.theme-r .e1-admiralty-dossier .e1-figure {
  transform: rotate(-1deg);
  box-shadow: 18px 20px 0 var(--variant-red);
}

.theme-r .e1-admiralty-dossier .e1-panel {
  border-top: 12px solid #f2e8d4;
}

.theme-r .hrr-evidence {
  background:
    repeating-linear-gradient(0deg, transparent 0 51px, rgba(23, 59, 51, 0.08) 52px 53px),
    #f7f2e7;
}

.theme-r .hrr-evidence-head {
  display: grid;
  grid-template-columns: 64px minmax(190px, 0.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 84px;
}

.theme-r .hrr-evidence-head .eyebrow {
  margin-top: 8px;
}

.theme-r .hrr-evidence-head .display {
  font-size: clamp(54px, 6.7vw, 98px);
}

.theme-r .hrr-evidence ol {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  list-style: none;
}

.theme-r .hrr-evidence li {
  min-height: 330px;
  display: grid;
  align-content: start;
  padding: 34px 28px;
  border-right: 1px solid var(--variant-rule);
}

.theme-r .hrr-evidence li:last-child {
  border-right: 0;
}

.theme-r .hrr-evidence li span {
  justify-self: start;
  padding: 8px 10px;
  border: 1px solid var(--variant-red);
  color: var(--variant-red);
  font: 800 8px/1 var(--utility);
  letter-spacing: 0.14em;
  transform: rotate(-3deg);
}

.theme-r .hrr-evidence li b {
  margin: 46px 0 17px;
  color: #7b5b38;
  font: 700 10px/1 var(--utility);
}

.theme-r .hrr-evidence h3 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 400;
}

.theme-r .hrr-evidence li p {
  margin: 0;
  color: var(--muted);
}

.theme-r .e3-admiralty-dossier .e3-frame::before {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 118px;
  height: 118px;
  border: 2px solid rgba(179, 139, 79, 0.64);
  border-radius: 50%;
  content: "";
}

.theme-r .e3-admiralty-dossier .e3-frame::after {
  position: absolute;
  top: 86px;
  right: 49px;
  width: 80px;
  border-top: 1px solid var(--accent);
  content: "SEALED";
  color: var(--accent);
  font: 800 8px/1 var(--utility);
  letter-spacing: 0.17em;
  text-align: center;
}

.theme-r .hrr-faq {
  background: var(--variant-file);
}

.theme-r .footer-style-admiralty .footer-gesture span {
  font-family: var(--utility);
  font-size: min(12vw, 180px);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------------------- */
/* HR-S — Beacon Sequence                                                      */
/* -------------------------------------------------------------------------- */

.theme-s {
  --variant-beam: #e1bd70;
  --variant-night: #0b2d2e;
  --variant-fog: #e9e3d3;
}

.theme-s .hrs-opening {
  min-height: 820px;
  display: flex;
  align-items: center;
  background: var(--variant-fog);
}

.theme-s .hrs-beam {
  position: absolute;
  top: 0;
  right: -7%;
  width: 62%;
  height: 100%;
  opacity: 0.36;
  background: linear-gradient(152deg, transparent 0 26%, var(--variant-beam) 26.2% 57%, transparent 57.2%);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
}

.theme-s .hrs-beam::before {
  position: absolute;
  top: 50%;
  right: 18%;
  width: 190px;
  height: 190px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  box-shadow:
    0 0 0 48px rgba(23, 59, 51, 0.07),
    0 0 0 96px rgba(23, 59, 51, 0.04);
  content: "";
  transform: translateY(-50%);
}

.theme-s .hrs-beacon {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
  gap: clamp(70px, 11vw, 190px);
  align-items: end;
}

.theme-s .hrs-beacon > .section-code {
  position: absolute;
  top: -72px;
  left: 0;
}

.theme-s .hrs-beacon .display {
  font-size: clamp(58px, 7.4vw, 114px);
}

.theme-s .hrs-beacon aside {
  position: relative;
  z-index: 1;
  padding: 30px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: rgba(233, 227, 211, 0.78);
}

.theme-s .hrs-beacon aside b,
.theme-s .hrs-beacon aside span {
  display: block;
  font: 700 9px/1.4 var(--utility);
  letter-spacing: 0.15em;
}

.theme-s .hrs-beacon aside b {
  color: #77532e;
}

.theme-s .hrs-beacon aside span {
  margin: 12px 0 36px;
}

.theme-s .hrs-beacon aside p {
  margin: 0;
}

.theme-s .hrs-signals {
  background: var(--variant-night);
  color: var(--light);
}

.theme-s .hrs-signals::before {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background:
    repeating-linear-gradient(90deg, transparent 0 96px, rgba(255, 250, 240, 0.4) 97px 98px),
    linear-gradient(145deg, transparent 45%, rgba(225, 189, 112, 0.75) 45.2% 51%, transparent 51.2%);
  content: "";
}

.theme-s .hrs-signals .section-head,
.theme-s .hrs-signal-grid {
  position: relative;
}

.theme-s .hrs-signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 250, 240, 0.4);
}

.theme-s .hrs-signal-grid article {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 4vw, 64px);
  border-right: 1px solid rgba(255, 250, 240, 0.3);
}

.theme-s .hrs-signal-grid article:last-child {
  border-right: 0;
}

.theme-s .hrs-flash {
  position: relative;
  width: 130px;
  height: 130px;
  margin-bottom: auto;
  border: 1px solid rgba(255, 250, 240, 0.6);
  border-radius: 50%;
}

.theme-s .hrs-flash::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 210px;
  height: 32px;
  background: var(--variant-beam);
  content: "";
  clip-path: polygon(0 48%, 100% 0, 100% 100%);
  transform: translate(0, -50%);
  transform-origin: left;
}

.theme-s .hrs-signal-grid article:nth-child(2) .hrs-flash::before {
  transform: translate(0, -50%) rotate(38deg);
}

.theme-s .hrs-signal-grid article:nth-child(3) .hrs-flash::before {
  transform: translate(0, -50%) rotate(-32deg);
}

.theme-s .hrs-signal-grid article > b {
  margin-top: 60px;
  color: var(--accent);
  font: 700 10px/1 var(--utility);
  letter-spacing: 0.16em;
}

.theme-s .hrs-signal-grid h3 {
  margin: 18px 0;
  font-family: var(--display);
  font-size: clamp(34px, 3.2vw, 48px);
  font-weight: 400;
  line-height: 1;
}

.theme-s .hrs-signal-grid p {
  margin: 0;
  color: #c6d0cd;
}

.theme-s .e1-beacon-sequence {
  background: #d7d0ba;
}

.theme-s .e1-beacon-sequence .e1-contours {
  opacity: 0.34;
  background: repeating-linear-gradient(146deg, transparent 0 112px, rgba(23, 59, 51, 0.22) 113px 115px, transparent 116px 176px);
}

.theme-s .e1-beacon-sequence .e1-panel::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 48%;
  height: 18%;
  background: var(--variant-beam);
  content: "";
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  opacity: 0.58;
}

.theme-s .hrs-sequence {
  background:
    repeating-linear-gradient(90deg, transparent 0 128px, rgba(23, 59, 51, 0.08) 129px 130px),
    #f7f1e4;
}

.theme-s .hrs-sequence-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(76px, 11vw, 180px);
  align-items: start;
}

.theme-s .hrs-sequence-grid .section-code {
  margin-bottom: 56px;
}

.theme-s .hrs-sequence-grid .display {
  font-size: clamp(54px, 6.4vw, 96px);
}

.theme-s .hrs-sequence-grid ol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ink);
  list-style: none;
}

.theme-s .hrs-sequence-grid li {
  position: relative;
  min-height: 260px;
  padding: 34px;
  border-right: 1px solid var(--variant-rule);
  border-bottom: 1px solid var(--variant-rule);
}

.theme-s .hrs-sequence-grid li:nth-child(2n) {
  border-right: 0;
}

.theme-s .hrs-sequence-grid li:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.theme-s .hrs-sequence-grid li > span {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 62px;
  height: 26px;
  place-items: center;
  background: var(--variant-beam);
  font: 800 8px/1 var(--utility);
  letter-spacing: 0.15em;
}

.theme-s .hrs-sequence-grid li:nth-child(even) > span {
  background: var(--ink);
  color: var(--light);
}

.theme-s .hrs-sequence-grid li b {
  display: block;
  margin-bottom: 60px;
  color: #77532e;
  font: 700 10px/1 var(--utility);
}

.theme-s .hrs-sequence-grid h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 36px;
  font-weight: 400;
}

.theme-s .hrs-sequence-grid p {
  margin: 0;
  color: var(--muted);
}

.theme-s .hrs-lantern {
  background: var(--variant-night);
  color: var(--light);
}

.theme-s .hrs-lantern-rings {
  position: absolute;
  inset: -20%;
  opacity: 0.2;
  background: repeating-radial-gradient(circle at 50% 50%, transparent 0 70px, rgba(255, 250, 240, 0.5) 71px 73px, transparent 74px 128px);
}

.theme-s .hrs-lantern-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 5vw, 78px);
  align-items: stretch;
}

.theme-s .hrs-lantern-grid article {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 5vw, 76px);
  border: 1px solid rgba(255, 250, 240, 0.46);
  background: rgba(11, 45, 46, 0.84);
}

.theme-s .hrs-lantern-grid article:nth-of-type(2) {
  background: var(--variant-beam);
  color: var(--ink);
}

.theme-s .hrs-lantern-grid h2 {
  margin: 12px 0 22px;
  font-family: var(--display);
  font-size: clamp(42px, 4.6vw, 68px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.theme-s .hrs-lantern-grid article p:last-child {
  margin: 0;
  color: #c7d1ce;
}

.theme-s .hrs-lantern-grid article:nth-of-type(2) p:last-child {
  color: #24443d;
}

.theme-s .hrs-faq {
  background: var(--variant-fog);
}

.theme-s .footer-style-beacon .footer-gesture {
  right: -10%;
  left: 30%;
  transform: skewX(-18deg);
}

.theme-s .footer-style-beacon .footer-gesture span {
  font-family: var(--utility);
  font-weight: 800;
  text-transform: uppercase;
}

/* -------------------------------------------------------------------------- */
/* HR-T — Estuary Index                                                        */
/* -------------------------------------------------------------------------- */

.theme-t {
  --variant-delta: #385d53;
  --variant-silt: #d7ccb2;
  --variant-blue: #7ca5a4;
}

.theme-t .hrt-opening {
  min-height: 820px;
  display: flex;
  align-items: center;
  background: #eee7d6;
}

.theme-t .hrt-channels {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background:
    radial-gradient(ellipse at 103% 8%, transparent 0 24%, rgba(56, 93, 83, 0.28) 24.2% 24.5%, transparent 24.8%),
    radial-gradient(ellipse at 103% 56%, transparent 0 31%, rgba(56, 93, 83, 0.23) 31.2% 31.5%, transparent 31.8%),
    radial-gradient(ellipse at 103% 100%, transparent 0 35%, rgba(56, 93, 83, 0.18) 35.2% 35.5%, transparent 35.8%);
}

.theme-t .hrt-channels::before,
.theme-t .hrt-channels::after {
  position: absolute;
  right: -5%;
  width: 60%;
  border-top: 2px solid var(--variant-delta);
  content: "";
  transform-origin: right;
}

.theme-t .hrt-channels::before {
  top: 36%;
  transform: rotate(-10deg);
}

.theme-t .hrt-channels::after {
  top: 64%;
  transform: rotate(10deg);
}

.theme-t .hrt-estuary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(270px, 0.55fr);
  gap: clamp(70px, 11vw, 190px);
  align-items: end;
}

.theme-t .hrt-estuary > .section-code {
  position: absolute;
  top: -70px;
  left: 0;
}

.theme-t .hrt-estuary .display {
  font-size: clamp(57px, 7.2vw, 110px);
}

.theme-t .hrt-estuary > .lead {
  max-width: 410px;
  padding: 28px;
  border-left: 5px solid var(--accent);
  background: rgba(251, 247, 237, 0.74);
}

.theme-t .hrt-index {
  background: var(--variant-deep);
  color: var(--light);
}

.theme-t .hrt-index::before {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background:
    repeating-radial-gradient(ellipse at 0 50%, transparent 0 78px, rgba(255, 250, 240, 0.5) 79px 81px, transparent 82px 142px);
  content: "";
}

.theme-t .hrt-index .container {
  position: relative;
}

.theme-t .hrt-index-head {
  display: grid;
  grid-template-columns: 64px minmax(180px, 0.38fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  margin-bottom: 92px;
}

.theme-t .hrt-index-head .eyebrow {
  margin-top: 8px;
}

.theme-t .hrt-index-head .display {
  font-size: clamp(54px, 6.8vw, 102px);
}

.theme-t .hrt-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255, 250, 240, 0.35);
}

.theme-t .hrt-index-grid article {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  padding: clamp(34px, 4.4vw, 70px);
  background: var(--variant-deep);
}

.theme-t .hrt-index-grid article::after {
  position: absolute;
  right: -1px;
  bottom: 32px;
  left: 48%;
  border-top: 1px solid var(--variant-blue);
  content: "";
  transform: rotate(var(--channel-angle, -13deg));
  transform-origin: right;
}

.theme-t .hrt-index-grid article:nth-child(2) {
  --channel-angle: 0deg;
}

.theme-t .hrt-index-grid article:nth-child(3) {
  --channel-angle: 13deg;
}

.theme-t .hrt-index-grid b {
  color: var(--accent);
  font: 700 10px/1 var(--utility);
  letter-spacing: 0.16em;
}

.theme-t .hrt-index-grid h3 {
  margin: auto 0 20px;
  font-family: var(--display);
  font-size: clamp(42px, 4.1vw, 62px);
  font-weight: 400;
  line-height: 1;
}

.theme-t .hrt-index-grid p {
  margin: 0 0 48px;
  color: #c5d0cc;
}

.theme-t .hrt-index-grid article > span {
  color: var(--variant-blue);
  font: 700 9px/1 var(--utility);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.theme-t .hrt-field-note {
  background:
    repeating-radial-gradient(circle at 95% 51%, transparent 0 110px, rgba(23, 59, 51, 0.16) 111px 113px, transparent 114px 175px),
    var(--variant-silt);
}

.theme-t .hrt-field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(390px, 0.9fr);
  align-items: center;
}

.theme-t .hrt-field-grid figure {
  height: clamp(560px, 50vw, 760px);
  margin: 0;
  background: var(--variant-blue);
}

.theme-t .hrt-field-grid img {
  filter: saturate(0.58) contrast(0.94);
}

.theme-t .hrt-field-grid figcaption {
  min-height: 48px;
  padding: 15px 18px;
  background: var(--surface);
  font: 700 9px/1.3 var(--utility);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.theme-t .hrt-field-grid article {
  position: relative;
  z-index: 1;
  margin-left: -9%;
  padding: clamp(54px, 7vw, 104px);
  border-left: 12px solid var(--accent);
  background: var(--surface);
  box-shadow: 18px 20px 0 var(--variant-delta);
}

.theme-t .hrt-field-grid article .section-code {
  margin-bottom: 54px;
}

.theme-t .hrt-field-grid blockquote {
  margin: 8px 0 44px;
  font-family: var(--display);
  font-size: clamp(45px, 5vw, 80px);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.theme-t .hrt-field-grid article > span:last-child {
  display: block;
  padding-top: 20px;
  border-top: 1px solid var(--ink);
  font: 700 9px/1 var(--utility);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.theme-t .hrt-confluence {
  background: #f6f0e3;
}

.theme-t .hrt-confluence-title {
  display: grid;
  grid-template-columns: 64px minmax(180px, 0.38fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  margin-bottom: 92px;
}

.theme-t .hrt-confluence-title .eyebrow {
  margin-top: 8px;
}

.theme-t .hrt-confluence-title .display {
  font-size: clamp(54px, 6.8vw, 102px);
}

.theme-t .hrt-confluence ol {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.theme-t .hrt-confluence ol::before {
  position: absolute;
  top: 49px;
  right: 10%;
  left: 10%;
  height: 5px;
  background: linear-gradient(90deg, var(--variant-blue), var(--accent), var(--variant-delta));
  content: "";
}

.theme-t .hrt-confluence li {
  position: relative;
  min-height: 285px;
  padding: 0 24px;
  text-align: center;
}

.theme-t .hrt-confluence li b {
  position: relative;
  z-index: 1;
  display: grid;
  width: 98px;
  height: 98px;
  place-items: center;
  margin: 0 auto 38px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: #f6f0e3;
  color: #77532e;
  font: 700 11px/1 var(--utility);
}

.theme-t .hrt-confluence h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 400;
}

.theme-t .hrt-confluence p {
  margin: 0;
  color: var(--muted);
}

.theme-t .e3-estuary-index .e3-frame {
  overflow: hidden;
}

.theme-t .e3-estuary-index .e3-frame::before,
.theme-t .e3-estuary-index .e3-frame::after {
  position: absolute;
  right: -10%;
  width: 48%;
  border-top: 1px solid rgba(179, 139, 79, 0.58);
  content: "";
  transform-origin: right;
}

.theme-t .e3-estuary-index .e3-frame::before {
  top: 30%;
  transform: rotate(-12deg);
}

.theme-t .e3-estuary-index .e3-frame::after {
  bottom: 30%;
  transform: rotate(12deg);
}

.theme-t .hrt-faq {
  background: var(--variant-silt);
}

.theme-t .footer-style-estuary .footer-gesture span {
  font-style: italic;
  transform: skewX(-10deg);
}

/* -------------------------------------------------------------------------- */
/* Shared responsive refinements for P–T                                       */
/* -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .theme-p .hrp-keel,
  .theme-q .hrq-observatory,
  .theme-s .hrs-beacon,
  .theme-t .hrt-estuary {
    grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
    gap: 60px;
  }

  .theme-p .hrp-assembly-grid article,
  .theme-q .hrq-dial-grid article,
  .theme-s .hrs-signal-grid article,
  .theme-t .hrt-index-grid article {
    min-height: 480px;
    padding: 32px;
  }

  .theme-p .hrp-material-grid {
    grid-template-columns: 1fr 1fr;
  }

  .theme-p .hrp-material-grid article {
    grid-column: 1 / -1;
    min-height: 420px;
  }

  .theme-q .hrq-dial {
    width: 180px;
  }

  .theme-r .hrr-slip-stack article {
    min-height: 480px;
    padding: 32px;
  }

  .theme-t .hrt-field-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  }
}

@media (max-width: 820px) {
  .theme-p .hrp-opening,
  .theme-q .hrq-opening,
  .theme-r .hrr-opening,
  .theme-s .hrs-opening,
  .theme-t .hrt-opening {
    min-height: 0;
  }

  .theme-p .hrp-keel,
  .theme-q .hrq-observatory,
  .theme-s .hrs-beacon,
  .theme-t .hrt-estuary,
  .theme-p .hrp-build-grid,
  .theme-s .hrs-sequence-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .theme-p .hrp-keel > .section-code,
  .theme-q .hrq-observatory > .section-code,
  .theme-s .hrs-beacon > .section-code,
  .theme-t .hrt-estuary > .section-code {
    position: static;
    grid-row: 1;
    justify-self: start;
  }

  .theme-p .hrp-keel .display {
    padding-left: 22px;
  }

  .theme-p .hrp-keel-line {
    top: 9%;
    right: -38%;
    bottom: auto;
    left: auto;
    width: 72%;
    height: 46%;
  }

  .theme-q .hrq-sightline {
    top: 5%;
    right: -30%;
    bottom: auto;
    width: 88%;
    aspect-ratio: 1;
  }

  .theme-p .hrp-assembly-grid,
  .theme-q .hrq-dial-grid,
  .theme-r .hrr-slip-stack,
  .theme-s .hrs-signal-grid,
  .theme-t .hrt-index-grid {
    grid-template-columns: 1fr;
  }

  .theme-p .hrp-assembly-grid article,
  .theme-q .hrq-dial-grid article,
  .theme-s .hrs-signal-grid article,
  .theme-t .hrt-index-grid article {
    min-height: 0;
    padding: 40px;
  }

  .theme-p .hrp-joint {
    width: 88px;
    height: 88px;
  }

  .theme-p .hrp-assembly-grid article > span {
    margin-top: 28px;
  }

  .theme-p .hrp-material-grid {
    grid-template-columns: 1fr;
  }

  .theme-p .hrp-material-grid figure {
    height: 430px;
  }

  .theme-p .hrp-material-grid figure:nth-of-type(2) {
    margin-top: 0;
  }

  .theme-p .hrp-material-grid article {
    grid-column: auto;
    min-height: 0;
  }

  .theme-p .hrp-build-grid li {
    grid-template-columns: 50px 0.65fr 1fr;
  }

  .theme-q .hrq-observatory aside {
    max-width: 480px;
  }

  .theme-q .hrq-dial-grid article {
    display: grid;
    grid-template-columns: 180px 1fr;
    column-gap: 30px;
  }

  .theme-q .hrq-dial {
    grid-row: 1 / 5;
    margin: 0;
  }

  .theme-q .hrq-deck-title,
  .theme-r .hrr-evidence-head,
  .theme-t .hrt-index-head,
  .theme-t .hrt-confluence-title {
    grid-template-columns: 58px 1fr;
  }

  .theme-q .hrq-deck-title .display,
  .theme-r .hrr-evidence-head .display,
  .theme-t .hrt-index-head .display,
  .theme-t .hrt-confluence-title .display {
    grid-column: 2;
  }

  .theme-q .hrq-observation-deck ol,
  .theme-r .hrr-evidence ol,
  .theme-t .hrt-confluence ol {
    grid-template-columns: 1fr 1fr;
  }

  .theme-q .hrq-observation-deck ol::before,
  .theme-t .hrt-confluence ol::before {
    display: none;
  }

  .theme-q .hrq-observation-deck li,
  .theme-t .hrt-confluence li {
    padding: 32px 20px;
    border: 1px solid var(--variant-rule);
  }

  .theme-r .hrr-dossier {
    min-height: 720px;
  }

  .theme-r .hrr-sheet-front {
    width: 90%;
    min-height: 640px;
    padding: 90px 48px 72px;
  }

  .theme-r .hrr-slip-stack article:nth-child(2) {
    transform: none;
  }

  .theme-r .hrr-evidence li {
    border-bottom: 1px solid var(--variant-rule);
  }

  .theme-s .hrs-beam {
    right: -30%;
    width: 100%;
  }

  .theme-s .hrs-signal-grid article {
    display: grid;
    grid-template-columns: 150px 1fr;
    column-gap: 32px;
  }

  .theme-s .hrs-flash {
    grid-row: 1 / 5;
    width: 110px;
    height: 110px;
    margin: 0;
  }

  .theme-s .hrs-flash::before {
    width: 150px;
  }

  .theme-s .hrs-signal-grid article > b {
    margin-top: 0;
  }

  .theme-s .hrs-lantern-grid {
    grid-template-columns: 1fr;
  }

  .theme-s .hrs-lantern-grid > .section-code {
    margin-bottom: 8px;
  }

  .theme-t .hrt-field-grid {
    grid-template-columns: 1fr;
  }

  .theme-t .hrt-field-grid figure {
    height: 480px;
  }

  .theme-t .hrt-field-grid article {
    margin: -54px 20px 0;
  }
}

@media (max-width: 520px) {
  .theme-p .hrp-opening,
  .theme-p .hrp-assemblies,
  .theme-p .hrp-materials,
  .theme-p .hrp-build,
  .theme-p .hrp-faq,
  .theme-q .hrq-opening,
  .theme-q .hrq-instruments,
  .theme-q .hrq-observation-deck,
  .theme-q .hrq-faq,
  .theme-r .hrr-opening,
  .theme-r .hrr-routing,
  .theme-r .hrr-evidence,
  .theme-r .hrr-faq,
  .theme-s .hrs-opening,
  .theme-s .hrs-signals,
  .theme-s .hrs-sequence,
  .theme-s .hrs-lantern,
  .theme-s .hrs-faq,
  .theme-t .hrt-opening,
  .theme-t .hrt-index,
  .theme-t .hrt-field-note,
  .theme-t .hrt-confluence,
  .theme-t .hrt-faq {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .theme-p .hrp-keel .display,
  .theme-q .hrq-observatory .display,
  .theme-s .hrs-beacon .display,
  .theme-t .hrt-estuary .display {
    font-size: clamp(45px, 13vw, 60px);
  }

  .theme-p .hrp-keel > .lead,
  .theme-t .hrt-estuary > .lead {
    padding: 22px;
  }

  .theme-p .hrp-assembly-grid article,
  .theme-q .hrq-dial-grid article,
  .theme-s .hrs-signal-grid article,
  .theme-t .hrt-index-grid article {
    padding: 30px 26px;
  }

  .theme-p .hrp-material-grid figure,
  .theme-t .hrt-field-grid figure {
    height: 330px;
  }

  .theme-p .hrp-material-grid article {
    padding: 42px 26px;
  }

  .theme-p .hrp-material-grid blockquote {
    font-size: 42px;
  }

  .theme-p .hrp-build-grid li {
    grid-template-columns: 38px 1fr;
    gap: 16px;
    padding: 24px 34px 24px 0;
  }

  .theme-p .hrp-build-grid li p {
    grid-column: 2;
  }

  .theme-q .hrq-dial-grid article,
  .theme-s .hrs-signal-grid article {
    display: block;
  }

  .theme-q .hrq-dial,
  .theme-s .hrs-flash {
    width: 130px;
    height: 130px;
    margin: 0 0 36px;
  }

  .theme-q .hrq-deck-title,
  .theme-r .hrr-evidence-head,
  .theme-t .hrt-index-head,
  .theme-t .hrt-confluence-title {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 56px;
  }

  .theme-q .hrq-deck-title .display,
  .theme-r .hrr-evidence-head .display,
  .theme-t .hrt-index-head .display,
  .theme-t .hrt-confluence-title .display {
    grid-column: 1;
  }

  .theme-q .hrq-observation-deck ol,
  .theme-r .hrr-evidence ol,
  .theme-t .hrt-confluence ol,
  .theme-s .hrs-sequence-grid ol {
    grid-template-columns: 1fr;
  }

  .theme-q .hrq-observation-deck li,
  .theme-t .hrt-confluence li {
    min-height: 0;
    text-align: left;
  }

  .theme-q .hrq-reticle,
  .theme-t .hrt-confluence li b {
    margin-right: 0;
    margin-left: 0;
  }

  .theme-r .hrr-opening {
    padding-right: 12px;
    padding-left: 12px;
  }

  .theme-r .hrr-dossier {
    min-height: 680px;
  }

  .theme-r .hrr-sheet-front {
    width: 94%;
    min-height: 620px;
    padding: 86px 28px 74px;
  }

  .theme-r .hrr-sheet-front .display {
    font-size: clamp(42px, 12.5vw, 58px);
  }

  .theme-r .hrr-sheet-front .lead {
    margin-top: 22px;
  }

  .theme-r .hrr-stamp {
    right: 18px;
    bottom: 22px;
  }

  .theme-r .hrr-sheet-back {
    transform: rotate(2deg) translate(12px, 8px);
  }

  .theme-r .hrr-sheet-mid {
    transform: rotate(-1.5deg) translate(-10px, 12px);
  }

  .theme-r .hrr-slip-stack article {
    min-height: 0;
    padding: 32px 26px 40px;
  }

  .theme-r .hrr-slip-stack b {
    margin-top: 62px;
  }

  .theme-r .hrr-evidence li {
    min-height: 280px;
    border-right: 0;
  }

  .theme-s .hrs-beacon aside {
    padding: 24px;
  }

  .theme-s .hrs-flash::before {
    width: 175px;
  }

  .theme-s .hrs-sequence-grid li {
    min-height: 230px;
  }

  .theme-s .hrs-sequence-grid li:nth-child(odd),
  .theme-s .hrs-sequence-grid li:nth-child(even) {
    border-right: 0;
    border-bottom: 1px solid var(--variant-rule);
  }

  .theme-s .hrs-sequence-grid li:last-child {
    border-bottom: 0;
  }

  .theme-s .hrs-lantern-grid article {
    min-height: 0;
    padding: 48px 28px;
  }

  .theme-t .hrt-field-grid article {
    margin: -34px 10px 0;
    padding: 48px 28px;
    border-left-width: 7px;
    box-shadow: 10px 12px 0 var(--variant-delta);
  }

  .theme-t .hrt-field-grid blockquote {
    font-size: 43px;
  }

  .theme-t .hrt-index-grid article {
    min-height: 400px;
  }
}
