/* Episode pages (episodes/<slug>.html, built by scripts/build_episodes.py), in the Ep 2 carousel's look (Aidan 2026-11-24: "I want
   to update the website to have that kind of feeling for the Amy episode"), which is the After Effects comps' finish. Short since
   2026-11-25 (Aidan: "we also don't need all of these sections"): hero, the guests, the story, the free guide, one quote, the call
   to be on the show, the footer.

   - The grounds alternate from the story down: dark, cream, dark, cream, dark (Aidan 2026-11-25: "Can the sections alternate to
     our lighter color to break it up?"). Cream sections are DESIGN.md's light mode: oxblood type, orange and gold only as shapes
     (gold never on cream, orange only as a shape on it).
   - The cover is a sheet of the VO open's oxblood paper (dust on Screen, folded kraft on Overlay, grain, a vignette: the .ep-fin
     layers at the end of the sheet). The quote is the same paper in cream (folds and grain only). Textures: assets/paper/, made by
     tools/episode-paper/make_assets.py from the show repo's AE textures. Every other section has a clean ground or a palette
     gradient with a light film grain.
   - People stay clean: cut-outs, the video and every photo with a person in it (.ep-clean) sit above the finish, untouched.
   - Display type is flat Bricolage with grain inside the letters, no glow, no shadow. One gold phrase on the dark, orange once a
     sheet.
   - Paper: photos and the guide's pages are cream-bordered prints, each turned a few degrees (flat 2D, never a 3D tilt), with a
     soft shadow like paper on a table.
   - The call to be on the show: the dots (the show's energy, see the dot-motion-ad skill in the show repo) drift as the burn and
     come home to the mark, which beats twice, then let go. Drawn by episodes.js. */
.ep{--oxblood:#4B1526;--deep:#2C0B16;--brick:#7A1E1E;--orange:#FF8A4C;--gold:#FFC145;--cream:#FFF0E6;
  --cream-72:rgba(255,240,230,.72);--line:rgba(255,240,230,.16);--ink-72:rgba(44,11,22,.72);--ink-line:rgba(75,21,38,.14);
  --paper-shadow:0 18px 36px rgba(10,2,6,.42),0 4px 10px rgba(10,2,6,.28);
  /* grain inside the letters (the carousel's NOISE) and the finish's grain (GRAIN) */
  --noise:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch' seed='4'/%3E%3CfeColorMatrix values='.33 .33 .33 0 0 .33 .33 .33 0 0 .33 .33 .33 0 0 0 0 0 0 1'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='2.2' intercept='-.6'/%3E%3CfeFuncG type='linear' slope='2.2' intercept='-.6'/%3E%3CfeFuncB type='linear' slope='2.2' intercept='-.6'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch' seed='9'/%3E%3CfeColorMatrix values='.33 .33 .33 0 0 .33 .33 .33 0 0 .33 .33 .33 0 0 0 0 0 0 1'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='2.2' intercept='-.6'/%3E%3CfeFuncG type='linear' slope='2.2' intercept='-.6'/%3E%3CfeFuncB type='linear' slope='2.2' intercept='-.6'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
.ep .wrap{width:100%;max-width:1200px;margin-inline:auto;padding-inline:max(16px,4vw);box-sizing:border-box}
.ep .eyebrow{display:block;font:700 .78rem/1.2 var(--sc-font-text);letter-spacing:.14em;color:rgba(255,240,230,.78)}
.ep .btn{border-radius:10px}
.ep .btn svg{width:16px;height:16px}
.ep-label{display:block;margin-bottom:10px;font:700 .74rem/1.2 var(--sc-font-text);letter-spacing:.1em;text-transform:uppercase;color:var(--cream-72)}
.ep-note{margin-top:14px;font:600 .82rem/1.4 var(--sc-font-text);color:var(--cream-72)}

/* the sheets and the finish over them */
.ep-sheet{position:relative;isolation:isolate;overflow:hidden;padding-block:clamp(64px,9vw,120px);background:var(--oxblood)}
/* the grounds, top to bottom: the hero's burn around the video (below), paper (cover), cream (story), night (the guide), cream paper (quote), the dots' glow (join) */
.ep-sheet--paper{background:var(--oxblood)}
.ep-g-night{background:radial-gradient(90% 60% at 50% 0%,var(--oxblood) 0%,var(--deep) 100%)}
.ep-fin{position:absolute;inset:0;z-index:2;pointer-events:none}
.ep-fin--dust{background:url(/assets/paper/dust.webp) center top/max(100%,1400px) auto repeat-y;mix-blend-mode:screen;opacity:.5}
.ep-fin--folds{background:url(/assets/paper/folds.webp) center top/max(100%,1400px) auto repeat-y;mix-blend-mode:overlay;opacity:.6}
.ep-fin--grain{background-image:var(--grain);background-size:200px 200px;mix-blend-mode:overlay;opacity:.16}   /* a light film grain; it also keeps the gradients from banding */
.ep-sheet--paper .ep-fin--grain{opacity:.32}
.ep-fin--vig{background:radial-gradient(130% 110% at 50% 45%,rgba(20,4,10,0) 55%,rgba(20,4,10,.5) 100%)}
.ep-pull .ep-fin--folds{transform:scaleX(-1);background-position:center 38%}
.ep-pull .ep-fin--dust{transform:scaleY(-1)}
.ep-clean{position:relative;z-index:3}

/* type: flat Bricolage, grain inside the letters, no glow */
.ep-t{--tc:var(--cream);color:var(--tc)}
.ep-t--gold{--tc:var(--gold)}
.ep-t--ink{--tc:var(--oxblood)}
.ep-t--orange{--tc:var(--orange)}
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  .ep-t,.ep-gold,.ep-hl{background-image:var(--noise),linear-gradient(var(--tc),var(--tc));background-size:240px 240px,100% 100%;background-blend-mode:soft-light;
    -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;padding-bottom:.06em}
  .ep-gold{--tc:var(--gold);padding-bottom:0;display:inline-block}   /* nested in a grain-filled line, an inline span's own fill doesn't paint */
  .ep-hl{--tc:var(--oxblood);padding-bottom:0}
  .ep-t::selection,.ep-t ::selection{-webkit-text-fill-color:var(--deep);background:var(--cream)}
}
.ep-gold{color:var(--gold)}

