/* Feature pages built from the kit (lib/site/parts/feature-page.ts; design audit 2026-11-09, plan U11).
   Every rule sits under an `fp-` class the kit prints, so the four Writing sub-pages, which load the
   same stylesheet list, are not touched. Sizes borrow Home's (home.css .promise, .what, .how, .close)
   without loading Home's sheets. Grounds come from site.css [data-ground]. */

/* 1. hero: the host cut-out is gone, so the band's copy takes the full measure; the two actions share a row */
@media (min-width: 861px) {
  .phero .wrap:has(.fp-watch) { grid-template-columns: minmax(0, 1fr); }
  /* the copy runs in one column here, so the band is taller than the two-column heroes': the picture stops at half
     the screen, and the headline, lede and both actions stay on a 900px-tall first screen */
  .hero.painted.phero:has(.fp-watch) > .scene { max-height: 50svh; }
}
.phero .doors:has(.fp-watch) { gap: 12px 28px; }
.phero .fp-watch { color: var(--on-dark); font-weight: 700; }
@media (max-width: 860px) {
  .phero .wrap:has(.fp-watch) { grid-template-columns: minmax(0, 1fr); }
  .phero .doors:has(.fp-watch) { flex-direction: column; align-items: flex-start; }
}

/* shared bits */
.fp-brand { margin: 0 0 10px; }
.fp-locked { margin: 12px 0 0; }
/* Writing keeps the imported run, which prints the locked example line above its track. Under the kit's intro
   (which names the example brand) the two labels stack and stutter, so the track's own is not drawn there; the
   locked line still shows under the finished piece. */
.fp-intro + .work.track > .wrap:first-child { display: none; }
.fp-more { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 22px 0 0; font-weight: 700; }
.fp-head { max-width: 46rem; }
.fp-head h2, .fp-copy h2 { margin-top: 6px; }
.fp-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.fp-split > * { min-width: 0; }
@media (max-width: 860px) { .fp-split { grid-template-columns: minmax(0, 1fr); } }

/* 2a. the run intro, as its own band directly above an imported track: same ground, no seam */
.fp-intro { padding-bottom: 0; }
.fp-intro .wrap > :last-child { margin-bottom: 0; }

/* 2b. the run (feature-run.js). Default, and with scripts off, reduced motion or a phone: an ordered list,
   each station picture first, then its words; nothing hidden, nothing sticks. */
.fp-run { padding-block: clamp(36px, 5vw, 64px) clamp(56px, 9vw, 120px); }
.fp-run__intro { margin-bottom: 24px; }
.fp-run__stations { list-style: none; counter-reset: fp-station; margin: 0 auto; padding: 0; width: min(var(--wrap), 100% - 2 * var(--gutter)); display: grid; gap: clamp(28px, 4vw, 48px); }
.fp-station { counter-increment: fp-station; position: relative; display: grid; gap: 14px; }
.fp-station__pic { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--studio-2); }
.fp-station__pic img, .fp-station__pic video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fp-station__pic video { opacity: 0; transition: opacity .3s var(--ease); }
.fp-station.is-on .fp-station__pic video[src] { opacity: 1; }
.fp-station__label { margin: 0 0 4px; font-family: var(--head); font-weight: 700; font-size: 1.2rem; }
.fp-station__label::before { content: counter(fp-station) ". "; color: var(--amber-ink); }
.fp-station__line { margin: 0 0 6px; font-size: 1.05rem; }
/* Build five SW8: no "who did it" line on the page; it is in the station picture's alt. */
.fp-station__piece { background: #fffdf8; color: var(--ink); border-radius: 10px; box-shadow: var(--shadow); padding: 14px 18px; }
.fp-station__piece p { margin: 0; }

/* desktop with motion: the stations stack in one frame that stays put while the page scrolls past it.
   Build three U12 (specs/templates.md part 2): the frame is never shorter than the tallest station (--fp-stage-min,
   set by feature-run.js). A step change dissolves the pictures (the two stations cross-fade over .32s, so the frame
   is never blank) and swaps the words in order: the old step's card and piece are gone by .12s, the new step's
   arrive from .2s, so two steps' words never show at once (lead, wave 3: the first cut faded the whole station
   out before the next came in, which flashed the frame blank). */
@media (min-width: 861px) {
  .fp-run.is-stepping .fp-run__stations { display: block; height: calc(var(--fp-n, 3) * 90svh); }
  .fp-run.is-stepping .fp-station {
    position: sticky; top: 84px; height: calc(100svh - 120px); min-height: var(--fp-stage-min, 0px);
    margin-bottom: calc(-1 * max(100svh - 120px, var(--fp-stage-min, 0px)));
    display: block; opacity: 0; visibility: hidden; transition: opacity .32s var(--ease), visibility 0s linear .32s;
  }
  .fp-run.is-stepping .fp-station.is-on { opacity: 1; visibility: visible; transition: opacity .32s var(--ease), visibility 0s; }
  .fp-run.is-stepping .fp-station :is(.fp-station__card, .fp-station__piece) { opacity: 0; transition: opacity .12s linear; }
  .fp-run.is-stepping .fp-station.is-on :is(.fp-station__card, .fp-station__piece) { opacity: 1; transition: opacity .24s var(--ease) .2s; }
  .fp-run.is-stepping .fp-station__pic { position: absolute; inset: 0; aspect-ratio: auto; }
  .fp-run.is-stepping .fp-station__card {
    position: absolute; left: 24px; bottom: 24px; width: min(380px, 40%); background: #fffdf8; color: var(--ink);
    border-radius: 12px; box-shadow: 0 18px 44px rgba(17,22,39,.28); padding: 18px 22px;
  }
  .fp-run.is-stepping .fp-station__piece { position: absolute; right: 24px; top: 24px; width: min(360px, 36%); }
}

/* the last station's negative bottom margin let it stick past the end of the list and ride over the sign band, which
   then never showed on desktop; with its own margin at zero it stays inside the list and the band comes up under it */
@media (min-width: 861px) {
  .fp-run.is-stepping .fp-station:last-child { margin-bottom: 0; }
}

/* 2c. the stage (runStage, build three U12): the stations as the motion kit's tabbed stage (kit.css draws the tabs and
   the still). A panel reuses the run's picture, piece and card classes in normal flow: picture, piece, then the words. */
.fp-stage__panel { display: grid; gap: 14px; }
.fp-stage__panel > .fp-station__piece { justify-self: start; max-width: 40rem; }
.fp-stage__panel .fp-station__card > :last-child { margin-bottom: 0; }
/* On a laptop and wider the picture sits beside its words, so a whole step fits one screen (it ran 870 to 1010px
   tall at 1440 with the picture across the full width; lead, build three wave 4a). */
@media (min-width: 1100px) {
  .fp-stage__panel { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: 40px; align-items: start; grid-auto-rows: min-content; }
  .fp-stage__panel > :first-child { grid-column: 1; grid-row: 1 / span 4; }
  .fp-stage__panel > :not(:first-child) { grid-column: 2; }
  .fp-stage__panel > .fp-station__piece { max-width: none; }
  /* a step that shows a whole screen (a frame) gives it half the row, so a long answer does not run tall */
  .fp-stage__panel:has(> .fp-station__piece--frame) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; }
  /* beside the picture the step's own sentence is the headline of the column, not a footnote under it */
  .fp-stage__panel .fp-station__card { padding-top: 6px; }
  .fp-stage__panel .fp-station__line { font-family: var(--display, var(--serif)); font-size: 1.6rem; line-height: 1.25; margin-bottom: 12px; }
}

