/* Fightplan homepage, "the work is the show" (2026-11-20, KD-58).
   Loaded after styles.css and motion.css on the homepage only. Tokens come from styles.css (brand-tokens.json).
   Page order: walkout hero and cage-door film (motion.css) > five stages > the card > who / rounds / checks > closing.
   Every default below is the still state: no JS and reduced motion both get it. home.js adds the motion.
   The closing headline is the largest type on the page at any window size: the door line and the stage names
   are capped from the window's height by the same sum that sizes it. */

/* ---------- Cage door: the walkout's next beat ---------- */
/* As a section of its own it shows on phones (where its clip plays once) and wherever the scroll film is off.
   On desktop with motion on, motion.js plays the door frames inside the hero and hides this section. */
.door{position:relative;isolation:isolate;overflow:hidden;background:var(--bg);
  min-height:100vh;min-height:100svh;display:flex;align-items:center}
.door[hidden]{display:none}
.door-photo{position:absolute;inset:0;z-index:-1}
/* anchored top right: the hooded figure stays whole on the right at any width; the 2560px file is never shown wider */
.door-photo img,.door-photo video{position:absolute;top:0;right:0;width:100%;max-width:2560px;height:100%;object-fit:cover;object-position:100% 0}
.door.is-film .door-photo img{visibility:hidden}
.door-photo::after{content:"";position:absolute;inset:0;pointer-events:none;background:
  linear-gradient(90deg,var(--bg) 0%,rgba(11,11,12,.9) 26%,rgba(11,11,12,.55) 44%,rgba(11,11,12,0) 58%),
  linear-gradient(180deg,var(--bg) 0%,rgba(11,11,12,0) 9%),
  linear-gradient(0deg,var(--bg) 0%,rgba(11,11,12,0) 22%)}
.door-copy{width:100%;padding:calc(var(--header-h) + var(--space-6)) 0 var(--space-8)}
.door-copy .label{display:flex;align-items:center;gap:10px;margin-bottom:var(--space-4);color:var(--fg-2)}
.door-copy .label::before{content:"";width:24px;height:2px;background:currentColor}
.door-copy .display{font-size:min(clamp(52px,8.6vw,132px),max(64px,calc((100vh - 450px) / 3.6)));line-height:.9;max-width:min(46vw,5.4em)}
@media (max-width:767px),(max-aspect-ratio:1/1){
  /* phones and upright screens: the figure on top, the line under it */
  .door{display:block;min-height:0}
  .door-photo{position:relative;height:62vh;height:62svh;min-height:340px}
  .door-photo img,.door-photo video{max-width:none;object-position:50% 0}
  .door-photo::after{background:linear-gradient(0deg,var(--bg) 0%,rgba(11,11,12,0) 30%),linear-gradient(180deg,var(--bg) 0%,rgba(11,11,12,0) 8%)}
  .door-copy{padding:var(--space-4) 0 var(--space-8)}
  .door-copy .display{font-size:clamp(52px,16.5vw,104px);max-width:none}
}
/* upright tablets: the wide still, placed so the figure in the door is in view */
@media (min-width:768px) and (max-aspect-ratio:1/1){.door-photo img{object-position:84% 0}}
/* inside the hero (desktop film): the line sits on the dark fence, left of the door, and comes in once the cage is in view */
.walk .door-copy{position:absolute;left:0;right:0;top:50%;z-index:2;padding:0;opacity:0;pointer-events:none;
  transform:translateY(calc(-50% + 14px));transition:opacity 500ms var(--ease),transform 500ms var(--ease)}
