/* The stylesheets of portfolio-template.html, joined in order by tools/convert/convert_page.py (L9). Do not edit: rerun the conversion. */

/* ---- visuals-portfolio/results-base.css ---- */
/* Palette variables (--c-*, read by TK.col) and the .frame, .set and .r-tile styles of the results visuals. Copied by extract_sources.py from page mockups/visuals/portfolio-results-visuals.html, lines 7 to 45. Edits: lines 7 to 16 (the :root block) and lines 41, 42, 44 and 45 only; the review page's own layout is left out; portfolio.css removes the .frame box. Do not edit by hand; rerun extract_sources.py. */
:root{
  --color-black:#0A0A0A; --color-on-black:#F0F0F0; --color-on-black-muted:rgba(240,240,240,.62);
  --color-line-black:rgba(240,240,240,.14); --color-paper:#ECE9E3;
  /* signature light colours: the rare glowing exception */
  --c-blue:#2F6BFF; --c-violet:#7A3CFF; --c-magenta:#FF2E9A; --c-orange:#FF6A2B; --c-cyan:#2FE6FF;
  --frame:#0E0E0E; --frame-2:#111111;
  --e-out:cubic-bezier(.2,.7,.2,1); --e-io:cubic-bezier(.45,0,.25,1);
  --f-display:'Inter Tight','Inter',system-ui,sans-serif; --f-text:'Inter',system-ui,sans-serif;
  --f-mono:'IBM Plex Mono',ui-monospace,monospace;
}
.frame{position:relative;overflow:hidden;background:radial-gradient(120% 90% at 50% 40%,var(--frame-2),#0A0A0A 70%);border:1px solid var(--color-line-black);border-radius:16px;box-shadow:0 40px 90px -40px rgba(0,0,0,.9),inset 0 1px 0 rgba(255,255,255,.04)}
.frame canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.set{display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(min(100%,264px),1fr))}
.r-tile{aspect-ratio:3/2}

/* ---- visuals-portfolio/pcv-base.css ---- */
/* Palette variables of the project covers (--pcv-*, read by PCV.palette). Copied by extract_sources.py from page mockups/visuals/portfolio-covers-visuals.html, lines 11 to 16. Edits: none; the :root block is copied as it is. Do not edit by hand; rerun extract_sources.py. */
:root{
  --color-black:#0A0A0A; --color-on-black:#F0F0F0; --color-on-black-muted:rgba(240,240,240,.62); --color-line-black:rgba(240,240,240,.14); --color-paper:#ECE9E3;
  --pcv-blue:#2F6BFF; --pcv-violet:#7A3CFF; --pcv-magenta:#FF2E9A; --pcv-coral:#FF6A2B; --pcv-cyan:#2FE6FF;
  --pcv-frame:#0E0E0E;
  --ease-out:cubic-bezier(.2,.7,.2,1); --ease-io:cubic-bezier(.45,0,.25,1);
}

/* ---- visuals-v2/t13-base.css ---- */
/* L19: copied by copy_hand_over.py from ../visuals-ai-systems-and-automation/t13-base.css, unchanged. */
/* Palette variables (--c-*, read by T13.rgb) and the .g-frame, .g-frame.wide, .g-bandwrap and .g-frame.band rules of the AI visuals. Copied by extract_sources.py from page mockups/visuals/ai-visuals.html, line 9 and lines 38, 39, 40, 44 and 45. Edits: line 9 (the glow colours) is wrapped in :root{}; the other lines are copied as they are (the review page's own layout and responsive lines are left out; ai-systems-and-automation.css sets the layout and removes the frame look). Do not edit by hand; rerun extract_sources.py. */
:root{
  --c-blue:#2F6BFF;--c-violet:#7A3CFF;--c-magenta:#FF2E9A;--c-orange:#FF6A2B;--c-cyan:#2FE6FF;
}
.g-frame{position:relative;overflow:hidden;border-radius:14px;border:1px solid var(--color-line-black);background:#0B0B0C;box-shadow:0 30px 80px -40px rgba(0,0,0,.9)}
.g-frame .t13-cv{position:absolute;inset:0;display:block}
.g-frame.wide{aspect-ratio:16/9;width:100%}
.g-bandwrap{margin:0 calc(-1 * var(--gut))}
.g-frame.band{width:100%;height:240px;border-radius:0;border-left:0;border-right:0}

/* ---- visuals-portfolio/portfolio.css ---- */
/* Layout and component styles for the Portfolio page. New CSS (not copied from a source file).
   Colour, type, spacing and radius come from ../../shared/paper-base.css; the glow palette and the result tiles come from results-base.css,
   the cover palette from pcv-base.css. The project circles use the homepage component (.circle-item, in ../../shared/paper-base.css). */

/* ---------- no frames (07/11/2026): animations sit straight on the black ---------- */
.pf-results .frame{background:none;border:0;border-radius:0;box-shadow:none;overflow:visible}
.pf-results .r-tile{width:100%}

/* ---------- What the work did: five results, each animation above the pack's own sentence ---------- */
.pf-results{margin-top:var(--sp-7)}
.pf-results .ra-set{display:grid;gap:var(--sp-8) var(--sp-6);grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr))}
.pf-res{min-width:0}
.pf-res__text{margin:var(--sp-3) 0 0;max-width:30em;color:var(--color-on-black-2);font-size:var(--type-body-size);line-height:var(--type-body-lh)}

