/* CASE · EUROPEAN PARLIAMENT (work/european-parliament/ styles)
   ------------------------------------------------------------------
   The cobalt "Briefing" cover (v3) on the body of "The Week" (v2):
   the case page organised as one working week, because the
   product IS a weekly rhythm. Set in the print language of the new
   homepage and About: condensed 76-80% Bricolage, mono labels with a
   12px cobalt square and a hairline to the edge, 0-4px corners,
   objects you could pick up (prints, a planner pad, a ticket, an insert).

     cover    cobalt  rail, the title set to fill the measure, the rule,
                      one sentence, and the cover plate: a print of three
                      vertical clips laid across the edge where the
                      cobalt cover meets the paper page
     01 brief paper   the job in one sentence + the three phases,
                      each tagged with its days (starts under the plate)
     02 week  paper   one example week on a planner sheet: Mon → Thu,
                      one step a day (ideas, your OK, shoot, done). A
                      "with your team" band runs Mon into Tue to the OK,
                      dashed on into Wed. Thursday is the cobalt column
                      with the one big figure, 24 h, stamped "Always.";
                      Fri–Sun stays empty. Phones: a list with a rail.
                      The plenary fast track is a small insert below
     03 out   cobalt  the real 9:16 frames dealt as prints, one clip
                      playing in the tallest; formats to scale
     04 start paper   the €500 test video as a die-cut ticket with a
                      one-week strip printed on it; booking = its stub
     next     ink     the shared next-project band, re-set in print

   The flat nav takes the colour of the field under it (case-ep.js):
   cobalt over the cover and the output field, paper elsewhere.

   Progressive enhancement: the default CSS is the finished page.
   Entrance states live only under html.ep--armed, which a pre-paint
   script adds when motion is allowed (and drops again if case-ep.js
   never runs). Reduced motion never arms. No #bgBlob, no .reveal, no
   scene slates, no timecode, no glows. Every rule is scoped under
   body.case-ep or an ep- class.
   ------------------------------------------------------------------ */

body.case-ep {
  --ep-p: var(--paper, #f0ece3);
  --ep-i: var(--ink, #14110c);
  --ep-c: var(--cobalt, #2b34ff);
  --ep-cl: var(--cobalt-light, #7a83ff);
  --ep-stock: #fbf8f2;                          /* card stock, a shade off the page */
  --ep-soft: var(--ink-soft, #3a342b);
  --ep-mut: var(--muted, #6a6358);              /* 5.3:1 on paper */
  --ep-rule: rgba(20, 17, 12, 0.16);
  --ep-rule-c: rgba(240, 236, 227, 0.45);       /* hairline on cobalt */
  --ep-perf: rgba(20, 17, 12, 0.26);
  --ep-e: var(--ease, cubic-bezier(0.16, 1, 0.3, 1));
  --ep-draw: cubic-bezier(0.65, 0, 0.2, 1);
  --ep-snap: cubic-bezier(0.3, 1.45, 0.45, 1);
  --ep-deal: cubic-bezier(0.2, 1.12, 0.32, 1);
  --ep-lift:
    drop-shadow(0 1px 1px rgba(20, 17, 12, 0.16))
    drop-shadow(0 16px 22px rgba(20, 17, 12, 0.13));
  --ep-lift-c:
    drop-shadow(0 2px 2px rgba(6, 8, 60, 0.28))
    drop-shadow(0 18px 26px rgba(6, 8, 60, 0.34));

  /* the measure (wrap content width; case-ep.js subtracts a classic
     scrollbar via --ep-sbw) and the cover plate built from it */
  --ep-W: calc(min(100vw - var(--ep-sbw, 0px), var(--maxw, 1320px)) - 2 * var(--gutter, 24px));
  --ep-gap: clamp(16px, 2.2vw, 36px);
  --ep-pb: clamp(6px, 0.75vw, 11px);                                   /* print border */
  --ep-plate-w: calc(var(--ep-W) * 0.655);
  --ep-plate-h: calc((var(--ep-plate-w) - 2 * var(--ep-pb)) * 0.5625 + 2 * var(--ep-pb));
  --ep-plate-r: -1.1deg;
  --ep-spill: 0.44;                                                      /* share of the plate on paper */
  background: var(--ep-p);
}

/* ---------- page-level overrides (this page only) ---------- */
body.case-ep .timecode,
body.case-ep .wipe-stamp,
body.case-ep .scene-slate,
body.case-ep .vf__rec,
body.case-ep .vf__tc { display: none !important; }           /* no HUD */
body.case-ep ::selection { background: var(--ep-c); color: var(--ep-p); }
/* arriving here, the morph keeps print corners (styles.css rounds it 18px) */
::view-transition-old(case-hero),
::view-transition-new(case-hero) { border-radius: 2px; }

/* ================================================================
   NAV: a solid, flat bar (the homepage's print nav). Paper with an
   ink hairline; cobalt over the cover and the output field
   (case-ep.js sets .ep-nav--cobalt; the markup starts with it).
   ================================================================ */
body.case-ep #nav {
  transition: background-color 0.28s var(--ep-e), color 0.28s var(--ep-e),
              box-shadow 0.28s var(--ep-e), padding 0.3s var(--ep-e);
}
body.case-ep #nav.is-scrolled {
  background: var(--ep-p);
  color: var(--ep-i);
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  box-shadow: 0 1px 0 var(--ep-i);
}
body.case-ep #nav.ep-nav--cobalt { color: var(--ep-p); }
body.case-ep #nav.ep-nav--cobalt.is-scrolled { background: var(--ep-c); box-shadow: 0 1px 0 var(--ep-rule-c); }
body.case-ep #nav.ep-nav--cobalt :focus-visible { outline-color: var(--ep-p); }
body.case-ep #nav .nav__name { color: inherit; }
body.case-ep #nav .nav__name sup { color: var(--ep-c); }
body.case-ep #nav.ep-nav--cobalt .nav__name sup { color: inherit; opacity: 0.7; }
body.case-ep #nav .nav__lang {
  padding: 3px 6px 2px;
  border: 1px solid currentColor;
  border-radius: 2px;
  color: inherit;
  opacity: 0.72;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  transition: opacity 0.2s var(--ep-e);
}
body.case-ep #nav .nav__lang:hover,
body.case-ep #nav .nav__lang:focus-visible { opacity: 1; color: inherit; border-color: currentColor; }
body.case-ep #nav .nav__menu {
  gap: clamp(16px, 2.2vw, 30px);
  padding: 0;
  border-radius: 0;
  background: none;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
}
body.case-ep #nav .nav__menu .pill--ghost {
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}
body.case-ep #nav .nav__menu .pill--ghost::before {
  inset: auto 0 4px 0;
  height: 1px;
  border-radius: 0;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ep-e);
}
body.case-ep #nav .nav__menu .pill--ghost:hover::before,
body.case-ep #nav .nav__menu .pill--ghost:focus-visible::before { transform: scaleX(1); }
/* GET IN TOUCH: the die-cut ticket button (side notches), flat */
body.case-ep #nav .nav__contact {
  position: relative;
  isolation: isolate;
  padding: 0.9em 1.25em;
  border: 0;
  border-radius: 4px;
  background: none;
  box-shadow: none;
  color: var(--ep-p);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  transform: none;
}
body.case-ep #nav .nav__contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 4px;
  background: var(--ep-c);
  -webkit-mask:
    radial-gradient(circle at 0 50%, #0000 5px, #000 5.5px) 0 0 / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, #0000 5px, #000 5.5px) 100% 0 / 51% 100% no-repeat;
          mask:
    radial-gradient(circle at 0 50%, #0000 5px, #000 5.5px) 0 0 / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, #0000 5px, #000 5.5px) 100% 0 / 51% 100% no-repeat;
  transition: background-color 0.25s var(--ep-e);
}
body.case-ep #nav .nav__contact:hover { background: none; box-shadow: none; transform: none; }
body.case-ep #nav .nav__contact:hover::before { background: var(--ep-i); }
body.case-ep #nav .nav__contact:focus-visible { outline: 2px solid var(--ep-c); outline-offset: 4px; }
body.case-ep #nav.ep-nav--cobalt .nav__contact { color: var(--ep-c); }
body.case-ep #nav.ep-nav--cobalt .nav__contact::before { background: var(--ep-p); }
body.case-ep #nav.ep-nav--cobalt .nav__contact:hover { color: var(--ep-p); }
body.case-ep #nav.ep-nav--cobalt .nav__contact:hover::before { background: var(--ep-i); }
body.case-ep #nav.ep-nav--cobalt .nav__contact:focus-visible { outline-color: var(--ep-p); }
@media (max-width: 620px) {
  body.case-ep #nav .nav__menu { gap: 12px; }
  body.case-ep #nav .nav__menu .pill--ghost { font-size: 0.6rem; letter-spacing: 0.12em; padding: 8px 0; }
  body.case-ep #nav .nav__contact { padding: 0.85em 0.95em; font-size: 0.58rem; letter-spacing: 0.1em; }
}

/* ================================================================
   SHARED PIECES
   ================================================================ */
.ep-case { display: block; position: relative; z-index: 10; }
.ep-wrap {
  position: relative;
  z-index: 1;
  max-width: var(--maxw, 1320px);
  margin: 0 auto;
  padding: 0 var(--gutter, 24px);
}

/* the system's section mark */
.ep-mark {
  display: inline-block;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  background: var(--ep-c);
}
.ep-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ep-i);
}
.ep-label::after {
  content: "";
  flex: 1 1 auto;
  min-width: 24px;
  height: 1px;
  background: var(--ep-rule);
}
.ep-title {
  margin: clamp(18px, 2.2vw, 30px) 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 76%;
  font-size: clamp(2.7rem, 6.6vw, 6.4rem);
  line-height: 0.88;
  letter-spacing: -0.035em;
  text-wrap: balance;
  font-feature-settings: "kern" 1;
}
.ep-hi { color: var(--ep-c); }