/* A story frame that builds (StorySlot.build): each group or row is a kit step, and rests as the frame prints without
   it. The steps stack as blocks (no kit grid gap); a rules frame's later groups keep the spacing and the coral dash
   `.fp-rules + .fp-rules` gives them, with the same data-dash variants. */
.fp-frame[data-build] .kit-build__list { display: block; }
.fp-frame--rules[data-build] .kit-build__step + .kit-build__step { margin-top: 18px; }
.fp-frame--rules[data-build] .kit-build__step + .kit-build__step .fp-rules li::before { width: 10px; height: 2px; top: calc(8px + .72em); border-radius: 1px; background: var(--coral); }
.fp-frame--rules[data-build] .kit-build__step + .kit-build__step .fp-rules li { color: var(--ink-2); }
.fp-frame--rules[data-build][data-dash] .kit-build__step + .kit-build__step .fp-rules li::before { width: 8px; height: 8px; top: calc(8px + .55em); border-radius: 50%; background: var(--viridian); }
.fp-frame--rules[data-build][data-dash] .kit-build__step + .kit-build__step .fp-rules li { color: var(--ink); }
.fp-frame--rules[data-build][data-dash="last"] .kit-build__step + .kit-build__step:last-child .fp-rules li::before { width: 10px; height: 2px; top: calc(8px + .72em); border-radius: 1px; background: var(--coral); }
.fp-frame--rules[data-build][data-dash="last"] .kit-build__step + .kit-build__step:last-child .fp-rules li { color: var(--ink-2); }