/* ---------- project groups: one repeatable list of project circles ---------- */
.pf-cards{--pf-face:clamp(150px,13.5vw,200px);list-style:none;margin:var(--sp-7) 0 0;padding:0;display:grid;
  grid-template-columns:repeat(auto-fill,minmax(var(--pf-face),1fr));gap:var(--sp-8) var(--sp-6);justify-items:center}
.pf-cards--few{margin-top:0;grid-template-columns:repeat(auto-fill,minmax(var(--pf-face),var(--pf-face)));justify-items:start;justify-content:start}
.pf-card{display:flex;flex-direction:column;align-items:center;text-align:center;width:var(--pf-face);min-width:0}
.pf-card .circle-item{display:block;width:var(--pf-face)}
.pf-card .circle-item__name{overflow-wrap:break-word}
.pf-line{margin:var(--sp-2) 0 0;width:100%;font-size:var(--type-small-size);line-height:var(--type-small-lh);color:var(--color-ink-2)}
@media (max-width:767px){.pf-cards{--pf-face:clamp(140px,38vw,200px);gap:var(--sp-7) var(--sp-5)}}

/* the same circles on black: the name and the line take the black section's colours */
.tpl-black .circle-item__name{color:var(--color-on-black)}
.tpl-black .pf-line{color:var(--color-on-black-2)}
.tpl-black .circle-item:focus-visible .circle-item__face{outline-color:var(--color-on-black)}

/* a live cover (an animation, so black only): drawn straight into the round face with no ring, box, shadow or background */
.pf-live{background:none;box-shadow:none}
.pf-live::after{display:none}
.pf-live canvas{display:block;width:100%;height:100%}
.tpl-black .circle-item:hover .pf-live,.tpl-black .circle-item:focus-visible .pf-live{box-shadow:none}

/* ---------- L16 (10/11/2026): Hero A on its own black section, no frame ---------- */
.pf-hero .frame{position:relative;background:none;border:0;border-radius:0;box-shadow:none;overflow:visible;width:100%;aspect-ratio:21/8}
.pf-hero canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
@media (max-width:767px){.pf-hero .frame{aspect-ratio:4/3}}
/* ---------- L16: several groups on one paper sheet ---------- */
.pf-groups{display:grid;gap:var(--sp-9) var(--sp-8)}
@media (min-width:1024px){.pf-groups--pair{grid-template-columns:1fr 1fr}.pf-groups--pair .split{grid-template-columns:1fr}}
.pf-groups .pf-close{margin-top:var(--sp-4);padding-top:var(--sp-8);border-top:1px solid var(--color-line-paper,rgba(20,20,20,.14))}
/* L16: phones show the project circles two across, so a group of eleven does not run as one long column */
@media (max-width:767px){.pf-cards:not(.pf-cards--few){--pf-face:clamp(120px,34vw,150px);grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--sp-7) var(--sp-4)!important}}

