/* Fightplan /fighters: what this page adds to the inner-page system (2026-11-20, KD-58).
   Loaded after styles.css and inner.css; fighters.js runs after site.js and inner.js. Tokens come from styles.css
   (brand-tokens.json). inner.css and inner.js are used as they are: the hero (.in-hero), the pinned stage (.pin),
   the fight-card row (.card .bout), the compact rows (.quiet) and the raised-fist closing (.final-fist).
   Every default below is the still state: no JS and reduced motion both get it.
   Blocks, in page order:
     .fp-hero        the hero's crop on narrower windows, and the line of terms under the button
     .jobs           three rows on hairlines that draw in one after another (inner.js, data-seq)
     .fw             the fight-week stage: a sample post per part of the week, over the locker room picture
     .pen            the one rule: a display headline beside the portrait, which takes a slow push (data-push)
     .fcard          how engagements work, with the price as one large fight-card row
     .quiet-text     a paragraph as the right side of a compact row */

/* a compound word that never breaks at its hyphen */
.nb{white-space:nowrap}

/* ---------- Hero ---------- */
/* the line of terms under the button, always on two lines: the middle separator is the line break */
.fp-hero .hero-terms{margin:var(--space-4) 0 0;font-size:var(--text-sm);line-height:1.55;color:var(--fg-2)}
.fp-hero .hero-terms .sep{display:block;height:0;overflow:hidden}
@media (min-width:768px) and (min-aspect-ratio:1001/1000){
  /* wide screens: on a window narrower than the picture's own 16:9 the crop keeps the fighter whole on the right.
     The fade to black runs further than the system's, to where the headline's first line ends, so no type sits on
     the cage; the fighter and the lit side of the cage stay clear. */
  .fp-hero .in-hero-zoom img{object-position:82% 40%}
  .fp-hero .in-hero-photo::after{background:
    linear-gradient(90deg,var(--bg) 0%,rgba(11,11,12,.94) 34%,rgba(11,11,12,.88) 54%,rgba(11,11,12,.4) 61%,rgba(11,11,12,0) 67%),
    linear-gradient(180deg,var(--bg) 0%,rgba(11,11,12,0) 8%),
    linear-gradient(0deg,var(--bg) 0%,rgba(11,11,12,0) 20%)}
  .fp-hero .lede{max-width:min(27em,38vw)}
}

/* ---------- Three jobs: rows on hairlines; each draws in after the one before it (--d per row, inner.js) ---------- */
.jobs{border-top:1px solid var(--border);padding:var(--space-8) 0}
.jobs-head{margin-bottom:var(--space-6)}
/* the section headline size of the inner pages (inner.css: .arts-head, .tape-top, .price-head) */
.jobs-head h2,.fcard-head h2{font-size:clamp(44px,6.4vw,92px);line-height:.9}
.job-list{list-style:none;margin:0;padding:0}
.job{position:relative;display:grid;grid-template-columns:56px minmax(0,5fr) minmax(0,6fr);column-gap:var(--space-5);align-items:baseline;
  padding:var(--space-6) 0;--d:1}
.job::before{content:"";position:absolute;left:0;right:0;top:0;height:1px;background:var(--border-strong);transform:scaleX(var(--d));transform-origin:0 50%}
.job:last-child{border-bottom:1px solid var(--border)}
.job > *{opacity:calc(.2 + .8 * var(--d));transform:translateY(calc((1 - var(--d)) * 10px))}
.job-no{font-family:var(--font-display);font-weight:700;font-size:15px;letter-spacing:.1em;line-height:1;color:var(--muted)}
.job h3{font-size:clamp(34px,4.4vw,60px);line-height:.95}
.job p{margin:0;max-width:46ch;font-size:var(--text-base);line-height:1.5;color:var(--fg-2)}
@media (max-width:1023px){
  .job{grid-template-columns:40px minmax(0,1fr);row-gap:var(--space-3);padding:var(--space-5) 0}
  .job p{grid-column:2}
}
@media (max-width:767px){
  .jobs{padding:var(--space-7) 0}
  .jobs-head{margin-bottom:var(--space-5)}
  .job{grid-template-columns:32px minmax(0,1fr)}
  .job p{font-size:var(--text-md)}
}

/* ---------- Fight week: the stage's work. A sample post (one per part of the week, stacked in one cell) over the
   top of the picture, which fades to black under it; a hairline runs from the post down to the phone in the
   fighter's hands. No type sits on the hands, the phone or the gloves. ---------- */