.ep-sec {
  position: relative;
  isolation: isolate;
  overflow: hidden;            /* fallback */
  overflow: clip;
  padding: clamp(80px, 9vw, 136px) 0;
}

/* film grain for the cobalt fields (the site's hard-light tile) */
.ep-grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%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.4' intercept='-0.7'/%3E%3CfeFuncG type='linear' slope='2.4' intercept='-0.7'/%3E%3CfeFuncB type='linear' slope='2.4' intercept='-0.7'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  opacity: 0.11;
  mix-blend-mode: hard-light;
}

/* inline mono link with a rule */
.ep-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ep-c);
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.4s var(--ep-e);
}
.ep-link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- a photo print (card stock border, caption on the foot) ---------- */
.ep-print {
  margin: 0;
  padding: clamp(7px, 0.7vw, 10px) clamp(7px, 0.7vw, 10px) 0;
  background: var(--ep-stock);
  border-radius: 2px;
  filter: var(--ep-lift);
}
.ep-print__frame {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #0d0b08;
}
.ep-print__frame img,
.ep-print__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.ep-print__cap {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 2px 11px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ep-mut);
}
.ep-print__cap span:last-child:not(:first-child) { color: var(--ep-c); white-space: nowrap; }
/* reduced motion: no autoplay, a small printed play / pause button instead */
.ep-play {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 0;
  border-radius: 3px;
  background: var(--ep-p);
  color: var(--ep-i);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.ep-play::before {
  content: "";
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent currentColor;
}
.ep-play.is-playing::before {
  width: 8px;
  height: 10px;
  border: 0;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

/* ================================================================
   COVER (cobalt)
   ================================================================ */
.ep-cover {
  position: relative;
  z-index: 2;                          /* the plate lies over the paper page */
  isolation: isolate;
  overflow-x: clip;
  background: var(--ep-c);
  color: var(--ep-p);
  padding: clamp(92px, 9vw, 118px) 0 0;
}
.ep-cover ::selection { background: var(--ep-p); color: var(--ep-i); }
.ep-cover :focus-visible { outline-color: var(--ep-p); }
.ep-cover__rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ep-rule-c);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.ep-cover__tag { display: inline-flex; align-items: center; gap: 12px; }
.ep-cover__tag .ep-mark { background: var(--ep-i); }

/* the title fills the measure: "PARLIAMENT" is 3.93em wide at this cut */
.ep-cover__title {
  --t: calc(var(--ep-W) / 3.97);
  --rule-w: clamp(5px, 0.62vw, 9px);
  position: relative;
  margin: 0;
  padding: 0.1em 0 calc(0.02em + var(--rule-w));
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 76%;
  font-size: var(--t);
  line-height: 0.8;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  font-feature-settings: "kern" 1;
  font-optical-sizing: none;           /* phone sizes would pick wider cuts and overrun the rule */
}
.ep-cover__title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--rule-w);
  background: var(--ep-p);
  transform-origin: 0 50%;
}
.ep-cover__line { display: block; }
.ep-cover__line > span { display: block; margin-left: -0.035em; }

