/* ==========================================================================
   Page openers — NDI Defence Institute inner pages (sections/di-page-intro.php).

   Loaded after inner-di.css on every redesigned inner page (includes/header.php).
   The home hero is the reference: deep navy, soft light from the upper
   right, one diagonal beam, an engraved bearing ring that turns very slowly,
   display type at the home page's scale with masked line reveals, and a
   graduated gold rule on the lower edge. Each page then brings its own
   right-hand composition (the po-* visual pieces below), so About, SSB,
   Downloads and the rest do not open alike.

   Motion: transform and opacity only. The ring turns only while on screen
   ([data-scene] → .is-paused, 3d-effects.js) and not at all under reduced
   motion. Without JavaScript every reveal is already resolved
   (animations.css, @media (scripting: none)).
   ========================================================================== */

/* --- 1. Frame --------------------------------------------------------------- */
.po {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(4.5rem + clamp(2.25rem, 4.5vw, 4rem));
  padding-bottom: clamp(3.75rem, 7vw, 6.5rem);
  background:
    radial-gradient(55% 60% at 80% 22%, rgb(34 70 120 / 0.55), transparent 70%),
    radial-gradient(40% 50% at 8% 100%, rgb(214 174 87 / 0.07), transparent 70%),
    linear-gradient(180deg, #050f22 0%, #08172f 55%, #0b1d38 100%);
  color: #fff;
}
@media (min-width: 1024px) {
  .shell-header.has-utility ~ main .po { padding-top: calc(6.75rem + clamp(2.25rem, 4.5vw, 4rem)); }
}
.po-atmos { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.po-beam {
  position: absolute;
  top: -20%;
  left: 54%;
  width: 1px;
  height: 160%;
  background: linear-gradient(180deg, transparent, rgb(234 211 157 / 0.35) 45%, transparent);
  transform: rotate(24deg);
  transform-origin: top center;
}
.po-glow {
  position: absolute;
  right: -10%;
  top: -30%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(70 118 182 / 0.18), transparent 62%);
}

/* The bearing ring: large, off the right edge, quiet. */
.po-dial {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: max(-18rem, -16vw);
  width: min(58rem, 70vw);
  aspect-ratio: 1;
  transform: translateY(-46%);
  pointer-events: none;
  opacity: 0.6;
  -webkit-mask-image: radial-gradient(circle at 40% 50%, #000 40%, transparent 72%);
  mask-image: radial-gradient(circle at 40% 50%, #000 40%, transparent 72%);
}
.po-instrument { display: block; width: 100%; height: 100%; overflow: visible; }
.po-ring { fill: none; stroke: rgb(199 208 222 / 0.16); stroke-width: 1; }
.po-ring--gold { stroke: rgb(214 174 87 / 0.32); }
.po-ring--faint { stroke: rgb(199 208 222 / 0.08); stroke-dasharray: 2 6; }
.po-ticks line { stroke: rgb(199 208 222 / 0.22); stroke-width: 1; }
.po-ticks .po-tick-major { stroke: rgb(214 174 87 / 0.55); stroke-width: 1.4; }
.po-bearings text { fill: rgb(199 208 222 / 0.38); font: 600 11px/1 var(--font-sans); letter-spacing: 0.12em; text-anchor: middle; }
.po-cross { stroke: rgb(214 174 87 / 0.25); stroke-width: 1; }
.po-spin { transform-origin: 300px 300px; animation: po-turn 240s linear infinite; }
.po.is-paused .po-spin { animation-play-state: paused; }
@keyframes po-turn { to { transform: rotate(360deg); } }

/* The graduated rule along the foot of the opener. */
.po-rule {
  position: absolute;
  inset: auto 0 0;
  height: 10px;
  background:
    linear-gradient(90deg, transparent, rgb(214 174 87 / 0.55) 18%, rgb(214 174 87 / 0.55) 82%, transparent) bottom / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, rgb(214 174 87 / 0.4) 0 1px, transparent 1px 22px) bottom / 100% 6px no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

.po-inner { position: relative; }
.po-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); margin-top: clamp(2.25rem, 4.5vw, 4rem); align-items: center; }
@media (min-width: 1024px) {
  .po-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(3rem, 5vw, 5.5rem); }
  .po-grid--solo { grid-template-columns: minmax(0, 1fr); max-width: 64rem; }
}

