/*
 * Shared shell for the primary-service "fixed canvas" documents:
 * html/consultancy.html and html/project-delivery.html.
 *
 * Both are three-column compositions (role · detail · image) under a brand
 * row and above a footer, authored at 1280×720. Inside the homepage
 * primary-service modal the iframe is a 1280×720 canvas magnified by the host;
 * standalone, the shell is magnified by js/core/scale-to-fit.js (canvas size
 * and profile are set per page in the markup).
 *
 * Ownership: this file owns every property that both pages share. Where the
 * pages differ, the property is owned entirely by the page file
 * (consultancy.css / project-delivery.css), at all breakpoints, so the two
 * files never compete for the same property.
 *
 * Breakpoints (local viewport, as the original):
 *   ≥861 & motion OK           left-to-right "accordion" entrance
 *   ≤1180                      narrower columns
 *   ≥861 & ≤760 high           compact 720p rows
 *   ≤860 / ≤460                single scrolling column
 *   tablet landscape           861–1180 landscape, or 1181–1366 landscape coarse:
 *                              scrollable copy pane beside the image
 *   ≥1921 × ≥1081              high-resolution type (site-wide --kt-hi scale)
 *
 * html.is-embedded is set synchronously by js/embeds/fixed-canvas.js.
 */

:root {
  color-scheme: dark;
  --gold: #d9a45e;
  --pale-gold: #f1c77d;
  --cream: #f4ead8;
  --teal: #4b8881;
  --teal-hi: #58afa5;
  --ink: #060806;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --accordion-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --serif: "Playfair Display", Georgia, serif;
  --sans: Inter, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: #080c0a;
  color: var(--cream);
  font-family: var(--sans);
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 1px solid var(--pale-gold);
  outline-offset: 4px;
}

body.modal-open {
  overflow: hidden;
}

/* ---- Modal, backdrop and shell -------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: clamp(10px, 2vw, 30px);
  visibility: hidden;
  pointer-events: none;
}

.modal[aria-hidden="false"] {
  visibility: visible;
  pointer-events: auto;
}

.backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 3, 0.88);
  backdrop-filter: blur(20px) saturate(0.8);
}

.shell {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: min(1540px, calc(100vw - 56px));
  height: min(920px, calc(100vh - 56px));
  overflow: visible;
  border: 1px solid rgba(217, 164, 94, 0.42);
  background:
    radial-gradient(circle at 71% 32%, rgba(55, 112, 103, 0.13), transparent 35%),
    radial-gradient(circle at 8% 9%, rgba(188, 111, 46, 0.1), transparent 28%),
    linear-gradient(145deg, #111714 0%, #080c0a 57%, #060806 100%);
  box-shadow: 0 48px 140px rgba(0, 0, 0, 0.72), inset 0 1px rgba(255, 235, 194, 0.08);
}

/* Faint 80px drafting grid fading out to the right. */
.shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(90deg, black, transparent 72%);
}

.frame {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(430px, 1.05fr) minmax(430px, 0.96fr);
  grid-template-rows: 128px minmax(0, 1fr) 72px;
  height: 100%;
  overflow: hidden;
}

/* The copy wrapper only becomes a box in the tablet-landscape split view. */
.copy-pane {
  display: contents;
}

/* Embedded: the host draws backdrop, border and close control. */
html.is-embedded .modal {
  padding: 0;
}

.is-embedded .backdrop,
.is-embedded .close {
  display: none;
}

.is-embedded .shell {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 0;
  box-shadow: none;
}

.is-embedded .frame {
  height: 100%;
  min-height: 0;
}

/* ---- Brand row ------------------------------------------------------------- */