.ep-cover__foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ep-gap);
  padding-top: clamp(20px, 2.4vw, 34px);
}
.ep-cover__sum {
  flex: 1 1 0;
  max-width: 17ch;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 760;
  font-stretch: 82%;
  font-size: clamp(1.45rem, 2.45vw, 2.3rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* the cover plate: a print laid across the cobalt / paper edge; the
   part that hangs below the cover is made room for by .ep-brief */
.ep-plate {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  width: var(--ep-plate-w);
  margin: 0 0 calc(var(--ep-plate-h) * var(--ep-spill) * -1);
}
.ep-plate__print {
  padding: var(--ep-pb);
  background: var(--ep-stock);
  filter:
    drop-shadow(0 2px 2px rgba(8, 10, 70, 0.28))
    drop-shadow(0 26px 42px rgba(8, 10, 70, 0.32));
  transform: rotate(var(--ep-plate-r));
  transform-origin: 60% 40%;
  view-transition-name: case-hero;     /* the homepage card morphs into it (#caseHero) */
}
.ep-plate__print img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}
.ep-plate__cap {
  position: absolute;
  right: calc(100% + var(--ep-gap));
  bottom: 0;
  width: min(30ch, calc(var(--ep-W) - var(--ep-plate-w) - var(--ep-gap)));
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ep-mut);
}
.ep-plate__cap b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--ep-c);
}
.ep-plate__cap b::after {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

/* ================================================================
   01 THE BRIEF (starts under the plate's overhang)
   ================================================================ */
.ep-brief {
  padding: calc(var(--ep-plate-h) * var(--ep-spill) + clamp(56px, 6.4vw, 100px)) 0 clamp(48px, 5vw, 80px);
}
.ep-brief__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 2.4vw, 40px);
  margin-top: clamp(28px, 3.4vw, 48px);
}
.ep-brief__lead {
  grid-column: 1 / span 5;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 460;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.5;
  color: var(--ep-soft);
}
.ep-brief__big {
  grid-column: 1 / -1;
  margin: clamp(16px, 2vw, 26px) 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 78%;
  font-size: clamp(2rem, 4.5vw, 4.3rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}
.ep-brief__own {
  grid-column: 7 / -1;
  margin: clamp(24px, 3vw, 40px) 0 0;
  font-family: var(--font-display);
  font-weight: 460;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.5;
  color: var(--ep-soft);
}
.ep-phases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(20px, 2.4vw, 40px);
  margin: clamp(56px, 6.4vw, 96px) 0 0;
  padding: 0;
  list-style: none;
}
.ep-phase {
  display: grid;
  align-content: start;
  gap: 12px;
  padding-top: 16px;
  border-top: 2px solid var(--ep-i);
}
.ep-phase__tag {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 6px;
}
.ep-phase__no {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 76%;
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--ep-c);
  font-variant-numeric: lining-nums;
}
.ep-phase__days {
  padding: 6px 8px 5px;
  border: 1px solid var(--ep-i);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ep-phase__t {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 780;
  font-stretch: 82%;
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.ep-phase__c {
  margin: 0;
  max-width: 38ch;
  font-family: var(--font-display);
  font-weight: 440;
  font-size: 0.97rem;
  line-height: 1.5;
  color: var(--ep-soft);
}

/* ================================================================
   02 THE WEEK — one example week on a planner sheet
   ================================================================ */
.ep-week { padding-top: clamp(40px, 5vw, 80px); padding-bottom: clamp(88px, 9vw, 136px); }
.ep-week__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
  column-gap: clamp(28px, 3.4vw, 56px);
  align-items: end;
}
.ep-week__lead {
  display: flex;
  gap: 14px;
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ep-soft);
}
.ep-week__lead::before {
  content: "";
  flex: 0 0 auto;
  width: clamp(24px, 2.6vw, 40px);
  height: 2px;
  margin-top: 0.62em;
  background: var(--ep-c);
}

/* the lift lives on the wrapper so the punched mask never clips it */
.ep-pad {
  position: relative;
  z-index: 1;
  margin-top: clamp(40px, 5vw, 72px);
  filter: var(--ep-lift);
}
.ep-sheet {
  --px: clamp(14px, 1.6vw, 24px);                     /* column inset */
  --bh: clamp(30px, 2.6vw, 36px);                     /* band height */
  --top: clamp(14px, 1.4vw, 20px);                    /* day header inset */
  --day-fs: clamp(1.6rem, 3vw, 2.9rem);               /* the day names */
  --rest-fs: clamp(1rem, 1.5vw, 1.45rem);             /* Fri–Sun, quieter */
  --perf-y: repeating-linear-gradient(to bottom, var(--ep-perf) 0 2px, transparent 2px 6px);
  position: relative;
  border-radius: 4px;
  background: var(--grain) 0 0 / 140px 140px, var(--ep-stock);
  background-blend-mode: multiply;
  /* the pad's punched binding along the top edge */
  -webkit-mask: radial-gradient(circle at 50% 15px, #0000 4px, #000 4.5px) 50% 0 / 22px 100% repeat-x;
          mask: radial-gradient(circle at 50% 15px, #0000 4px, #000 4.5px) 50% 0 / 22px 100% repeat-x;
}
.ep-sheet__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 36px var(--px) clamp(14px, 1.4vw, 20px);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ep-i);
}

/* the calendar: Monday to Thursday, one step a day, then a quiet
   Fri–Sun. Each step is one column on three shared rows (subgrid):
   the day, the "with your team" band, the entry. */