.walk.is-door .door-copy{opacity:1;transform:translateY(-50%)}
/* a fade to the page's black under the line (the padded post beside the door is bright in some frames); it stops short of the figure */
.walk .door-copy::before{content:"";position:absolute;z-index:-1;left:0;top:-22vh;bottom:-22vh;width:58vw;pointer-events:none;
  background:linear-gradient(90deg,rgba(11,11,12,.65) 0%,rgba(11,11,12,.65) 79%,rgba(11,11,12,0) 100%);
  -webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 28%,#000 72%,transparent 100%);mask-image:linear-gradient(180deg,transparent 0%,#000 28%,#000 72%,transparent 100%)}
.walk.in-door .walk-copy{opacity:0;transition:opacity 450ms var(--ease)}
.walk.in-door .walk-copy .wrap > *{pointer-events:none}

/* ---------- The five stages ---------- */
.stages{position:relative;background:var(--bg);border-top:1px solid var(--border);counter-reset:stage;--n:5;
  --side:max(var(--gutter),calc((100% - 1120px) / 2))}
.stage:first-of-type{border-top:0}
/* the switch: <html data-unfinished="hide"> ships the page without the stages whose proof piece is not finished */
html[data-unfinished="hide"] .stage[data-proof="unfinished"]{display:none}

/* one column (under 1024 px): the round bar, the words, then the work and its caption */
.stage{counter-increment:stage;position:relative;display:flex;flex-direction:column;border-top:1px solid var(--border);background:var(--bg)}
.stage-text{order:1;padding:var(--space-6) var(--gutter);container-type:inline-size}
.stage-work{order:2;position:relative;display:flex;flex-direction:column;overflow:hidden;background:var(--black);
  height:60vh;height:60svh;min-height:400px}
.stage-head{display:flex;flex-direction:column;justify-content:flex-end}
.stage-no{display:block;margin-bottom:var(--space-3)}
.stage-no::before{content:counter(stage,decimal-leading-zero) " \00B7  "}
/* one size for all five: the longest word ("AUTOMATION", 4.54em wide) has to fit the column */
.stage-title{font-size:clamp(48px,17vw,92px);line-height:.88}
@supports (width:1cqi){
  .stage-head{--ts:clamp(48px,min(21cqi,max(72px,calc((100vh - 450px) / 3.6))),148px)}
  .stage-title{font-size:var(--ts)}
}
.stage-line{margin:var(--space-4) 0 0;font-size:var(--text-lg);line-height:1.45;color:var(--fg-2);max-width:34ch}
.stage-price{margin-top:var(--space-5);display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.stage-price + .stage-price{margin-top:var(--space-2)}
.stage-price .num{font-size:clamp(36px,3.4vw,46px);line-height:1}
.stage-price small{color:var(--muted);font-size:var(--text-sm)}
.stage-text .cta-row{margin-top:var(--space-5);gap:var(--space-3) var(--space-5)}
.stage-text .link-arrow .icon{width:18px;height:18px}

/* the work: each piece is sized from the stage it sits on (container units), so it fills the stage at any size */
.piece{position:relative;flex:1;min-height:0;margin:5% 6% 0;display:grid;place-items:center;container-type:size;container-name:piece}
.rig{width:100%}
.stage-cap{flex:none;margin:0;padding:var(--space-3) 6% var(--space-4);font-size:14px;line-height:1.45;color:var(--muted)}
.stage-cap b{margin-right:8px;font-weight:600;color:var(--fg-2)}
.stage-cap a{margin-left:8px;color:var(--fg-2);text-underline-offset:3px;white-space:nowrap}
.stage-cap a:hover{color:var(--fg)}

@media (min-width:1024px){
  /* twelve columns from the page's left margin to the right edge of the screen: text on 5, the work on a black stage on 7 */
  .stage{display:grid;grid-template-columns:var(--side) minmax(0,5fr) minmax(0,7fr);grid-template-rows:auto minmax(0,1fr);
    height:min(86vh,800px);min-height:560px}
  .stage > .round{grid-column:1 / -1;grid-row:1}
  .stage-text{grid-column:2;grid-row:2;display:flex;flex-direction:column;justify-content:center;padding:var(--space-6) var(--space-7) var(--space-6) 0}
  .stage-work{grid-column:3;grid-row:2;height:auto;min-height:0;border-left:1px solid var(--border)}
  /* the same slots in every stage, so nothing but the words changes on a cut */
  .stage-head{min-height:calc(29px + 1.76 * var(--ts,92px))}
  .stage-line{min-height:4.35em}
  .stage-cap{padding-bottom:var(--space-6);font-size:15px}
}

/* pinned: wide screens with motion on (home.js adds .is-pinned). One stage on screen at a time, hard cuts. */
/* --span is the stages' scroll in ordinary stages (home.js): a stage with data-span="2" (Marketing and Social, two acts each) counts twice */
.stages.is-pinned{height:calc(var(--span,var(--n)) * 150vh + 100vh)}
.stages.is-pinned .stages-pin{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden}
.stages.is-pinned .stage{position:absolute;inset:0;height:auto;min-height:0;border-top:0;grid-template-rows:minmax(0,1fr);opacity:0;pointer-events:none}
.stages.is-pinned .stage.on{opacity:1;pointer-events:auto;z-index:1}
.stages.is-pinned .stage > .round{display:none}
/* the words hang from one line in every stage (a stage with two prices grows downward, the name does not move) */
.stages.is-pinned .stage-text{grid-row:1;justify-content:flex-start;
  padding-top:calc(var(--header-h) + max(16px,(100svh - var(--header-h) - 500px) / 2));padding-bottom:var(--space-8)}
.stages.is-pinned .stage-work{grid-row:1;padding-top:var(--header-h)}

/* the round marker: same corner on every stage; the bar of the round in play fills as it plays */
.round{display:flex;align-items:center;gap:var(--space-4);padding:14px var(--gutter);background:var(--black);border-bottom:1px solid var(--border)}
.round-txt{flex:none;font-size:var(--text-xs);font-weight:600;letter-spacing:.14em;text-transform:uppercase;line-height:1;color:var(--fg-2);white-space:nowrap}
.round-txt b{font-family:var(--font-display);font-weight:700;font-size:20px;letter-spacing:.02em;color:var(--fg);font-variant-numeric:tabular-nums}
.round-bars{flex:1;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:6px;max-width:320px}
.round-bars i{position:relative;height:2px;background:var(--border-strong);overflow:hidden}
.round-bars i::after{content:"";position:absolute;inset:0;background:var(--brand-red);transform:scaleX(var(--f,0));transform-origin:left}
@media (min-width:1024px){.round{padding-left:var(--side);padding-right:var(--side)}}
.stages-pin > .round{display:none}
.stages.is-pinned .stages-pin > .round{display:flex;position:absolute;z-index:4;left:var(--side);bottom:var(--space-6);
  width:calc((100% - var(--side)) * 5 / 12 - var(--space-7));padding:0;background:none;border:0}

/* the cut between stages: one black panel, cut at the top-left and bottom-right like the F, wiping across */
.wipe{display:none}
.stages.is-pinned .wipe{display:block;position:absolute;z-index:3;top:0;bottom:0;left:0;--cut:22vh;width:calc(100% + 2 * var(--cut));
  background:var(--surface-3);pointer-events:none;will-change:transform;transform:translate3d(var(--wx,110vw),0,0);
  clip-path:polygon(var(--cut) 0,100% 0,100% calc(100% - var(--cut)),calc(100% - var(--cut)) 100%,0 100%,0 var(--cut))}
.stages.is-pinned .wipe::after{content:"";position:absolute;inset:0 1px;background:var(--black);
  clip-path:polygon(var(--cut) 0,100% 0,100% calc(100% - var(--cut)),calc(100% - var(--cut)) 100%,0 100%,0 var(--cut))}

/* ---------- Device frames: square, hairlines, no shadows ---------- */
.frame{position:relative;border:1px solid var(--border-strong);background:var(--bg);min-width:0}
.frame-bar{display:flex;align-items:center;gap:6px;height:30px;padding:0 12px;border-bottom:1px solid var(--border-strong);
  font-size:11px;font-weight:600;letter-spacing:.08em;line-height:1;color:var(--muted)}
.frame-bar i{flex:none;width:7px;height:7px;border:1px solid var(--border-strong)}
.frame-bar span{margin-left:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.frame-view{position:relative;overflow:hidden}
.frame-browser .frame-view{aspect-ratio:16 / 10}
.frame-phone .frame-view{aspect-ratio:390 / 844}
/* a page inside a frame: home.js scrolls it with the visitor's scroll */
.shot{display:block;width:100%;height:auto;will-change:transform;transform:translate3d(0,var(--y,0px),0)}

/* 01 web: the Basin homepage scrolling in a tall browser frame, the phone frame beside it */
.piece-web .rig{display:grid;grid-template-columns:minmax(0,2.3fr) minmax(0,1fr);gap:3.5%;align-items:center}

/* 02 apps: kenka.app above its weekly fight card, phone first, the desktop page beside it; both scroll */
.piece-apps .frames{display:grid;grid-template-columns:minmax(0,.42fr) minmax(0,.58fr);gap:3.5%;align-items:center}
.steps{list-style:none;margin:var(--space-4) 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:var(--space-5)}
.steps li{padding-top:var(--space-3);border-top:1px solid var(--border-strong);font-size:14px;line-height:1.45;color:var(--fg-2)}
.steps li b{display:block;margin-bottom:4px;font-size:var(--text-xs);font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--fg)}

/* 03 AI automation: Octavia beside a sample post that drafts itself, then our team's tick. Two tall panels. */
.piece-ai .rig{display:grid;grid-template-columns:minmax(0,.54fr) minmax(0,.46fr);gap:3.5%;align-items:stretch}
/* her photo as it sits on her own site (cut from the saved frame), head and hands whole */
.frame-photo{display:grid}
.frame-photo .frame-view{aspect-ratio:568 / 676;min-height:100%}
.frame-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 0}
.frame-draft{display:flex;flex-direction:column;background:var(--surface);container-type:inline-size}
.frame-draft .frame-bar{justify-content:space-between}
.frame-draft .frame-bar span{margin-left:0}
.tag{flex:none;padding:4px 7px;font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;line-height:1;color:var(--bg);background:var(--fg-2)}
.draft-text{flex:1;margin:0;padding:18px 18px 0;font-size:18px;line-height:1.4;color:var(--fg);text-wrap:wrap}
.dt-rest{visibility:hidden}
/* the caret is a plain inline box (a border, no width), so it never opens a line break inside a word */
.dt-caret{border-right:2px solid var(--fg);margin-right:-2px;visibility:hidden}
.is-typing .dt-caret{visibility:visible}
/* the two status lines stay in the page's own colours: grey words, a white tick. Red is the only accent. */
.draft-steps{list-style:none;margin:0;padding:12px 18px 16px;display:grid;gap:0;font-size:14px;font-weight:600;line-height:1.3}
.draft-steps li{display:flex;align-items:center;gap:8px;padding:10px 0;border-top:1px solid var(--border);color:var(--fg-2);
  transition:opacity 400ms var(--ease),transform 400ms var(--ease)}
.draft-steps .icon{width:18px;height:18px;stroke-width:2.6;color:var(--fg)}
.piece-ai.is-live .draft-steps li{opacity:0;transform:translateY(6px)}
.piece-ai.is-live.is-made .s1,.piece-ai.is-live.is-approved .s2{opacity:1;transform:none}

/* tablets and up: the pieces take their size from the stage's width and height */
@media (min-width:768px){
  @supports (width:1cqh){
    /* web: the browser frame takes the stage's height (up to as tall as the pair is wide); the phone keeps its own shape */
    .piece-web .rig{width:min(100%,145cqh);height:min(92cqh,100cqw);grid-template-rows:minmax(0,1fr)}
    .piece-web .frame-browser{display:flex;flex-direction:column;height:100%}
    .piece-web .frame-browser .frame-view{flex:1;min-height:0;aspect-ratio:auto}
    /* apps: the phone frame sets the height; the two lines of text sit under the pair */
    .piece-apps .rig{width:min(100%,calc((92cqh - 104px) * 1.14))}
    /* AI: both panels take the stage's height; the photo is cropped at its sides only */
    .piece-ai .rig{height:min(92cqh,104cqw);grid-template-rows:minmax(0,1fr)}
    .frame-photo .frame-view{aspect-ratio:auto;height:100%}
    .draft-text{padding:7cqi 7cqi 0;font-size:clamp(14px,11cqi,34px)}
    .draft-steps{padding:4cqi 7cqi 6cqi;font-size:clamp(14px,5.4cqi,17px)}
  }
  .steps li{font-size:15px}
}

/* 04 marketing, two acts (2026-11-21): Basin's film (act 1), then Karst's speed rope (act 2), each with its caption.
   The default is the still: both acts one after the other, each as tall as a stage's work area; on phones, as tall
   as they need. Pinned (wide screens, motion on), they sit on top of each other and home.js shows one at a time
   (.is-act2), a black panel (.act-wipe, the stage cut's panel in small) crossing the work between them. The act not
   on screen is only transparent, never hidden, so a screen reader reads both pieces and both captions. */
.acts{position:relative;display:flex;flex-direction:column}
.act{position:relative;display:flex;flex-direction:column;height:60vh;height:60svh;min-height:400px}
.act + .act{border-top:1px solid var(--border)}
/* Social (2026-11-21) has two acts in the same way: the week of posts, then five Shorts (below) */
.stage[data-stage="mkt"] .stage-work,.stage[data-stage="social"] .stage-work{height:auto;min-height:0}
.stage[data-stage="mkt"] .piece{display:block;overflow:visible}
@media (min-width:1024px){
  .stage[data-stage="mkt"],.stage[data-stage="social"]{height:auto}
  /* four links in two rows (the button and the call, then the two films): one step less space between them, so the
     first pair still fits the column at 1024 px (165 + 16 + 174 of 362 px). Social's four links get this too. */
  .stage[data-stage="mkt"] .stage-text .cta-row,.stage[data-stage="social"] .stage-text .cta-row{column-gap:var(--space-4)}
  .act{height:calc(min(86vh,800px) - 49px);min-height:511px}
  /* the words stay beside whichever act is in view */
  .stages:not(.is-pinned) .stage[data-stage="mkt"] .stage-text,
  .stages:not(.is-pinned) .stage[data-stage="social"] .stage-text{position:sticky;top:var(--header-h);align-self:start;min-height:calc(min(86vh,800px) - 49px)}
}
.stages.is-pinned .stage[data-stage="mkt"] .acts,.stages.is-pinned .stage[data-stage="social"] .acts{flex:1;min-height:0}
.stages.is-pinned .act{position:absolute;inset:0;height:auto;min-height:0;border-top:0}
.stages.is-pinned .acts:not(.is-act2) .act-rope,.stages.is-pinned .acts.is-act2 .act-film,
.stages.is-pinned .acts:not(.is-act2) .act-shorts,.stages.is-pinned .acts.is-act2 .act-week{opacity:0;pointer-events:none}
.act-wipe{display:none}
.stages.is-pinned .act-wipe{display:block;position:absolute;z-index:2;top:0;bottom:0;left:0;--cut:22vh;width:calc(100% + 2 * var(--cut));
  background:var(--surface-3);pointer-events:none;will-change:transform;transform:translate3d(var(--wx,110vw),0,0);
  clip-path:polygon(var(--cut) 0,100% 0,100% calc(100% - var(--cut)),calc(100% - var(--cut)) 100%,0 100%,0 var(--cut))}
.stages.is-pinned .act-wipe::after{content:"";position:absolute;inset:0 1px;background:var(--black);
  clip-path:polygon(var(--cut) 0,100% 0,100% calc(100% - var(--cut)),calc(100% - var(--cut)) 100%,0 100%,0 var(--cut))}

/* act 2, Karst (/work/karst): the frame the film has, the rope in it, hairline callouts drawn to the six parts of one
   handle, the parts listed under the frame. Still: one handle apart, pushed in (--z 1.35, so the parts read), every
   callout drawn. home.js, where it plays: the rope whole first (.mkt-whole, added by the script), then the handle
   apart fades in and the frame pushes in, then the callouts draw one after another, each lighting its line below.
   Positions (--x, --y, --l) are shares of the frame, measured on the pushed-in picture. */
.stage[data-stage="mkt"] .piece-mkt{margin:5% 6% 0;display:grid}
.piece-mkt .rig{display:flex;flex-direction:column;gap:var(--space-4)}
.frame-rope .frame-view{aspect-ratio:16 / 9;background:var(--black)}
.mkt-whole,.mkt-zoom{position:absolute;inset:0;will-change:transform}
.mkt-whole{opacity:calc(1 - var(--a,1));transform:scale(var(--zw,1));transform-origin:50% 55%}
.mkt-zoom{opacity:var(--a,1);transform:scale(var(--z,1.35));transform-origin:50% 100%}
.mkt-plate{position:absolute;inset:0}
.mkt-whole img,.mkt-plate img,.mkt-plate video{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;object-fit:cover}
.mkt-calls{position:absolute;inset:0;pointer-events:none}
/* --l is the line's length; --lp, where set, its length on phones (where the labels are numbers only) */
.mkt-call{position:absolute;left:var(--x);top:var(--y);width:0;height:0;--d:1;--len:var(--l)}
.mkt-call[data-dir="u"]{top:calc(var(--y) - var(--len));height:var(--len)}
.mkt-call[data-dir="d"]{height:var(--len)}
.mkt-call[data-dir="l"]{left:calc(var(--x) - var(--len));width:var(--len)}
/* the line grows from the part outward; the square marks the part */
.mkt-call::before{content:"";position:absolute;background:var(--fg-2)}
.mkt-call[data-dir="u"]::before,.mkt-call[data-dir="d"]::before{left:0;top:0;bottom:0;width:1px;transform:scaleY(var(--d))}
.mkt-call[data-dir="u"]::before{transform-origin:50% 100%}
.mkt-call[data-dir="d"]::before{transform-origin:50% 0}
.mkt-call[data-dir="l"]::before{left:0;right:0;top:0;height:1px;transform:scaleX(var(--d));transform-origin:100% 50%}
.mkt-call::after{content:"";position:absolute;width:5px;height:5px;margin:-2px 0 0 -2px;background:var(--fg);opacity:clamp(0,calc(var(--d) * 8),1)}
.mkt-call[data-dir="u"]::after{left:0;top:100%}
.mkt-call[data-dir="d"]::after{left:0;top:0}
.mkt-call[data-dir="l"]::after{left:100%;top:0}
.mkt-call b{position:absolute;display:flex;align-items:baseline;gap:6px;white-space:nowrap;font-size:11px;font-weight:600;letter-spacing:.14em;
  text-transform:uppercase;line-height:1;color:var(--fg);opacity:clamp(0,calc((var(--d) - .7) * 3.4),1)}
.mkt-call b i{font-style:normal;font-family:var(--font-display);font-weight:700;font-size:1.25em;letter-spacing:.02em;color:var(--muted);font-variant-numeric:tabular-nums}
.mkt-call[data-dir="u"] b{left:0;bottom:100%;margin-bottom:8px;transform:translateX(-50%)}
.mkt-call[data-dir="d"] b{left:0;top:100%;margin-top:8px;transform:translateX(-50%)}
.mkt-call[data-dir="l"] b{right:100%;top:0;margin-right:9px;transform:translateY(-50%)}
@media (min-width:1280px){.mkt-call b{font-size:12px}}
.piece-mkt.has-film .mkt-calls{display:none}
/* the six parts, in the slot the film's shots take: number and name, then the Karst page's line for it */
.mkt-parts{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 18px}
.mkt-parts li{min-width:0;padding-top:8px;border-top:1px solid var(--border-strong);
  opacity:calc(.22 + .78 * var(--d,1));transform:translate3d(0,calc((1 - var(--d,1)) * 10px),0)}
.mkt-parts b{display:flex;align-items:baseline;gap:8px;font-size:var(--text-xs);font-weight:600;letter-spacing:.12em;text-transform:uppercase;line-height:1.1;color:var(--fg)}
.mkt-parts i{font-style:normal;font-family:var(--font-display);font-weight:700;font-size:15px;letter-spacing:.02em;color:var(--muted);font-variant-numeric:tabular-nums}
.mkt-parts span{display:block;margin-top:5px;font-size:13px;line-height:1.4;color:var(--fg-2)}
@media (min-width:768px){
  @supports (width:1cqh){.piece-mkt .rig{width:min(100%,calc((92cqh - 104px) * 1.18))}}
  /* the list fills the shots' slot (home.js keeps the rig as tall as the film's): its second row starts where theirs does */
  .mkt-parts{flex:1;grid-template-rows:1fr 1fr}
  /* a small frame (short laptop windows, where the stage's height sets the frame's size): numbers only on the picture,
     names only in the list, so neither crowds nor runs past the stage */
  .piece-mkt .rig{container:rope / inline-size}
  @container rope (max-width:380px){
    .mkt-call{--len:var(--lp,var(--l))}
    .mkt-call b span,.mkt-parts span{display:none}
    .mkt-call b i{font-size:14px;color:var(--fg)}
  }
}
/* act 1 (2026-11-21): Basin's 30-second film (/work/first-class-film). One 16:9 frame with the film, its eight shots under it in two rows of four.
   The shots come in one after another as the stage plays; while the film plays, the shot it is at is lit (home.js).
   The still is the default: every shot shown, none lit. */
.stage[data-stage="mkt"] .piece-film{margin:5% 6% 0;display:grid;overflow:visible}
.stage[data-stage="mkt"] .piece-film + .stage-cap{position:static;padding-top:var(--space-3);background:none}
.piece-film .rig{display:flex;flex-direction:column;gap:var(--space-4)}
.frame-film .frame-view{aspect-ratio:16 / 9;background:var(--black)}
.frame-film .frame-view img,.frame-film .frame-view video{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;object-fit:cover}
.film-shots{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 10px}
.film-shots li{min-width:0;opacity:calc(.22 + .78 * var(--d,1));transform:translate3d(0,calc((1 - var(--d,1)) * 10px),0)}
.film-shots img{display:block;width:100%;height:auto;aspect-ratio:16 / 9;border:1px solid var(--border-strong);transition:filter 300ms var(--ease)}
.film-shots span{display:flex;align-items:baseline;gap:8px;margin-top:6px;padding-top:6px;border-top:2px solid transparent;
  font-size:var(--text-xs);font-weight:600;letter-spacing:.12em;text-transform:uppercase;line-height:1.1;color:var(--fg-2);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color 300ms var(--ease),border-color 300ms var(--ease)}
.film-shots b{font-family:var(--font-display);font-weight:700;font-size:15px;letter-spacing:.02em;color:var(--muted);font-variant-numeric:tabular-nums}
/* lit: the shot the film is at; the others dim a little */
.film-shots.has-lit li:not(.on) img{filter:brightness(.5)}
.film-shots li.on span{border-top-color:var(--fg);color:var(--fg)}
.film-shots li.on b{color:var(--fg)}
@media (min-width:768px){
  /* the frame and the two rows of shots take the stage's height: the rig is about 0.84 of its width tall, plus 104 px */
  @supports (width:1cqh){.piece-film .rig{width:min(100%,calc((92cqh - 104px) * 1.18))}}
}

/* 05 social: five square post covers in Basin's own look (charcoal, bone, one volt accent; Anton and Inter),
   fanned like a hand of cards. Each cover carries its headline along the top edge and its topic down the left
   edge, the two edges a fanned card keeps in view. (The volt is the invented client's colour, inside its own work.) */
.stage[data-stage="social"] .piece{display:block;margin:5% 3% 0}
.fan{position:absolute;inset:0;list-style:none;margin:0;padding:0;--cw:150px}
/* card width: the open fan is 1.78 cards wide and 2.06 cards tall */
@supports (width:1cqh){.fan{--cw:min(55cqw,44cqh)}}
/* every card turns about one far point below and left of the hand, so each step carries the next card down and
   to the right by about a fifth of a card (4.5 degrees a card when open, half a degree when closed) */
.post{position:absolute;left:50%;top:50%;width:var(--cw);height:var(--cw);margin:calc(var(--cw) * -.5) 0 0 calc(var(--cw) * -.5);overflow:hidden;
  display:grid;grid-template-columns:calc(var(--cw) * .1) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;
  padding:calc(var(--cw) * .05) calc(var(--cw) * .06) calc(var(--cw) * .06);background:#121314;color:#f1f1ee;border:1px solid rgba(255,255,255,.18);
  font-family:"Inter",system-ui,"Helvetica Neue",Arial,sans-serif;
  will-change:transform;transform-origin:-242.9% 253.7%;transform:rotate(calc(var(--i) * (.5deg + var(--open,1) * 4deg)))}
.post-head{grid-column:1 / -1;grid-row:1;font-family:"Anton",Impact,"Arial Narrow",sans-serif;font-weight:400;font-size:calc(var(--cw) * .135);
  line-height:1;letter-spacing:.005em;text-transform:uppercase;white-space:nowrap}
.post-volt .post-head{white-space:normal}
.post-kick{grid-column:1;grid-row:2 / 4;align-self:start;justify-self:start;writing-mode:vertical-rl;margin-top:calc(var(--cw) * .07);
  font-size:calc(var(--cw) * .036);font-weight:700;letter-spacing:.2em;text-transform:uppercase;line-height:1.2;white-space:nowrap;color:#d7ff3a}
.post-sub{grid-column:2;grid-row:2;align-self:start;margin-top:calc(var(--cw) * .07);max-width:24ch;font-size:calc(var(--cw) * .052);line-height:1.4;color:#c9cac6}
.post-logo{grid-column:2;grid-row:3;font-family:"Anton",Impact,"Arial Narrow",sans-serif;font-size:calc(var(--cw) * .085);line-height:1;letter-spacing:.01em;text-transform:uppercase}
.post-logo small{display:block;margin-top:.35em;font-family:"Inter",system-ui,sans-serif;font-size:calc(var(--cw) * .034);font-weight:600;letter-spacing:.26em;color:#9a9c98}
.post-volt{background:#d7ff3a;color:#111;border-color:#d7ff3a}
.post-volt .post-kick,.post-volt .post-sub,.post-volt .post-logo small{color:#111}
/* 2026-11-21: the real week (/work/a-week-of-posts). Seven 4:5 covers as pictures, dealt from Monday: Monday is in
   front at the lower left and the rest of the week fans up and to the right behind it, each a little darker, so every
   cover behind shows its top edge (the Basin logo and its photo) and never a cut headline. The turning point is the
   one above, mirrored to the lower right; 3.5 degrees a card when open, so the open fan is 2.06 cards wide and
   2.62 tall, its middle 0.06 of a card right and 0.04 low (the translate puts it back).
   Thursday's story frame (9:16) shows its top 4:5. */
.fan-pics{--cw:150px;transform:translate(calc(var(--cw) * -.061 * var(--open,1)),calc(var(--cw) * -.042 * var(--open,1)))}
@supports (width:1cqh){.fan-pics{--cw:min(45.5cqw,35.8cqh)}}
.fan-pics .post{display:block;height:calc(var(--cw) * 1.25);margin:calc(var(--cw) * -.625) 0 0 calc(var(--cw) * -.5);padding:0;
  border-color:rgba(255,255,255,.16);transform-origin:342.9% 213%;transform:rotate(calc(var(--i) * (.4deg + var(--open,1) * 3.5deg)))}
.fan-pics .post img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 0}
.fan-pics .post::after{content:"";position:absolute;inset:0;background:#000;opacity:var(--dim,0);pointer-events:none}
.fan-pics .post:nth-child(1){z-index:7}
.fan-pics .post:nth-child(2){z-index:6;--dim:.2}
.fan-pics .post:nth-child(3){z-index:5;--dim:.3}
.fan-pics .post:nth-child(4){z-index:4;--dim:.38}
.fan-pics .post:nth-child(5){z-index:3;--dim:.45}
.fan-pics .post:nth-child(6){z-index:2;--dim:.51}
.fan-pics .post:nth-child(7){z-index:1;--dim:.56}

/* 05 social, act 2 (2026-11-21): "Five Shorts" (/work/five-shorts). The three-minute interview in a 16:9 frame, four
   red cut lines down it, and under it the five Shorts in 9:16 phone frames, by their first frames. The still (no JS,
   reduced motion, phones) is that end state. Where it plays (home.js, PIECES.shorts): the interview whole, the four
   cuts draw down it one after another, then each fifth of the interview leaves the frame, travels to its place in the
   row and turns into its Short, left to right. Each phone is laid out here at its place in the row; the script only
   moves and clips it (transform, clip-path) and fades its border and its poster in (--b, --o). */
.stage[data-stage="social"] .piece-shorts{display:grid;place-items:center;margin:5% 6% 0}
.sh-box{position:relative;width:100%;display:flex;flex-direction:column;align-items:center}
.sh-int{width:64%}
/* the bar's name has to fit at 1024 px (a 323 px frame): no window dots on this one (index.html leaves them out) */
.sh-int .frame-bar span{margin-left:0}
.sh-int .frame-view{aspect-ratio:16 / 9;background:var(--black)}
.sh-int .frame-view img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;object-fit:cover}
.sh-cuts{position:absolute;inset:0;pointer-events:none}
/* the four cuts: full red while they draw, a fainter mark once the five are out (the still) */
.sh-cuts i{position:absolute;top:0;bottom:0;left:calc(var(--k) * 20%);width:2px;margin-left:-1px;background:var(--brand-red);
  opacity:var(--co,.4);transform:scaleY(var(--d,1));transform-origin:50% 0}
.sh-row{list-style:none;margin:5.5% 0 0;padding:0;width:100%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));column-gap:2.2%}
.sh-row li{position:relative;min-width:0}
.sh-row li::after{content:"";position:absolute;inset:0;z-index:1;border:1px solid var(--border-strong);opacity:var(--b,1);pointer-events:none}
.sh-row .frame-view{aspect-ratio:9 / 16;background:var(--black)}
.sh-row img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;object-fit:cover}
.sh-row .sh-poster{opacity:var(--o,1)}
/* the interview inside each phone, placed by home.js so that, before it moves, the phone shows its fifth of the frame */
.sh-row .sh-src{right:auto;bottom:auto;object-fit:cover}
.piece-shorts.is-live .sh-row li{will-change:transform}
@media (min-width:768px){
  /* the frame and the row take the stage's height: the box is 0.739 of its width tall, plus the frame's 32 px bar */
  @supports (width:1cqh){.sh-box{width:min(100%,calc((92cqh - 32px) * 1.35))}}
}

/* phones: the work takes the screen's width and as much height as it needs, no fixed stage height.
   The two-frame pieces stack so each frame is wide enough to read. */
@media (max-width:767px){
  .stage-text{padding-bottom:var(--space-5)}
  .stage-work{height:auto;min-height:0}
  .piece{flex:none;display:block;margin:6% 6% 0;container-type:inline-size}
  .piece-web .rig,.piece-apps .frames{grid-template-columns:minmax(0,1fr);gap:14px;justify-items:center}
  .piece-web .frame-browser,.piece-apps .frame-browser{width:100%}
  .piece-web .frame-browser .frame-view{aspect-ratio:4 / 3}
  .piece-web .frame-phone,.piece-apps .frame-phone{width:62%}
  .piece-ai .rig{grid-template-columns:minmax(0,1fr);gap:10px}
  .frame-photo .frame-view{aspect-ratio:3 / 2;min-height:0}
  .draft-text{padding:14px 16px 0}
  .draft-steps{grid-template-columns:auto 1fr;gap:0 16px;padding:10px 16px 12px}
  .draft-steps li{padding:8px 0}
  .post-sub{display:none}
  /* the hand of cards gets a height of its own */
  .stage[data-stage="social"] .piece{container-type:size;height:118vw;margin:4% 3% 0}
  .stage[data-stage="social"] .piece-week{height:124vw}
  /* the film: as tall as it needs, the frame then the shots */
  .stage[data-stage="mkt"] .piece-film{container-type:inline-size;height:auto;display:block;margin:6% 6% 0}
  /* four shots across leave about 80 px each: the time over the name, the name free to take two lines */
  .film-shots{gap:12px 8px}
  .film-shots span{display:block;white-space:normal;font-size:11px;letter-spacing:.06em;line-height:1.25}
  .film-shots b{display:block;margin-bottom:2px;font-size:14px}
  /* both acts as tall as they need; the rope's callouts keep their numbers only, the list under it names each part */
  .act{height:auto;min-height:0}
  .stage[data-stage="mkt"] .piece-mkt{container-type:inline-size;height:auto;display:block;margin:6% 6% 0}
  .mkt-call{--len:var(--lp,var(--l))}
  .mkt-call b span{display:none}
  .mkt-call b i{font-size:14px;color:var(--fg)}
  .mkt-parts{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px}
  /* Social's second act: the interview the screen's width, the five Shorts under it three then two */
  .stage[data-stage="social"] .piece-shorts{container-type:inline-size;height:auto;display:block;margin:6% 6% 0}
  .sh-int{width:100%}
  .sh-row{margin-top:20px;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px 10px}
  .sh-row li{grid-column:span 2}
  .sh-row li:nth-child(4){grid-column:2 / span 2}
}

/* ---------- The card, who, rounds, checks: compact rows ---------- */
.quiet{padding:var(--space-7) 0 0}
.quiet + .final{margin-top:var(--space-8)}
.stages + .quiet{border-top:1px solid var(--border);padding-top:var(--space-8)}
.quiet-row{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,9fr);gap:var(--space-6);align-items:start}
.quiet-head h2{font-size:var(--text-xl);line-height:1}
.quiet-head .label{display:block;margin-bottom:var(--space-3)}
.quiet-note{margin:var(--space-4) 0 0;font-size:var(--text-md);line-height:1.5;color:var(--muted)}
.quiet .cities,.quiet .process,.quiet .checks{border-top:1px solid var(--border);border-bottom:0}
.quiet[data-od-id="who"] .city{border-top:0;padding:var(--space-4) var(--space-5) 0 0}
.quiet[data-od-id="who"] .city + .city{padding-left:var(--space-5)}
.quiet .city h3{font-size:26px;line-height:1}
.quiet .city p{margin-top:var(--space-2);font-size:var(--text-md);line-height:1.5}
.quiet .step{padding:var(--space-4) var(--space-5) 0 0;gap:6px}
.quiet .step + .step{padding-left:var(--space-5)}
.quiet .step .r{font-size:14px}
.quiet .step h3{font-size:24px}
.quiet .step p{font-size:var(--text-md);line-height:1.5}
.quiet .checks li{padding:var(--space-4) var(--space-5) 0 0;gap:4px}
.quiet .checks li + li{padding-left:var(--space-5)}
.quiet .checks strong{font-size:22px}
.quiet .checks span{font-size:var(--text-md)}
/* the card: today's five bouts, tighter. Name, one line, price. Without JS the rows show at full strength
   (motion.css dims them until its script lights each one). */
.no-js #services .bout > div:first-child,.no-js #services .bout .amt{opacity:1;transform:none}
.no-js #services .bout::before{transform:scaleX(1)}
.card .bout{grid-template-columns:minmax(0,1fr) 264px;gap:var(--space-5);padding:var(--space-4) 0;align-items:baseline}
.card .bout > div:first-child{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,9fr);gap:var(--space-2) var(--space-5);align-items:baseline}
.card .bout h3{font-size:26px;line-height:1}
.card .bout p{margin:0;max-width:none;font-size:var(--text-md);line-height:1.5}
.card .bout .amt{min-width:150px}
.card .bout .amt .num{font-size:34px}
/* a row with two prices (Marketing: campaigns on a call, reviews at a fixed price): the second sits under the first */
.card .bout .amt-two small + .num{margin-top:10px}
@media (max-width:1023px){
  .quiet-row{grid-template-columns:minmax(0,1fr);gap:var(--space-4)}
  /* rounds and checks stay two across from here down, phones included: half the height of one long list */
  .quiet .process,.quiet .checks{grid-template-columns:1fr 1fr}
  .quiet .step:nth-child(odd),.quiet .checks li:nth-child(odd){padding:var(--space-4) var(--space-4) var(--space-4) 0;border-left:0}
  .quiet .step:nth-child(even),.quiet .checks li:nth-child(even){padding:var(--space-4) 0 var(--space-4) var(--space-4);border-left:1px solid var(--border)}
  .quiet .step:nth-child(-n+2),.quiet .checks li:nth-child(-n+2){border-top:0}
  .quiet .step:nth-child(n+3),.quiet .checks li:nth-child(n+3){border-top:1px solid var(--border)}
}
@media (max-width:767px){
  .quiet{padding-top:var(--space-6)}
  .quiet[data-od-id="who"] .city,.quiet[data-od-id="who"] .city + .city{padding:var(--space-4) 0}
  .quiet[data-od-id="who"] .city + .city{border-top:1px solid var(--border)}
  .quiet .city p,.quiet .step p,.quiet .checks span,.quiet-note,.card .bout p{font-size:var(--text-sm)}
  .quiet .city h3,.card .bout h3{font-size:24px}
  .quiet .step h3{font-size:22px}
  .quiet .checks strong{font-size:20px}
  /* the card on a phone: name and price on one line, the line of text under them */
  .card .bout{grid-template-columns:minmax(0,1fr) auto;gap:6px var(--space-4)}
  .card .bout > div:first-child{display:contents}
  .card .bout h3{grid-column:1;grid-row:1}
  .card .bout .amt{grid-column:2;grid-row:1;min-width:0;text-align:right}
  .card .bout p{grid-column:1 / -1;grid-row:2}
  .card .bout .amt .num{font-size:30px}
}