/* the sign band, under the stations in the same section */
.fp-sign { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(20px, 3vw, 40px); align-items: center; margin-top: clamp(36px, 5vw, 64px); }
.fp-sign__piece { margin: 0; background: #fff; border-radius: 14px; padding: 10px; box-shadow: var(--shadow); }
.fp-sign__piece img { width: 100%; border-radius: 8px; }
.fp-sign__piece figcaption { font-family: var(--ui); font-size: .9rem; padding: 10px 6px 4px; display: flex; gap: 8px; flex-wrap: wrap; }
.fp-sign__side .lede { margin-bottom: 16px; }
.fp-sign .fp-locked { grid-column: 1 / -1; }
@media (max-width: 860px) { .fp-sign { grid-template-columns: minmax(0, 1fr); } }

/* 3. how: numbered steps from the list counter (no digit in the copy), the crew member at work on the right */
.fp-steps { list-style: none; counter-reset: fp-step; padding: 0; margin: 20px 0 0; display: grid; gap: 4px; }
/* Build nine (Sarah 1TCFG9zRWWfq, pinned on Video; Dan: a fix on a shared part goes to every page that prints it): the
   step numbers sit in the heading's own face (site.css h2: --display, weight 400) at twice the old .9rem, in a wider
   number column. Writing keeps its own larger numbers (pages/writing.css, build eight). */
.fp-steps li { counter-increment: fp-step; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 10px 12px; border-radius: 12px; border-left: 3px solid transparent; color: var(--muted); font-size: .98rem; }
.fp-steps li::before { content: counter(fp-step); grid-row: 1 / span 2; font-family: var(--display); font-size: 1.8rem; font-weight: 400; line-height: 1; letter-spacing: -.012em; color: var(--muted); padding-top: 0; }
.fp-steps li b { display: block; font-family: var(--head); font-size: 1.15rem; color: var(--fg); }
.fp-how__fig { margin: 0; display: grid; justify-items: center; gap: 12px; }
.fp-how__fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.fp-how__fig .tagline-bubble { justify-self: start; margin-left: 6%; }
.fp-role { font-family: var(--ui); font-size: clamp(.9rem, .85rem + .2vw, 1rem); font-weight: 800; line-height: 1.2; text-align: center; color: var(--paper); background: var(--navy); border-radius: 999px; padding: 9px 20px; max-width: 100%; }

/* 4. why: one statement, two cards side by side */
.fp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(18px, 2.6vw, 30px); }
.fp-card { background: var(--card); border: 1px solid var(--rule); border-top: 4px solid var(--amber); border-radius: var(--radius); padding: 20px 22px 22px; box-shadow: 0 1px 0 rgba(21,23,28,.04), 0 10px 28px -18px rgba(17,22,39,.28); }
.fp-card img { width: 100%; border-radius: 10px; margin-bottom: 14px; }
.fp-card h3 { font-family: var(--ui); font-size: 1.05rem; font-weight: 800; margin: 0 0 8px; color: var(--amber-ink); }
.fp-card p { margin: 0; font-size: 1.04rem; line-height: 1.55; }
@media (max-width: 860px) { .fp-cards { grid-template-columns: 1fr; } }

/* 5. features: the list left, the finished piece at reading size right */
.fp-rows { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.fp-rows li { padding-left: 16px; border-left: 3px solid var(--amber); color: var(--muted); }
.fp-rows li b { display: block; font-family: var(--head); font-size: 1.12rem; color: var(--fg); }
.fp-piece { min-width: 0; }
.fp-piece .out--large { margin: 0; }
.fp-piece__scene { width: 100%; border-radius: var(--radius); }

/* 6. compare: the table on a light ground; the Jinn column carries the weight. Phone: site.css turns each row
   into a card and prints each cell's column name from data-th; the row's own heading leads the card. */
.fp-table { margin-top: clamp(20px, 3vw, 32px); }
.fp-table thead th { font-family: var(--ui); font-size: .9rem; font-weight: 800; }
.fp-table th[scope="row"] { width: 22%; font-family: var(--ui); font-size: .95rem; font-weight: 700; }
.fp-table th[scope="row"] .fp-brand { display: block; margin: 4px 0 0; font-weight: 600; }
.fp-table td:last-child { font-family: var(--head); font-weight: 700; }
.fp-note { margin: 16px 0 0; color: var(--muted); }
@media (max-width: 860px) {
  .fp-table th[scope="row"] { display: block; width: auto; border: 0; padding: 4px 0 6px; }
  /* `table.plain` in front: site.css's phone rule (table.plain tr, padding 10px 0) is more specific than a bare class
     and was winning, so the cell text touched the card's edge */
  table.plain.fp-table tr { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
}

/* 7. plans: heading, the list, the lines. relaunch.css §10 joins it to the get-in-touch block under it (one band). */
.fp-plans__head { margin: 18px 0 8px; font-family: var(--ui); font-size: 1rem; font-weight: 800; }
.fp-includes { margin: 0 0 18px; padding-left: 1.2em; display: grid; gap: 6px; }
.fp-plans p { margin-bottom: 8px; }
.fp-price { margin-top: 16px; font-family: var(--serif-accent); font-style: italic; font-size: 1.15rem; }
.fp-price .tcta { font-family: var(--ui); font-style: normal; font-weight: 700; font-size: 1rem; margin-left: 8px; }
/* Build five SW9d: the plans band in two columns (plans({ split: true })): the list on the left, what the person decides,
   the price and the doors on the right, the host (if any) under them. One column on a phone. */
.fp-plans__split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(32px, 5vw, 72px); align-items: start; }
.fp-plans__split > * { min-width: 0; }
.fp-plans__side > p:first-child { margin-top: 0; }
@media (max-width: 860px) { .fp-plans__split { grid-template-columns: 1fr; } }

/* 8. trust: Pockets at working size, a third of the band or more; full width above the words on a phone */
.fp-trust .grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.fp-trust .pockets-stage .uwee { width: 100%; max-width: 480px; }
.fp-trust .tagline-bubble { margin: 6px 0 22px; }
@media (max-width: 860px) {
  .fp-trust .grid { grid-template-columns: minmax(0, 1fr); }
  .fp-trust .pockets-stage .uwee { max-width: none; }
}

/* 9. close: the desk as a full-width scene, the navy band under it */
.fp-close .scene { max-height: 70svh; }
.fp-close .scene > img { object-position: 50% 40%; }
.fp-close__band { padding-block: clamp(32px, 5vw, 56px) clamp(48px, 7vw, 88px); }
.fp-close__band h2 { color: #fff; margin-bottom: 10px; }
.fp-close__band .lede { color: var(--on-dark-2); margin-bottom: 22px; }
.fp-close__band .doors { gap: 12px 28px; }
.fp-close__band .tcta { color: var(--on-dark); font-weight: 700; }
@media (max-width: 860px) { .fp-close__band .doors { flex-direction: column; align-items: flex-start; } }

/* ---------------------------------------------------------------------------------------------
   Round two (U12): the story spread, the gallery, the doors row and the close's own door. Every rule sits under a
   class only story(), gallery(), doors() or close({ door }) prints, so the pages that do not call them are untouched. */

/* 2c. the story: one brand's work as one spread. Twelve columns from 1024 up (5|7, 5|7, 7|5), the pairs six and six
   from 861 to 1023, one column on phones. Frames align to the top of their row; heights are not forced equal. */
.fp-story .fp-head { margin-bottom: clamp(28px, 4vw, 52px); }
.fp-spread { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; align-items: start; }
@media (min-width: 861px) {
  .fp-spread { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 36px); row-gap: clamp(44px, 5vw, 72px); }
  .fp-slot { grid-column: span 6; }
  /* a 12 slot takes its row alone but keeps a readable measure: the middle eight columns, so a short frame (a sign-off list) does not stretch edge to edge */
  .fp-slot[data-cols="12"] { grid-column: 3 / span 8; }
}
@media (min-width: 1024px) {
  .fp-slot[data-cols="5"] { grid-column: span 5; }
  .fp-slot[data-cols="7"] { grid-column: span 7; }
}
.fp-slot { margin: 0; min-width: 0; display: grid; gap: 12px; align-content: start; }
.fp-slot__label { margin: 0; display: flex; align-items: center; gap: 14px; font-family: var(--ui); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-ink); }
.fp-slot__label::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.fp-slot__cap { margin: 2px 0 0; font-family: var(--serif-accent); font-style: italic; font-size: 1.02rem; line-height: 1.4; color: var(--muted); max-width: 38rem; }

