/* ---------- Fonts: the IM Fell types, digitised from 17th-century Oxford printing types (self-hosted) ---------- */
@font-face{font-family:"Fell";src:url(fonts/im-fell-english-latin-400-normal.woff2) format("woff2");font-display:swap}
@font-face{font-family:"Fell";src:url(fonts/im-fell-english-latin-400-italic.woff2) format("woff2");font-style:italic;font-display:swap}
@font-face{font-family:"Fell SC";src:url(fonts/im-fell-english-sc-latin-400-normal.woff2) format("woff2");font-display:swap}
@font-face{font-family:"Fell Canon";src:url(fonts/im-fell-french-canon-latin-400-normal.woff2) format("woff2");font-display:block}
@font-face{font-family:"Fell Canon";src:url(fonts/im-fell-french-canon-latin-400-italic.woff2) format("woff2");font-style:italic;font-display:swap}

:root{
  --paper:#ECEDE8;     /* cool grey paper */
  --ink:#1D242C;       /* blue-black ink */
  --ink-soft:#4C5661;
  --night:#1D242C;     /* the chapters after dark */
  --night-2:#29323C;
  --moon:#E6E8E3;      /* text by night */
  --moon-soft:#A2ACB6;
  --silver:#C4CCD4;    /* silver accent: links, dates, lanterns */
  --graphite:#8F98A1;  /* pencil on dark paper */

  --text:"Fell", "Iowan Old Style", Georgia, serif;
  --sc:"Fell SC", "Fell", Georgia, serif;
  --display:"Fell Canon", "Fell", Georgia, serif;

  --measure:34rem;
  --wide:58rem;
  --pad:clamp(1.25rem, 5vw, 3rem);
  --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .11 0 0 0 0 .14 0 0 0 0 .17 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-night:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .9 0 0 0 0 .91 0 0 0 0 .89 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{margin:0;background:var(--paper) var(--grain);color:var(--ink);font:400 1.25rem/1.62 var(--text);font-variant-numeric:oldstyle-nums;-webkit-font-smoothing:antialiased}
h1,h2,h3,h4,p,figure,dl,dd,ol,ul{margin:0}
ol,ul{padding:0;list-style:none}
img,video,svg{display:block;max-width:100%}
a{color:inherit;text-decoration-thickness:1px;text-underline-offset:.16em}
a:hover{text-decoration-thickness:2px}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
::selection{background:var(--ink);color:var(--paper)}
:focus-visible{outline:2px solid currentColor;outline-offset:4px;border-radius:2px}
p{text-wrap:pretty}
h1,h2,h3,h4{font-weight:400;text-wrap:balance}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:fixed;left:1rem;top:-4rem;z-index:100;background:var(--ink);color:var(--paper);padding:.5rem 1rem;text-decoration:none}
.skip:focus{top:1rem}

/* ---------- the one fixed thing: a way back to the contents ---------- */
.to-contents,.to-journal{position:fixed;top:1rem;right:var(--pad);z-index:40;font:1rem/1 var(--sc);letter-spacing:.06em;text-decoration:none;padding:.55rem .9rem .6rem;border-radius:999px;background:rgba(236,237,232,.86);color:var(--ink);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);transition:opacity .3s,background-color .3s,color .3s}
.to-contents.is-night,.to-journal.is-night{background:rgba(29,36,44,.82);color:var(--moon)}
.to-contents.is-hidden,.to-journal.is-hidden{opacity:0;pointer-events:none}
.to-journal{right:auto;left:var(--pad)}
.to-journal:hover{background:var(--ink);color:var(--paper)}
.to-journal.is-night:hover{background:var(--moon);color:var(--night)}

/* ---------- columns ---------- */
.page{padding-inline:var(--pad)}
.measure{max-width:var(--measure);margin-inline:auto}
.wide{max-width:var(--wide);margin-inline:auto}