/* ---------- L21 (11/11/2026): the page redone to the design guide (design-guide-pages.md, Portfolio brief) ---------- */
/* What the work did: the five results across the whole width of the black section (out of the content column, 24px from each
   edge), bigger, three above and two centred below; each result's numbers are lit in white inside the pack's own sentence. */
.pf-results{width:calc(100vw - 2 * var(--sp-5));max-width:1680px;margin-left:50%;transform:translateX(-50%)}
.pf-results .ra-set{grid-template-columns:repeat(6,minmax(0,1fr));gap:var(--sp-9) var(--sp-7)}
.pf-results .pf-res{grid-column:span 2}
.pf-results .pf-res:nth-child(4){grid-column:2 / span 2}
/* soft edges: the drawing fades out before the edge of its canvas, so no tile reads as a box */
.pf-results .r-tile canvas{-webkit-mask-image:radial-gradient(closest-side,#000 78%,transparent);mask-image:radial-gradient(closest-side,#000 78%,transparent)}
.pf-res__text{margin-inline:auto;text-align:center;max-width:24em}
.pf-res__num{font-weight:500;color:var(--color-on-black)}
@media (max-width:1023px){.pf-results .ra-set{grid-template-columns:repeat(2,minmax(0,1fr))}.pf-results .pf-res,.pf-results .pf-res:nth-child(4){grid-column:auto}.pf-results .pf-res:nth-child(5){grid-column:1 / -1;justify-self:center;width:calc(50% - var(--sp-7) / 2)}}
@media (max-width:600px){.pf-results{width:calc(100vw - 2 * var(--sp-4))}.pf-results .ra-set{grid-template-columns:1fr;gap:var(--sp-8)}.pf-results .pf-res:nth-child(5){width:100%}}
/* the results section's title is centred over the full-width set */
.pf-results-title{text-align:center}
/* AI and automation, under its sheet: one canvas across the whole black section, edge to edge, fading before the canvas edge */
.pf-sort{position:relative;width:100vw;margin-left:calc(50% - 50vw);height:clamp(300px,32vw,460px)}
.pf-sort canvas{position:absolute;inset:0;width:100%;height:100%;display:block;-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
@media (max-width:600px){.pf-sort{height:300px}}

/* ---- L24 corrections (11/11/2026), from 02 Checks/audit-l21-portfolio.md ---- */
/* 1. AI and automation sheet: twelve circles in two even rows of six (four across on tablet), so the sheet stays within about one and a half screens */
@media (min-width:1024px){.pf-cards:not(.pf-cards--few){--pf-face:clamp(128px,11.4vw,168px);grid-template-columns:repeat(6,var(--pf-face));justify-content:space-between;gap:var(--sp-8) var(--sp-5)}}
@media (min-width:768px) and (max-width:1023px){.pf-cards:not(.pf-cards--few){--pf-face:clamp(120px,17vw,150px);grid-template-columns:repeat(4,var(--pf-face));justify-content:space-between}}
/* 2. Hero animation full-bleed with soft edges on all four sides (no dust rectangle) */
.pf-hero .frame{width:100vw;margin-left:calc(50% - 50vw);aspect-ratio:auto;height:300px}
.pf-hero canvas{-webkit-mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent),linear-gradient(180deg,transparent,#000 18%,#000 82%,transparent);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent),linear-gradient(180deg,transparent,#000 18%,#000 82%,transparent);mask-composite:intersect}
@media (max-width:767px){.pf-hero .frame{aspect-ratio:auto;height:260px}}
/* 3. AI group animation: taller on phones so the three stacked groups stay apart */
@media (max-width:600px){.pf-sort{height:380px}}
/* 4. Paired groups: body directly under its title, closing hairline level with its neighbour, two columns on tablet */
.pf-groups--pair .split>.split__body{grid-column:1 / -1}
@media (min-width:700px){.pf-groups--pair .pf-close{margin-top:0;padding-top:48px}}
@media (min-width:700px) and (max-width:1023px){.pf-groups--pair{grid-template-columns:1fr 1fr}.pf-groups--pair .split{grid-template-columns:1fr}}
/* 5. Hero lead breaks at the sentence end */
.l17-hero__intro .hero-lead{text-wrap:balance}
/* L24 follow-on to 1: with six across, the last circle (bottom right) came within 8px of the sheet's rising lower edge at 1280; 40px under the list keeps it at least 26px clear, and the sheet stays under one and a half screens */
@media (min-width:768px){.pf-cards:not(.pf-cards--few){padding-bottom:40px}}

/* ---------- R3-E (12/11/2026), the round-3 notes (transcript lines 204 to 238) ---------- */
/* 1. The hero fills the whole first screen; the opening animation takes all the room under the title and description */
.black-section.l17-hero{min-height:100vh;min-height:100svh;display:flex;flex-direction:column}
.l17-hero>.l17-hero__inner{flex:1 1 auto}
.l17-hero .l17-hero__anim{flex:1 1 auto;display:flex;width:100%;height:auto;min-height:320px}
.l17-hero .l17-hero__anim>.pf-hero{flex:1 1 auto;display:flex}
.pf-hero .frame,.pf-hero .frame[class]{height:auto;flex:1 1 auto}
@media (max-width:767px){.l17-hero .l17-hero__anim{min-height:300px}}

/* 2. Every project in one grid: square tiles in a thin white wireframe with small square dots at the corners, straight on the black */
.pf-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--sp-9) var(--sp-7);margin:0;padding:var(--sp-7) 0 0;list-style:none}
@media (max-width:1023px){.pf-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:767px){.pf-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-8) var(--sp-5)}}
.pf-tile{min-width:0}
.pf-tile__link{display:block;color:inherit;text-decoration:none;outline:none}
.pf-tile__frame{position:relative;display:block;aspect-ratio:1;padding:10px;border:1px solid var(--color-on-black-muted);
  transition:border-color var(--dur-colour) var(--ease)}