/* --- 2. Words ---------------------------------------------------------------- */
.po-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-ndi-gold-400);
}
.po-eyebrow-rule { flex: none; width: 2.5rem; height: 2px; background: var(--color-ndi-gold-500); }
.po-title {
  max-width: 15ch;
  margin: 1.35rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.55rem, 1.25rem + 4.4vw, 5.2rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 10px 40px rgb(0 0 0 / 0.3);
}
.po-grid--solo .po-title { max-width: 18ch; }
.po-line { display: block; overflow: hidden; padding-bottom: 0.07em; }
.po-line > span { display: block; }
.po-gold > span {
  background: linear-gradient(180deg, #f6dc98 0%, #e2b964 45%, #c8973f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.po-lead { max-width: 40rem; margin: 1.6rem 0 0; font-size: clamp(1.04rem, 0.96rem + 0.35vw, 1.22rem); line-height: 1.7; color: var(--color-ndi-mist); }
.po-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* Calls to action (po_button()): the home hero's gold and outline pair. */
.po-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3.2rem;
  padding: 0 1.75rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 260ms ease, background-color 180ms ease;
}
.po-btn svg { transition: transform 180ms ease; }
.po-btn:hover { transform: translateY(-2px); }
.po-btn:hover svg { transform: translateX(3px); }
.po-btn--gold { background: linear-gradient(135deg, #f1d38c, var(--color-ndi-gold-500) 55%, #bf9440); color: var(--color-ndi-navy-950); box-shadow: 0 14px 30px -12px rgb(214 174 87 / 0.8), inset 0 1px 0 rgb(255 255 255 / 0.45); }
.po-btn--line { border: 1.5px solid rgb(214 174 87 / 0.8); color: #fff; background: rgb(8 23 47 / 0.35); }
.po-btn--line:hover { background: rgb(214 174 87 / 0.1); }
.po-btn:focus-visible { outline: 2px solid var(--color-ndi-gold-300); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .po-btn, .po-btn svg { transition: none; } .po-btn:hover, .po-btn:hover svg { transform: none; } }

/* Key facts along the foot. */
.po-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 0;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  border-top: 1px solid rgb(214 174 87 / 0.35);
}
.po-facts > div { padding: 1.15rem 1.5rem 0 0; }
.po-facts > div + div { padding-left: 1.5rem; border-left: 1px solid rgb(199 208 222 / 0.12); }
.po-facts dt { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-ndi-steel-300); }
.po-facts dd { margin: 0.4rem 0 0; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; line-height: 1.35; color: #fff; }
@media (max-width: 639px) {
  .po-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .po-facts > div, .po-facts > div + div { padding: 1rem 0.75rem 0 0; border-left: 0; }
}

/* An "At a glance" register on the right (older pages): a panel with depth. */
.po-side .da-glance {
  padding: 1.5rem 1.6rem 0.4rem;
  border: 1px solid rgb(199 208 222 / 0.14);
  border-top: 2px solid var(--color-ndi-gold-500);
  border-radius: 4px 4px 14px 14px;
  background: linear-gradient(180deg, rgb(16 39 70 / 0.82), rgb(8 23 47 / 0.6));
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.7), inset 0 1px 0 rgb(255 255 255 / 0.04);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.po-side .da-glance dl > div:last-child { border-bottom: 0; }

/* --- 3. Visual pieces (each page composes its own) --------------------------- */

/* Framed photograph with a gold corner and a caption tab. */
.po-frame { position: relative; margin: 0; }
.po-frame-img {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: var(--po-ratio, 4 / 5);
  background: #0b1d38;
  box-shadow: 0 40px 80px -36px rgb(0 0 0 / 0.85), 0 0 0 1px rgb(199 208 222 / 0.12);
}
.po-frame-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.po-frame-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgb(5 15 34 / 0.55)); }
.po-frame::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -14px;
  right: -14px;
  width: 4.5rem;
  height: 4.5rem;
  border-top: 2px solid var(--color-ndi-gold-500);
  border-right: 2px solid var(--color-ndi-gold-500);
  border-radius: 0 16px 0 0;
}
.po-tab {
  position: absolute;
  z-index: 2;
  left: -1.25rem;
  bottom: 1.5rem;
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1.15rem;
  border: 1px solid rgb(214 174 87 / 0.35);
  border-radius: 10px;
  background: rgb(8 23 47 / 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 40px -22px rgb(0 0 0 / 0.8);
}
.po-tab-k { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-ndi-gold-400); }
.po-tab-v { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: #fff; }

/* Layered photo stack (About). */
.po-stack { position: relative; aspect-ratio: 1 / 1; max-width: 34rem; margin-inline: auto; }
.po-stack .po-frame { position: absolute; }
.po-stack .po-frame--main { inset: 0 14% 18% 0; --po-ratio: auto; }
.po-stack .po-frame--main .po-frame-img { height: 100%; }
.po-stack .po-frame--inset { right: 0; bottom: 0; width: 46%; --po-ratio: 4 / 5; }
.po-stack .po-frame--inset::before { display: none; }
.po-stack .po-frame--inset .po-frame-img { border: 6px solid #08172f; }
.po-stack-badge {
  position: absolute;
  z-index: 3;
  left: 6%;
  bottom: 6%;
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #fff, #e8edf4);
  box-shadow: 0 0 0 6px rgb(8 23 47 / 0.9), 0 0 0 7px rgb(214 174 87 / 0.6), 0 24px 40px -18px rgb(0 0 0 / 0.8);
}
.po-stack-badge img { width: 78%; height: auto; }

/* Mosaic of course photographs (Programmes). */
.po-mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(4.5rem, 7vw, 6.5rem); gap: 0.75rem; transform: perspective(1400px) rotateY(-9deg) rotateX(4deg); transform-style: preserve-3d; }
.po-mosaic-tile { position: relative; overflow: hidden; margin: 0; border-radius: 12px; background: #0b1d38; box-shadow: 0 26px 50px -30px rgb(0 0 0 / 0.9), 0 0 0 1px rgb(199 208 222 / 0.12); }
.po-mosaic-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.po-mosaic-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgb(5 15 34 / 0.8)); }
.po-mosaic-tile figcaption { position: absolute; z-index: 1; left: 0.75rem; bottom: 0.6rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; color: #fff; }
.po-mosaic-tile:nth-child(1) { grid-column: 1 / 5; grid-row: span 2; }
.po-mosaic-tile:nth-child(2) { grid-column: 5 / 7; grid-row: span 2; }
.po-mosaic-tile:nth-child(3) { grid-column: 1 / 3; grid-row: span 2; }
.po-mosaic-tile:nth-child(4) { grid-column: 3 / 7; grid-row: span 2; }
.po-mosaic-note {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ndi-steel-300);
}