/* ---------- hand-cut frames + hand-drawn rules (shapes drawn by script) ---------- */
.cut{position:relative;background:var(--ink);-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
.cut video,.cut img{width:100%;height:100%;object-fit:cover}
.rule{display:block;width:min(11rem,50%);height:14px;margin:clamp(4rem,10vw,7rem) auto;color:var(--ink)}
.rule svg{width:100%;height:100%;overflow:visible}

/* ================= HERO: the motto is a window into the film ================= */
.hero{position:relative;height:250vh;height:250svh;background:var(--night)}
.hero-stage{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden}
.hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero-shade{position:absolute;inset:0;background:var(--night);opacity:.38;pointer-events:none}
.hero-mask{position:absolute;inset:0;width:100%;height:100%}
.hero-mask .ground{fill:var(--paper)}
.hero-mask text{font-family:var(--display);font-weight:400}
.hero-foot{position:absolute;left:var(--pad);right:var(--pad);bottom:clamp(1.25rem,4vh,2.5rem);display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:.25rem 2rem;will-change:opacity}
.hero-name{font:italic clamp(1.6rem,2.6vw,2.25rem)/1 var(--display)}
.hero-place{font:1rem/1.3 var(--sc);letter-spacing:.1em;color:var(--ink-soft)}
.hero-caption{position:absolute;left:0;right:0;bottom:0;padding:32vh var(--pad) clamp(1.5rem,6vh,3.5rem);background:linear-gradient(to top,rgba(29,36,44,.82),rgba(29,36,44,.45) 55%,rgba(29,36,44,0));color:var(--moon);opacity:0;pointer-events:none}
.hero-caption p{font:italic clamp(1.75rem,3.6vw,3.25rem)/1.1 var(--display);max-width:19ch}
.hero-pause{position:absolute;right:var(--pad);top:1rem;z-index:2;font:.9375rem/1 var(--sc);letter-spacing:.05em;padding:.45rem .8rem .5rem;border-radius:999px;background:rgba(29,36,44,.55);color:var(--moon);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
@media (prefers-reduced-motion:no-preference){
  .hero-mask .ml{animation:ink 1.2s cubic-bezier(.3,.6,.2,1) both}
  .hero-mask .ml:nth-of-type(1){animation-delay:.2s}
  .hero-mask .ml:nth-of-type(2){animation-delay:.6s}
  .hero-mask .ml:nth-of-type(3){animation-delay:1s}
  @keyframes ink{from{opacity:0}to{opacity:1}}
}
@media (prefers-reduced-motion:reduce){.hero{height:100vh;height:100svh}}

/* ---------- opening words + contents ---------- */
.opening{padding-block:clamp(5rem,12vw,8rem) clamp(3rem,7vw,5rem)}
.opening-title{font:clamp(2.6rem,6.6vw,5.5rem)/1.02 var(--display);letter-spacing:-.01em;max-width:15ch}
.opening-text{max-width:var(--measure);margin-top:clamp(1.75rem,4vw,2.75rem)}
.opening p{font-size:clamp(1.25rem,1.9vw,1.5rem);line-height:1.5}
.opening p+p{margin-top:1em}
.opening em{font-style:italic}
main{counter-reset:part}
.contents h2{font:1.125rem/1 var(--sc);letter-spacing:.14em;margin-bottom:1.75rem}
.contents ol{max-width:var(--measure);border-top:1px solid rgba(29,36,44,.25);counter-reset:toc}
.contents li{counter-increment:toc}
.contents li:not(.no-num) .num::before{content:counter(toc,upper-roman)}
.contents li{border-bottom:1px solid rgba(29,36,44,.25)}
.contents a{display:grid;grid-template-columns:3rem 1fr;align-items:baseline;padding:.85rem 0;text-decoration:none}
.contents .num{font:1.0625rem/1 var(--sc);color:var(--ink-soft);letter-spacing:.04em}
.contents .t{font:clamp(1.375rem,2.4vw,1.75rem)/1.15 var(--display)}
.contents a:hover .t{font-style:italic}

/* ---------- Chapters ---------- */
.chapter{padding-block:clamp(1rem,3vw,2rem)}
.chapter-head{text-align:center;margin-bottom:clamp(2rem,5vw,3.25rem)}
.chapter-num{display:block;font:1.125rem/1 var(--sc);letter-spacing:.14em;color:var(--ink-soft);margin-bottom:1rem}
.part-num::before{counter-increment:part;content:"Part " counter(part,upper-roman)}
/* a project part: everything lines up on the left edge of the film */
.part{padding-block:clamp(1rem,3vw,2rem)}
.part-head{margin-bottom:1.5rem}
/* flavor text: a lead-in line above each title, a teaser that never explains, only implies */
.flavor{font-style:italic;font-size:clamp(1.55rem,3vw,2.3rem);line-height:1.25;color:var(--ink);max-width:26ch;margin:0 0 clamp(1.25rem,2.6vw,1.75rem)}
.part-head .flavor{max-width:28ch}
.night .flavor{color:var(--moon);max-width:30ch;margin:0 auto clamp(1.25rem,2.6vw,1.75rem)}
.part-header{margin-bottom:clamp(2rem,4.5vw,3rem)}
.part-header .cut{background:var(--night-2)}
.part-header img{width:100%;height:auto;display:block}
.part-title{font:italic clamp(3.25rem,9vw,5rem)/1 var(--display);letter-spacing:-.01em}
.part .tale-for{margin-top:.7rem}
.part .tale-text{max-width:var(--measure)}
.part .tale-film{margin-top:clamp(1.75rem,4vw,2.5rem)}
.part .tale-film figcaption{margin-left:0}
.part .bts{margin-top:clamp(2.5rem,5vw,3.5rem)}
.part .bts .cut{background:var(--night-2)}
.part .bts .cut:has(video){aspect-ratio:16/9}
.part .bts img{width:100%;height:auto}
.part-links{display:flex;flex-wrap:wrap;gap:.6rem 1.75rem;margin-top:1.1rem;font:1.0625rem/1.4 var(--sc);letter-spacing:.06em;color:var(--ink-soft)}
.part-links a{color:var(--ink)}
.part-links .code{font-weight:400;color:var(--ink);letter-spacing:.1em}
.chapter-title{font:clamp(2.4rem,6vw,4.5rem)/1.02 var(--display);letter-spacing:-.005em}
.chapter-body p+p{margin-top:1em}
.chapter-body p:first-child::first-letter{font:italic 3.4em/.8 var(--display);float:left;margin:.08em .1em 0 0}

/* a tale = one project, told as story, technology, outcome */
.tale{margin-top:clamp(3.5rem,8vw,5.5rem)}
.tale-title{font:italic clamp(2rem,4.2vw,3rem)/1.05 var(--display)}
.tale-for{margin-top:.4rem;font:1.0625rem/1.3 var(--sc);letter-spacing:.06em;color:var(--ink-soft)}
.tale-text{margin-top:1.1rem}
.tale-text p+p{margin-top:.75em}
.run{font-family:var(--sc);letter-spacing:.06em;margin-right:.3em}
.tale-film{margin-top:clamp(1.5rem,3.5vw,2.25rem)}
.tale-film figcaption{max-width:var(--measure);margin:.7rem auto 0;font-style:italic;font-size:1.0625rem;color:var(--ink-soft)}

/* players */
.player{aspect-ratio:16/9}
.part .portrait{max-width:min(100%,24rem)}
.part .portrait .player{aspect-ratio:9/16}
.player-play{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:flex-start;padding:clamp(.9rem,2.4vw,1.5rem);background:linear-gradient(to top,rgba(29,36,44,.5),rgba(29,36,44,0) 50%)}
.player-play span{display:inline-flex;align-items:center;gap:.55rem;font:1.0625rem/1 var(--sc);letter-spacing:.05em;padding:.6rem 1.05rem .65rem .85rem;border-radius:999px;background:var(--paper);color:var(--ink)}
.player-play svg{width:.75rem;height:.75rem}
.player-play:hover span{background:var(--silver)}
.player.is-playing .player-play{display:none}
.player img.poster{width:100%;height:100%;object-fit:cover}
.player .embed{position:absolute;inset:0;width:100%;height:100%;border:0}
.embed-note{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:.4em;flex-wrap:wrap;padding:1.25rem;text-align:center;font-style:italic;color:var(--moon);background:rgba(29,36,44,.86)}
.embed-note a{color:var(--moon)}

/* ================= Night: the story of my own ================= */
.night{position:relative;background:var(--night) var(--grain-night);color:var(--moon);padding-block:clamp(5rem,12vw,9rem)}
.night .edge{position:absolute;left:0;width:100%;height:18px;fill:var(--night)}
.night .edge--top{top:-17px}
.night .edge--bottom{bottom:-17px;transform:scaleY(-1)}
.night .chapter-num,.night .tale-film figcaption{color:var(--moon-soft)}
.night .rule{color:var(--moon-soft)}
.night a{color:var(--moon)}
.night .newest a,.night .entry-toggle{color:var(--silver);text-decoration-color:rgba(196,204,212,.6)}
.night .newest a:hover,.night .entry-toggle:hover{color:#fff}
.journal-top{text-align:center}
.journal-top .own,.journal-top .series-sub{max-width:34rem;margin-inline:auto}
.journal-top .chapter-num{margin-bottom:1rem}
.journal-title{font:clamp(3.25rem,10vw,7.5rem)/.95 var(--display);letter-spacing:-.01em}
.series-sub{text-align:center;margin-top:.9rem;font:clamp(1.125rem,1.8vw,1.375rem)/1.3 var(--sc);letter-spacing:.1em;color:var(--silver)}
.own{margin-top:2rem;text-align:center;color:var(--moon-soft)}

/* ---------- the workshop journal: a path down the middle, a chapter on either side ---------- */
.newest{margin-top:1.5rem;text-align:center}
.newest a{font-style:italic;color:var(--silver)}
.journey{--gap:clamp(2rem,4vw,3.25rem);--drawn:0px;position:relative;max-width:64rem;margin:clamp(3.5rem,8vw,5.5rem) auto 0;counter-reset:chapter}
/* the path itself: a hand-drawn pencil line (drawn by script), revealed as you scroll, fading into mist at the end */
.pencil{position:absolute;left:0;top:-3rem;width:100%;height:calc(100% + 3rem);max-width:none;pointer-events:none;z-index:0;
  clip-path:inset(0 0 calc(100% - var(--drawn) - 3rem) 0);
  -webkit-mask-image:linear-gradient(to bottom,#000,#000 calc(100% - 22rem),transparent calc(100% - 7rem));
  mask-image:linear-gradient(to bottom,#000,#000 calc(100% - 22rem),transparent calc(100% - 7rem))}
.post{position:relative;z-index:1;width:calc(50% - var(--gap))}
.post:nth-of-type(odd){margin-right:auto}
.post:nth-of-type(even){margin-left:auto}
.post+.post{margin-top:clamp(-9rem,-9vw,-4rem)}  /* staggered: each chapter starts beside the one before */
/* a pencil stroke from the path to the chapter, and a pencil-drawn circle on the path */
.post::before{content:"";position:absolute;top:calc(.5rem - 3px);height:6px;width:calc(var(--gap) - 9px);background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 6' preserveAspectRatio='none'%3E%3Cpath d='M0.0 3.06 L5.0 3.27 L10.0 3.43 L15.0 3.61 L20.0 3.58 L25.0 3.71 L30.0 3.26 L35.0 3.42 L40.0 3.58 L45.0 3.31 L50.0 3.30 L55.0 2.76 L60.0 2.80 L65.0 2.56 L70.0 2.61 L75.0 2.56 L80.0 2.26 L85.0 2.38 L90.0 2.47 L95.0 2.89 L100.0 2.94' fill='none' stroke='%238F98A1' stroke-width='1.3' stroke-linecap='round' stroke-dasharray='11 1.2 5 .8 17 1.4 7 1' opacity='.85' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M0.0 3.82 L5.0 4.10 L10.0 3.69 L15.0 3.84 L20.0 3.48 L25.0 3.30 L30.0 3.62 L35.0 3.19 L40.0 3.12 L45.0 3.46 L50.0 3.39 L55.0 3.12 L60.0 3.50 L65.0 3.37 L70.0 3.55 L75.0 3.42 L80.0 3.91 L85.0 3.89 L90.0 4.12 L95.0 4.15 L100.0 3.89' fill='none' stroke='%238F98A1' stroke-width='.8' stroke-linecap='round' stroke-dasharray='6 2 13 1 4 1.5' opacity='.45' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center/100% 100% no-repeat}
.post:nth-of-type(odd)::before{left:100%}
.post:nth-of-type(even)::before{right:100%;transform:scaleX(-1)}
.post::after{content:"";position:absolute;top:calc(.5rem - 10px);width:20px;height:20px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M16.00 6.53 L16.79 7.51 L17.11 8.71 L17.06 9.95 L17.05 11.18 L16.72 12.36 L16.25 13.50 L15.57 14.53 L14.51 15.19 L13.51 15.82 L12.54 16.54 L11.34 16.66 L10.18 16.83 L9.06 16.41 L7.95 16.22 L6.91 15.79 L6.12 14.97 L5.19 14.35 L4.59 13.41 L4.43 12.29 L4.18 11.29 L3.90 10.28 L3.82 9.21 L4.26 8.23 L4.70 7.30 L5.17 6.38 L5.95 5.69 L6.69 4.97 L7.55 4.36 L8.53 3.94 L9.59 3.81 L10.67 3.75 L11.75 3.89 L12.85 4.12 L13.83 4.68 L14.68 5.42 L15.70 6.08 L16.27 7.13 L16.77 8.22 L16.87 9.41 L17.21 10.63' fill='none' stroke='%238F98A1' stroke-width='1.3' stroke-linecap='round' opacity='.9'/%3E%3Cpath d='M15.60 9.01 L15.59 9.93 L15.59 10.84 L15.28 11.69 L14.90 12.50 L14.53 13.32 L14.08 14.15 L13.35 14.74 L12.55 15.24 L11.64 15.44 L10.76 15.80 L9.82 15.83 L8.88 15.76 L7.95 15.56 L7.02 15.27 L6.00 14.99 L5.21 14.31 L4.52 13.53 L3.95 12.63 L3.75 11.59 L3.48 10.57 L3.31 9.50 L3.40 8.41 L3.67 7.35 L4.16 6.35 L5.04 5.65 L5.69 4.77 L6.59 4.15 L7.61 3.77 L8.68 3.63 L9.71 3.46 L10.75 3.70 L11.81 3.68 L12.76 4.15 L13.55 4.84 L14.21 5.60 L14.97 6.26 L15.33 7.20 L15.74 8.08 L15.89 9.04 L15.79 10.00' fill='none' stroke='%238F98A1' stroke-width='.8' stroke-linecap='round' opacity='.5'/%3E%3C/svg%3E") center/100% no-repeat}
.post:nth-of-type(odd)::after{left:calc(100% + var(--gap) - 10px)}
.post:nth-of-type(even)::after{right:calc(100% + var(--gap) - 10px)}
.post.is-lit::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.73 8.92 L8.74 4.82 L10.02 4.67 L4.79 10.20 L4.89 11.42 L11.11 4.90 L12.33 5.01 L4.87 12.47 L5.57 13.22 L13.30 5.69 L14.03 6.13 L6.33 13.79 L7.11 14.60 L14.21 6.71 L14.75 7.94 L7.68 14.95 L8.57 15.24 L15.18 8.60 L15.44 9.85 L10.01 15.49 L11.47 15.43 L15.50 11.34' fill='none' stroke='%23C4CCD4' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round' opacity='.95'/%3E%3Cpath d='M16.00 6.53 L16.79 7.51 L17.11 8.71 L17.06 9.95 L17.05 11.18 L16.72 12.36 L16.25 13.50 L15.57 14.53 L14.51 15.19 L13.51 15.82 L12.54 16.54 L11.34 16.66 L10.18 16.83 L9.06 16.41 L7.95 16.22 L6.91 15.79 L6.12 14.97 L5.19 14.35 L4.59 13.41 L4.43 12.29 L4.18 11.29 L3.90 10.28 L3.82 9.21 L4.26 8.23 L4.70 7.30 L5.17 6.38 L5.95 5.69 L6.69 4.97 L7.55 4.36 L8.53 3.94 L9.59 3.81 L10.67 3.75 L11.75 3.89 L12.85 4.12 L13.83 4.68 L14.68 5.42 L15.70 6.08 L16.27 7.13 L16.77 8.22 L16.87 9.41 L17.21 10.63' fill='none' stroke='%238F98A1' stroke-width='1.3' stroke-linecap='round' opacity='.9'/%3E%3Cpath d='M15.60 9.01 L15.59 9.93 L15.59 10.84 L15.28 11.69 L14.90 12.50 L14.53 13.32 L14.08 14.15 L13.35 14.74 L12.55 15.24 L11.64 15.44 L10.76 15.80 L9.82 15.83 L8.88 15.76 L7.95 15.56 L7.02 15.27 L6.00 14.99 L5.21 14.31 L4.52 13.53 L3.95 12.63 L3.75 11.59 L3.48 10.57 L3.31 9.50 L3.40 8.41 L3.67 7.35 L4.16 6.35 L5.04 5.65 L5.69 4.77 L6.59 4.15 L7.61 3.77 L8.68 3.63 L9.71 3.46 L10.75 3.70 L11.81 3.68 L12.76 4.15 L13.55 4.84 L14.21 5.60 L14.97 6.26 L15.33 7.20 L15.74 8.08 L15.89 9.04 L15.79 10.00' fill='none' stroke='%238F98A1' stroke-width='.8' stroke-linecap='round' opacity='.5'/%3E%3C/svg%3E")}
.post-num{font:1.0625rem/1 var(--sc);letter-spacing:.12em;color:var(--moon-soft)}
.post-num::before{counter-increment:chapter;content:"Chapter " counter(chapter)}
.post time{display:block;margin-top:.5rem;font:1.0625rem/1 var(--sc);letter-spacing:.1em;color:var(--silver)}
.post-title{margin-top:.6rem;font:italic clamp(1.875rem,3.4vw,2.6rem)/1.05 var(--display)}
.post .cut{margin-top:1.25rem;aspect-ratio:3/2;background:var(--night-2)}
.post .cut+figcaption{margin-top:.5rem;font-style:italic;font-size:1.0625rem;color:var(--moon-soft)}
.post-lede{margin-top:1rem}
.post-end{position:relative;z-index:1;width:min(28rem,100%);margin:clamp(5rem,10vw,8rem) auto 0;text-align:center;padding:3rem 1.5rem;background:radial-gradient(ellipse at 50% 50%,rgba(230,232,227,.10),rgba(29,36,44,0) 70%)}
.post-end .post-num::before{content:none}
.post-end .post-title,.post-end p{color:var(--moon-soft)}
/* phones: the path stays in the middle and threads between full-width chapters */
@media (max-width:720px){
  .post,.post:nth-of-type(n){width:100%;margin-inline:0;text-align:left;padding:1.75rem 0 .5rem;background:var(--night) var(--grain-night)}
  .post+.post{margin-top:4.5rem}
  .post::before{display:none}
  .post::after,.post:nth-of-type(n)::after{left:50%;right:auto;top:-10px;margin-left:-10px}
  .post-end{margin-top:4.5rem}
}

/* team + follow */
.made p+p{margin-top:1em}
.team{margin-top:2.5rem;display:grid;gap:1.1rem}
.team div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem;align-items:baseline;border-bottom:1px solid rgba(230,232,227,.18);padding-bottom:1rem}
.team dt{font:italic 1.375rem/1.2 var(--display)}
.team dd{color:var(--moon-soft);font-size:1.0625rem}
.follow{display:flex;flex-wrap:wrap;justify-content:center;gap:.75rem;margin-top:3rem}
.btn{display:inline-flex;font:1.0625rem/1 var(--sc);letter-spacing:.06em;text-decoration:none;padding:.8rem 1.3rem .85rem;border-radius:999px;border:1px solid currentColor;transition:background-color .2s,color .2s}
.btn--fill{background:var(--moon);border-color:var(--moon);color:var(--night)!important}
.btn--fill:hover{background:var(--silver);border-color:var(--silver)}
.btn--line:hover{background:var(--moon);color:var(--night)!important}
@media (max-width:560px){.team div{grid-template-columns:1fr;gap:.2rem}}

/* read the whole page */
.entry{margin-top:clamp(3rem,7vw,4.5rem)}
.entry time{display:block;font:1.0625rem/1 var(--sc);letter-spacing:.1em;color:var(--silver)}
.entry h3{margin-top:.6rem;font:italic clamp(1.875rem,3.6vw,2.5rem)/1.05 var(--display)}
.entry-lede{margin-top:.75rem}
.entry-media{margin-top:1.5rem}
.entry-media .cut{aspect-ratio:16/9;background:var(--night-2)}
.entry-media figcaption{margin-top:.6rem;font-style:italic;font-size:1.0625rem;color:var(--moon-soft)}
.entry-more{margin-top:.9rem}
.entry-more p+p{margin-top:1em}
.entry-toggle{margin-top:.8rem;font-style:italic;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.18em;color:var(--silver)}
.entry-toggle:hover{text-decoration-thickness:2px}

/* ---------- Write to me ---------- */
.letter{padding-block:clamp(5rem,12vw,9rem) clamp(3rem,6vw,4rem)}
.letter .chapter-body p:first-child::first-letter{all:unset}
.lines{margin-top:2.25rem;border-top:1px solid rgba(29,36,44,.3)}
.lines div{display:grid;grid-template-columns:7.5rem minmax(0,1fr);gap:1rem;align-items:baseline;padding:.75rem 0;border-bottom:1px solid rgba(29,36,44,.3)}
.lines dt{font:1rem/1.2 var(--sc);letter-spacing:.06em;color:var(--ink-soft)}
.lines dd{display:flex;flex-wrap:wrap;gap:.2rem 1rem;align-items:baseline}
.copy{font:.9375rem/1 var(--sc);letter-spacing:.05em;padding:.35rem .75rem .4rem;border:1px solid var(--ink-soft);border-radius:999px}
.copy:hover{background:var(--ink);color:var(--paper)}
.signature{margin-top:2.5rem;font:italic clamp(2.75rem,6vw,4rem)/1 var(--display)}
.colophon{margin-top:clamp(4rem,8vw,6rem);padding-bottom:2rem;text-align:center;font:1rem/1.5 var(--sc);letter-spacing:.08em;color:var(--ink-soft)}
@media (max-width:480px){.lines div{grid-template-columns:1fr;gap:.25rem}}

/* ---------- FAE & FOE: the journal page and its teaser on the main page ---------- */
body.dark{background:var(--night) var(--grain-night);color:var(--moon)}
body.dark .night{padding-top:clamp(6rem,12vw,8rem)}
.to-contents.is-night{background:rgba(29,36,44,.82);color:var(--moon)}
.pipeline{max-width:58rem;margin:clamp(2.5rem,6vw,4rem) auto 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 2rem;border-top:1px solid rgba(230,232,227,.22);counter-reset:step}
.pipeline li{counter-increment:step;border-bottom:1px solid rgba(230,232,227,.22)}
.pipeline a{display:grid;grid-template-columns:2.25rem 1fr;align-items:baseline;gap:.25rem;padding:.8rem 0;text-decoration:none}
.pipeline a::before{content:counter(step,upper-roman);font:1rem/1 var(--sc);letter-spacing:.06em;color:var(--moon-soft)}
.pipeline .t{font:italic 1.25rem/1.2 var(--display);color:var(--moon)}
.pipeline .s{grid-column:2;font:.9375rem/1.2 var(--sc);letter-spacing:.08em;color:var(--silver)}
.pipeline .ahead .t{color:var(--moon-soft)}
.pipeline .ahead .s{color:var(--graphite)}
.pipeline a:hover .t{color:#fff}
@media (max-width:820px){.pipeline{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){.pipeline{grid-template-columns:1fr}}
.post-status{margin-top:.6rem;font:1rem/1 var(--sc);letter-spacing:.1em;color:var(--silver)}
.post.ahead .post-title,.post.ahead .post-lede,.post.ahead .entry-more{color:var(--moon-soft)}
.post.ahead .post-status{color:var(--graphite)}
.post.now .post-status{color:var(--moon)}
.step-note{margin-top:.9rem;font-style:italic;color:var(--moon-soft)}
.teaser-stage{max-width:34rem;margin:clamp(2rem,5vw,3rem) auto 0;text-align:center;font:italic clamp(1.25rem,2.2vw,1.5rem)/1.5 var(--display);color:var(--moon-soft)}
.teaser-stage span{white-space:nowrap}
.teaser-film{max-width:44rem;margin:clamp(2.5rem,6vw,4rem) auto 0}
.teaser-film .cut{aspect-ratio:3/2;background:var(--night-2)}
.teaser-film figcaption{margin-top:.5rem;font-style:italic;font-size:1.0625rem;color:var(--moon-soft)}
.teaser-go{display:flex;justify-content:center;margin-top:clamp(2rem,5vw,3rem)}
.teaser-go .btn{font-size:1.25rem;padding:1rem 1.8rem 1.05rem}
.back-line{text-align:center;margin-top:3rem}
.back-line a{font-style:italic;color:var(--silver)}
.own p+p{margin-top:1em}
.pipeline{text-align:left}
.pipeline .t,.pipeline .s{text-align:left}
/* short chapters (no picture) still take up room, so the staggered chapters on the other side never collide with them */
@media (min-width:721px){.post:not(:has(figure)):not(.post-end){min-height:21rem}}

/* ---------- journal prologue ---------- */
.prologue{max-width:37rem;margin:clamp(3rem,8vw,5.5rem) auto 0;text-align:left;font-size:clamp(1.1875rem,1.9vw,1.375rem);line-height:1.6}
.prologue p{margin:0}
.pro-dark{color:var(--moon)}
.ragna{display:block;font:italic clamp(3rem,9vw,5.5rem)/1 var(--display);letter-spacing:-.01em;color:var(--moon);margin-bottom:.35em}
.prologue .pro-fenris{margin-top:clamp(1.75rem,4vw,2.5rem);text-align:center;color:var(--moon)}
.prologue .pro-light{margin-top:clamp(1.75rem,4vw,2.5rem);color:var(--moon)}
.prologue .pro-meet{margin-top:1.4em;color:var(--moon)}
.journal-intro{margin-top:clamp(4rem,10vw,6.5rem);padding-top:clamp(2.5rem,6vw,3.5rem);border-top:1px solid rgba(230,232,227,.22)}
.journal-sub{font:1.125rem/1 var(--sc);letter-spacing:.14em;color:var(--silver);margin-bottom:1.75rem}
.journal-intro .flavor{margin-top:0}
.prologue .panel{width:min(54rem,calc(100vw - 2 * var(--pad)));margin:clamp(1.5rem,4vw,2.5rem) 0 0 50%;transform:translateX(-50%)}
.prologue .panel .cut{background:var(--night-2)}
.journal-logo{display:block;margin:0 auto;width:clamp(15rem,36vw,25rem);height:auto}
.journal-top .series-sub{margin-top:1.1rem}

/* ---------- journal intro: short and thumb-friendly ---------- */
.journal-intro .intro-line{font:italic clamp(1.375rem,3.4vw,1.75rem)/1.3 var(--display);color:var(--moon);max-width:22ch;margin:0 auto}
.journal-intro .latest{margin-top:1.75rem;text-align:center}
.journal-intro .latest .btn{min-height:3rem;align-items:center;padding-inline:1.5rem;font-size:1.125rem}
.journal-intro .pipeline{max-width:28rem;grid-template-columns:1fr;gap:0;margin-top:2.25rem}
.journal-intro .pipeline a{grid-template-columns:2.25rem 1fr auto;align-items:center;gap:0 .5rem;padding:.95rem 0;min-height:3.5rem}
.journal-intro .pipeline .s{grid-column:auto;white-space:nowrap;text-align:right}
.journal-intro .pipeline .t{font-size:1.375rem}

/* ---- two parts: story and workshop journal ---- */
.journal-top .latest{margin-top:1.6rem;display:flex;flex-wrap:wrap;gap:.75rem;justify-content:center}
.journal-top .latest .btn{min-height:3rem;align-items:center;padding-inline:1.4rem;font-size:1.125rem}
.sec-title{font:italic clamp(2rem,6vw,3rem)/1.1 var(--display);color:var(--moon);text-align:center;margin:0;font-weight:400}
.story-part{margin-top:clamp(3.5rem,9vw,5.5rem);scroll-margin-top:1.5rem}
.story-part .prologue{margin-top:clamp(2rem,5vw,3rem)}
.cast{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1rem,4vw,2.5rem);max-width:44rem;margin:clamp(3.5rem,9vw,5.5rem) auto 0;text-align:left}
.char h3{font:italic clamp(1.75rem,5vw,2.25rem)/1.1 var(--display);color:var(--moon);margin:1rem 0 .1rem;font-weight:400}
.char .char-line{font-family:var(--sc);letter-spacing:.06em;color:var(--silver);margin:0 0 .6rem}
.char p{margin:0;font-size:1.0625rem;line-height:1.55}
.char .cut{background:var(--night-2)}
@media (max-width:34rem){.cast{grid-template-columns:1fr;gap:2.5rem;max-width:20rem}}
.story-note{max-width:30rem;margin:clamp(2.5rem,6vw,3.5rem) auto 0;text-align:center;color:var(--silver);font-style:italic}
.journal-intro{scroll-margin-top:1.5rem}
.switch{position:fixed;left:50%;bottom:max(1rem,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:40;display:flex;gap:.25rem;padding:.3rem;border-radius:999px;background:rgba(29,36,44,.9);border:1px solid rgba(230,232,227,.25);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);white-space:nowrap}
.switch a{font:1.0625rem/1 var(--sc);letter-spacing:.05em;text-decoration:none;color:var(--moon-soft);padding:.8rem 1.1rem .85rem;border-radius:999px;min-height:2.75rem;display:inline-flex;align-items:center}
.switch a.on{background:var(--moon);color:var(--night)}

/* menu sits in the header, not floating */

@media (max-width:26rem){.journal-top .switch a{padding-inline:.85rem;font-size:1rem}}

/* floating menu, top centre */
.switch{top:max(.75rem,env(safe-area-inset-top));bottom:auto}
.fae .to-contents{display:none}
@media (min-width:62rem){.fae .to-contents{display:inline-block}}
.letter .social{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:2rem}
.letter .social .btn{min-height:3rem;align-items:center;padding-inline:1.4rem;font-size:1.125rem}
@media (max-width:30rem){.letter .social{gap:.5rem}.letter .social .btn{padding-inline:1rem;font-size:1.0625rem}}

/* main-page teaser */
#journal .journal-logo{display:block;margin:0 auto;width:clamp(15rem,36vw,24rem);height:auto}
#journal .flavor{margin-top:clamp(1.5rem,3vw,2rem)}
.teaser-duo{display:grid;grid-template-columns:1fr 1fr;gap:clamp(.75rem,3vw,1.5rem);max-width:30rem;margin:clamp(1rem,3vw,1.5rem) auto 0}
.teaser-duo .cut{background:var(--night-2)}
.teaser-duo figcaption{margin-top:.5rem;text-align:center;font:italic 1.5rem/1.1 var(--display);color:var(--moon)}
.teaser-go{flex-wrap:wrap;gap:.75rem}
.teaser-go .btn--line{color:var(--moon)}

.teaser-go .btn--big{font-size:clamp(1.375rem,4vw,1.75rem);padding:1.2rem 3rem 1.25rem;min-width:min(100%,19rem);justify-content:center}
.story-part,.journal-intro{scroll-margin-top:5rem}
.prologue .ragna{text-align:center}

.colophon.legal{color:var(--moon-soft);max-width:34rem;margin-inline:auto;padding-inline:var(--pad);font-size:.9375rem;line-height:1.5;letter-spacing:.05em}

/* more air around the project titles on the main page */
.part .part-title{margin-top:clamp(2.5rem,6.5vw,4rem)}
.part .part-head .tale-for{margin-top:clamp(1.25rem,3vw,1.75rem)}
.part-head{margin-bottom:clamp(2rem,4.5vw,3rem)}

/* on phones the journal pictures and films use the full width */
@media (max-width:40rem){.journey figure .cut,.entry-more figure .cut{max-width:none!important}}

/* cookie consent */
.consent{position:fixed;left:50%;bottom:max(1rem,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:70;width:min(32rem,calc(100vw - 2rem));background:var(--night);color:var(--moon);border:1px solid rgba(230,232,227,.3);border-radius:1.25rem;padding:1.1rem 1.25rem 1.2rem;box-shadow:0 .5rem 2rem rgba(0,0,0,.35);text-align:center}
.consent p{margin:0 0 1rem;font-size:1.0625rem;line-height:1.45}
.consent-buttons{display:flex;gap:.75rem;justify-content:center;flex-wrap:wrap}
.consent .btn{min-height:2.75rem;align-items:center;cursor:pointer;font-size:1.0625rem}
.consent .btn--line{background:transparent;color:var(--moon)}
.cookie-link{font:inherit;letter-spacing:inherit;color:inherit;background:none;border:0;padding:0;margin-left:.5rem;text-decoration:underline;cursor:pointer}

.contents li.no-num{counter-increment:none}

/* pop-up notes over own videos */
.player .note{position:absolute;left:clamp(.7rem,2.4vw,1.4rem);right:clamp(.7rem,2.4vw,1.4rem);bottom:clamp(3.2rem,9vw,4.2rem);margin:0;width:fit-content;max-width:min(30rem,100%);padding:.55rem .9rem .6rem;border-radius:.2rem;background:rgba(236,237,232,.94);color:var(--ink);font:italic 1rem/1.35 var(--text);opacity:0;transform:translateY(.4rem);transition:opacity .6s ease,transform .6s ease;pointer-events:none}
.player .note.on{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.player .note{transition:none;transform:none}}
.player .note.top{bottom:auto;top:clamp(.7rem,2.4vw,1.2rem);transform:translateY(-.4rem)}
.player .note.top.on{transform:none}

/* phones: slightly larger type */
@media (max-width:40rem){html{font-size:109%}.switch a{font-size:.95rem;padding-inline:.9rem}}

/* digital twin picture strip */
.twin{margin-top:clamp(2.25rem,5vw,3.5rem)}
.twin-title{font:1.25rem/1.2 var(--sc);letter-spacing:.06em;font-weight:400;margin:0 0 .35rem}
.twin-label{margin:0 0 .8rem;font-style:italic;font-size:1.0625rem;color:var(--ink-soft);min-height:1.5em}
.twin-n{margin-left:.6rem;font-style:normal;font-family:var(--sc);letter-spacing:.05em;white-space:nowrap}
.twin-strip{list-style:none;margin:0;padding:0 0 .8rem;display:flex;gap:clamp(.7rem,2vw,1.2rem);overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:var(--ink-soft) transparent}
.twin-strip:focus-visible{outline:2px solid var(--ink);outline-offset:4px}
.twin-strip li{flex:0 0 auto;scroll-snap-align:center;height:clamp(13rem,56vw,26rem)}
.twin-strip .cut{display:block;height:100%;padding:0;border:0;cursor:zoom-in;background:var(--night-2)}
.twin-strip .cut img{height:100%;width:auto;max-width:none;display:block;object-fit:cover}
.twin-nav{display:none;gap:.6rem;margin-top:.4rem}
@media (min-width:62rem){.twin-nav{display:flex}}
.twin-nav button{font:1.25rem/1 var(--sc);padding:.45rem 1rem .5rem;border-radius:999px;border:1px solid rgba(29,36,44,.35);background:transparent;color:var(--ink);cursor:pointer}
.twin-nav button:hover{background:rgba(29,36,44,.08)}
dialog.twin-box{border:0;padding:0;background:transparent;max-width:100vw;max-height:100vh;width:100vw;height:100vh}
dialog.twin-box::backdrop{background:rgba(20,26,32,.97)}
.twin-box img{position:absolute;inset:0;margin:auto;max-width:96vw;max-height:92vh;width:auto;height:auto;cursor:zoom-out}
.twin-box .twin-x{position:absolute;top:1rem;right:1rem;font:1rem/1 var(--sc);padding:.5rem .9rem .55rem;border-radius:999px;border:0;background:rgba(236,237,232,.92);color:var(--ink);cursor:pointer}

.twin-loop{margin:.6rem 0 1.6rem}
.twin-loop figcaption{margin-left:0;margin-right:0;max-width:none}

.twin-cast{list-style:none;margin:0 0 .9rem;padding:0;display:flex;flex-wrap:wrap;gap:.35rem 1.1rem;font:1.0625rem/1.2 var(--sc);letter-spacing:.04em}
.twin-cast li{display:flex;align-items:center;gap:.45rem}
.twin-cast i{display:block;width:.95rem;height:.95rem;border-radius:50%;box-shadow:0 0 0 1px rgba(29,36,44,.25)}