.ep-cal {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 1fr);
  border-top: 2px solid var(--ep-i);
}
.ep-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto auto 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ep-step {
  position: relative;
  grid-row: 1 / span 3;
  display: grid;
  grid-template-rows: subgrid;
  min-width: 0;
  padding: 0 var(--px) clamp(28px, 3vw, 44px);
}
/* the perforation between two days */
.ep-step + .ep-step::before,
.ep-cal__rest::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: var(--perf-y);
  pointer-events: none;
}
.ep-step__day {
  grid-row: 1;
  display: grid;
  justify-items: start;
  gap: 10px;
  margin: 0;
  padding: var(--top) 0 clamp(14px, 1.4vw, 18px);
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 76%;
  font-size: var(--day-fs);
  line-height: 0.82;
  letter-spacing: -0.03em;
}
.ep-step__no {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.16em;
  color: var(--ep-c);
}
.ep-step__body {
  grid-row: 3;
  min-width: 0;
  padding-top: clamp(18px, 1.8vw, 26px);
}
.ep-step__t {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 80%;
  font-size: clamp(1.4rem, 2.1vw, 2rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.ep-step__c {
  margin: 10px 0 0;
  max-width: 30ch;
  font-family: var(--font-display);
  font-weight: 440;
  font-size: clamp(0.9rem, 1vw, 0.98rem);
  line-height: 1.45;
  color: var(--ep-soft);
}

/* the band: "with your team" runs Monday into Tuesday and ends on your
   OK; dashed on into Wednesday, because the OK can take a day longer.
   Each piece runs to its column edges, so the three read as one line. */
.ep-band {
  grid-row: 2;
  position: relative;
  z-index: 1;                                         /* over the perforations */
  display: flex;
  align-items: center;
  height: var(--bh);
  margin: 0 calc(-1 * var(--px));
  padding: 0 14px;
  background: var(--ep-c);
  color: var(--ep-p);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* Tuesday's piece sits on top: its OK over the dashed maybe, and 1px
   over Monday's piece so the two never show a seam */
.ep-band--to { z-index: 2; margin-left: calc(-1 * var(--px) - 1px); }
.ep-band--from { margin-left: 0; border-radius: 2px 0 0 2px; }
.ep-band__ok {                                        /* the OK, where the band ends */
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 0;
  translate: 50% -50%;
  display: grid;
  place-items: center;
  height: calc(var(--bh) + 12px);
  padding: 0 10px;
  border: 2px solid var(--ep-c);
  border-radius: 3px;
  background: var(--ep-stock);
  color: var(--ep-c);
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 80%;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  letter-spacing: 0.02em;
}
.ep-band--maybe {
  justify-self: start;
  width: calc(64% + var(--px));
  padding-left: 34px;
  border: 1.5px dashed var(--ep-c);
  border-left: 0;
  border-radius: 0 2px 2px 0;
  background: repeating-linear-gradient(-45deg, rgba(43, 52, 255, 0.12) 0 5px, transparent 5px 11px);
  color: var(--ep-c);
}

/* Thursday: the cobalt column, the one big figure */
.ep-step--done {
  margin-top: -2px;                                   /* over the rule */
  background: var(--ep-c);
  color: var(--ep-p);
}
.ep-step--done::before { display: none; }
.ep-step--done .ep-step__no { color: inherit; opacity: 0.8; }
.ep-step--done .ep-step__day { padding-top: calc(var(--top) + 2px); }
.ep-step--done ::selection { background: var(--ep-p); color: var(--ep-i); }
.ep-step--done .ep-step__body {
  container-type: inline-size;                        /* the 24 h and the stamp size to the column */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: start;
}
.ep-step--done .ep-step__t { flex: 0 0 100%; }
.ep-step--done .ep-step__c { order: 3; flex: 0 0 100%; color: var(--ep-p); }
.ep-done__fig {
  order: 1;
  margin: clamp(14px, 1.4vw, 20px) 0 0 -0.04em;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 76%;
  font-size: clamp(4.2rem, 7.4vw, 7.4rem);
  font-size: clamp(3.4rem, 40cqi, 7.4rem);
  line-height: 0.78;
  letter-spacing: -0.05em;
  font-variant-numeric: lining-nums;
  white-space: nowrap;
}
.ep-done__fig small { font-size: 0.42em; margin-left: 0.05em; letter-spacing: 0; }
/* "Always.": a rubber stamp in paper ink, pressed at an angle */
.ep-stamp {
  order: 2;
  margin: clamp(14px, 1.4vw, 20px) 0 0 clamp(8px, 1vw, 14px);
  padding: 0.2em 0.38em 0.12em;
  border: 3px solid var(--ep-p);
  border-radius: 3px;
  box-shadow: inset 0 0 0 2px var(--ep-c), inset 0 0 0 3.5px var(--ep-p);
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 80%;
  font-size: clamp(1.05rem, 1.5vw, 1.45rem);
  font-size: clamp(0.9rem, 10cqi, 1.45rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  rotate: -8deg;
  white-space: nowrap;
}
.ep-done__alt {
  order: 4;
  flex: 0 0 100%;
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--ep-rule-c);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Fri–Sun: left empty */
.ep-cal__rest {
  position: relative;
  margin: 0;
  /* sits on the day names' foot line */
  padding: calc(var(--top) + 0.66rem + 10px + var(--day-fs) * 0.82 - var(--rest-fs) * 0.82) var(--px) 0;
  background: rgba(20, 17, 12, 0.035);
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 76%;
  font-size: var(--rest-fs);
  line-height: 0.82;
  letter-spacing: -0.02em;
  color: rgba(20, 17, 12, 0.3);
}
.ep-cal__rest::before { left: 0; }

/* ---------- the fast track: a small insert under the week ---------- */
.ep-fast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(18px, 2.4vw, 36px);
  width: min(100%, 820px);
  margin: clamp(28px, 3.2vw, 48px) 0 0;
  padding: clamp(16px, 1.8vw, 22px) clamp(18px, 2.2vw, 28px);
  border: 1.5px solid var(--ep-i);
  border-radius: 4px;
}
.ep-fast__big {
  align-self: stretch;
  display: grid;
  align-content: center;
  margin: 0;
  padding-right: clamp(18px, 2.4vw, 36px);
  border-right: 2px dotted var(--ep-perf);
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 76%;
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  line-height: 0.86;
  letter-spacing: -0.03em;
  color: var(--ep-c);
  white-space: nowrap;
}
.ep-fast__k {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ep-c);
}
.ep-fast__t {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 80%;
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.ep-fast__c {
  margin: 8px 0 0;
  max-width: 62ch;
  font-family: var(--font-display);
  font-weight: 440;
  font-size: 0.93rem;
  line-height: 1.45;
  color: var(--ep-soft);
}

/* ================================================================
   03 THE OUTPUT (cobalt)
   ================================================================ */
.ep-out { background: var(--ep-c); color: var(--ep-p); }
.ep-out .ep-label { color: var(--ep-p); }
.ep-out .ep-label::after { background: var(--ep-rule-c); }
.ep-out .ep-mark { background: var(--ep-i); }
.ep-out ::selection { background: var(--ep-p); color: var(--ep-i); }
.ep-out :focus-visible { outline-color: var(--ep-p); }
/* ink only for emphasis: the word printed on an ink block */
.ep-inkmark {
  padding: 0 0.1em 0.02em;
  margin-left: -0.04em;
  background: var(--ep-i);
  color: var(--ep-p);
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}

.ep-deal {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin: clamp(48px, 5.4vw, 84px) 0 0;
  padding: 0 0 36px;
  list-style: none;
}
.ep-deal__it {
  --w: clamp(104px, 15.2vw, 204px);          /* six fit the measure down to 700px */
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: var(--w);
  margin: 0 calc(-1 * clamp(6px, 0.95vw, 14px));
  translate: 0 var(--y, 0px);
  rotate: var(--r, 0deg);
  transition: translate 0.55s var(--ep-snap), rotate 0.55s var(--ep-snap);
}
.ep-deal__it--video { --w: clamp(146px, 21vw, 286px); z-index: 3; }
.ep-deal .ep-print { filter: var(--ep-lift-c); }
@media (hover: hover) {
  .ep-deal__it:hover { z-index: 6; translate: 0 calc(var(--y, 0px) - 16px); rotate: 0deg; }
}

.ep-formats {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-top: clamp(40px, 4.8vw, 72px);
  padding-top: 18px;
  border-top: 1px solid var(--ep-rule-c);
}
.ep-formats__k {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ep-formats__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 18px clamp(24px, 3.4vw, 52px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ep-formats__list li {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: end;
}
.ep-ratio {
  grid-row: 1 / span 2;
  display: block;
  height: 56px;
  border: 2px solid var(--ep-p);
  border-radius: 2px;
}
.ep-ratio--v { width: 31.5px; }
.ep-ratio--s { width: 56px; }
.ep-ratio--w { width: 99.5px; }
.ep-formats__list b {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 78%;
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.ep-formats__list span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ep-formats__subs { grid-template-columns: auto !important; padding-left: clamp(0px, 1.4vw, 20px); border-left: 1px solid var(--ep-rule-c); }

/* ================================================================
   04 START — the €500 ticket
   ================================================================ */
.ep-start__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  column-gap: clamp(32px, 5vw, 88px);
  align-items: center;
  margin-top: clamp(26px, 3vw, 44px);
}
.ep-start__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 76%;
  font-size: clamp(3rem, 7.2vw, 7rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.ep-start__copy {
  margin: clamp(22px, 2.6vw, 34px) 0 0;
  max-width: 44ch;
  font-family: var(--font-display);
  font-weight: 460;
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  line-height: 1.5;
  color: var(--ep-soft);
}
.ep-start__alt { margin: clamp(22px, 2.6vw, 32px) 0 0; }

.ep-tkt {
  --n: 13px;                   /* side-notch radius */
  --h: 2.7px;                  /* punched-hole radius */
  --hp: 11px;                  /* hole pitch */
  --rad: 6px;
  justify-self: end;
  width: min(100%, 440px);
  rotate: -2.4deg;
  filter: var(--ep-lift);
}
.ep-tkt__body {
  --cut-l: radial-gradient(circle at 0 100%, #0000 var(--n), #000 calc(var(--n) + 0.5px));
  --cut-r: radial-gradient(circle at 100% 100%, #0000 var(--n), #000 calc(var(--n) + 0.5px));
  --holes: radial-gradient(circle at 50% 100%, #0000 var(--h), #000 calc(var(--h) + 0.5px));
  position: relative;
  isolation: isolate;
  padding: clamp(18px, 2vw, 26px) clamp(18px, 2vw, 26px) clamp(22px, 2.4vw, 30px);
  border-radius: var(--rad) var(--rad) 0 0;
  background: var(--grain) 0 0 / 140px 140px, var(--ep-stock);
  background-blend-mode: multiply;
  -webkit-mask-image: var(--cut-l), var(--cut-r), var(--holes);
  -webkit-mask-size: 100% 100%, 100% 100%, var(--hp) 100%;
  -webkit-mask-repeat: no-repeat, no-repeat, repeat-x;
  -webkit-mask-position: 0 0, 0 0, 50% 0;
  -webkit-mask-composite: source-in;
          mask-image: var(--cut-l), var(--cut-r), var(--holes);
          mask-size: 100% 100%, 100% 100%, var(--hp) 100%;
          mask-repeat: no-repeat, no-repeat, repeat-x;
          mask-position: 0 0, 0 0, 50% 0;
          mask-composite: intersect;
}
.ep-tkt__rail {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ep-rule);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ep-tkt__rail span:first-child {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 80%;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}
.ep-tkt__price {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 0;
}
.ep-tkt__price b {
  display: inline-flex;
  align-items: flex-start;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 76%;
  font-size: clamp(5.2rem, 9vw, 8.2rem);
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: var(--ep-c);
  font-variant-numeric: lining-nums;
}
.ep-tkt__cur { font-size: 0.54em; margin: 0.08em 0.06em 0 0; letter-spacing: 0; }
.ep-tkt__price > span {
  padding-bottom: 0.3em;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ep-tkt__week { position: relative; margin: clamp(18px, 2vw, 24px) 0 0; }
.ep-tkt__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: 0;
  padding: 0 0 8px;
  list-style: none;
  border-bottom: 1px solid var(--ep-i);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-align: center;
}
.ep-tkt__days li + li { border-left: 1px dotted var(--ep-perf); }
.ep-tkt__bar {
  display: flex;
  align-items: center;
  width: calc(100% / 7 * 4);                        /* Monday to Thursday */
  height: 28px;
  margin-top: 8px;
  padding: 0 10px;
  border-radius: 2px;
  background: var(--ep-i);
  color: var(--ep-p);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ep-tkt__terms {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 460;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ep-soft);
}
.ep-tkt__stub {
  --cut-l: radial-gradient(circle at 0 0, #0000 var(--n), #000 calc(var(--n) + 0.5px));
  --cut-r: radial-gradient(circle at 100% 0, #0000 var(--n), #000 calc(var(--n) + 0.5px));
  --holes: radial-gradient(circle at 50% 0, #0000 var(--h), #000 calc(var(--h) + 0.5px));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(18px, 2vw, 24px) clamp(18px, 2vw, 26px);
  border-radius: 0 0 var(--rad) var(--rad);
  background: var(--ep-c);
  color: var(--ep-p);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform-origin: 0 0;
  transition: transform 0.55s var(--ep-snap), background-color 0.25s var(--ep-e);
  -webkit-mask-image: var(--cut-l), var(--cut-r), var(--holes);
  -webkit-mask-size: 100% 100%, 100% 100%, var(--hp) 100%;
  -webkit-mask-repeat: no-repeat, no-repeat, repeat-x;
  -webkit-mask-position: 0 0, 0 0, 50% 0;
  -webkit-mask-composite: source-in;
          mask-image: var(--cut-l), var(--cut-r), var(--holes);
          mask-size: 100% 100%, 100% 100%, var(--hp) 100%;
          mask-repeat: no-repeat, no-repeat, repeat-x;
          mask-position: 0 0, 0 0, 50% 0;
          mask-composite: intersect;
}
.ep-tkt__arrow {
  font-family: var(--font-display);
  font-size: 1.4em;
  font-weight: 700;
  transition: transform 0.35s var(--ep-e);
}
.ep-tkt__stub:hover,
.ep-tkt__stub:focus-visible { background: var(--ep-i); transform: rotate(2.4deg) translateY(4px); }
.ep-tkt__stub:hover .ep-tkt__arrow,
.ep-tkt__stub:focus-visible .ep-tkt__arrow { transform: translateX(6px); }
.ep-tkt__stub:focus-visible { outline: none; }
.ep-tkt:has(.ep-tkt__stub:focus-visible) { outline: 2px solid var(--ep-c); outline-offset: 8px; }

/* ================================================================
   FOOT: shared project nav + next-project band, re-set in print
   ================================================================ */
body.case-ep .project-foot {
  margin-top: 0;
  border-top: 1px solid var(--ep-i);
}
body.case-ep .project-foot__link { color: var(--ep-i); letter-spacing: 0.18em; }
body.case-ep .project-foot__link:hover,
body.case-ep .project-foot__link:focus-visible { color: var(--ep-c); }
body.case-ep .project-back {
  margin-bottom: clamp(40px, 9vw, 64px);     /* off the next-project band */
  border-radius: 3px;
  border-color: var(--ep-i);
  background: var(--ep-stock);
  box-shadow: none;
}

body.case-ep .next-project {
  place-items: end stretch;
  min-height: clamp(380px, 60vh, 640px);
  padding-bottom: clamp(64px, 8vw, 120px);
  text-align: left;
}
body.case-ep .next-project__inner {
  width: 100%;
  max-width: calc(var(--maxw, 1320px) - 2 * var(--gutter, 24px));
  margin: 0 auto;
}
body.case-ep .next-project__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(16px, 2vw, 26px);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: rgba(240, 236, 227, 0.76);
}
body.case-ep .next-project__eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  background: var(--ep-c);
}
body.case-ep .next-project__title {
  font-stretch: 76%;
  font-size: clamp(3.6rem, 11.6vw, 10.6rem);
  line-height: 0.86;
  letter-spacing: -0.022em;
  color: var(--ep-p);
  -webkit-text-stroke: 0;
}
body.case-ep .next-project__title::after {
  content: "→";
  display: inline-block;
  margin-left: 0.14em;
  font-size: 0.5em;
  vertical-align: 0.34em;
  color: var(--ep-cl);
  transition: transform 0.45s var(--ep-e);
}
body.case-ep .next-project:hover .next-project__title::after,
body.case-ep .next-project:focus-visible .next-project__title::after { transform: translateX(0.12em); }
/* the band runs edge to edge on ink: ring it inside, in cobalt-light */
body.case-ep .next-project:focus-visible { outline-color: var(--ep-cl); outline-offset: -6px; border-radius: 0; }
@media (max-width: 768px) {
  body.case-ep .next-project__eyebrow::after { content: " project"; }
  html[lang="fi"] body.case-ep .next-project__eyebrow::after { content: " projekti"; }
  body.case-ep .next-project__inner::after { display: none; }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1099px) {
  .ep-brief__lead { grid-column: 1 / span 7; }
  .ep-brief__own { grid-column: 5 / -1; }
  .ep-week__head { grid-template-columns: minmax(0, 1fr); }
  .ep-week__lead { margin-top: 18px; max-width: 34rem; }
  .ep-start__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* cover: below 900px the plate takes the full measure, its caption
   drops under it, and the brief starts below both */
@media (max-width: 899px) {
  body.case-ep { --ep-plate-w: var(--ep-W); --ep-spill: 0.36; --ep-plate-r: -0.8deg; }
  .ep-cover__foot { flex-direction: column; gap: clamp(22px, 4vw, 32px); }
  .ep-cover__sum { max-width: 22ch; }
  .ep-plate__cap {
    right: auto;
    left: 0;
    bottom: auto;
    top: calc(100% + 14px);
    width: 100%;
    justify-items: start;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
  }
  .ep-brief { padding-top: calc(var(--ep-plate-h) * var(--ep-spill) + 72px + clamp(28px, 5vw, 48px)); }
}

/* week, tablet: the four days fill the sheet; Fri–Sun folds away */
@media (max-width: 899px) {
  .ep-sheet { --px: 12px; --bh: 28px; }
  .ep-cal { grid-template-columns: minmax(0, 1fr); }
  .ep-cal__rest { display: none; }
  .ep-band { padding: 0 10px; font-size: 0.56rem; letter-spacing: 0.1em; }
  .ep-band--maybe { width: calc(76% + var(--px)); padding-left: 34px; }   /* clear of the OK */
  .ep-step__c { font-size: 0.88rem; }
}

/* week, phone: the four steps stack as a list; the band becomes a rail
   down the left (Monday into Tuesday to the OK, dashed into Wednesday) */
@media (max-width: 699px) {
  .ep-sheet { --px: 16px; --py: 18px; --rail: 20px; }
  .ep-sheet__top { padding-bottom: 14px; }
  .ep-steps { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .ep-step {
    grid-row: auto;
    grid-template-rows: none;
    grid-template-columns: var(--rail) minmax(0, 1fr);
    column-gap: 14px;
    align-content: start;
    padding: var(--py) var(--px) calc(var(--py) + 2px);
  }
  .ep-step + .ep-step::before {
    top: -1px;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 2px;
    background: repeating-linear-gradient(to right, var(--ep-perf) 0 2px, transparent 2px 6px);
  }
  .ep-step__day {
    grid-row: 1;
    grid-column: 2;
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 0;
    font-size: clamp(1.5rem, 7.4vw, 1.9rem);
  }
  .ep-step__body { grid-row: 2; grid-column: 2; padding-top: 10px; }
  .ep-step__t { font-size: clamp(1.3rem, 6vw, 1.55rem); }
  .ep-band { font-size: 0.6rem; }
  .ep-step__c { max-width: none; margin-top: 6px; font-size: 0.93rem; }

  .ep-band {
    grid-row: 1 / span 2;
    grid-column: 1;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
    margin: 0 0 calc(-1 * var(--py) - 2px);          /* runs on into the next day */
    padding: 12px 0;
  }
  .ep-band > span { writing-mode: vertical-rl; rotate: 180deg; }
  .ep-band--from { border-radius: 2px 2px 0 0; }
  .ep-band--to { margin-top: calc(-1 * var(--py) - 1px); }
  .ep-band__ok {
    top: auto;
    right: auto;
    bottom: 0;
    left: 50%;
    translate: -50% 50%;
    height: auto;
    padding: 6px 6px 5px;
    font-size: 0.95rem;
  }
  .ep-band--maybe {
    align-self: start;
    justify-self: stretch;
    justify-content: flex-end;
    width: auto;
    height: calc(var(--py) + 84px);
    margin: calc(-1 * var(--py)) 0 0;
    padding: 0 0 10px;
    border: 1.5px dashed var(--ep-c);
    border-top: 0;
    border-radius: 0 0 2px 2px;
  }

  .ep-step--done { margin-top: 0; padding-bottom: calc(var(--py) + 8px); }
  .ep-done__fig { font-size: clamp(4.6rem, 24vw, 6rem); }
  .ep-stamp { font-size: clamp(1.15rem, 5.6vw, 1.45rem); }

  .ep-fast { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .ep-fast__big {
    padding: 0 0 12px;
    border-right: 0;
    border-bottom: 2px dotted var(--ep-perf);
    font-size: 1.7rem;
  }
}

@media (max-width: 699px) {
  .ep-cover__rail span:nth-child(2) { display: none; }

  .ep-title { font-size: clamp(2.5rem, 12.2vw, 3.4rem); }
  .ep-brief__lead,
  .ep-brief__big,
  .ep-brief__own { grid-column: 1 / -1; }
  .ep-brief__big { font-size: clamp(1.85rem, 8.6vw, 2.5rem); line-height: 0.98; }
  .ep-phases { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }

  /* the deal becomes a swipeable row of prints (the row scrolls, not the page) */
  .ep-deal {
    justify-content: flex-start;
    gap: 14px;
    margin: 40px calc(-1 * var(--gutter, 20px)) 0;
    padding: 18px var(--gutter, 20px) 30px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter, 20px);
    scrollbar-width: none;
  }
  .ep-deal::-webkit-scrollbar { display: none; }
  .ep-deal:focus-visible { outline-offset: -2px; border-radius: 0; }   /* case-ep.js makes the row focusable */
  .ep-deal__it,
  .ep-deal__it--video { --w: 58vw; margin: 0; translate: none; rotate: none; scroll-snap-align: start; }
  .ep-deal__it--video { order: -1; --w: 64vw; }
  .ep-formats { grid-template-columns: minmax(0, 1fr); row-gap: 18px; }
  .ep-formats__list { justify-content: flex-start; }
  .ep-formats__subs { border-left: 0; padding-left: 0; }

  .ep-start__grid { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
  .ep-start__title { font-size: clamp(2.8rem, 13vw, 3.8rem); }
  .ep-tkt { justify-self: center; width: min(100%, 380px); rotate: -1.6deg; }
}

/* ================================================================
   ENTRANCES — only under html.ep--armed (motion allowed, JS on)
   ================================================================ */
@keyframes epRise { from { transform: translateY(104%); } to { transform: none; } }
@keyframes epUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes epRule { from { transform: scaleX(0); } to { transform: none; } }
@keyframes epLay {
  from { opacity: 0; transform: translate(4%, -8%) rotate(-5deg); }
  to { opacity: 1; transform: rotate(var(--ep-plate-r)); }
}

/* cover: plays on load. Arriving by the homepage morph (the pagereveal
   script marks #caseHero .is-in), the plate is already in place. */
.ep--armed .ep-cover__line { overflow: hidden; overflow: clip; overflow-clip-margin: 0.05em; padding-bottom: 0.02em; margin-bottom: -0.02em; }
.ep--armed .ep-cover__line > span { animation: epRise 1.05s var(--ep-e) both; }
.ep--armed .ep-cover__line + .ep-cover__line > span { animation-delay: 0.09s; }
.ep--armed .ep-cover__rail { animation: epUp 0.8s var(--ep-e) both; }
.ep--armed .ep-cover__sum { animation: epUp 0.9s var(--ep-e) 0.32s both; }
.ep--armed .ep-cover__title::after { animation: epRule 1.1s var(--ep-draw) 0.2s both; }
.ep--armed .ep-plate__print:not(.is-in) { animation: epLay 1.15s var(--ep-deal) 0.42s both; }
.ep--armed .ep-plate__cap { animation: epUp 0.8s var(--ep-e) 0.9s both; }

/* sections: case-ep.js adds .is-in when a section enters */
.ep--armed .ep-sec .ep-label,
.ep--armed .ep-sec .ep-title,
.ep--armed .ep-brief__big,
.ep--armed .ep-start__title,
.ep--armed .ep-phase {
  transition: opacity 0.8s var(--ep-e), transform 1s var(--ep-e);
}
.ep--armed .ep-sec:not(.is-in) .ep-label { opacity: 0; }
.ep--armed .ep-sec:not(.is-in) .ep-title,
.ep--armed .ep-sec:not(.is-in) .ep-brief__big,
.ep--armed .ep-sec:not(.is-in) .ep-start__title { opacity: 0; transform: translateY(0.35em); }
.ep--armed .ep-brief:not(.is-in) .ep-phase { opacity: 0; transform: translateY(20px); }
.ep--armed .ep-phase:nth-child(1) { transition-delay: 0.2s; }
.ep--armed .ep-phase:nth-child(2) { transition-delay: 0.28s; }
.ep--armed .ep-phase:nth-child(3) { transition-delay: 0.36s; }

/* the week fills in when the pad is in view (.is-in on .ep-pad): the
   days, the band drawn Monday into Tuesday, the OK, its dashed maybe,
   the entries in order, then "Always." is stamped and the insert lands */
.ep--armed .ep-step__day,
.ep--armed .ep-step__body {
  transition: opacity 0.6s var(--ep-e), transform 0.8s var(--ep-e);
}
.ep--armed .ep-pad:not(.is-in) .ep-step__day { opacity: 0; transform: translateY(-10px); }
.ep--armed .ep-pad:not(.is-in) .ep-step__body { opacity: 0; transform: translateY(12px); }
.ep--armed .ep-step:nth-child(2) .ep-step__day { transition-delay: 0.06s; }
.ep--armed .ep-step:nth-child(3) .ep-step__day { transition-delay: 0.12s; }
.ep--armed .ep-step:nth-child(4) .ep-step__day { transition-delay: 0.18s; }
.ep--armed .ep-step:nth-child(1) .ep-step__body { transition-delay: 0.4s; }
.ep--armed .ep-step:nth-child(2) .ep-step__body { transition-delay: 0.7s; }
.ep--armed .ep-step:nth-child(3) .ep-step__body { transition-delay: 1s; }
.ep--armed .ep-step:nth-child(4) .ep-step__body { transition-delay: 1.3s; }

.ep--armed .ep-band { transition: clip-path 0.45s var(--ep-draw); clip-path: inset(-14px -60px -14px 0); }
.ep--armed .ep-pad:not(.is-in) .ep-band { clip-path: inset(-14px 100% -14px 0); }
.ep--armed .ep-band--from { transition-delay: 0.3s; }
.ep--armed .ep-band--to { transition-delay: 0.62s; }
.ep--armed .ep-band--maybe { transition-delay: 1.12s; }
@media (max-width: 699px) {
  .ep--armed .ep-band { clip-path: inset(0 -30px -30px -30px); }
  .ep--armed .ep-pad:not(.is-in) .ep-band { clip-path: inset(0 -30px 100% -30px); }
}
.ep--armed .ep-band__ok { transition: transform 0.45s var(--ep-snap) 1s, opacity 0.2s linear 1s; }
.ep--armed .ep-pad:not(.is-in) .ep-band__ok { opacity: 0; transform: scale(1.6); }

/* Thursday's column, then the stamp pressed onto the 24 h */
.ep--armed .ep-step--done { transition: opacity 0.5s var(--ep-e) 1.1s, transform 0.7s var(--ep-snap) 1.1s; }
.ep--armed .ep-pad:not(.is-in) .ep-step--done { opacity: 0; transform: translateY(18px); }
.ep--armed .ep-stamp { transition: transform 0.45s var(--ep-snap) 1.75s, opacity 0.18s linear 1.75s; }
.ep--armed .ep-pad:not(.is-in) .ep-stamp { opacity: 0; transform: scale(1.9); }

/* the insert */
.ep--armed .ep-fast { transition: transform 0.6s var(--ep-e) 2s, opacity 0.4s linear 2s; }
.ep--armed .ep-pad:not(.is-in) + .ep-fast { opacity: 0; transform: translateY(14px); }

/* 03 the deal */
.ep--armed .ep-deal__it > .ep-print { transition: opacity 0.7s var(--ep-e), transform 1s var(--ep-e); }
.ep--armed .ep-out:not(.is-in) .ep-deal__it > .ep-print { opacity: 0; transform: translateY(90px) rotate(-6deg); }
.ep--armed .ep-deal__it:nth-child(2) > .ep-print { transition-delay: 0.07s; }
.ep--armed .ep-deal__it:nth-child(3) > .ep-print { transition-delay: 0.14s; }
.ep--armed .ep-deal__it:nth-child(4) > .ep-print { transition-delay: 0.21s; }
.ep--armed .ep-deal__it:nth-child(5) > .ep-print { transition-delay: 0.28s; }
.ep--armed .ep-deal__it:nth-child(6) > .ep-print { transition-delay: 0.35s; }

/* 04 the ticket drops onto the counter */
.ep--armed .ep-tkt { transition: opacity 0.5s var(--ep-e) 0.15s, transform 0.8s var(--ep-snap) 0.15s; }
.ep--armed .ep-start:not(.is-in) .ep-tkt { opacity: 0; transform: translateY(-40px) rotate(-6deg); }

/* belt and braces: never animate for reduced motion even if armed */
@media (prefers-reduced-motion: reduce) {
  .ep--armed .ep-case * { animation: none !important; transition: none !important; }
  body.case-ep .ep-deal__it,
  body.case-ep .ep-tkt__stub,
  body.case-ep #nav { transition: none; }
}