/* A route of waypoints (SSB, admissions). */
.po-route { position: relative; margin: 0; padding: 0; list-style: none; counter-reset: po; }
.po-route::before { content: ""; position: absolute; left: 1.15rem; top: 1rem; bottom: 1rem; width: 1px; background: linear-gradient(180deg, var(--color-ndi-gold-500), rgb(214 174 87 / 0.15)); }
.po-route li {
  position: relative;
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 0.7rem 0;
}
.po-route-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid rgb(214 174 87 / 0.6);
  border-radius: 50%;
  background: #08172f;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-ndi-gold-300);
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 5px rgb(8 23 47 / 0.9);
}
.po-route li:first-child .po-route-dot { background: var(--color-ndi-gold-500); color: #08172f; }
.po-route-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: #fff; }
.po-route-meta { display: block; margin-top: 0.15rem; font-size: 0.82rem; color: var(--color-ndi-steel-300); }
.po-route-panel {
  padding: 1.5rem 1.6rem;
  border: 1px solid rgb(199 208 222 / 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, rgb(16 39 70 / 0.78), rgb(8 23 47 / 0.55));
  box-shadow: 0 30px 60px -32px rgb(0 0 0 / 0.75);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
/* A linked route item (SSB stages, quizzes). */
.ss-route-link { display: block; color: inherit; text-decoration: none; border-radius: 6px; }
.ss-route-link:hover .po-route-name { color: var(--color-ndi-gold-300); }
.ss-route-link:focus-visible { outline: 2px solid var(--color-ndi-gold-400); outline-offset: 4px; }
.po-panel-k { margin: 0 0 0.75rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-ndi-gold-400); }

/* Staggered portraits (Faculty). */
.po-portraits { display: flex; justify-content: center; align-items: flex-end; gap: clamp(0.6rem, 1.2vw, 1rem); }
.po-portrait { position: relative; flex: 1 1 0; max-width: 11rem; margin: 0; }
.po-portrait:nth-child(2) { transform: translateY(-2.25rem); }
.po-portrait:nth-child(4) { transform: translateY(-1.25rem); }
.po-portrait .po-frame-img { --po-ratio: 3 / 4; border-radius: 999px 999px 14px 14px; }
.po-portrait figcaption { margin-top: 0.7rem; font-size: 0.78rem; line-height: 1.35; color: var(--color-ndi-mist); text-align: center; }
.po-portrait figcaption b { display: block; font-family: var(--font-display); font-size: 0.86rem; color: #fff; }

/* Ruled ledger (Results). */
.po-ledger {
  position: relative;
  padding: 1.75rem 1.75rem 1.25rem;
  border: 1px solid rgb(199 208 222 / 0.14);
  border-radius: 6px;
  background:
    repeating-linear-gradient(180deg, transparent 0 2.4rem, rgb(199 208 222 / 0.08) 2.4rem calc(2.4rem + 1px)),
    linear-gradient(180deg, rgb(16 39 70 / 0.7), rgb(8 23 47 / 0.5));
  box-shadow: 0 30px 60px -32px rgb(0 0 0 / 0.75);
}
.po-ledger::before { content: ""; position: absolute; top: 0; bottom: 0; left: 3.25rem; width: 1px; background: rgb(214 174 87 / 0.35); }
.po-ledger ol { margin: 0; padding: 0; list-style: none; }
.po-ledger li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 1.25rem; padding: 0.55rem 0; font-size: 0.95rem; line-height: 1.5; color: var(--color-ndi-mist); }
.po-ledger li b { font-family: var(--font-display); font-size: 0.82rem; color: var(--color-ndi-gold-300); font-variant-numeric: tabular-nums; }
.po-seal {
  position: absolute;
  right: -1rem;
  top: -1.4rem;
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  border: 1px dashed rgb(214 174 87 / 0.7);
  border-radius: 50%;
  background: #08172f;
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  color: var(--color-ndi-gold-300);
  transform: rotate(-10deg);
}

/* Linework glyph with topic links (FAQ). */
.po-glyph { position: relative; display: grid; gap: 1.25rem; justify-items: center; }
.po-glyph-mark { width: clamp(9rem, 16vw, 13rem); height: auto; }
.po-glyph-mark path, .po-glyph-mark circle { fill: none; stroke: var(--color-ndi-gold-500); stroke-width: 3; stroke-linecap: round; }
.po-glyph-mark .po-glyph-faint { stroke: rgb(199 208 222 / 0.2); stroke-width: 1; }
.po-topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.po-topics a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgb(199 208 222 / 0.22);
  border-radius: 999px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease;
}
.po-topics a:hover { border-color: var(--color-ndi-gold-500); background: rgb(214 174 87 / 0.1); }
.po-topics a:focus-visible { outline: 2px solid var(--color-ndi-gold-400); outline-offset: 3px; }