.pf-tile__frame::before{content:"";position:absolute;inset:-4px;pointer-events:none;
  background:linear-gradient(var(--color-on-black),var(--color-on-black)) 0 0/7px 7px no-repeat,
    linear-gradient(var(--color-on-black),var(--color-on-black)) 100% 0/7px 7px no-repeat,
    linear-gradient(var(--color-on-black),var(--color-on-black)) 0 100%/7px 7px no-repeat,
    linear-gradient(var(--color-on-black),var(--color-on-black)) 100% 100%/7px 7px no-repeat}
.pf-tile__img{display:block;width:100%;height:100%;object-fit:cover;background:var(--color-black)}
.pf-tile__img--mark{object-fit:contain;padding:22%}
.pf-tile__name{display:block;margin-top:var(--sp-5);font-family:var(--font-display);font-weight:600;font-size:var(--type-h3-size);
  line-height:var(--type-h3-lh);letter-spacing:var(--type-h3-track);color:var(--color-on-black);text-wrap:balance}
.pf-tile__line{margin:var(--sp-2) 0 0;font-size:var(--type-body-size);line-height:var(--type-body-lh);color:var(--color-on-black-2)}
.pf-tile__link:hover .pf-tile__frame,.pf-tile__link:focus-visible .pf-tile__frame{border-color:var(--color-on-black)}
.pf-tile__link:focus-visible .pf-tile__frame{outline:2px solid var(--color-on-black);outline-offset:6px}
@media (max-width:767px){.pf-tile__frame{padding:6px}.pf-tile__name{font-size:var(--type-ui-l-size);line-height:var(--type-ui-l-lh)}.pf-tile__line{font-size:var(--type-small-size);line-height:var(--type-small-lh)}}
@media (prefers-reduced-motion:reduce){.pf-tile__frame{transition:none}}