.fw .pin-piece{display:flex;flex-direction:column;align-items:stretch;padding:var(--space-5) 0 0}
.fw-cards{position:relative;z-index:1;flex:none;display:grid;margin:0 var(--gutter);max-width:560px}
.fw .scr{position:relative;inset:auto;grid-area:1 / 1;display:flex;flex-direction:column;gap:var(--space-4);
  padding:var(--space-5) var(--space-5) var(--space-4);background:var(--surface-2);color:var(--fg);
  clip-path:polygon(22px 0,100% 0,100% calc(100% - 22px),calc(100% - 22px) 100%,0 100%,0 22px);
  opacity:0;transform:translateY(12px);transition:opacity 500ms var(--ease),transform 500ms var(--ease)}
.fw .scr.on{opacity:1;transform:none}
.fw-top{display:flex;justify-content:space-between;align-items:baseline;gap:var(--space-4);margin:0}
.fw-top .label{color:var(--fg-2)}
.fw-step{font-family:var(--font-display);font-weight:700;font-size:20px;letter-spacing:.04em;line-height:1;text-transform:uppercase;white-space:nowrap}
.fw-step i{margin-right:8px;font-style:normal;color:var(--muted)}
.fw-say{margin:0;min-height:2.6em;font-size:clamp(20px,1.7vw,24px);line-height:1.3;color:var(--fg)}
.fw-meta{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:var(--space-5);margin:auto 0 0;padding-top:var(--space-3);border-top:1px solid var(--border-strong)}
.fw-meta dt{font-size:var(--text-xs);font-weight:600;letter-spacing:.14em;text-transform:uppercase;line-height:1.4;color:var(--muted)}
.fw-meta dd{margin:2px 0 0;font-size:var(--text-md);font-weight:600;line-height:1.4;color:var(--fg)}
/* the picture at its own shape; the post laps over its faded top edge by --lap. --px and --py are where the
   hairline ends, on the corner of the phone: these are the picture's own fractions, and fighters.js sets them in
   pixels once the stage crops the picture to fill its pane. */
.fw-photo{position:relative;overflow:hidden;margin-top:calc(-1 * var(--lap));background:var(--black);--lap:28px;--px:64.3%;--py:30.9%}
.fw-photo img{display:block;width:100%;height:auto;aspect-ratio:2400 / 1592;object-fit:cover;object-position:85% 40%;
  -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 26%);mask-image:linear-gradient(180deg,transparent 0,#000 26%)}
.fw-lead{position:absolute;left:var(--px);top:var(--lap);width:1px;height:calc(var(--py) - var(--lap));background:rgba(242,242,243,.55);pointer-events:none}
.fw-lead::after{content:"";position:absolute;left:-3px;bottom:-3px;width:7px;height:7px;background:var(--fg)}
@media (min-width:768px){
  .fw-cards{margin:0 var(--space-6)}
}
/* pinned (inner.js adds .is-pinned): the words are sized from the window's height, so the label, the three-line
   headline, the paragraph, the four parts and the round marker share one screen from 640 px tall up */
.pin.fw.is-pinned .pin-text{--nm:clamp(24px,min(3.7vh,2.4vw),34px)}
.pin.fw.is-pinned .pin-title{font-size:clamp(32px,min(5.3vw,calc((100vh - 434px) / 5.9)),76px)}
.pin.fw.is-pinned .pin-line{font-size:clamp(16px,2vh,19px)}
.pin.fw.is-pinned .pin-steps button{grid-template-columns:calc(var(--nm) * 7.3) minmax(0,1fr);padding:clamp(8px,calc(4.8vh - 33px),14px) 0}
/* pinned: the picture fills what the post leaves of the pane, cropped around the hands and the gloves. It is never
   taller than 0.8 of the pane's width (--pw, the 7 of 12 columns), so the crop never reaches the hands or the
   gloves and the picture is never drawn wider than 71vw, which is what its sizes attribute asks for; on a taller
   window the post and the picture sit in the middle of the pane. */
.pin.fw{--pw:calc((100vw - max(var(--gutter),(100vw - 1120px) / 2)) * 7 / 12)}
.pin.fw.is-pinned .pin-piece{justify-content:center}
.pin.fw.is-pinned .fw-photo{flex:1 1 0;min-height:0;max-height:calc(var(--pw) * .8)}
.pin.fw.is-pinned .fw-photo img{position:absolute;inset:0;height:100%;aspect-ratio:auto}

/* ---------- The one rule: the headline at display size, the portrait on a black panel ---------- */
.pen{position:relative;display:flex;flex-direction:column;background:var(--bg);border-top:1px solid var(--border);
  --side:max(var(--gutter),calc((100% - 1120px) / 2))}
.pen-text{padding:var(--space-7) var(--gutter) var(--space-6)}
.pen-text .label{display:block;margin-bottom:var(--space-3)}
.pen-title{font-size:clamp(52px,16.5vw,104px);line-height:.9}
.pen-line{margin:var(--space-4) 0 0;font-size:var(--text-lg);line-height:1.4;color:var(--fg-2)}
/* small screens: the portrait at its own 3:4 shape, or 80% of the screen's height where that is less (an upright
   tablet), cropped at the top and the floor, never through the fighter. The push grows it around her (inner.js sets --z). */
.pen-photo{position:relative;overflow:hidden;background:var(--black);border-top:1px solid var(--border)}
.pen-photo img{display:block;width:100%;height:auto;max-height:80vh;max-height:80svh;object-fit:cover;object-position:50% 42%;
  transform:scale(var(--z,1));transform-origin:52% 42%;will-change:transform}
@media (min-width:1024px){
  /* twelve columns from the page's left margin to the right edge: the words on 6, the portrait on 6. The section is
     never taller than 900 px, so the portrait is never shown wider than its 1440 px file, push included. */
  .pen{display:grid;grid-template-columns:var(--side) minmax(0,6fr) minmax(0,6fr);
    min-height:min(calc(100vh - var(--header-h)),900px);min-height:min(calc(100svh - var(--header-h)),900px)}
  .pen-text{grid-column:2;align-self:center;padding:var(--space-8) var(--space-7) var(--space-8) 0}
  .pen-text .label{margin-bottom:var(--space-4)}
  /* the hero headline's size, capped from the window's height by the same sum, so the closing stays the largest type */
  .pen-title{font-size:min(clamp(52px,8.6vw,132px),max(64px,calc((100vh - 450px) / 3.6)))}
  .pen-line{margin-top:var(--space-5);font-size:22px}
  .pen-photo{grid-column:3;border-top:0;border-left:1px solid var(--border)}
  .pen-photo img{position:absolute;inset:0;height:100%;max-height:none;object-position:50% 40%}
}

/* ---------- The card: how engagements work, and the one public price as a fight-card row ---------- */
.fcard{border-top:1px solid var(--border);padding:var(--space-8) 0 0}
.fcard-head{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);column-gap:var(--space-7);align-items:end;margin-bottom:var(--space-7)}
.fcard-head .lede{margin:0 0 6px;font-size:var(--text-base);line-height:1.5;max-width:60ch}
/* one row, larger than the rows of a full card: the name, the line, the price. inner.css draws the red line
   across it and fills it in when it arrives (.card .bout, .in). */