.brand {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  grid-column: 1 / 3;
  padding: 28px 38px 20px;
  border-bottom: 1px solid rgba(241, 199, 125, 0.2);
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 104px;
  height: 104px;
  margin-right: -34px;
  transform: translate(-22px, -9px);
  filter: drop-shadow(0 9px 18px rgba(0, 0, 0, 0.36)) drop-shadow(0 0 12px rgba(217, 164, 94, 0.12));
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 8px;
  color: rgba(241, 199, 125, 0.76);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

.brand h1 {
  max-width: 900px;
  margin: 0;
  color: rgba(244, 234, 216, 0.96);
  font: 500 clamp(27px, 2.35vw, 40px) / 0.94 var(--serif);
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.brand h1 span {
  color: var(--teal-hi);
}

.brand h1 .design-word {
  color: var(--pale-gold);
}

.brand h1 > span:last-child {
  display: block;
}

.overview {
  display: flex;
  align-items: center;
  grid-column: 3;
  width: calc(100% + 60px);
  padding: 22px 68px 18px 22px;
  border-bottom: 1px solid rgba(241, 199, 125, 0.2);
  border-left: 1px solid rgba(217, 164, 94, 0.15);
  transform: translateX(-60px);
}

.subline {
  position: relative;
  max-width: 650px;
  margin: 0;
  padding-left: 22px;
  color: rgba(244, 234, 216, 0.92);
  font: 500 clamp(15px, 1.06vw, 18px) / 1.4 var(--serif);
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.subline::before {
  content: "";
  position: absolute;
  top: 0.15em;
  bottom: 0.15em;
  left: 0;
  width: 2px;
  background: linear-gradient(var(--cream), var(--pale-gold), var(--gold));
  box-shadow: 0 0 14px rgba(241, 199, 125, 0.35);
}

/* ---- Left column: the role ----------------------------------------------- */

.scope {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  grid-column: 1;
  grid-row: 2;
  min-height: 0;
  border-right: 1px solid rgba(241, 199, 125, 0.2);
  background: linear-gradient(180deg, rgba(10, 15, 13, 0.97), rgba(6, 9, 8, 0.99));
}

.scope::before {
  content: "";
  position: absolute;
  top: 9%;
  bottom: 9%;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--pale-gold) 18%, rgba(217, 164, 94, 0.55) 82%, transparent);
  box-shadow: 0 0 18px rgba(241, 199, 125, 0.2);
}

.section-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
  color: rgba(241, 199, 125, 0.65);
  font-size: 8px;
  font-weight: 740;
  letter-spacing: 0.27em;
  text-transform: uppercase;
}

.section-meta::after {
  content: "";
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, rgba(241, 199, 125, 0.64), transparent);
}

/* ---- Middle column: the detail ------------------------------------------- */

.decisions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  padding: clamp(34px, 3.4vw, 58px) clamp(32px, 3.2vw, 52px);
  border-right: 1px solid rgba(217, 164, 94, 0.16);
  background:
    radial-gradient(circle at 80% 20%, rgba(75, 136, 129, 0.1), transparent 34%),
    linear-gradient(145deg, rgba(13, 20, 17, 0.97), rgba(7, 11, 9, 0.98));
}

/* Large ghost stage number (content set per page). */
.decisions::before {
  position: absolute;
  top: 17px;
  right: 22px;
  color: rgba(241, 199, 125, 0.035);
  font: 500 clamp(120px, 12vw, 190px) / 1 "Playfair Display", serif;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.handoff {
  position: relative;
  margin-top: 20px;
  padding: 14px 16px;
  border-left: 1px solid rgba(241, 199, 125, 0.72);
  background: linear-gradient(90deg, rgba(217, 164, 94, 0.16), transparent);
}

.handoff strong {
  display: block;
  margin-bottom: 4px;
  color: rgba(241, 199, 125, 0.9);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.handoff span {
  display: block;
  color: rgba(244, 234, 216, 0.7);
  font-size: 11px;
  line-height: 1.55;
}

/* ---- Right column: the image --------------------------------------------- */

.visual {
  position: relative;
  grid-column: 3;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #111a17;
}

.visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
}

.image-caption {
  position: absolute;
  z-index: 2;
  right: clamp(26px, 2.5vw, 42px);
  bottom: clamp(28px, 3vw, 48px);
  left: clamp(26px, 2.5vw, 42px);
  margin: 0;
  padding-top: 17px;
  border-top: 1px solid rgba(241, 199, 125, 0.45);
  color: rgba(244, 234, 216, 0.9);
  font: 500 clamp(18px, 1.55vw, 25px) / 1.28 var(--serif);
  text-wrap: balance;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.75);
}

