/* These rules are scoped to the entrance. The public CV's layout is the layout
   of the opened page, including its mobile ordering and fixed site bar. */
#portfolio-entry { display: none; }
html.resume-wait { overflow: hidden !important; }
html.resume-wait body {
  perspective: none !important; background: #b86b1e !important;
}
.resume-wait body > :is(.menu-bar,.container,#sphere-background,#vanta-background) { visibility: hidden !important; pointer-events: none !important; }
.resume-wait:not(.resume-prepared) body > :is(.menu-bar,.container) { display: none !important; }
html.resume-wait.resume-prepared body {background:var(--cv-page-paper) !important;}
html.resume-wait.resume-prepared body > :is(.menu-bar,.container) {
  visibility:visible !important;z-index:0 !important;pointer-events:none !important;
}
/* The linked CV uses transition:all on its reading and hover surfaces. When
   the gate opens, play only the deliberate entrance tracks on those nodes. */
html.resume-journey:is(.resume-wait,.resume-entering) body :is(.container,.menu-bar,.container *,.menu-bar *) {
  transition:none !important; animation:none !important;
}
html.resume-entering :is(.container,.left-column,.right-column) {
  transform-style:flat !important;will-change:auto !important;
}
html.resume-entering .container *,html.resume-entering .menu-bar {
  backdrop-filter:none !important;-webkit-backdrop-filter:none !important;
}
html.resume-viewport-fold body > .container {
  max-height:calc(100dvh + 12px) !important;overflow:clip !important;
  contain:layout paint !important;transform:none !important;will-change:auto !important;
}
html.resume-viewport-fold .container > :is(.left-column,.right-column) {
  min-height:0 !important;max-height:calc(100dvh + 12px) !important;
  overflow:visible !important;align-self:start;transform:none !important;
}
html.resume-journey [data-cv-below-fold] {
  content-visibility:auto;contain-intrinsic-block-size:auto var(--cv-reserved-height);
}
html.resume-open :where([data-arrival-pending],[data-arrival-pending] *) {
  animation-play-state:paused !important; transition:none !important;
}
.resume-wait #portfolio-entry,.resume-entering #portfolio-entry {
  display: block; position: fixed; inset: 0 auto auto 0; width: 100vw; height: 100vh; height: 100dvh;
  z-index: 100005; overflow: hidden; isolation: isolate;
}
:is(.resume-wait,.resume-entering) #portfolio-entry { background:var(--threshold-paper) #b86b1e; }
.resume-entering body { perspective: none !important; }
.resume-entering #portfolio-entry { pointer-events: none; }
.resume-iris-paper {
  position:fixed;inset:0;z-index:100005;pointer-events:none;background-repeat:no-repeat;
  clip-path:circle(0 at 50% 50%);will-change:clip-path;contain:strict;
}
/* The game paper alone is cut by the circle. Rings, portrait and unfolding
   content each draw in their own layer and can cross that edge. */
html.resume-entering #sphere-background {z-index:100006 !important;visibility:hidden !important;}
html.resume-entering.resume-field-live #sphere-background {visibility:visible !important;}
html.resume-entering .container {
  position:relative;z-index:100008;contain:none;overflow:visible;transform:none;animation:none;transition:none;
}
html.resume-entering .left-column,html.resume-entering .right-column {overflow:visible;box-shadow:none;transform:none;transition:none;}
html.resume-entering [data-fold-waiting] {opacity:0 !important;pointer-events:none !important;}
html.resume-entering .menu-bar {
  /* The bar's three leaves pass behind the travelling portrait on a narrow screen. */
  z-index:100007 !important;background:transparent !important;box-shadow:none;backdrop-filter:none;
}
html.resume-entering .section,html.resume-entering .social-icons {
  background:transparent !important;box-shadow:none;backdrop-filter:none;animation:none;transition:none;
}
html.resume-entering .section::before,html.resume-entering .social-icons::before {
  content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;
  background:rgba(255,255,255,.85);opacity:0;transform:scaleY(.22);transform-origin:50% 5%;
  transition:opacity 430ms ease,transform 510ms cubic-bezier(.22,.61,.32,1);
}
html.resume-entering.resume-paper-ready .section::before,
html.resume-entering.resume-paper-ready .social-icons::before {opacity:1;transform:none;}
.resume-entering #portfolio-entry.aperture-open:not(.aperture-clip) {
  --aperture: radial-gradient(circle at var(--aperture-x) var(--aperture-y),
    transparent max(0px, calc(var(--aperture-radius) - .75px)), black calc(var(--aperture-radius) + .75px));
  -webkit-mask-image: var(--aperture);
  mask-image: var(--aperture);
}
/* The cut edge is part of the game layer, so it also prints when WebGL is unavailable. */
.resume-entering #portfolio-entry.aperture-open:not(.aperture-ink)::after {
  content:"";position:absolute;z-index:5;pointer-events:none;border-radius:50%;
  left:var(--aperture-x);top:var(--aperture-y);transform:translate3d(-50%,-50%,0);
  width:calc(2 * var(--aperture-radius) + 3px);height:calc(2 * var(--aperture-radius) + 3px);
  box-sizing:border-box;border:1.5px solid #9b4dca;box-shadow:0 0 0 1px #fff0d4;
  outline:1px solid #2ecc7180;outline-offset:4px;
}
#portfolio-entry .quiet-trigger {
  position: absolute; inset: 0; z-index: 4; display: block; margin: auto; padding: 0;
  width: clamp(48px,10vmin,76px); height: clamp(48px,10vmin,76px); border-radius: 50%;
  border: 0; background: transparent; color: #9b4dca; text-decoration: none; cursor: pointer;
  transform: none; transition: none; outline: 0; touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