.fcard-row .bout{grid-template-columns:minmax(0,1fr) auto;gap:var(--space-6);padding:var(--space-6) 0;align-items:center}
.fcard-row .bout > div:first-child{grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:var(--space-2) var(--space-6);align-items:center}
.fcard-row .bout h3{font-size:clamp(34px,4.4vw,60px);line-height:.95}
.fcard-row .bout p{font-size:var(--text-base);color:var(--fg-2);max-width:40ch}
.fcard-row .bout .amt{min-width:0}
.fcard-row .bout .amt .num{font-size:clamp(64px,7.4vw,104px);line-height:.9}
.fcard-row .bout .amt small{display:block;margin-top:var(--space-2);font-size:var(--text-base);color:var(--fg-2)}
.fcard-more{margin:var(--space-6) 0 0;max-width:66ch;font-size:var(--text-base);line-height:1.55;color:var(--fg-2)}
@media (max-width:1023px){
  .fcard-head{grid-template-columns:minmax(0,1fr);row-gap:var(--space-4)}
  .fcard-row .bout > div:first-child{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:767px){
  .fcard{padding-top:var(--space-7)}
  .fcard-head{margin-bottom:var(--space-6)}
  .fcard-head .lede{font-size:var(--text-md)}
  /* phone: the name and the price on one line, the line of text under them (inner.css's phone row, for an h3) */
  .fcard-row .bout{gap:var(--space-3) var(--space-4);padding:var(--space-5) 0;align-items:end}
  .fcard-row .bout h3{grid-column:1;grid-row:1;font-size:30px}
  .fcard-row .bout .amt .num{font-size:64px}
  .fcard-row .bout .amt small{font-size:var(--text-sm)}
  .fcard-row .bout p{font-size:var(--text-md);max-width:none}
  .fcard-more{margin-top:var(--space-5);font-size:var(--text-md)}
}

/* ---------- A paragraph as the right side of a compact row ---------- */
/* a head that is only a label needs no gap under it */
.quiet-head > .label:only-child{margin-bottom:0}
.quiet-text{padding-top:var(--space-4);border-top:1px solid var(--border)}
.quiet-text p{margin:0;max-width:62ch;font-size:var(--text-base);line-height:1.55;color:var(--fg-2)}
@media (max-width:767px){
  .quiet-text p{font-size:var(--text-md)}
}

@media (prefers-reduced-motion:reduce){
  .fw .scr{transition:none}
}