/* the frames: white work surfaces on the paper ground, each in the shape of what it is */
.fp-frame { background: #fff; color: var(--ink); border: 1px solid rgba(21, 23, 28, .09); border-radius: 14px; box-shadow: 0 1px 0 rgba(21, 23, 28, .04), 0 22px 44px -26px rgba(17, 22, 39, .4); padding: 16px 20px 20px; font-family: var(--ui); font-size: .95rem; line-height: 1.5; }
:where(.fp-frame) p { margin: 0; }
/* site.css caps every p at 62ch; the frame heads, slot labels and post lines run the frame's full width */
.fp-slot__label, .fp-frame__head, .fp-post__copy > p, .fp-email__body p, .fp-check__line { max-width: none; }
.fp-frame__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 11px; margin: 0 0 16px; border-bottom: 1px solid rgba(21, 23, 28, .08); font-size: .76rem; font-weight: 600; color: var(--ink-3); }
.fp-frame__brand { color: var(--ink-2); }
.fp-frame__kind { text-align: right; }
.fp-chip { display: inline-flex; align-items: center; justify-self: start; min-height: 24px; padding: 1px 10px; border-radius: 999px; font-family: var(--ui); font-size: .76rem; font-weight: 700; white-space: nowrap; }
.fp-chip[data-tone="ok"] { background: #e2f1e9; color: #17603f; }
.fp-chip[data-tone="flag"] { background: #fbeccd; color: var(--amber-ink); }
/* the one mark that ties the check to the article: a thin amber underline, never a highlight and never a strike */
.fp-mark { background: none; color: inherit; text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-skip-ink: none; }

/* Voice: the record screen, rules in two lists */
.fp-frame--rules { background: #fbfaf7; }
.fp-rules + .fp-rules { margin-top: 18px; }
.fp-rules__head { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.fp-rules ul { list-style: none; margin: 0; padding: 0; }
.fp-rules li { position: relative; padding: 8px 0 8px 22px; border-top: 1px solid rgba(21, 23, 28, .07); font-size: .98rem; }
.fp-rules li::before { content: ""; position: absolute; left: 2px; top: calc(8px + .55em); width: 8px; height: 8px; border-radius: 50%; background: var(--viridian); }
.fp-rules + .fp-rules li::before { width: 10px; height: 2px; top: calc(8px + .72em); border-radius: 1px; background: var(--coral); }
.fp-rules + .fp-rules li { color: var(--ink-2); }

/* Post: the picture at 4:5 on the left, the account, words and tags on the right; on phones the picture on top */
.fp-post { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 560px) { .fp-post { grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: 20px; align-items: start; } }
/* a post with no picture (kit pass two): the words take the full frame width */
.fp-post.fp-post--words { grid-template-columns: minmax(0, 1fr); }
.fp-post__pic { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px; background: var(--paper-2); }
.fp-post__pic img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.fp-post__copy { display: grid; gap: 10px; align-content: start; }
.fp-post__acct { display: flex; align-items: center; gap: 9px; font-size: .92rem; }
.fp-post__av { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f4e6db, #d9c2b0); box-shadow: inset 0 0 0 1px rgba(21, 23, 28, .1); flex: 0 0 auto; }
.fp-post__copy > p:nth-of-type(2) { font-family: var(--head); font-weight: 700; font-size: 1.3rem; line-height: 1.2; }
.fp-post__copy > p { font-size: 1rem; line-height: 1.5; }
.fp-tags { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fp-tags li { font-size: .76rem; font-weight: 700; color: #17603f; border: 1px solid rgba(23, 96, 63, .35); border-radius: 999px; padding: 2px 10px; }

/* Email: subject, preview, then the message */
.fp-email__subject { font-family: var(--head); font-weight: 700; font-size: 1.2rem; line-height: 1.25; color: var(--navy); }
.fp-email__preview { margin-top: 4px; font-size: .9rem; color: var(--ink-3); }
.fp-email__body { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(21, 23, 28, .08); display: grid; gap: 12px; font-size: .95rem; line-height: 1.55; }
.fp-email__btn { justify-self: start; margin-top: 4px; display: inline-flex; align-items: center; min-height: 40px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: .88rem; }

/* Article: a page of long copy, set in the serif */
.fp-frame--article { background: #fffdf8; padding-bottom: 26px; }
.fp-frame--article > p:not(.fp-frame__head) { max-width: 36rem; }
.fp-article__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.45rem, 1.2rem + .8vw, 1.85rem); line-height: 1.12; letter-spacing: -.01em; }
.fp-article__dek { margin: 8px 0 18px; font-family: var(--serif-accent); font-style: italic; font-size: 1.08rem; line-height: 1.4; color: var(--ink-2); }
.fp-frame--article > p:not(.fp-frame__head):not(.fp-article__title):not(.fp-article__dek) { font-family: var(--serif-accent); font-size: 1.04rem; line-height: 1.65; }
.fp-frame--article > p + p:not(.fp-article__dek) { margin-top: 14px; }

/* Check: what the checker said; the flagged line keeps its ink (no strike-through, no red pencil) */
.fp-check { list-style: none; margin: 0; padding: 0; }
.fp-check li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 14px 0; border-top: 1px solid rgba(21, 23, 28, .08); }
.fp-check li:first-child { border-top: 0; padding-top: 2px; }
.fp-frame--check { container-type: inline-size; }
@container (min-width: 500px) { .fp-check li { grid-template-columns: 128px minmax(0, 1fr); column-gap: 16px; } .fp-check .fp-chip { grid-row: span 2; align-self: start; margin-top: 3px; } }
.fp-check__line { font-family: var(--serif-accent); font-size: 1.12rem; line-height: 1.45; color: var(--ink); }
.fp-check__why { font-size: .86rem; line-height: 1.45; color: var(--ink-3); }

/* Approval: the pieces, then the stamp */
.fp-signoff { list-style: none; margin: 0; padding: 0; }
.fp-signoff li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(21, 23, 28, .07); font-weight: 600; }
.fp-signoff li:first-child { border-top: 0; padding-top: 0; }
.fp-signoff__sig { max-width: none; margin-top: 14px; padding-top: 16px; border-top: 1px dashed rgba(21, 23, 28, .22); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fp-stamp { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: #17603f; border: 3px solid #17603f; border-radius: 8px; padding: 2px 12px; transform: rotate(-5deg); }
.fp-signoff__role { font-size: .86rem; font-weight: 600; color: var(--ink-3); }

/* 2d. gallery: two or three finished pieces side by side, one locked line under all */
.fp-gallery__pieces { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: start; margin-top: clamp(24px, 3vw, 40px); }
@media (min-width: 861px) {
  .fp-gallery__pieces[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
  .fp-gallery__pieces[data-n="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
}
.fp-gallery__piece { min-width: 0; }
.fp-gallery .fp-locked { margin-top: clamp(18px, 2.4vw, 28px); }

/* 6b. doors: three or four short lines with a link each; no heading, no picture */
.fp-doors__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.fp-doors__list li { display: grid; gap: 10px; align-content: space-between; padding: 22px 0; border-top: 1px solid var(--rule); }
.fp-doors__list p { margin: 0; font-family: var(--head); font-weight: 700; font-size: 1.15rem; line-height: 1.35; }
.fp-doors__list .tcta { justify-self: start; font-weight: 700; }
@media (min-width: 861px) {
  .fp-doors__list[data-n="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 44px); }
  .fp-doors__list[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 44px); }
  .fp-doors__list[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 44px); }
}
@media (min-width: 1200px) { .fp-doors__list[data-n="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------------------------------------
   Round two, rollout kit: the opt-in parts (story link, founding link, picture header, sizes, rules layouts, wall,
   pair, session, a run with no sign band). Every rule sits under a class or attribute only those options print, so a
   page that does not pass them is untouched. */

/* the story's one quiet link, under the spread */
.fp-story .fp-spread + .fp-more { margin-top: clamp(28px, 4vw, 44px); }

/* the founding link, after the plans button */
.fp-founding { margin: 14px 0 0; font-weight: 700; }

/* a picture header at the top of an article or email frame, edge to edge across the frame */
.fp-frame__pic { margin: 0 -20px 16px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.fp-frame__pic img { width: 100%; height: 100%; object-fit: cover; }

/* Sizes: one picture as a square, a tall and a wide tile; the tall one runs down beside the other two. Each box stacks
   the picture and its words in one grid cell (no positioning); the words sit on the tile's quiet side. */
.fp-frame--sizes { container-type: inline-size; }
.fp-sizes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.fp-size { margin: 0; min-width: 0; display: grid; gap: 6px; align-content: start; }
.fp-size__box { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); overflow: hidden; border-radius: 8px; background: var(--paper-2); container-type: inline-size; }
.fp-size__box > * { grid-area: 1 / 1; min-width: 0; min-height: 0; }
.fp-size__box img { width: 100%; height: 100%; object-fit: cover; }
.fp-size[data-size="square"] .fp-size__box { aspect-ratio: 1; }
.fp-size[data-size="tall"] .fp-size__box { aspect-ratio: 9 / 16; width: min(100%, 300px); }
.fp-size[data-size="wide"] .fp-size__box { aspect-ratio: 1.91; }
.fp-size__type { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 7cqi; color: #fff; }
.fp-size[data-quiet="top"] .fp-size__type { align-self: start; padding-bottom: 18cqi; background: linear-gradient(to bottom, rgba(17, 22, 39, .55), rgba(17, 22, 39, 0)); }
.fp-size[data-quiet="bottom"] .fp-size__type { align-self: end; padding-top: 18cqi; background: linear-gradient(to top, rgba(17, 22, 39, .55), rgba(17, 22, 39, 0)); }
.fp-size[data-quiet="left"] .fp-size__type { justify-self: start; justify-content: center; width: 62%; padding-right: 12cqi; background: linear-gradient(to right, rgba(17, 22, 39, .55), rgba(17, 22, 39, 0)); }
.fp-size[data-quiet="right"] .fp-size__type { justify-self: end; justify-content: center; width: 62%; padding-left: 12cqi; background: linear-gradient(to left, rgba(17, 22, 39, .55), rgba(17, 22, 39, 0)); }
.fp-size__head { font-family: var(--display); font-weight: 700; font-size: clamp(.95rem, 8cqi, 1.7rem); line-height: 1.1; max-width: none; }
.fp-size[data-size="wide"] .fp-size__head { font-size: clamp(.9rem, 5.4cqi, 1.6rem); }
.fp-size__line { font-size: clamp(.74rem, 4.6cqi, 1rem); line-height: 1.3; max-width: none; }
.fp-size[data-size="wide"] .fp-size__line { font-size: clamp(.72rem, 3cqi, .95rem); }
.fp-size__btn { margin-top: 6px; display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: clamp(.72rem, 4.4cqi, .88rem); }
.fp-size__label { font-size: .76rem; font-weight: 600; color: var(--ink-3); }
@container (min-width: 420px) {
  .fp-sizes { grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); grid-template-areas: "tall square" "tall wide"; column-gap: 14px; row-gap: 14px; }
  .fp-size[data-size="square"] { grid-area: square; }
  .fp-size[data-size="wide"] { grid-area: wide; }
  .fp-size[data-size="tall"] { grid-area: tall; grid-template-rows: minmax(0, 1fr) auto; align-content: stretch; }
  /* the tall box takes the height of the two tiles beside it, which comes out close to nine by sixteen */
  .fp-size[data-size="tall"] .fp-size__box { aspect-ratio: auto; width: 100%; height: 100%; contain: size; }
}
/* from 861 up to about 1230 (kit pass two): a five-column slot leaves the frame under 420px, so the tiles stacked
   with the tall one at 300 by 533. Here the tall and the square share a row (9:16 beside 16 columns comes out the same height) and
   the wide banner takes the full width under them, so its words keep their room. Phones keep the stack. */
@media (min-width: 861px) {
  @container (min-width: 260px) and (max-width: 419.98px) {
    .fp-sizes { grid-template-columns: minmax(0, 9fr) minmax(0, 16fr); grid-template-areas: "tall square" "wide wide"; column-gap: 12px; row-gap: 14px; }
    .fp-size[data-size="square"] { grid-area: square; }
    .fp-size[data-size="wide"] { grid-area: wide; }
    .fp-size[data-size="tall"] { grid-area: tall; grid-template-rows: minmax(0, 1fr) auto; align-content: stretch; }
    .fp-size[data-size="tall"] .fp-size__box { aspect-ratio: auto; width: 100%; height: 100%; contain: size; }
  }
}

/* rules, columns: the first two groups side by side once the frame has the room (from 861 up and on tablets), the
   rest full width under them; every group is a report here, so all take the same dot */
.fp-frame--rules[data-layout="columns"] { container-type: inline-size; }
.fp-rules-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.fp-rules-cols > .fp-rules + .fp-rules { margin-top: 0; }
.fp-rules-cols + .fp-rules { margin-top: 18px; }
@container (min-width: 420px) { .fp-rules-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; } }
.fp-frame--rules[data-layout] .fp-rules li::before { width: 8px; height: 8px; top: calc(8px + .55em); border-radius: 50%; background: var(--viridian); }
.fp-frame--rules[data-layout] .fp-rules li { color: var(--ink); }

/* rules, calls: numbered calls from the list counter in display type, the fact, then its source small */
.fp-calls { list-style: none; counter-reset: fp-call; margin: 0; padding: 0; }
.fp-calls li { counter-increment: fp-call; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; padding: 14px 0; border-top: 1px solid rgba(21, 23, 28, .07); }
.fp-calls li:first-child { border-top: 0; padding-top: 2px; }
.fp-calls li::before { content: counter(fp-call); grid-row: 1 / span 3; font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.05; color: var(--amber-ink); }
.fp-calls li > p { grid-column: 2; max-width: none; }
.fp-calls__call { font-family: var(--display); font-weight: 700; font-size: 1.12rem; line-height: 1.25; }
.fp-calls__fact { margin-top: 6px; font-size: .95rem; }
.fp-calls__src { margin-top: 4px; font-size: .8rem; color: var(--ink-3); }

/* Session: the question in a bubble at the end of the line, then the answer as text; a swatch beside each hex code */
.fp-session__note { margin: 0 0 8px; font-family: var(--ui); font-size: .88rem; color: var(--muted); max-width: none; }
.fp-slot .fp-session__note { margin: 0; }
.fp-session__ask { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.fp-session__ask p { max-width: 85%; background: var(--paper-2); border-radius: 14px 14px 4px 14px; padding: 9px 14px; font-size: .95rem; line-height: 1.45; }
.fp-session__who { display: block; margin-bottom: 2px; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.fp-session__answer { display: grid; gap: 10px; font-size: .95rem; line-height: 1.55; overflow-wrap: anywhere; }
.fp-session__answer p, .fp-session__answer li { max-width: none; }
.fp-session__answer ul, .fp-session__answer ol { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.fp-session__answer table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.fp-session__answer th, .fp-session__answer td { text-align: left; vertical-align: top; padding: 6px 10px 6px 0; border-top: 1px solid rgba(21, 23, 28, .08); }
.fp-session__answer th { font-weight: 700; color: var(--ink-2); border-top: 0; }
.fp-session__answer code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; background: #fbfaf7; border-radius: 4px; padding: 1px 5px; }
.fp-hex { white-space: nowrap; }
.fp-swatch { display: inline-block; width: .95em; height: .95em; margin-right: 5px; vertical-align: -.12em; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(21, 23, 28, .18); }

/* a frame in a run station, in place of the piece: the frame carries its own paper */
.fp-station__piece--frame { background: none; box-shadow: none; padding: 0; border-radius: 0; }
@media (min-width: 861px) {
  .fp-run.is-stepping .fp-station__piece--frame { width: min(420px, 40%); max-height: calc(100% - 48px); overflow: auto; }
  /* over the station's picture the note needs the card's paper to stay legible */
  .fp-run.is-stepping .fp-station__piece--frame .fp-session__note { display: inline-block; background: #fffdf8; color: var(--ink-2); border-radius: 8px; padding: 5px 12px; }
}
/* a run with no sign band: an optional caption under the stations */
.fp-run__cap { margin-top: clamp(20px, 3vw, 32px); }
.fp-run__cap p { margin: 0; color: var(--muted); }

/* 2e. wall: three to eight pieces, each labeled under its picture; with a large tile, the rest sit two across beside
   it and the large one runs down every one of their rows; the wide tile spans two columns */
.fp-wall .fp-head { margin-bottom: clamp(24px, 3vw, 40px); }
.fp-wall__lead { margin-bottom: clamp(28px, 4vw, 48px); }
.fp-wall__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.fp-wall__tile { min-width: 0; }
.fp-wall__pic { overflow: hidden; border-radius: var(--radius); background: var(--studio-2); }
.fp-wall__pic img { width: 100%; }
.fp-wall__pic[data-crop] img, .fp-wall__pic[data-crop] .fp-wall__sheet { height: 100%; }
.fp-wall__pic[data-crop] img { object-fit: cover; }
.fp-wall__sheet { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; }
.fp-wall__label { margin: 10px 0 0; max-width: none; }
@media (min-width: 861px) {
  .fp-wall__grid { column-gap: clamp(16px, 2vw, 28px); row-gap: clamp(24px, 3vw, 36px); }
  .fp-wall__grid[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fp-wall__grid[data-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* 3.4 to 1 is the column split at which a tall (3 by 4) large picture comes out the same height as two rows of tall
     small tiles plus a wide one, so the large tile fills its rows with next to no crop; it never sets the rows' height */
  .fp-wall__grid[data-large] { grid-template-columns: minmax(0, 3.4fr) repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; }
  .fp-wall__grid[data-large] .fp-wall__tile[data-shape="large"] { grid-column: 1; grid-row: 1 / span var(--fp-wall-rows, 2); align-self: stretch; display: flex; flex-direction: column; }
  .fp-wall__tile[data-shape="large"] .fp-wall__pic { flex: 1 1 auto; min-height: 20rem; contain: size; }
  .fp-wall__tile[data-shape="large"] .fp-wall__pic img { height: 100%; object-fit: cover; }
  .fp-wall__tile[data-shape="wide"] { grid-column: span 2; }
}
.fp-wall .fp-locked { margin-top: clamp(18px, 2.4vw, 28px); }
.fp-wall__note { margin: 6px 0 0; color: var(--muted); }

/* ---------------------------------------------------------------------------------------------
   Kit pass two: opt-in parts. Every rule sits under a class or attribute only those options print. */

/* a check row that neither passes nor flags ("Left blank"): a plain chip, no pass green, no flag amber */
.fp-chip[data-tone="neutral"] { background: #efede8; color: var(--ink-2); }

/* Starts from zero: a draft with no record behind it. Each line keeps its ink (never struck) and carries its flag as a
   chip under it; "Sources none" at the foot, then why */
.fp-frame--zero { background: #fbfaf7; }
.fp-zero__head { color: var(--ink-2); }
.fp-zero { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fp-zero li { display: grid; gap: 6px; justify-items: start; }
.fp-zero__line { font-family: var(--serif-accent); font-style: italic; font-size: 1.08rem; line-height: 1.4; color: var(--ink-2); }
.fp-frame--zero .fp-zero__src { margin-top: 16px; padding-top: 10px; border-top: 1px dashed rgba(21, 23, 28, .2); font-size: .82rem; color: var(--ink-3); max-width: none; }
.fp-zero__src b { color: var(--amber-ink); }
.fp-frame--zero .fp-zero__why { margin-top: 12px; font-size: .92rem; line-height: 1.5; color: var(--ink-2); max-width: none; }

/* rules, dash: the coral "never says" dash on the last group only (`last`), or on none (`none`); the other groups take
   the first group's dot and ink */
.fp-frame--rules[data-dash] .fp-rules + .fp-rules li::before { width: 8px; height: 8px; top: calc(8px + .55em); border-radius: 50%; background: var(--viridian); }
.fp-frame--rules[data-dash] .fp-rules + .fp-rules li { color: var(--ink); }
.fp-frame--rules[data-dash="last"] .fp-rules + .fp-rules:last-child li::before { width: 10px; height: 2px; top: calc(8px + .72em); border-radius: 1px; background: var(--coral); }
.fp-frame--rules[data-dash="last"] .fp-rules + .fp-rules:last-child li { color: var(--ink-2); }

/* close({ scene: false }): the navy band alone; the band takes the scene's breathing room at its top */
.fp-close--bare .fp-close__band { padding-top: clamp(48px, 7vw, 88px); }

/* in-sentence links (kit pass two): site.css gives every bare link in a paragraph the text-CTA arrow, which lands
   mid-sentence ("the docs -> list..."). A link inside a sentence is not a call to action, so it goes here. Standalone
   links keep it: the kit prints those as .tcta, and the one bare link that stands alone in its paragraph, Agents'
   directory line (p.fp-directory), is skipped (lead ruling). */
main p:not(.fp-directory) a:not([class])::after { content: none; }

/* a check frame's credit line (kit pass two): one small line at the foot, under the last row */
.fp-frame--check .fp-check__credit { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(21, 23, 28, .08); font-size: .82rem; color: var(--ink-3); max-width: none; }

/* The pipeline under a "how" band keeps clear of the copy above it on every feature page (was Images only). */
.fp-how__pipe { margin-top: 64px; }

/* Build six part two FO (Sarah D6ocp3vLwVgC): the overview band near the top of each product page, on the pattern of
   Strategy's reports band (pages/strategy.css #reports): label and heading, then the groups in columns, each its name
   over a ruled list, one "Learn more" at the foot. The links share one baseline across a row (the group is a column
   whose link sits at its foot). A long group (data-long, more than six names) takes three columns and sets its list in
   three columns, filled down then across. Additive: no rule above changes. */
.fp-overview__grid { display: grid; grid-template-columns: repeat(var(--fp-ov-cols, 4), minmax(0, 1fr)); gap: clamp(24px, 2.6vw, 36px) clamp(20px, 2.4vw, 32px); margin-top: clamp(20px, 2.6vw, 32px); }
.fp-overview__grid[data-n="1"] { --fp-ov-cols: 1; }
.fp-overview__grid[data-n="2"] { --fp-ov-cols: 2; }
.fp-overview__grid[data-n="3"] { --fp-ov-cols: 3; }
.fp-overview__grid[data-n="5"] { --fp-ov-cols: 5; }
.fp-overview__grid[data-n="2"]:has(> [data-long]) { --fp-ov-cols: 4; }
.fp-overview__grid[data-n="3"]:has(> [data-long]) { --fp-ov-cols: 5; }
.fp-overview__group { display: flex; flex-direction: column; min-width: 0; }
.fp-overview__group[data-long] { grid-column: span 3; }
.fp-overview__grid[data-n="1"] .fp-overview__group[data-long] { grid-column: 1 / -1; }
.fp-overview__group h3 { font-size: 1.05rem; margin: 0 0 10px; }
.fp-overview__group ul { list-style: none; margin: 0; padding: 0; }
.fp-overview__group[data-long] ul { columns: 3; column-gap: clamp(20px, 2.4vw, 32px); }
.fp-overview__group li { padding: 8px 0; border-top: 1px solid var(--rule, rgba(0, 0, 0, 0.12)); break-inside: avoid; }
.fp-overview__group li::first-letter { text-transform: uppercase; }
.fp-overview__more { margin: auto 0 0; padding-top: 14px; }
@media (max-width: 1100px) {
  .fp-overview__grid[data-n="5"] { --fp-ov-cols: 3; }
  .fp-overview__grid[data-n="3"]:has(> [data-long]) { --fp-ov-cols: 2; }
  .fp-overview__grid[data-n="3"] > .fp-overview__group[data-long] { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .fp-overview__grid[data-n]:not([data-n="1"]) { --fp-ov-cols: 2; }
  .fp-overview__grid .fp-overview__group[data-long] { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .fp-overview__group[data-long] ul { columns: 2; }
  .fp-overview__group li { font-size: .95rem; }
}
