/* ==========================================================================
   Scenes: the pinned, scroll-driven parts of the page.
   A .scene is a tall section; its .stage sticks to the screen while the scene's
   timeline plays. Scenes marked .is-over start two screens early, so they can
   dissolve in over the scene before them instead of pushing it away.
   ========================================================================== */
.scene{position:relative;height:calc((var(--len,3) + 1) * 100vh);height:calc((var(--len,3) + 1) * 100lvh);background:#0b090d}
.scene.is-over{margin-top:-200vh;margin-top:-200lvh;background:none;pointer-events:none}
.stage{position:sticky;top:0;height:100vh;height:100lvh;overflow:hidden;overflow:clip;visibility:hidden;contain:layout paint;background:#0b090d}
.stage.is-live{visibility:visible}
.scene.is-over .stage{opacity:0}                   /* its timeline fades it in over the scene before */
.scene.is-over .stage.is-live{pointer-events:auto}
/* Text and controls stay inside the part of the screen that is always visible on phones (address bar shown or not). */
.frame{position:absolute;left:0;right:0;top:0;height:100vh;height:100svh;pointer-events:none;transition:opacity .45s ease}
.frame > *{pointer-events:auto}
/* while one of the people is speaking, the narration steps back */
.stage.is-talking .frame{opacity:0}
.stage.is-talking .frame > *{pointer-events:none}

/* ---------- The board: a painting sized to cover the screen. Everything placed on it stays glued to the painting. ---------- */
.board{--bw:max(100vw,calc(100vh * var(--ar)));--bw:max(100vw,calc(100lvh * var(--ar)));--bh:calc(var(--bw) / var(--ar));
  position:absolute;width:var(--bw);height:var(--bh);
  left:calc((100vw - var(--bw)) * var(--fx,.5));top:calc((100vh - var(--bh)) * var(--fy,.5));top:calc((100lvh - var(--bh)) * var(--fy,.5));
  will-change:transform;transform-origin:50% 50%}
.board-img,.board-fore{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;user-select:none;-webkit-user-drag:none}
.board-fore{z-index:3;pointer-events:none}        /* parts of the painting that stand in front of the characters */
.board-shade{position:absolute;inset:0;z-index:4;pointer-events:none}

/* ---------- Characters standing in the paintings ---------- */
.fig{position:absolute;z-index:2;left:var(--x);top:var(--y);height:var(--h);aspect-ratio:var(--w-h,.5);padding:0;
  transform:translate(calc(var(--foot,.5) * -100%),-100%);cursor:pointer;-webkit-tap-highlight-color:transparent;
  --glow:0;transition:opacity .6s}
.fig.is-back{z-index:1}
.fig-shadow{position:absolute;left:calc(var(--foot,.5) * 100%);bottom:-1.5%;width:max(64%,3.4em);height:8%;translate:-50% 30%;border-radius:50%;
  background:radial-gradient(closest-side,rgba(24,12,6,.62),rgba(24,12,6,.28) 55%,rgba(24,12,6,0));pointer-events:none}
.fig-art{position:absolute;inset:0;transform-origin:var(--foot-pc,50%) 100%;animation:fig-breathe 5.2s ease-in-out infinite;animation-delay:var(--delay,0s)}
.fig-art img{position:absolute;inset:0;width:100%;height:100%;display:block;user-select:none;-webkit-user-drag:none;
  filter:var(--grade,none) drop-shadow(0 0 calc(var(--glow) * 7px) rgba(255,226,160,calc(var(--glow) * .95))) drop-shadow(0 0 calc(var(--glow) * 22px) rgba(255,196,110,calc(var(--glow) * .55)));
  transition:opacity .45s ease,filter .35s ease}
.fig-art img.is-leaving{opacity:0}
@keyframes fig-breathe{0%,100%{transform:scale(1,1)}50%{transform:scale(1.004,1.011)}}
.fig:hover,.fig:focus-visible,.fig.is-open{--glow:1}
.fig:focus-visible{outline:none}
/* someone who is not there: pale and cold, a little blurred, fading out below the knees, drifting and flickering faintly */
.fig.is-memory{opacity:.36}
.fig.is-memory .fig-art{-webkit-mask-image:linear-gradient(180deg,#000 52%,rgba(0,0,0,.55) 74%,transparent 97%);mask-image:linear-gradient(180deg,#000 52%,rgba(0,0,0,.55) 74%,transparent 97%)}
.fig.is-memory .fig-art img{filter:var(--grade,none) grayscale(.55) sepia(.18) hue-rotate(178deg) saturate(.7) brightness(1.32) contrast(.86) blur(.5px)
  drop-shadow(0 0 8px rgba(200,222,255,.9)) drop-shadow(0 0 26px rgba(180,206,255,.55)) drop-shadow(0 0 calc(var(--glow) * 22px) rgba(220,230,255,calc(var(--glow) * .8)));
  animation:ghost-drift 7.5s ease-in-out infinite}
@keyframes ghost-drift{0%,100%{opacity:1;transform:translateY(0)}35%{opacity:.72;transform:translateY(-1.2%)}55%{opacity:.9;transform:translateY(-.6%)}78%{opacity:.62;transform:translateY(-1.6%)}}
.fig.is-memory:hover,.fig.is-memory:focus-visible,.fig.is-memory.is-open{opacity:.8}
.fig.is-memory .fig-shadow{display:none}
/* a soft mirror image on polished floors: the box sits just under the feet and the picture is turned over inside it
   (about its own middle, so it stays there: turned about its top edge it would lie upside down over the person) */
.fig-mirror{position:absolute;left:0;right:0;top:99%;height:100%;transform:scaleY(-1);transform-origin:50% 50%;pointer-events:none;opacity:.26;
  -webkit-mask-image:linear-gradient(0deg,rgba(0,0,0,.9),transparent 55%);mask-image:linear-gradient(0deg,rgba(0,0,0,.9),transparent 55%)}
.fig-mirror img{width:100%;height:100%;filter:blur(1.5px) var(--grade,none)}
/* the name that appears beside a character */
.fig-tag{position:absolute;left:calc(var(--foot,.5) * 100%);bottom:calc(100% + .5em);translate:-50% 8px;display:flex;align-items:center;gap:.6em;padding:.5em .95em .5em .8em;
  white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .35s,translate .45s var(--ease-out);
  font:600 .72rem/1 var(--f-display);letter-spacing:.2em;text-transform:uppercase;color:var(--ink);
  background:linear-gradient(180deg,#fbf5e8,#efe3cb);box-shadow:0 6px 22px rgba(20,12,6,.45),inset 0 0 0 1px rgba(185,138,60,.5)}
.fig-tag [lang="ja"]{font:400 .82rem/1 var(--f-jp);letter-spacing:.16em;color:var(--vermilion);text-transform:none}
.fig-tag::after{content:"";position:absolute;left:50%;top:100%;width:9px;height:9px;translate:-50% -50%;rotate:45deg;background:#efe3cb;box-shadow:1px 1px 0 rgba(185,138,60,.5)}
.fig:hover .fig-tag,.fig:focus-visible .fig-tag{opacity:1;translate:-50% 0}
.fig.is-open .fig-tag{opacity:0}
/* a small pulse that invites the first click */
.fig-hint{position:absolute;left:calc(var(--foot,.5) * 100%);top:-7%;width:14px;height:14px;translate:-50% 0;border-radius:50%;background:#fff3cf;
  --hint-gap:12px;
  box-shadow:0 0 0 0 rgba(255,236,190,.7);animation:fig-hint 2.2s ease-out infinite;pointer-events:none;transition:opacity .4s}
/* on a character the dot sits over the head (--head-x, --head-y from the pose list), always the same gap above it */
.fig .fig-hint{left:calc(var(--head-x,var(--foot,.5)) * 100%);top:calc(var(--head-y,0) * 100%);translate:-50% calc(-100% - var(--hint-gap))}
@keyframes fig-hint{0%{box-shadow:0 0 0 0 rgba(255,236,190,.75)}70%,100%{box-shadow:0 0 0 18px rgba(255,236,190,0)}}
.fig:hover .fig-hint,.fig.is-met .fig-hint,html.has-met .fig-hint{opacity:0}

/* ---------- Captions ---------- */
.cap{position:absolute;margin:0;visibility:hidden;opacity:0;will-change:transform,opacity}
.cap[data-side="left"]{left:clamp(18px,6.5vw,110px);top:50%;translate:0 -50%}
.cap[data-side="right"]{right:clamp(46px,7.5vw,128px);top:50%;translate:0 -50%}
.cap[data-side="center"]{left:50%;top:50%;translate:-50% -50%;text-align:center}
.cap[data-side="low"]{left:50%;bottom:clamp(40px,9vh,96px);translate:-50% 0;text-align:center}
.cap[data-side="low-left"]{left:clamp(18px,6.5vw,110px);bottom:clamp(40px,10vh,110px)}
.cap[data-side="low-right"]{right:clamp(46px,7.5vw,128px);bottom:clamp(40px,10vh,110px)}
.cap[data-side="top-left"]{left:clamp(18px,6.5vw,110px);top:clamp(92px,14vh,170px)}
.cap[data-side="top-right"]{right:clamp(46px,7.5vw,128px);top:clamp(92px,14vh,170px)}
.cap[data-side="top"]{left:50%;top:clamp(92px,14vh,170px);translate:-50% 0}          /* over the middle of the room, between people on either side */

/* A slip of washi paper: the Light Nation's way of telling you something */
.slip{width:min(31rem,88vw);padding:1.55rem 1.85rem 1.65rem;color:var(--ink);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.035 .8' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .45  0 0 0 0 .36  0 0 0 0 .22  0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"),
    linear-gradient(180deg,#fbf6ea,#f1e6d0);
  box-shadow:0 24px 70px rgba(26,16,8,.42),0 2px 0 rgba(255,255,255,.5) inset}
.slip::before,.slip::after{content:"";position:absolute;left:1.1rem;right:1.1rem;height:1px;background:linear-gradient(90deg,transparent,var(--gold) 12%,var(--gold) 88%,transparent);opacity:.75}
.slip::before{top:.62rem}.slip::after{bottom:.62rem}
.slip .eyebrow{color:var(--vermilion);margin-bottom:.75rem}
.slip-title{margin:0 0 .7rem;font:600 clamp(1.55rem,2.5vw,2.05rem)/1.1 var(--f-display);letter-spacing:.02em}
.slip p{font-size:1.06rem;line-height:1.58;color:#3b2f22}
.slip p + p{margin-top:.75em}
.slip q,.slip em{font-style:italic}
.slip q{quotes:"“" "”"}
/* the red seal in the corner, a single character naming what the slip is about */
.seal{position:absolute;right:-.75rem;top:-.9rem;width:2.7rem;height:2.7rem;display:grid;place-items:center;rotate:4deg;
  font:400 1.5rem/1 var(--f-jp);color:#fff5ea;background:var(--vermilion);border-radius:3px;
  box-shadow:0 4px 14px rgba(120,30,16,.45),inset 0 0 0 2px rgba(255,240,225,.28)}

/* Chapter openers: large words straight on the painting */
.headline{width:min(46rem,90vw);color:#fff8ea;text-shadow:0 2px 26px rgba(10,6,14,.72),0 0 2px rgba(10,6,14,.5);isolation:isolate}
/* a soft pool of shade behind the words, so they read on any part of a painting */
.headline::before{content:"";position:absolute;z-index:-1;inset:-34% -22%;pointer-events:none;
  background:radial-gradient(closest-side,rgba(16,10,8,.6),rgba(16,10,8,.34) 48%,rgba(16,10,8,0))}
.headline .eyebrow{color:var(--gold-pale);margin-bottom:1.1rem;letter-spacing:.4em}
.headline h2{margin:0;font:500 clamp(2.5rem,6.6vw,6.2rem)/.98 var(--f-display);letter-spacing:.06em;text-transform:uppercase}
.headline h2 i{font-style:italic;font-weight:400;text-transform:none;letter-spacing:.02em;color:var(--gold-hi)}
.headline .lede{margin-top:1.2rem;font:italic 400 clamp(1.15rem,1.9vw,1.6rem)/1.4 var(--f-display);color:#f7ecd6}
.headline .jp{display:block;margin-top:1.1rem;font:400 clamp(1rem,1.5vw,1.35rem)/1 var(--f-jp);letter-spacing:.7em;margin-right:-.7em;color:var(--gold-pale)}
/* Japanese written down the edge of a scene */
.tate{position:absolute;top:50%;translate:0 -50%;writing-mode:vertical-rl;margin:0;white-space:nowrap;visibility:hidden;opacity:0;
  font:400 clamp(1rem,1.3vw,1.3rem)/1 var(--f-jp);letter-spacing:.7em;color:rgba(255,246,226,.9);text-shadow:0 1px 14px rgba(10,6,14,.8)}
.tate[data-side="right"]{right:clamp(46px,5vw,84px)}
.tate[data-side="left"]{left:clamp(14px,2.6vw,44px)}

/* ---------- The card that opens when a character is clicked ---------- */
.card{position:fixed;z-index:70;left:0;top:0;width:min(25rem,calc(100vw - 28px));padding:1.5rem 1.7rem 1.25rem;color:var(--ink);visibility:hidden;opacity:0;
  transform-origin:var(--from-x,50%) var(--from-y,100%);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.035 .8' numOctaves='2' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 .45  0 0 0 0 .36  0 0 0 0 .22  0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"),
    linear-gradient(180deg,#fcf7ec,#f0e4cd);
  box-shadow:0 30px 90px rgba(18,10,4,.55),0 0 0 1px rgba(185,138,60,.45),0 2px 0 rgba(255,255,255,.55) inset}
.card::before{content:"";position:absolute;left:.7rem;top:.7rem;bottom:.7rem;width:3px;background:linear-gradient(180deg,var(--vermilion),#8f2c1b)}
.card-head{display:grid;grid-template-columns:1fr auto;align-items:end;gap:.2rem 1rem;padding:0 0 .85rem .9rem;border-bottom:1px solid rgba(185,138,60,.45)}
.card-role{grid-column:1/-1;color:var(--vermilion);font:600 .68rem/1.2 var(--f-display);letter-spacing:.3em;text-transform:uppercase;padding-right:2rem}
.card-name{margin:.35rem 0 0;font:600 1.75rem/1.05 var(--f-display);letter-spacing:.01em}
.card-kanji{font:400 1.02rem/1.1 var(--f-jp);letter-spacing:.24em;color:#7b5a2a;padding-bottom:.15rem}
.card-body{min-height:6.2rem;padding:1rem 0 .3rem .9rem}
.card-line{margin:0;font:400 1.1rem/1.55 var(--f-text);color:#33281d}
.card-line.is-say{font-style:italic;font-size:1.16rem;line-height:1.5}
.card-line.is-say::before{content:"“";font:600 2.6rem/0 var(--f-display);color:var(--gold);vertical-align:-.42em;margin-right:.08em}
.card-line.is-say::after{content:"”";font:600 1.5rem/0 var(--f-display);color:var(--gold);vertical-align:-.2em;margin-left:.06em}
.card-foot{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.6rem 0 0 .9rem}
.card-dots{display:flex;gap:7px}
.card-dots i{width:6px;height:6px;rotate:45deg;border:1px solid var(--gold);transition:background-color .3s}
.card-dots i.is-on{background:var(--gold)}
.card-next{display:inline-flex;align-items:center;gap:.6em;min-height:40px;padding:0 .2rem;font:600 .7rem/1 var(--f-display);letter-spacing:.26em;text-transform:uppercase;color:#6d4f22;transition:color .3s}
.card-next::after{content:"";width:1.6em;height:1px;background:currentColor;transition:width .4s var(--ease-out)}
.card-next:hover{color:var(--vermilion)}
.card-next:hover::after{width:2.4em}
.card-close{position:absolute;right:.5rem;top:.5rem;width:40px;height:40px;display:grid;place-items:center;color:#6d4f22;transition:color .3s,rotate .4s var(--ease-out)}
.card-close::before,.card-close::after{content:"";position:absolute;width:15px;height:1.5px;background:currentColor;rotate:45deg}
.card-close::after{rotate:-45deg}
.card-close:hover{color:var(--vermilion);rotate:90deg}
/* in Northorn the same card is cut from dark stone */
html[data-realm="dark"] .card{color:var(--bone);background:linear-gradient(180deg,#171a24,#0c0e15);box-shadow:0 30px 90px rgba(0,0,0,.7),0 0 0 1px rgba(197,151,165,.35)}
html[data-realm="dark"] .card::before{background:linear-gradient(180deg,var(--crimson-hi),var(--crimson))}
html[data-realm="dark"] .card-role,html[data-realm="dark"] .card-next:hover,html[data-realm="dark"] .card-close:hover{color:var(--rose)}
html[data-realm="dark"] .card-head{border-bottom-color:rgba(197,151,165,.3)}
html[data-realm="dark"] .card-name{font-family:var(--f-gothic);font-weight:500;letter-spacing:.03em}
html[data-realm="dark"] .card-kanji{color:var(--rose)}          /* runes or kanji: see .card.is-rune in northorn.css */
html[data-realm="dark"] .card-line{color:var(--parch)}
html[data-realm="dark"] .card-line.is-say::before,html[data-realm="dark"] .card-line.is-say::after{color:var(--crimson-hi)}
html[data-realm="dark"] .card-dots i{border-color:var(--rose)}
html[data-realm="dark"] .card-dots i.is-on{background:var(--rose)}
html[data-realm="dark"] .card-next,html[data-realm="dark"] .card-close{color:var(--parch)}

/* a line under the first scene with people: how to meet them */
.meet-hint{position:absolute;left:50%;bottom:clamp(18px,4vh,40px);translate:-50% 0;margin:0;padding:.7em 1.3em;white-space:nowrap;visibility:hidden;opacity:0;
  font:600 .68rem/1 var(--f-display);letter-spacing:.3em;text-transform:uppercase;color:#fff3da;background:rgba(18,12,10,.55);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:inset 0 0 0 1px rgba(233,198,130,.4)}

html.has-met .meet-hint{display:none}

/* ==========================================================================
   Pieces the darker chapters share (from the first raid on)
   ========================================================================== */
.frame{z-index:6}
/* a figure that only stands in the picture, and one turned to face the other way */
.fig.is-still{cursor:default;pointer-events:none}
.fig[data-flip] .fig-art img,.fig[data-flip] .fig-mirror img{transform:scaleX(-1)}

/* ---------- People who are painted into a picture: an invisible button over them ---------- */
.spot{position:absolute;z-index:2;left:var(--x);top:var(--y);width:var(--w);height:var(--h);padding:0;cursor:pointer;border-radius:44%;-webkit-tap-highlight-color:transparent}
.spot::before{content:"";position:absolute;inset:-6%;border-radius:inherit;opacity:0;pointer-events:none;mix-blend-mode:screen;transition:opacity .45s;
  background:radial-gradient(closest-side,rgba(255,226,160,.3),rgba(255,214,140,.12) 55%,rgba(255,214,140,0))}
.spot:hover::before,.spot:focus-visible::before,.spot.is-open::before{opacity:1}
.spot:hover .fig-tag,.spot:focus-visible .fig-tag{opacity:1;translate:-50% 0}
.spot.is-open .fig-tag{opacity:0}
.spot:focus-visible{outline:none}

/* ---------- Something in a picture that can be touched (a bell) ---------- */
.touch{position:absolute;z-index:2;left:var(--x);top:var(--y);width:var(--w);height:var(--h);padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
.touch:focus-visible{outline:1px solid rgba(255,236,190,.7);outline-offset:4px}
.touch-ring{position:absolute;left:50%;top:var(--ring-y,30%);width:18px;height:18px;margin:-9px 0 0 -9px;border-radius:50%;border:1.5px solid rgba(255,236,190,.95);opacity:0;pointer-events:none}
.touch.is-rung .touch-ring{animation:ring-out 1.9s ease-out}
.touch.is-rung .touch-ring + .touch-ring{animation-delay:.24s}
@keyframes ring-out{0%{opacity:.9;transform:scale(1)}100%{opacity:0;transform:scale(12)}}
.touch-label{position:absolute;left:50%;top:calc(100% + .4em);translate:-50% 0;padding:.62em 1.15em;white-space:nowrap;visibility:hidden;opacity:0;
  font:600 .66rem/1 var(--f-display);letter-spacing:.28em;text-transform:uppercase;color:#fff3da;background:rgba(18,12,10,.6);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:inset 0 0 0 1px rgba(233,198,130,.45)}

/* ---------- Words set straight on the picture: how the darker chapters are told ---------- */
.tell{width:min(34rem,86vw);color:#f6ecdb;isolation:isolate}
.tell::before{content:"";position:absolute;z-index:-1;inset:-38% -26% -44% -34%;pointer-events:none;
  background:radial-gradient(closest-side,rgba(7,5,8,.78),rgba(7,5,8,.5) 52%,rgba(7,5,8,0))}
.tell .eyebrow{margin-bottom:.85rem;color:var(--accent);letter-spacing:.36em}
.tell p:not(.eyebrow){font:400 clamp(1.22rem,1.75vw,1.56rem)/1.48 var(--f-display);letter-spacing:.005em;text-shadow:0 1px 14px rgba(6,4,8,.92)}
.tell p + p:not(.eyebrow){margin-top:.65em}
.tell em{font-style:italic;color:#fff3d6}
.tell.is-big p:not(.eyebrow){font-size:clamp(1.55rem,2.8vw,2.5rem);line-height:1.22;font-style:italic}
.tell[data-side="center"]{width:min(46rem,88vw)}
.tell[data-side^="low"]{bottom:clamp(74px,15.5vh,150px)}                /* clear of the film bars */
.tell.is-north{color:var(--bone)}
.tell.is-north p:not(.eyebrow){color:var(--parch)}
.tell.is-north em{color:#f3e2e6}

/* ---------- The black bars of a film, which close in for the raids ---------- */
.letterbox{position:fixed;inset:0;z-index:40;pointer-events:none}
.letterbox i{position:absolute;left:0;right:0;height:clamp(30px,8.6vh,84px);background:#050406;transition:transform 1.1s cubic-bezier(.7,0,.2,1);will-change:transform}
.letterbox i:first-child{top:0;transform:translateY(-102%)}
.letterbox i:last-child{bottom:0;transform:translateY(102%)}
html.has-bars .letterbox i{transform:none}

/* ---------- Things a scene can pass through or be lit by ---------- */
.wash{position:absolute;inset:0;z-index:5;opacity:0;pointer-events:none}
.wash-black{background:#050406}
.wash-white{background:#fffaf0}
.wash-ember{background:radial-gradient(circle at 54% 56%,#ffe2ac 0%,#f39a45 20%,#a3251a 52%,#1c0709 100%)}
.shake{position:absolute;inset:0;will-change:transform}
/* the light of fires, never quite steady */
.firelight{position:absolute;inset:0;z-index:4;pointer-events:none;mix-blend-mode:screen;
  background:radial-gradient(64% 56% at var(--fire-x,50%) var(--fire-y,66%),rgba(255,150,60,.3),rgba(255,92,30,.11) 46%,rgba(255,60,20,0) 76%);
  animation:firelight 2.9s ease-in-out infinite}
@keyframes firelight{0%,100%{opacity:.5}9%{opacity:.86}17%{opacity:.46}28%{opacity:.95}37%{opacity:.6}49%{opacity:.82}58%{opacity:.42}69%{opacity:.9}81%{opacity:.56}91%{opacity:.78}}
/* two black halves that meet in the middle on a seam of gold: the barrier closing behind the carts, and opening again on the road */
.cut{position:absolute;inset:0;z-index:7;pointer-events:none;--edge:0}
.cut i{position:absolute;left:0;right:0;height:50.2%;background:#050406;will-change:transform}
.cut i:first-child{top:0}
.cut i:last-child{bottom:0}                        /* the scene's script moves them: out of the picture, or shut */
.cut i::after{content:"";position:absolute;left:0;right:0;height:2px;opacity:var(--edge);
  background:linear-gradient(90deg,transparent,#f3d7a0 18%,#fff6e0 50%,#f3d7a0 82%,transparent);box-shadow:0 0 26px 3px rgba(255,214,140,.65)}
.cut i:first-child::after{bottom:0}
.cut i:last-child::after{top:0}

/* ---------- Windows of middling width: a tablet on its side, a small laptop, a preview pane ----------
   The painting is cut closer at the sides here, so the people stand nearer the edges of the window and nearer
   each other. Plates and lines get narrower and sit further out; and a caption may name another corner for
   this width (data-mid), where its usual one would lie across somebody. */
@media (min-width:761px) and (max-width:1180px){
  .slip{width:min(23.5rem,43vw);padding:1.3rem 1.5rem 1.4rem}
  .slip-title{font-size:1.5rem;margin-bottom:.55rem}
  .slip p{font-size:1rem;line-height:1.52}
  .slip .eyebrow{margin-bottom:.6rem}
  .tell{width:min(27rem,45vw)}
  .cap[data-side="left"],.cap[data-side="top-left"],.cap[data-side="low-left"]{left:clamp(20px,3.4vw,40px)}
  .cap[data-side="right"],.cap[data-side="top-right"],.cap[data-side="low-right"]{right:clamp(48px,5.6vw,66px)}
  .cap[data-side^="top"]{top:clamp(82px,11vh,120px)}
  .cap[data-mid]{left:auto;right:auto;top:auto;bottom:auto;translate:none;text-align:left}
  .cap[data-mid$="left"]{left:clamp(20px,3.4vw,40px)}
  .cap[data-mid$="right"]{right:clamp(48px,5.6vw,66px)}
  .cap[data-mid="left"],.cap[data-mid="right"]{top:50%;translate:0 -50%}
  .cap[data-mid^="top"]{top:clamp(82px,11vh,120px)}
  .cap[data-mid^="low"]{bottom:clamp(40px,10vh,110px)}
  .tell[data-mid^="low"]{bottom:clamp(74px,15.5vh,150px)}
  .cap[data-mid="low"]{left:50%;translate:-50% 0;text-align:center}
}

/* ---------- Phones and narrow windows ---------- */
@media (max-width:760px){
  .cap[data-side]{left:14px;right:14px;top:auto;bottom:clamp(26px,5vh,56px);translate:none;width:auto;text-align:left}
  .cap.headline[data-side]{bottom:auto;top:50%;translate:0 -50%;text-align:center}
  .slip{padding:1.05rem 1.15rem 1.1rem}
  .slip .eyebrow{margin-bottom:.5rem;font-size:.64rem;letter-spacing:.26em}
  .slip-title{font-size:1.42rem;margin-bottom:.45rem}
  .slip p{font-size:.98rem;line-height:1.46}
  .meet-hint{bottom:auto;top:clamp(72px,11vh,104px)}
  .seal{right:.5rem;top:-1.1rem;width:2.3rem;height:2.3rem;font-size:1.25rem}
  .tate{display:none}
  .card{left:10px!important;right:10px;top:auto!important;bottom:10px;width:auto;padding:1.2rem 1.25rem 1rem;transform-origin:50% 100%}
  .card.is-top{top:66px!important;bottom:auto;transform-origin:50% 0}
  .card-name{font-size:1.5rem}
  .card-body{min-height:4.6rem;padding-top:.8rem}
  .card-line{font-size:1.02rem;line-height:1.5}
  .card-line.is-say{font-size:1.06rem;line-height:1.46}
  .fig-tag{font-size:.64rem}
  .tell[data-side]{bottom:clamp(58px,10.5vh,96px)}
  .tell p:not(.eyebrow){font-size:1.16rem;line-height:1.42}
  .tell.is-big p:not(.eyebrow){font-size:1.5rem}
  .tell.is-big[data-side="center"]{bottom:auto;top:50%;translate:0 -50%;text-align:center}
  .letterbox i{height:clamp(26px,6.4vh,58px)}
}
@media (prefers-reduced-motion:reduce){
  .fig-art{animation:none}
  .fig.is-memory .fig-art img{animation:none}
  .fig-hint{animation:none}
  .firelight{animation:none;opacity:.7}
}
