/* pramodnm.com inside a Perspectives experience: the few shared pieces that keep a visitor in the site's world —
   a frosted "Perspectives" pill to step back, the site's page-change fade with its faint stroke emblem, and an ending band
   in the site's own colours (next perspective, Perspectives, Contact, copyright). Each experience keeps its own design;
   everything here is namespaced (pnm-) so it never touches the experience's styles. */
@font-face { font-family: "PNM Archivo"; src: url("/assets/fonts/archivo-vf.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

.pnm-end, .pnm-back, .pnm-veil {
  --pnm-bg: #e1f3fb; --pnm-fg: #153240; --pnm-fg-2: #2c5d78; --pnm-accent: #23485e; --pnm-on-accent: #e1f3fb;
  --pnm-line: rgb(21 50 64 / .146); --pnm-glass: rgb(225 243 251 / .854); --pnm-rim: rgb(255 255 255 / .618);
  --pnm-emblem: .34;
  font-family: "PNM Archivo", "Helvetica Neue", Arial, sans-serif; box-sizing: border-box;
}
@media (prefers-color-scheme: dark) {
  .pnm-end, .pnm-back, .pnm-veil {
    --pnm-bg: #0c1b23; --pnm-fg: #e1f3fb; --pnm-fg-2: #99d7e9; --pnm-accent: #99d7e9; --pnm-on-accent: #0c1b23;
    --pnm-line: rgb(255 255 255 / .146); --pnm-glass: rgb(12 27 35 / .854); --pnm-rim: rgb(255 255 255 / .146);
    --pnm-emblem: .19;
  }
}
.pnm-end *, .pnm-back * { box-sizing: border-box; }
/* no experience scrolls sideways (a decorative element that pokes past the edge is simply cut) */
html:has(.pnm-end) { overflow-x: clip; }

/* step back: a frosted pill, bottom-right, out of the way of each experience's own top bar */
.pnm-back {
  position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 100;   /* under an experience's own menus and panels */
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 10px; border-radius: 999px;
  background: var(--pnm-glass); color: var(--pnm-fg); border: 1px solid var(--pnm-rim); text-decoration: none;
  font-size: 14px; font-weight: 500; letter-spacing: .02em; line-height: 1;
  -webkit-backdrop-filter: blur(13px) saturate(1.618); backdrop-filter: blur(13px) saturate(1.618);
  box-shadow: 0 5px 13px rgb(21 50 64 / .236);
  transition: opacity .382s cubic-bezier(.382, 0, .618, 1), transform .382s cubic-bezier(.382, 0, .618, 1);
}
.pnm-back img { width: 21px; height: 21px; }
.pnm-back:hover, .pnm-back:focus-visible { transform: translateY(-2px); }
.pnm-back:focus-visible { outline: 2px solid var(--pnm-accent); outline-offset: 3px; }
.pnm-back.pnm-hide { opacity: 0; pointer-events: none; transform: translateY(8px); }

/* the ending: the site's colours return, with its faint stroke emblem, before the visitor moves on */
.pnm-end {
  position: relative; overflow: hidden; isolation: isolate; clear: both;
  background: var(--pnm-bg); color: var(--pnm-fg);
  padding: 89px max(21px, env(safe-area-inset-right, 0px)) max(34px, env(safe-area-inset-bottom, 0px)) max(21px, env(safe-area-inset-left, 0px));
}
.pnm-end::before {
  content: ""; position: absolute; z-index: -1; width: min(61.8svh, 85.4vw); aspect-ratio: 1; right: calc(min(61.8svh, 85.4vw) * -.382); top: 50%;
  transform: translateY(-50%); background: url("/assets/brand/emblem-stroke-02.svg") center / contain no-repeat; opacity: var(--pnm-emblem);
}
.pnm-in { max-width: 1200px; margin: 0 auto; }
.pnm-eyebrow { margin: 0 0 21px; font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--pnm-fg-2); }
.pnm-next {
  display: inline; color: var(--pnm-fg-2); text-decoration: none;
  font-size: clamp(29.5px, 5.99vw, 86px); font-weight: 300; line-height: 1.04; letter-spacing: -.02em; text-wrap: balance;
}
.pnm-next .pnm-tail { white-space: nowrap; }
.pnm-next .pnm-arrow { display: inline-block; margin-left: .382em; transition: transform .618s cubic-bezier(.382, 1, .618, 1); }
.pnm-next:hover .pnm-arrow, .pnm-next:focus-visible .pnm-arrow { transform: translateX(13px); }
.pnm-next:focus-visible { outline: 2px solid var(--pnm-accent); outline-offset: 6px; border-radius: 8px; }
.pnm-row { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 55px; }
.pnm-pill {
  display: inline-flex; align-items: center; height: 38px; padding: 0 21px; border-radius: 999px; text-decoration: none;
  font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--pnm-fg); border: 1px solid var(--pnm-line); background: rgb(255 255 255 / .236);
}
.pnm-pill.pnm-solid { background: var(--pnm-accent); color: var(--pnm-on-accent); border-color: transparent; }
.pnm-pill:hover, .pnm-pill:focus-visible { transform: translateY(-2px); }
.pnm-pill:focus-visible { outline: 2px solid var(--pnm-accent); outline-offset: 3px; }
.pnm-foot { margin: 89px 0 0; padding-top: 21px; border-top: 1px solid var(--pnm-line); font-size: 13px; letter-spacing: .06em; color: var(--pnm-fg-2); }

/* the site's page-change fade: page colour with the faint stroke emblem, turning gently */
.pnm-veil {
  position: fixed; inset: 0; z-index: 2147483600; pointer-events: none; opacity: 0; background: var(--pnm-bg);
  transition: opacity .382s cubic-bezier(.382, 0, .618, 1);
}
.pnm-veil::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: min(61.8svh, 85.4vw); aspect-ratio: 1;
  background: url("/assets/brand/emblem-stroke-02.svg") center / contain no-repeat; opacity: var(--pnm-emblem);
  transform: translate(-50%, -50%) rotate(0deg); transition: transform .618s cubic-bezier(.382, 1, .618, 1);
}
.pnm-veil.pnm-on { opacity: 1; }
.pnm-veil.pnm-on::after { transform: translate(-50%, -50%) rotate(-21deg); }
@media (prefers-reduced-motion: reduce) { .pnm-veil, .pnm-veil::after, .pnm-back, .pnm-arrow { transition: none; } }
@media print { .pnm-back, .pnm-veil { display: none; } }