#portfolio-entry .quiet-trigger::after { content: none; }
#portfolio-entry .quiet-trigger img { position:absolute; inset:50% auto auto 50%; translate:-50% -50%; margin:0; }
#portfolio-entry .creature-pad,#portfolio-entry .creature-stage,#portfolio-entry .creature-embroidery {
  position:absolute;inset:0;width:100%;height:100%;box-sizing:border-box;
}
.creature-stage {border:0;z-index:0;pointer-events:none;background:transparent;}
.creature-pad {z-index:1;touch-action:none;user-select:none;-webkit-tap-highlight-color:transparent;}
.creature-instructions {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
.creature-embroidery {
  z-index:2;pointer-events:none;opacity:0;
  border:clamp(18px,3.2vmin,27px) solid transparent;
  transition:opacity 850ms ease;
}
.creature-awake .creature-embroidery {
  border-image:url('/home/motion/matyo-game-border.png') 96 / 1 / 0 round;
  opacity:1;
}
.resume-entering .creature-pad {display:none;}
#portfolio-entry .quiet-trigger:focus-visible img {outline:2px dashed #9b4dca;outline-offset:7px;border-radius:50%;}
.resume-press-canvas {position:fixed;inset:0 auto auto 0;width:100vw;height:100vh;height:100dvh;pointer-events:none;z-index:100009;}
[data-arrival-pending] {opacity:0;}
[data-arrival-pending]:focus-within {opacity:1;}

.left-column > .has-work-notes {margin-bottom:.18rem;}
.left-column > .work-notes {
  width:100%;box-sizing:border-box;margin:0 0 1.6rem;padding:0 .25rem;color:#422d49;
  text-shadow:0 0 3px #f5f7fa,0 1px 1px #f5f7fa;
}
.work-notes summary {width:fit-content;cursor:pointer;font-family:inherit;font-size:.86rem;font-weight:650;line-height:1.5;padding:.36rem .15rem;}
.work-notes summary::marker {color:#9b4dca;font-size:.85em;}
.work-related-links {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 8px;margin:.2rem 0 .6rem;}
.work-related-links a {
  color:#44284f;text-decoration:underline;text-underline-offset:3px;padding:.38rem .1rem;
  border-top:1px solid #9b4dca88;font-size:.86rem;line-height:1.3;overflow-wrap:anywhere;
}
.work-notes :focus-visible {outline:2px solid #9b4dca;outline-offset:2px;}
@media (pointer:coarse) {
  .work-related-links a,.work-notes summary {min-height:40px;display:flex;align-items:center;box-sizing:border-box;}
  .work-notes summary {display:list-item;align-content:center;}
}
@media (prefers-reduced-motion: reduce), print {
  [data-arrival-pending] {opacity:1 !important;}
  .resume-press-canvas {display:none;}
}
@media print {
  html.resume-journey [data-cv-below-fold] {content-visibility:visible !important;contain-intrinsic-size:none;}
  html.resume-wait,html.resume-wait body { height: auto; overflow: visible !important; }
  html.resume-wait body { background: white !important; }
  html #portfolio-entry { display: none !important; }
  html.resume-wait body > .container { display: grid !important; visibility: visible !important; }
}