/* 3. What the work did as rows: title and sentence on the left, the animation on the right, straight on the black */
.pf-results.pf-results--rows{width:auto;max-width:none;margin:var(--sp-9) 0 0;transform:none}
.pf-results--rows .ra-set{display:flex;flex-direction:column;gap:var(--sp-8)}
.pf-row{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:var(--sp-8);align-items:center}
.pf-row__title{margin:0;font-family:var(--font-display);font-weight:700;font-size:var(--type-h3-size);line-height:var(--type-h3-lh);
  letter-spacing:var(--type-h3-track);color:var(--color-on-black)}
.pf-row__body{margin:var(--sp-4) 0 0;max-width:26em;font-size:var(--type-body-size);line-height:var(--type-body-lh);color:var(--color-on-black-2)}
.pf-row__anim{width:100%}
@media (max-width:767px){.pf-row{grid-template-columns:1fr;gap:var(--sp-5)}.pf-results--rows .ra-set{gap:var(--sp-9)}}

/* ---- visuals-portfolio/world.css ---- */
/* Copied by visuals-portfolio/extract_round3.py from 13 June Site Launch/01 Planning/round-3/anim-portfolio-hero/portfolio-hero.html (sha256 ae8d19569aabdc2d). Edits: none. Do not edit by hand: change the source and re-run. */
.pf-world{position:absolute;inset:0;z-index:1;pointer-events:none}
.pf-world canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
@media print{.pf-world{display:none}}

/* ---- visuals-portfolio/pf-results.css ---- */
/* Copied by visuals-portfolio/extract_round3.py from 13 June Site Launch/01 Planning/round-3/anim-portfolio-results/pf-results.css (sha256 0e272abe23777c80). Edits: none. Do not edit by hand: change the source and re-run. */
/* 13 June, Portfolio, "What the work did": the box each result animation draws into. Straight on the black: no frame,
   border, background or label. The canvas keeps the 560 x 280 (2:1) drawing area and fills the width it is given. */
.pfr{position:relative;width:100%;aspect-ratio:2/1}
.pfr canvas{position:absolute;inset:0;display:block;width:100%;height:100%;transition:opacity .2s linear}

/* ---- visuals-portfolio/pf-results-rows.css ---- */
/* Copied by visuals-portfolio/extract_round3.py from 13 June Site Launch/01 Planning/round-3/anim-portfolio-results/all.html (sha256 6dad9bd7d8965be3). Edits: the wrapper .rows is the page wrapper .pf-rows (2 places). Do not edit by hand: change the source and re-run. */
.pf-rows{display:flex;flex-direction:column;gap:clamp(16px,2vw,32px)}
.pf-row{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:var(--sp-8);align-items:center}
.pf-row__title{margin:0;font-family:"Inter Tight",Arial,sans-serif;font-weight:700;font-size:clamp(24px,2.1vw,30px);line-height:1.1;letter-spacing:-.02em}
.pf-row__body{margin:var(--sp-3) 0 0;max-width:26em;font-size:var(--type-body-size);line-height:1.6;color:var(--color-on-black-2)}
.pf-row__body b{color:var(--color-on-black);font-weight:600}
.pf-row__anim{max-width:540px;justify-self:end}
@media (max-width:767px){.pf-row{grid-template-columns:1fr;gap:var(--sp-4)}.pf-rows{gap:var(--sp-7)}.pf-row__anim{max-width:none;justify-self:stretch}}