.image-caption span {
  display: block;
  margin-bottom: 9px;
  color: var(--pale-gold);
  font: 720 8px / 1 var(--sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

/* ---- Footer and controls ------------------------------------------------- */

.footer {
  display: grid;
  grid-template-columns: minmax(300px, 360px) 1fr auto;
  align-items: center;
  grid-column: 1 / 4;
  grid-row: 3;
  border-top: 1px solid rgba(241, 199, 125, 0.2);
  background: rgba(6, 9, 8, 0.88);
}

.stage {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 100%;
  padding: 0 40px;
  border-right: 1px solid rgba(217, 164, 94, 0.15);
  color: rgba(244, 234, 216, 0.38);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.stage strong {
  color: var(--pale-gold);
  font: 500 22px / 1 "Playfair Display", serif;
}

.stage i {
  width: 38px;
  height: 1px;
  background: rgba(241, 199, 125, 0.25);
}

.footer-kicker {
  margin: 0;
  padding: 0 38px;
  overflow: hidden;
  color: rgba(217, 164, 94, 0.68);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.enquire {
  min-width: 275px;
  height: 48px;
  margin-right: 22px;
  border: 1px solid rgba(213, 164, 82, 0.62);
  background: rgba(26, 21, 14, 0.14);
  color: #e1b86e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.enquire:hover {
  border-color: rgba(241, 199, 125, 0.82);
  background: rgba(92, 64, 27, 0.2);
  color: #f1c77d;
}

.close {
  position: absolute;
  z-index: 8;
  top: -10px;
  right: -10px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(217, 164, 94, 0.42);
  border-radius: 50%;
  background: rgba(9, 12, 10, 0.92);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  color: rgba(244, 234, 216, 0.72);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.35s var(--ease);
}

.close:hover {
  border-color: rgba(241, 199, 125, 0.7);
  background: rgba(18, 23, 20, 0.98);
  color: var(--cream);
  transform: rotate(90deg);
}

/* ---- Entrance: the three leaves unfold left to right ---------------------- *
 * js/embeds/fixed-canvas.js adds .reveal-left (2 frames), .reveal-middle
 * (+860ms), .reveal-image (+1640ms) and .reveal-complete (+2560ms).        */

@media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
  .modal .scope,
  .modal .decisions,
  .modal .visual {
    transform-origin: left center;
    will-change: clip-path, transform, opacity;
    pointer-events: none;
  }

  .modal .scope {
    clip-path: inset(0 100% 0 0);
    opacity: 0.35;
    transform: translateX(var(--accordion-entry-x, -32px)) scaleX(0.055);
    transition: clip-path 820ms var(--accordion-ease), transform 820ms var(--accordion-ease), opacity 260ms ease;
  }

  .modal.reveal-left .scope {
    clip-path: inset(0);
    opacity: 1;
    transform: none;
  }

  .modal .scope > * {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 320ms ease, transform 620ms var(--accordion-ease);
  }

  .modal.reveal-left .scope > * {
    opacity: 1;
    transform: none;
  }

  .modal .decisions {
    clip-path: inset(0 100% 0 0);
    opacity: 0.3;
    transform: translateX(-30px) scaleX(0.055);
    transition: clip-path 760ms var(--accordion-ease), transform 760ms var(--accordion-ease), opacity 300ms ease;
  }

  .modal.reveal-middle .decisions {
    clip-path: inset(0);
    opacity: 1;
    transform: none;
  }

  .modal .decisions > * {
    transition: opacity 320ms ease, transform 620ms var(--accordion-ease);
  }

  .modal:not(.reveal-middle) .decisions > * {
    opacity: 0;
    transform: translateX(-18px);
  }

  .modal.reveal-middle:not(.reveal-complete) .decisions > * {
    opacity: 1;
    transform: none;
    transition-delay: 250ms;
  }

  .modal .visual {
    clip-path: inset(0 100% 0 0);
    opacity: 0.25;
    transform: translateX(-34px) scaleX(0.04);
    transition: clip-path 900ms var(--accordion-ease), transform 900ms var(--accordion-ease), opacity 360ms ease;
  }

  .modal.reveal-image .visual {
    clip-path: inset(0);
    opacity: 1;
    transform: none;
  }

  .modal .footer {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 420ms ease, transform 620ms var(--accordion-ease);
  }

  .modal.reveal-complete .footer {
    opacity: 1;
    transform: none;
  }

  .modal.reveal-complete .scope,
  .modal.reveal-complete .decisions,
  .modal.reveal-complete .visual {
    will-change: auto;
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---- ≤1180px ------------------------------------------------------------ */

@media (max-width: 1180px) {
  .frame {
    grid-template-columns: 270px minmax(390px, 1.05fr) minmax(340px, 0.9fr);
  }

  .brand {
    padding-left: 28px;
  }

  .overview {
    padding: 18px 30px;
  }

  .subline {
    font-size: 14px;
    line-height: 1.35;
  }

  .decisions {
    padding: 32px 28px;
  }

  .footer {
    grid-template-columns: 270px 1fr auto;
  }

  .stage {
    padding: 0 26px;
  }
}

/* ---- Compact 720p rows ------------------------------------------------------ */

@media (min-width: 861px) and (max-height: 760px) {
  .frame {
    grid-template-rows: 108px minmax(0, 1fr) 60px;
  }

  .brand {
    padding-top: 20px;
    padding-bottom: 14px;
  }

  .brand-mark {
    width: 90px;
    height: 90px;
  }

  .brand h1 {
    font-size: 31px;
  }

  .overview {
    padding-top: 15px;
    padding-bottom: 13px;
  }

  .subline {
    font-size: 14px;
    line-height: 1.32;
  }

  .decisions {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .handoff {
    margin-top: 12px;
    padding: 10px 13px;
  }

  .handoff span {
    font-size: 10.5px;
    line-height: 1.42;
  }

  .stage strong {
    font-size: 19px;
  }

  .enquire {
    height: 42px;
  }

  .image-caption {
    bottom: 28px;
    font-size: 20px;
  }
}

/* ---- ≤860px: one scrolling column --------------------------------------- */

@media (max-width: 860px) {
  .modal {
    padding: 6px;
  }

  .shell {
    width: 100%;
    height: 97vh;
    overflow: auto;
  }

  .frame {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100%;
  }

  .is-embedded .shell {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
    overflow: auto;
  }

  .is-embedded .frame {
    height: auto;
    min-height: 100%;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    padding: 22px 68px 19px 22px;
    border-bottom: 0;
  }

  .brand-mark {
    display: none;
  }

  .brand h1 {
    font-size: 40px;
  }

  .overview {
    grid-column: 1;
    grid-row: 2;
    width: auto;
    padding: 2px 22px 22px;
    border-left: 0;
    transform: none;
  }

  .overview .subline {
    font-size: 24px;
    line-height: 1.45;
  }

  .scope {
    grid-column: 1;
    grid-row: 3;
    border-top: 1px solid rgba(241, 199, 125, 0.18);
    border-right: 0;
  }

  .section-meta {
    font-size: 12px;
  }

  .decisions {
    grid-column: 1;
    grid-row: 4;
    padding: 30px 22px;
    border-top: 1px solid rgba(241, 199, 125, 0.16);
    border-right: 0;
  }

  .handoff strong {
    font-size: 12px;
  }

  .handoff span {
    font-size: 21px;
    line-height: 1.55;
  }

  .visual {
    grid-column: 1;
    grid-row: 5;
  }

  .image-caption {
    font-size: 30px;
  }

  .image-caption span {
    font-size: 12px;
  }

  .footer {
    grid-column: 1;
    grid-row: 6;
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    padding: 14px 16px 22px;
  }

  .stage,
  .footer-kicker {
    display: none;
  }

  .enquire {
    grid-column: 1;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 52px;
    min-height: 52px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid rgba(213, 164, 82, 0.62);
    font-size: 16px;
    letter-spacing: 0.18em;
  }
}

@media (max-width: 460px) {
  .brand h1 {
    font-size: 38px;
  }

  .handoff span {
    font-size: 21px;
    line-height: 1.55;
  }

  .image-caption {
    font-size: 28px;
  }

  .footer {
    padding: 14px 14px 24px;
  }

  .enquire {
    height: 54px;
    min-height: 54px;
    font-size: 16px;
    letter-spacing: 0.16em;
  }
}

/* ---- Tablet landscape: scrollable copy pane beside the image ------------- */

@media (min-width: 861px) and (max-width: 1180px) and (orientation: landscape),
       (min-width: 1181px) and (max-width: 1366px) and (orientation: landscape) and (pointer: coarse) {
  .modal {
    padding: 10px;
  }

  .shell,
  .is-embedded .shell {
    position: relative;
    inset: auto;
    width: calc(100vw - 20px);
    height: calc(100dvh - 20px);
    max-height: none;
    overflow: hidden;
  }

  .is-embedded .shell {
    width: 100%;
    height: 100dvh;
  }

  .frame {
    grid-template-rows: 116px minmax(0, 1fr) 56px;
    height: 100%;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    align-items: center;
  }

  .brand-mark {
    transform: none;
  }

  .brand > div:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
  }

  .eyebrow {
    margin: 0 0 5px;
  }

  .overview {
    grid-column: 2;
    grid-row: 1;
  }

  .copy-pane {
    position: relative;
    z-index: 2;
    display: block;
    grid-column: 1;
    grid-row: 2 / 4;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-right: 1px solid rgba(217, 164, 94, 0.2);
    background: linear-gradient(145deg, rgba(10, 16, 13, 0.98), rgba(6, 10, 8, 0.99));
    scrollbar-color: rgba(217, 164, 94, 0.42) rgba(255, 255, 255, 0.035);
    scrollbar-width: thin;
  }

  .copy-pane::-webkit-scrollbar {
    width: 6px;
  }

  .copy-pane::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.035);
  }

  .copy-pane::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(217, 164, 94, 0.42);
  }

  .scope,
  .decisions {
    position: relative;
    inset: auto;
    display: flex;
    justify-content: flex-start;
    min-height: 0;
    border-right: 0;
    background: transparent;
  }

  /* .scope padding is page-owned (it differs per page at other sizes). */
  .decisions {
    padding: 30px clamp(28px, 3.2vw, 42px);
  }

  .scope {
    border-bottom: 1px solid rgba(241, 199, 125, 0.18);
  }

  .scope::before {
    top: 7%;
    bottom: 7%;
  }

  .decisions::before {
    font-size: 150px;
  }

  .visual {
    grid-column: 2;
    grid-row: 2;
    min-height: 0;
  }

  .footer {
    display: block;
    grid-column: 2;
    grid-row: 3;
    min-width: 0;
    padding: 6px;
    border-top: 1px solid rgba(241, 199, 125, 0.2);
    background: rgba(6, 9, 8, 0.94);
  }

  .stage,
  .footer-kicker {
    display: none;
  }

  .enquire {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    height: 100%;
    margin: 0;
    border: 1px solid rgba(213, 164, 82, 0.62);
    font-size: 10px;
  }
}

/* ---- High-resolution type (≥1921 × ≥1081) ------------------------------- *
 * The site-wide high-resolution sheet grows type from its 1080p size by
 * min(vw / 1920, vh / 1080), each role capped. Only the roles present in
 * these documents are reproduced. --hi is that ratio expressed in px.     */

@media (min-width: 1921px) and (min-height: 1081px) {
  :root {
    --hi: min(calc(100vw / 1920), calc(100vh / 1080));
  }

  .modal .eyebrow,
  .modal .footer-kicker { font-size: clamp(9px, calc(9 * var(--hi)), 13.95px); }
  .modal .stage strong { font-size: clamp(22px, calc(22 * var(--hi)), 33px); }
  .modal .enquire { font-size: clamp(10px, calc(10 * var(--hi)), 15.5px); }
  .modal .section-meta,
  .modal .handoff strong,
  .modal .stage { font-size: clamp(8px, calc(8 * var(--hi)), 12.4px); }
  .modal .handoff span { font-size: clamp(11px, calc(11 * var(--hi)), 17.05px); }
  .modal .image-caption { font-size: clamp(25px, calc(25 * var(--hi)), 37.5px); }
  .modal .image-caption span { font-size: clamp(8px, calc(8 * var(--hi)), 12.4px); }
}