/* Document sheets (Downloads). */
.po-sheets { position: relative; height: clamp(17rem, 28vw, 22rem); max-width: 26rem; margin-inline: auto; }
.po-sheet {
  position: absolute;
  inset: 0 16% 8% 16%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.4rem 1.4rem 1.2rem;
  border-radius: 10px;
  background: linear-gradient(180deg, #fdfdfb, #eef2f7);
  color: #08172f;
  box-shadow: 0 30px 50px -28px rgb(0 0 0 / 0.85);
}
.po-sheet:nth-child(1) { transform: translate(-22%, 6%) rotate(-9deg); opacity: 0.55; }
.po-sheet:nth-child(2) { transform: translate(18%, 2%) rotate(7deg); opacity: 0.75; }
.po-sheet:nth-child(3) { transform: none; }
.po-sheet-k { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-ndi-gold-700); }
.po-sheet-t { margin: 0.6rem 0 0; font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; line-height: 1.2; }
.po-sheet-lines { display: grid; gap: 0.5rem; margin-top: 1.1rem; }
.po-sheet-lines span { height: 6px; border-radius: 3px; background: #dde3ec; }
.po-sheet-lines span:nth-child(2) { width: 82%; }
.po-sheet-lines span:nth-child(3) { width: 64%; }
.po-sheet-foot { display: flex; justify-content: space-between; align-items: center; font-size: 0.72rem; font-weight: 700; color: #43536b; }
.po-sheet-badge { padding: 0.25rem 0.55rem; border-radius: 6px; background: #08172f; color: #fff; letter-spacing: 0.08em; }

/* Filmstrip of photographs (Gallery). */
.po-strip { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 0.75rem; aspect-ratio: 5 / 4; }
.po-strip .po-frame:first-child { grid-row: span 2; }
.po-strip .po-frame::before { display: none; }
.po-strip .po-frame-img { --po-ratio: auto; height: 100%; border-radius: 14px; }
.po-strip .po-frame { height: 100%; }
/* Two photographs: side by side, one row; one: a single framed photograph. */
.po-strip:has(> .po-frame:nth-child(2):last-child) { grid-template-columns: 1.15fr 1fr; grid-template-rows: minmax(0, 1fr); aspect-ratio: 16 / 11; }
.po-strip:has(> .po-frame:only-child) { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); aspect-ratio: 4 / 3; }
.po-strip:has(> .po-frame:nth-child(2):last-child) .po-frame:last-child { margin-top: 2.5rem; }

/* Contact card (Contact). */
.po-card {
  position: relative;
  padding: 1.75rem;
  border: 1px solid rgb(199 208 222 / 0.14);
  border-radius: 18px;
  background: linear-gradient(160deg, rgb(20 46 84 / 0.92), rgb(8 23 47 / 0.75));
  box-shadow: 0 40px 70px -36px rgb(0 0 0 / 0.85), inset 0 1px 0 rgb(255 255 255 / 0.05);
}
.po-card dl { margin: 0; }
.po-card dl > div { position: relative; min-height: 2.5rem; padding: 0.95rem 0 0.95rem 3.5rem; border-bottom: 1px solid rgb(199 208 222 / 0.1); }
.po-card dl > div:last-child { border-bottom: 0; padding-bottom: 0.2rem; }
.po-card-ico { position: absolute; left: 0; top: 0.95rem; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 10px; background: rgb(214 174 87 / 0.12); color: var(--color-ndi-gold-400); }
.po-card dt { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-ndi-steel-300); }
.po-card dd { margin: 0.3rem 0 0; font-size: 0.98rem; line-height: 1.55; color: #fff; overflow-wrap: anywhere; }
.po-card dd a { color: #fff; text-decoration: none; border-bottom: 1px solid rgb(214 174 87 / 0.5); }
.po-card dd a:hover { border-bottom-color: var(--color-ndi-gold-400); }
.po-card dd a:focus-visible { outline: 2px solid var(--color-ndi-gold-400); outline-offset: 3px; border-radius: 2px; }

/* --- 4. Variants ------------------------------------------------------------- */
.po--utility, .po--plain { padding-bottom: clamp(3rem, 6vw, 5rem); }
.po--utility .po-dial { opacity: 0.35; }
.po--ledger .po-dial, .po--ledger .po-beam { opacity: 0.25; }
.po--masthead .po-title { max-width: 20ch; }
.po--exhibition .po-dial { opacity: 0.3; }
.po--dossier .po-frame-img { --po-ratio: 4 / 3; }

/* --- 5. Small screens ---------------------------------------------------------- */
@media (max-width: 1023px) {
  .po-dial { top: 1rem; right: -40%; width: 110vw; transform: none; opacity: 0.35; }
  .po-side { max-width: 36rem; }
  .po-mosaic { transform: none; }
  .po-portrait:nth-child(n) { transform: none; }
}
@media (max-width: 639px) {
  .po { padding-top: calc(4.5rem + 2.25rem); }
  .po-title { font-size: clamp(2.3rem, 1.1rem + 6.6vw, 3.1rem); line-height: 1.02; }
  .po-actions > * { flex: 1 1 100%; justify-content: center; }
  .po-stack { aspect-ratio: 5 / 4; }
  .po-stack .po-frame--main { inset: 0 18% 12% 0; }
  .po-stack-badge { width: 4.25rem; height: 4.25rem; }
  .po-tab { left: 0.75rem; bottom: 0.75rem; }
  .po-frame::before { top: -8px; right: -8px; width: 3rem; height: 3rem; }
  .po-mosaic { grid-auto-rows: 4.5rem; gap: 0.5rem; }
  .po-portraits { justify-content: flex-start; overflow-x: auto; padding-bottom: 0.5rem; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .po-portraits::-webkit-scrollbar { display: none; }
  .po-portrait { flex: 0 0 40%; scroll-snap-align: start; }
  .po-sheets { height: 15rem; }
  .po-seal { right: 0.25rem; top: -2rem; width: 4.75rem; height: 4.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .po-spin { animation: none; }
  .po-mosaic { transform: none; }
}