/* paper: prints of photos, a little turned */
.ep-print{margin:0;padding:clamp(8px,1.1vw,14px);box-sizing:border-box;border-radius:8px;background:var(--cream);box-shadow:var(--paper-shadow);transform:rotate(var(--r,0deg))}
.ep-print img{display:block;width:100%;height:auto;border-radius:3px}

/* hero */
.ep-hero{padding:calc(env(safe-area-inset-top,0px) + 120px) 0 clamp(64px,9vw,112px)}
.ep-hero__in{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:clamp(28px,4vw,64px);align-items:center}
.ep-back{display:block;width:fit-content;margin-bottom:22px;font-size:.9rem;color:var(--cream-72);text-decoration:none}
.ep-back:hover{color:var(--cream)}
.ep-hero h1{margin:.45em 0 0;font:800 clamp(2.1rem,4.2vw,3.7rem)/1 var(--sc-font-display);letter-spacing:-.03em;max-width:18ch}
.ep-lede{margin-top:20px;font-size:clamp(1.05rem,1.4vw,1.22rem);line-height:1.55;color:var(--cream-72);max-width:46ch}
.ep-ctas{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
/* the hero: the episode's real YouTube thumbnail is the video, a clean 16:9 frame with the burn glowing around it, and the whole hero
   is one gradient, deep behind the words warming to the burn around the video (Aidan 2026-11-25: "have that gradient of the entire
   hero section along with the image ... just have it as a square or a rectangle again ... add some design to it, like the nice
   gradient glow around it"). Glow and gradient in the burn's colours, not a blur of the thumbnail (that pulled in the window's
   greys and the plant's green). The thumbnail itself, Amy in it, is untouched. Click plays the episode in the frame (episodes.js). */
.ep-hero{background:var(--deep)}
.ep-hero > .wrap{position:relative;z-index:3}
.ep-hero__wash{position:absolute;inset:0;z-index:0;pointer-events:none;
  background:radial-gradient(52% 78% at 74% 50%,rgba(255,138,76,.5) 0%,rgba(122,30,30,.55) 42%,rgba(75,21,38,0) 80%),
    linear-gradient(90deg,var(--deep) 0%,rgba(44,11,22,.6) 45%,rgba(44,11,22,0) 70%),
    linear-gradient(180deg,var(--deep) 0%,#3A0F1D 50%,var(--oxblood) 100%)}
.ep-hero__in{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr)}
.ep-hero h1{font-size:clamp(2.1rem,3.9vw,3.35rem)}
.ep-hero__media{position:relative;isolation:isolate}
.ep-hero__glow{position:absolute;inset:-12% -9% -12% -3%;z-index:-1;border-radius:60px;pointer-events:none;   /* less on the left, off the title */
  background:conic-gradient(from 210deg,#FFC145,#FF8A4C,#7A1E1E,#FF8A4C,#FFC145,#FF8A4C,#7A1E1E,#FF8A4C,#FFC145);filter:blur(52px);opacity:1}
.ep-thumb{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;border-radius:14px;background:var(--deep);color:var(--oxblood);cursor:pointer;
  box-shadow:0 30px 70px rgba(10,2,6,.55),0 8px 20px rgba(10,2,6,.35)}   /* no border (Aidan: "Don't add the white border around it") */
.ep-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.ep-thumb iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.ep-thumb__play{position:absolute;left:50%;top:50%;display:grid;place-items:center;width:clamp(56px,6vw,80px);aspect-ratio:1;border-radius:50%;
  background:var(--cream);box-shadow:0 10px 24px rgba(10,2,6,.35);transform:translate(-50%,-50%);transition:transform .5s var(--ease)}
.ep-thumb__play svg{width:42%;height:42%;margin-left:8%}
@media (hover:hover){.ep-thumb:hover .ep-thumb__play{transform:translate(-50%,-50%) scale(1.08)}}

/* the cover: their names huge in gold behind them, their real cut-outs in front, running off the bottom. Sized in the box's own
   width (cqw), so it holds together like the slide at any screen size */
.ep-cover{padding-bottom:0}
.ep-cover__who{display:flex;justify-content:space-between;gap:20px;margin-top:22px}
.ep-cover__who p{max-width:30ch}
.ep-cover__who[data-n="2"] p:last-child{text-align:right}
.ep-cover__who b{display:block;font:800 clamp(1.1rem,1.8vw,1.45rem)/1.1 var(--sc-font-display);letter-spacing:-.015em}
.ep-cover__who span{display:block;margin-top:6px;font-size:.95rem;line-height:1.4;color:var(--cream-72)}
.ep-cover__box{position:relative;container-type:inline-size;aspect-ratio:100/54.4;margin-top:clamp(8px,2vw,20px)}
/* "Amy and Emma" is 6.34em wide; at phone sizes the tight tracking rounds wider, so it gets slack and a fill box wider than the
   text (the grain fill stops at the box's edge and would clip the last letter) */
.ep-cover__name{position:absolute;left:-4cqw;right:-4cqw;top:0;margin:0;padding:0;text-align:center;white-space:nowrap;
  font:800 14.7cqw/1 var(--sc-font-display);letter-spacing:-.05em}
.ep-cover__cut{position:absolute;height:auto}
.ep-cover__box[data-n="2"] .ep-cover__cut--1{left:3cqw;top:13cqw;width:47cqw}
.ep-cover__box[data-n="2"] .ep-cover__cut--2{right:3cqw;top:13.1cqw;width:43.7cqw}
.ep-cover__box[data-n="1"]{aspect-ratio:100/70}
.ep-cover__box[data-n="1"] .ep-cover__cut--1{left:10cqw;top:13cqw;width:80cqw}
/* cover_side "right": the name and who they are on the left, the cut-out big on the right, running off the bottom and the side
   (for a wide frame, where the centred cut-out leaves the head small; Michael, Ep 3) */
.ep-cover__box[data-side="right"]{aspect-ratio:100/84}
.ep-cover__box[data-side="right"] .ep-cover__name{left:0;right:auto;top:2cqw;text-align:left;font-size:16cqw}
.ep-cover__box[data-side="right"] .ep-cover__who{position:absolute;left:.6cqw;top:21cqw;width:36cqw;margin:0}
.ep-cover__box[data-side="right"] .ep-cover__cut--1{left:-5.7cqw;top:3.8cqw;width:135cqw}
.ep-guests{display:flex;flex-wrap:wrap;gap:clamp(16px,3vw,36px);margin-top:clamp(28px,4vw,48px)}
.ep-guests .ep-print{width:min(100%,380px)}

/* sections */
.ep-h2{margin-top:.35em;font:800 clamp(2rem,4vw,3.3rem)/1 var(--sc-font-display);letter-spacing:-.025em;max-width:18ch}
.ep-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.45fr);gap:clamp(28px,5vw,80px);align-items:start}

/* the light sheets: cream paper, oxblood type */
.ep-light{background:var(--cream);color:var(--oxblood)}
.ep-light .eyebrow,.ep-light .ep-label{color:var(--ink-72)}
.ep-light .ep-fin--grain{opacity:.22}
.ep-light .ep-fin--folds{opacity:.42}

/* the story: what happened, and what you'll see */
.ep-story .ep-split{align-items:center}
.ep-story__text{margin-top:22px;font-size:clamp(1.08rem,1.45vw,1.25rem);line-height:1.6;color:var(--ink-72);max-width:44ch}
.ep-more{display:inline-flex;align-items:center;gap:10px;margin-top:28px;padding-bottom:6px;border-bottom:2px solid currentColor;
  font:700 1rem/1 var(--sc-font-text);color:var(--oxblood);text-decoration:none}
.ep-more svg{width:16px;height:16px;transition:transform .4s var(--ease)}
@media (hover:hover){.ep-more:hover svg{transform:translateX(3px)}}
.ep-expect ol{list-style:none;margin:0;padding:0}
.ep-expect li{display:grid;grid-template-columns:52px minmax(0,1fr);gap:12px;align-items:baseline;padding-block:20px;border-top:2px solid var(--ink-line)}
.ep-expect li:last-child{border-bottom:2px solid var(--ink-line)}
.ep-expect b{font:600 .95rem/1 ui-monospace,Menlo,monospace;color:var(--ink-72)}
.ep-expect li span{font:700 clamp(1.15rem,1.7vw,1.45rem)/1.25 var(--sc-font-display);letter-spacing:-.012em;text-wrap:pretty}

/* the free guide: its two pages as big, readable prints with an orange sticker on the second page's top-right corner; every
   button opens the guide in the Skool community. The pages take the wider column (and on wide screens reach into the margin),
   tilt only a little, and overlap only at their blank edges so both pages read. */
.ep-get__in{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:clamp(40px,5vw,72px);align-items:center}
.ep-get__fan{position:relative;z-index:3;display:block;container-type:inline-size;aspect-ratio:100/84;
  margin-left:calc(-1 * clamp(0px,(100vw - 1200px) / 2,96px))}
.ep-get__fan > *{position:absolute;margin:0;transform:translate(var(--dx,0),var(--dy,0)) rotate(var(--r,0deg));transition:transform .6s var(--ease)}
.ep-get__page{width:52cqw;padding:1.4cqw;box-sizing:border-box;border-radius:8px;background:var(--cream);box-shadow:var(--paper-shadow)}
.ep-get__page img{display:block;width:100%;height:auto;border-radius:3px}
.ep-get__page--1{left:0;top:12cqw;--r:-3deg}
.ep-get__page--2{left:47cqw;top:5cqw;--r:3deg}
.ep-get__fan[data-n="1"] .ep-get__page--1{left:24cqw;top:6cqw}
/* hangs off the page's top-right corner, clear of the page title */
.ep-get__sticker{position:absolute;right:-4.5cqw;top:-5cqw;display:grid;place-items:center;width:15.6cqw;aspect-ratio:1;border-radius:50%;
  background:var(--orange);color:var(--deep);font:800 4.8cqw/1 var(--sc-font-display);letter-spacing:-.01em;
  box-shadow:0 8px 18px rgba(10,2,6,.35);transform:rotate(var(--sr,8deg));transition:transform .6s var(--ease)}
@media (hover:hover) and (prefers-reduced-motion:no-preference){
  .ep-get__fan:hover .ep-get__page--1{--r:-5deg;--dx:-1.5cqw;--dy:1cqw}
  .ep-get__fan:hover .ep-get__page--2{--r:5deg;--dx:1.5cqw;--dy:-1.5cqw}
  .ep-get__fan:hover .ep-get__sticker{--sr:16deg}
}
.ep-get .ep-lede{max-width:44ch}
.ep-get .ep-label{margin-top:32px}
.ep-get__inside{list-style:none;margin:0;padding:0;max-width:50ch}
.ep-get__inside li{position:relative;padding:13px 0 13px 26px;border-top:1px solid var(--line);font-size:1.05rem;line-height:1.5}
.ep-get__inside li:last-child{border-bottom:1px solid var(--line)}
.ep-get__inside li::before{content:"";position:absolute;left:2px;top:21px;width:9px;height:9px;border-radius:2px;background:var(--cream)}
.ep-get .ep-ctas{margin-top:30px}

/* the quote on cream paper: an oxblood opening mark, their line with one phrase underlined in orange (the opt-in cover's own
   underline), a small round face, the mark in the corner */
.ep-pull{padding-block:clamp(72px,10vw,140px)}
.ep-pull .wrap{position:relative}
.ep-pull__fig{margin:0;max-width:1000px}
.ep-pull__mark{display:block;height:.42em;font:800 clamp(7rem,15vw,13rem)/.8 var(--sc-font-display);padding:0}
.ep-pull blockquote{margin:0}
.ep-pull p{font:800 clamp(2.3rem,5.4vw,4.8rem)/1.02 var(--sc-font-display);letter-spacing:-.03em;max-width:17ch;text-wrap:balance}
.ep-hl{position:relative;display:inline-block;white-space:nowrap;color:var(--oxblood)}
.ep-hl::after{content:"";position:absolute;left:-1%;right:-1%;bottom:-.04em;height:.18em;z-index:-1;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M3 8.5C48 4 118 2.5 197 5.5' fill='none' stroke='%23FF8A4C' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat}
.ep-pull figcaption{display:flex;align-items:center;gap:18px;margin-top:clamp(36px,5vw,64px)}
.ep-pull__face{flex:none;width:clamp(64px,7vw,92px);height:auto;aspect-ratio:1;border-radius:50%;object-fit:cover;object-position:50% 24%}
.ep-pull figcaption span{font:600 clamp(.98rem,1.3vw,1.12rem)/1.4 var(--sc-font-text);color:var(--ink-72)}
.ep-pull figcaption b{display:block;font-weight:700;color:var(--oxblood)}
.ep-pull__logo{position:absolute;right:max(16px,4vw);bottom:0;width:clamp(36px,4.4vw,58px);color:var(--oxblood)}
.ep-pull__logo svg{display:block;width:100%;height:auto}

/* the call to be on the show: the dots on the left (episodes.js), the words on the right */
.ep-join{padding-block:clamp(72px,10vw,140px);
  background:radial-gradient(60% 85% at 22% 55%,rgba(122,30,30,.55) 0%,rgba(75,21,38,0) 70%),linear-gradient(180deg,var(--oxblood) 0%,var(--deep) 100%)}
.ep-join__in{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:clamp(32px,5vw,80px);align-items:center}
.ep-join__dots{aspect-ratio:1/1;width:100%;max-width:620px}   /* places the mark; the dots run on the canvas under the whole section */
.ep-join__canvas{position:absolute;inset:0;z-index:1;display:block;width:100%;height:100%;pointer-events:none;
  /* the field fades out before the words (--fx, or --fy in one column, set by episodes.js) and at the section's top and bottom */
  -webkit-mask-image:linear-gradient(90deg,#000 calc(var(--fx,100%) - 160px),transparent var(--fx,100%)),linear-gradient(180deg,transparent,#000 48px,#000 calc(var(--fy,100%) - 120px),transparent var(--fy,100%));
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(90deg,#000 calc(var(--fx,100%) - 160px),transparent var(--fx,100%)),linear-gradient(180deg,transparent,#000 48px,#000 calc(var(--fy,100%) - 120px),transparent var(--fy,100%));
  mask-composite:intersect}
.ep-join__copy{position:relative;z-index:3}
.ep-join h2{margin-top:.35em;font:800 clamp(2.2rem,4.6vw,4rem)/.98 var(--sc-font-display);letter-spacing:-.03em;max-width:14ch}
.ep-join .ep-ctas{margin-top:30px}
.ep-foot{width:100%;max-width:1200px;margin-inline:auto;padding-inline:max(16px,4vw);box-sizing:border-box}

@media (max-width:900px){
  .ep-hero{padding-top:calc(env(safe-area-inset-top,0px) + 96px)}
  .ep-hero__in,.ep-split,.ep-get__in,.ep-join__in{grid-template-columns:1fr}
  /* one column: the frame under the words, the glow a little tighter */
  .ep-hero__glow{inset:-6% -4%;filter:blur(32px)}
  .ep-hero__wash{background:radial-gradient(90% 40% at 50% 78%,rgba(255,138,76,.45) 0%,rgba(122,30,30,.5) 45%,rgba(75,21,38,0) 85%),
    linear-gradient(180deg,var(--deep) 0%,#3A0F1D 50%,var(--oxblood) 100%)}
  .ep-get__fan{max-width:640px;margin-left:0}
  .ep-get__page{width:50cqw}
  .ep-get__page--2{left:46cqw}
  .ep-join__dots{aspect-ratio:5/4;max-width:520px}
}
@media (max-width:560px){
  .ep-cover__who{gap:14px}
  .ep-cover__who b{font-size:1.02rem}
  .ep-cover__who span{font-size:.84rem}
  .ep-pull__logo{bottom:-24px}
  .ep-expect li{grid-template-columns:40px minmax(0,1fr)}
}
