/* Original artwork and portal composition from the owner's dream-unity/one.
   Labels are live HTML. The matching paper captions cover the raster labels. */
:root { --paper: #ebe4d5; --ink: #302b23; color-scheme: light; }
body { background: #ebe4d5 url("../assets/parchment-texture.svg") repeat; background-size: 268px 268px; }
body::before, body::after { display: none; }
body[data-view="journey"] .site-header,
body[data-view="journey"] .site-footer,
body[data-view="journey"] .skip-link { display: none; }
#view-journey { max-width: none; padding: 0; }
.portal-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; min-height: 100svh; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) max(12px, env(safe-area-inset-bottom, 0px)) env(safe-area-inset-left, 0px); }
.portal-artwork { position: relative; isolation: isolate; pointer-events: none; container-type: inline-size; flex: none; width: min(100%, calc(100vh - 172px), 1254px); width: min(100%, calc(100svh - 172px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)), 1254px); aspect-ratio: 1; }
.portal-image { display: block; width: 100%; height: auto; aspect-ratio: 1; user-select: none; pointer-events: none; -webkit-mask-image: linear-gradient(to right, transparent, #000 2%, #000 98%, transparent); mask-image: linear-gradient(to right, transparent, #000 2%, #000 98%, transparent); }
.portal-title { position: absolute; left: 50%; top: 6.060606%; transform: translate(-50%, -50%); z-index: 3; width: max-content; margin: 0; padding-left: .3em; color: #2b271f; font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; font-size: clamp(10px, 1.65cqw, 22px); font-weight: 600; line-height: 1.2; letter-spacing: .3em; text-shadow: 0 1px 0 rgb(255 253 243 / 65%); text-transform: uppercase; white-space: nowrap; }
.portal-title::before, .portal-title::after { content: ""; position: absolute; top: 50%; width: 2em; height: 1px; background: linear-gradient(to right, transparent, #8b795c); }
.portal-title::before { right: calc(100% + .85em); }
.portal-title::after { left: calc(100% + .85em); transform: rotate(180deg); }
.portal { position: absolute; left: var(--x); top: var(--y); width: var(--diameter); height: var(--diameter); min-width: 44px; min-height: 44px; transform: translate(-50%, -50%); border-radius: 50%; clip-path: circle(50%); background: transparent; }
.portal-card { margin: 0; padding: 0; border: 0; color: inherit; font: inherit; text-decoration: none; pointer-events: none; }
.portal--machine { --x: 28.229665%; --y: 50%; --diameter: 20.414673%; z-index: 2; }
.portal--unity { --x: 49.920255%; --y: 48.165869%; --diameter: 29.665072%; z-index: 2; }
.portal--maker { --x: 71.69059%; --y: 50%; --diameter: 20.414673%; z-index: 2; }
/* The lower portal shares the centre ring's axis and clears its lower rim.
   Its smaller footprint leaves more paper between it and the outer ink band. */
.portal--world { --x: 49.920255%; --y: 74%; --diameter: 17%; z-index: 2; }
.portal-caption { position: absolute; left: 50%; top: 50%; display: grid; place-content: center; width: 50.78125%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: #ebe4d5 url("../assets/parchment-texture.svg") repeat; background-size: 21.37161cqw 21.37161cqw; color: #302b23; font-size: clamp(11px, 2.05cqw, 26px); line-height: 1.15; text-align: center; pointer-events: none; }
.portal--unity .portal-caption { top: 56.182796%; width: 56.989247%; font-size: clamp(11px, 2.5cqw, 32px); }
.portal--world .portal-caption { width: 61%; font-size: clamp(11px, 2.05cqw, 26px); }
.unity-ink-ring { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; user-select: none; }
.ink-cross { rotate: 90deg; }
.unity-guide-ring { position: absolute; inset: 3%; border: 1px solid #71634e; border-radius: 50%; opacity: .7; }
/* Static ink bridges share the artwork's coordinate system. Their mirrored
   pen strokes and two arrowheads stay crisp without adding animation work. */
.portal-connections { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; color: #4b4234; pointer-events: none; }
.bridge-wash { stroke-width: 11; opacity: .12; }
.bridge-rail { stroke-width: 1.35; opacity: .65; }
.bridge-sketch { stroke-width: .85; opacity: .44; }
.bridge-hatching { stroke-width: .9; opacity: .55; }
.bridge-spine { stroke-width: 2.4; opacity: .94; }
.bridge-arrow { fill: currentColor; stroke: none; }
.bridge-arrow-etch { fill: none; stroke: #e4dccb; stroke-width: .85; opacity: .8; }
/* Reuse the original fourteen shape cards as the only homepage navigation. */
.portal-page > .stage-path { flex: none; width: min(calc(100% - 32px), 1440px); }
.portal-page .stage-tile { text-align: center; }
/* The ink occupies about 72% of the SVG viewBox. Size the box generously
   enough for the visible shape, and cap it to the card on narrow screens. */
.portal-page .stage-tile .stage-icon { flex: none; width: min(120px, 100%); height: auto; aspect-ratio: 1; }
.portal-page .stage-tile .stage-icon svg { width: 100%; height: 100%; }
.portal-page .stage-tile:focus-visible { outline: 2px solid #4c3c28; outline-offset: 3px; }
@media (max-width: 1100px) { .portal-page .stage-tile .stage-icon { width: min(96px, 100%); } }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 420px) { .portal--machine .portal-caption, .portal--maker .portal-caption { width: 64%; } .portal--world .portal-caption { width: 67%; } .portal-title { letter-spacing: .2em; padding-left: .2em; } }

/* The longer project name fits the original centre medallion. */
.portal--unity .portal-caption > span { max-width: 100%; }
@media (max-width: 600px) {
  .portal--unity .portal-caption { font-size: clamp(10px, 2.7cqw, 16px); }
  .portal-title { font-size: clamp(8px, 1.65cqw, 12px); letter-spacing: .18em; }
}
@media (max-height: 480px) and (min-width: 601px) {
  .portal-page { padding-bottom: 6px; }
  .portal-artwork { width: min(100%, calc(100svh - 122px)); }
  .portal-caption { font-size: 9px; }
  .portal--unity .portal-caption { font-size: 9px; }
  .portal--world .portal-caption { font-size: 9px; }
  .portal-title { font-size: 7px; letter-spacing: .15em; }
}
@media print { .portal-page { min-height: auto; break-inside: avoid; } .portal-artwork { width: 400px; } }

@media (prefers-reduced-motion: reduce) { .portal-page .stage-tile { transition: none; } }
@media (forced-colors: active) {
  .portal-page .stage-tile { border-color: LinkText; color: LinkText; }
  .portal-page .stage-tile:focus-visible { outline-color: Highlight; }
  .portal-caption { background: Canvas; color: CanvasText; }
}