/* ---------- Closing: the raised fist behind the call to action (styles.css .final-close sets the type) ---------- */
.final-fist .bg-photo img,.final-fist .bg-video{position:absolute;top:0;right:0;left:auto;transform:none;width:100%;max-width:2560px;height:100%;
  opacity:1;object-fit:cover;object-position:100% 32%}
@media (min-width:1024px){
  /* the headline, the line, the button, the email and the sign-off share one screen: the headline is sized from the
     window's height as well as its width (128 px at 1440x900), and stays the largest type on the page */
  .final-fist{padding:var(--space-7) 0}
  .final-fist .display{font-size:clamp(88px,min(8.9vw,calc((100vh - 450px) / 3.44)),150px)}
  .final-fist .final-sign{margin-top:var(--space-6)}
}
@media (max-width:767px){
  /* phone: an upright crop of the same still, the fist in the open top of the section, the type on the fade under it */
  .final-fist .bg-photo img{left:0;right:auto;top:0;transform:none;width:100vw;max-width:none;height:134.25vw;object-position:50% 0}
  /* the loop is the whole 16:9 frame; placed so the part of it on screen is the still's crop (50.2% to 91.8% across) */
  .final-fist .bg-video{left:-120.67vw;right:auto;top:0;width:240.38vw;max-width:none;height:135.2vw;object-fit:fill}
}

/* QA renders (?shot=...): no reveal fades, so a capture never catches a section half-drawn */
.is-shot .rv{opacity:1;transform:none;transition:none}
html.is-shot{scroll-behavior:auto}

@media (prefers-reduced-motion:reduce){
  .draft-steps li,.walk .door-copy,.walk.in-door .walk-copy{transition:none}
}

/* phones, one video (2026-11-20, K6): the hero's clip ends on the cage door, so the door section is its line only */
@media (max-width:767px){
  html.walk-has-door .door .door-photo{display:none}
  html.walk-has-door .door .door-copy{padding-top:var(--space-6)}
}

/* What we do card (2026-11-20, K6): the line that draws across each row is red, not grey */
#services .bout::before{background:var(--brand-red);height:2px} /* 2px: a 1px line on a half-pixel row blends with the grey hairline under it and reads dull on ordinary monitors */
