/* PORTFOLIO PAGE (2026-11-20) START
   /portfolio only: every rule starts with main.pf, a hook only that page carries. Built by generators/portfolio/build.py.
   Hero: one build in the site's drawn laptop (.laptop from repairs.css), its whole page sliding slowly past.
   #builds: the four builds that have a recording, one per row, laptop and words swapping sides.
   #more-builds: the other nine as cards, picture shown whole; resting the pointer on one slides down its page.
   The tall pictures are fetched by assets/portfolio.js only when wanted. Delete from START to END to undo. */
/* wider laptop column only where the hub's own hero is still two columns (it stacks at 1000px in trades.css) */
@media (min-width:1001px){main.pf .hub-hero-grid{grid-template-columns:minmax(0,1fr) minmax(0,39rem)}}
main.pf .pf-hero-lap{position:relative;margin:0;min-width:0}
main.pf .pf-hero-lap::before{content:"";position:absolute;inset:-14% -8% -10% -8%;background:radial-gradient(closest-side,rgba(212,184,116,.2),rgba(212,184,116,.06) 55%,transparent 78%);pointer-events:none}
main.pf .pf-hero-lap>*{position:relative}
main.pf .pf-hero-lap figcaption{margin-top:1.15rem;text-align:center;font-size:.92rem;line-height:1.4;color:#EDF2F9}
main.pf .pf-hero-lap figcaption b{color:#fff;font-weight:600}

/* the screen area of any build picture: always 16 to 10, the first-screen picture fills it */
main.pf .pf-view{position:relative;display:block;overflow:hidden;aspect-ratio:16 / 10;background:#091120;container-type:size}
main.pf .pf-view>img,main.pf .pf-view>video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:top}
main.pf .pf-view>video{background:transparent}
main.pf .pf-view>img.pf-tall{inset:0 auto auto 0;height:auto;object-fit:fill;transform:translateY(0)}
@media (min-width:901px){
  main.pf .laptop-screen>.pf-view{flex:1 1 auto;min-width:0;min-height:0;aspect-ratio:auto;border-radius:4px}
}
@media (max-width:900px){
  main.pf .tone-light .laptop-screen{box-shadow:0 0 0 1px rgba(11,21,40,.14),0 24px 50px -28px rgba(11,21,40,.45)}
}
/* the hero page: rests 1 second on the first screen, then moves at once (no slow creep), rests 1 second at the foot, and returns */
@keyframes pf-pan{0%,2.5%{transform:translateY(0)}97.5%,100%{transform:translateY(calc(100cqh - 100%))}}
@supports (container-type:size){
  main.pf .pf-view[data-auto][data-state="ready"]>.pf-tall{animation:pf-pan 40s cubic-bezier(.2,.1,.8,.9) infinite alternate both}
  @media (hover:hover){
    main.pf .pf-card .pf-tall{transition:transform 1.1s cubic-bezier(.3,0,.2,1)}
    main.pf .pf-card:is(:hover,:focus-visible) .pf-view[data-state="ready"]>.pf-tall{transform:translateY(calc(100cqh - 100%));transition:transform 9s cubic-bezier(.35,0,.65,1)}
  }
}

/* the four with a recording */
main.pf .pf-play{position:absolute;left:4%;bottom:6%;display:inline-flex;align-items:center;gap:.7rem;min-height:48px;padding:.7rem 1.4rem .7rem 1.15rem;border:0;border-radius:999px;background:#D4B874;color:#0B1528;font:inherit;font-size:.95rem;font-weight:600;line-height:1;white-space:nowrap;cursor:pointer;box-shadow:0 0 0 7px rgba(212,184,116,.22),0 18px 34px -14px rgba(0,0,0,.85);transition:box-shadow .2s}
main.pf .pf-play::before{content:"";width:0;height:0;border-style:solid;border-width:7px 0 7px 11px;border-color:transparent transparent transparent #0B1528}
main.pf .pf-play[hidden]{display:none}
main.pf .pf-play:focus-visible{outline:2px solid #fff;outline-offset:4px}
main.pf .pf-play:active{transform:scale(.97)}
@media (hover:hover){main.pf .pf-play:hover{box-shadow:0 0 0 10px rgba(212,184,116,.3),0 18px 34px -14px rgba(0,0,0,.85)}}
main.pf .pf-feats{display:grid;gap:clamp(3.5rem,7vw,6.5rem)}
main.pf .pf-feat{display:grid;grid-template-columns:minmax(0,1.22fr) minmax(0,1fr);align-items:center;gap:2rem clamp(2rem,5vw,5rem)}
main.pf .pf-feat>*{min-width:0}
main.pf .pf-feat.flip{grid-template-columns:minmax(0,1fr) minmax(0,1.22fr)}
main.pf .pf-feat.flip>.pf-feat-media{order:2}
main.pf .pf-feat-copy h3{margin:0 0 .5rem;font-family:var(--f-display);font-size:3rem;font-weight:600;line-height:1.02;color:#0B1528;text-wrap:balance}
main.pf .pf-feat-copy .pf-tag{margin:0 0 1.3rem;font-size:1.06rem;line-height:1.5;font-weight:500;color:#46526E}
main.pf .pf-feat-copy .pf-good{margin:0 0 1.3rem;padding-left:1.1rem;border-left:2px solid #D4B874;font-family:var(--f-display);font-size:1.6875rem;font-weight:600;line-height:1.22;color:#0B1528}
main.pf .pf-points{display:grid;gap:.55rem;margin:0 0 1.4rem;padding:0;list-style:none}
main.pf .pf-points li{position:relative;margin:0;padding-left:1.6rem;font-size:1.06rem;line-height:1.5;color:#1C2742}
main.pf .pf-points li::before{content:"";position:absolute;left:0;top:.72em;width:.8rem;height:2px;background:#B8974A}
main.pf .pf-go{display:flex;flex-wrap:wrap;align-items:center;gap:.3rem 1.25rem;margin:0}
main.pf .pf-go .demo-of{font-size:.92rem;color:#5A6781}
@media (max-width:1179px){
  main.pf .pf-feat,main.pf .pf-feat.flip{grid-template-columns:minmax(0,1fr);gap:1.5rem}
  main.pf .pf-feat-copy h3{font-size:2.125rem}
  main.pf .pf-feat-copy .pf-good{font-size:1.4375rem}
  main.pf .pf-feat.flip>.pf-feat-media{order:0}
  main.pf .pf-feat-media{max-width:46rem}
}

/* the other nine: one even grid, three across, every card the same size, every row the same height.
   On phones the first card of each row runs full width and the other two sit side by side under it. */
main.pf .sec-head .section-desc{text-wrap:balance}
main.pf .pf-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr;gap:1.75rem}
main.pf .pf-group{display:contents}
main.pf .pf-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border-radius:var(--lk-radius,16px);border:1px solid rgba(255,255,255,.14);background:linear-gradient(180deg,#14264A 0,#0F1B32 100%);box-shadow:0 26px 50px -34px rgba(0,0,0,.8);text-decoration:none;transition:border-color .25s,transform .25s}
main.pf .pf-card .pf-view{flex:none;border-bottom:1px solid rgba(255,255,255,.12)}
main.pf .pf-card-body{display:flex;flex:1 1 auto;flex-direction:column;gap:.4rem;padding:1.3rem 1.5rem 1.5rem}
main.pf .pf-card h3{margin:0;font-family:var(--f-display);font-size:1.5625rem;font-weight:600;line-height:1.12;color:#fff}
main.pf .pf-card .pf-tag{margin:0;font-size:1rem;line-height:1.5;color:#EDF2F9}
main.pf .pf-card .demo-of{margin-top:auto;padding-top:.5rem;font-size:.9rem;color:#D4B874}
main.pf .pf-card:focus-visible{outline:2px solid #D4B874;outline-offset:3px}
@media (hover:hover){main.pf .pf-card:hover{border-color:#D4B874;transform:translateY(-3px)}}
@media (hover:none),(prefers-reduced-motion:reduce){main.pf .pf-hov{display:none}}
@media (prefers-reduced-motion:reduce){main.pf .pf-card{transition:none}main.pf .pf-card:hover{transform:none}}
@media (max-width:1000px){
  main.pf .pf-grid{gap:1rem}
  main.pf .pf-card-body{padding:.9rem 1rem 1.1rem}
  main.pf .pf-card h3{font-size:1.25rem}
}
@media (max-width:639px){
  main.pf .pf-grid{grid-template-columns:minmax(0,1fr);grid-auto-rows:auto;gap:1.75rem}
  main.pf .pf-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
  main.pf .pf-group>.pf-lead{grid-column:1 / -1}
  main.pf .pf-card-body{padding:.8rem .85rem 1rem}
  main.pf .pf-card h3{font-size:1.125rem}
  main.pf .pf-card .pf-tag{font-size:.9375rem;line-height:1.45}
  main.pf .pf-lead .pf-card-body{padding:1.1rem 1.2rem 1.3rem}
  main.pf .pf-lead h3{font-size:1.5625rem}
  main.pf .pf-lead .pf-tag{font-size:1rem}
}

/* the page ends once: the closing block carries both buttons */
main.pf .pf-close-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.9rem 1rem}
main.pf .final-cta .btn-outline{border-color:rgba(212,184,116,.7);color:#D4B874;background:transparent}
@media (hover:hover){main.pf .final-cta .btn-outline:hover{background:#D4B874;border-color:#D4B874;color:#0B1528}}
main.pf .final-cta .pf-close-note{max-width:46ch;margin:1.3rem auto 0;font-size:1rem;line-height:1.55;color:#EDF2F9}
/* phones: the long hero button runs the full width instead of stopping 10px short of the text edge */
@media (max-width:480px){main.pf .hero-actions .btn-primary{width:100%;justify-content:center;text-align:center}}
/* THE VIEWER (made by portfolio.js, so it sits outside main; these names exist on no other page).
   One build's whole page in a window the visitor scrolls. Full screen on phones. */
html.pf-viewing{overflow:hidden}
dialog.pf-viewer{width:min(962px,calc(100vw - 2.5rem));height:min(92vh,calc(100vh - 2.5rem));height:min(92dvh,calc(100dvh - 2.5rem));max-width:none;max-height:none;margin:auto;padding:0;overflow:hidden;border:1px solid rgba(255,255,255,.18);border-radius:var(--lk-radius,16px);background:#0B1528;color:#fff;box-shadow:0 50px 120px -30px rgba(0,0,0,.9)}
dialog.pf-viewer::backdrop{background:rgba(5,9,18,.8)}
.pf-viewer .pfv-wrap{display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:100%}
.pf-viewer .pfv-bar{display:flex;align-items:center;justify-content:space-between;gap:.75rem 1.5rem;padding:1rem 1.25rem 1rem 1.6rem;border-bottom:1px solid rgba(255,255,255,.12);background:linear-gradient(180deg,#12223F 0,#0B1528 100%)}
.pf-viewer .pfv-title{min-width:0}
.pf-viewer .pfv-name{margin:0;font-family:var(--f-display);font-size:1.6875rem;font-weight:600;line-height:1.1;color:#fff;text-transform:none;letter-spacing:0}
.pf-viewer .pfv-tag{margin:.2rem 0 0;font-size:1rem;line-height:1.45;color:#EDF2F9}
.pf-viewer .pfv-actions{display:flex;flex:none;align-items:center;gap:.75rem}
.pf-viewer .pfv-page,.pf-viewer .pfv-close{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.55rem 1.2rem;border-radius:999px;font:inherit;font-size:.9rem;font-weight:600;line-height:1;white-space:nowrap;text-decoration:none;cursor:pointer}
.pf-viewer .pfv-page{border:1.5px solid rgba(212,184,116,.7);background:transparent;color:#D4B874}
.pf-viewer .pfv-close{border:1.5px solid #D4B874;background:#D4B874;color:#0B1528}
.pf-viewer :is(.pfv-page,.pfv-close):focus-visible{outline:2px solid #fff;outline-offset:3px}
@media (hover:hover){.pf-viewer .pfv-page:hover{background:#D4B874;color:#0B1528}.pf-viewer .pfv-close:hover{background:#E3CB8E;border-color:#E3CB8E}}
.pf-viewer .pfv-scroll{min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:#091120;scrollbar-width:thin;scrollbar-color:#3D4E72 transparent}
.pf-viewer .pfv-scroll:focus-visible{outline:2px solid #D4B874;outline-offset:-2px}
.pf-viewer .pfv-img{display:block;width:100%;height:auto;min-height:60vh;background:#091120}
.pf-viewer .pfv-foot{margin:0;padding:.65rem 1.6rem;border-top:1px solid rgba(255,255,255,.12);font-size:.85rem;line-height:1.45;color:#D5DCEA}
main.pf .pf-go .pf-open{min-height:44px;padding:.6rem 1.25rem;margin-right:.25rem}
main.pf .pf-go .pf-open[hidden]{display:none}
@media (max-width:639px){
  dialog.pf-viewer{width:100vw;height:100vh;height:100dvh;border:0;border-radius:0}
  .pf-viewer .pfv-bar{flex-wrap:wrap;padding:.8rem 1rem}
  .pf-viewer .pfv-name{font-size:1.4375rem}
  .pf-viewer .pfv-tag{font-size:.9375rem}
  .pf-viewer .pfv-actions{width:100%;justify-content:space-between}
  .pf-viewer .pfv-foot{padding:.55rem 1rem}
}
/* PORTFOLIO PAGE (2026-11-20) END */

/* /websites: the portfolio panel under the trade cards. Same navy panel as the homepage's "see one with your name" band. */
#trades .pf-band{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,27rem);align-items:center;gap:2rem 3.5rem;margin-top:2.75rem;padding:2.5rem 3rem;border-radius:var(--lk-radius,16px);background:radial-gradient(620px 300px at 92% 0,rgba(72,112,200,.26),transparent 70%),linear-gradient(180deg,#12223F 0,#0B1528 78%);box-shadow:0 26px 50px -34px rgba(11,21,40,.75)}
#trades .pf-band-copy{min-width:0}
#trades .pf-band-h{margin:0 0 .7rem;font-family:var(--f-display);font-size:clamp(1.7rem,2.6vw,2.5rem);font-weight:700;line-height:1.04;text-transform:uppercase;color:#fff;text-wrap:balance}
#trades .pf-band-h em{font-style:normal;color:#D4B874}
#trades .pf-band-p{margin:0;max-width:44ch;font-size:1.06rem;line-height:1.6;color:#EDF2F9}
#trades .pf-band-go{margin:1.4rem 0 0}
#trades .pf-wall{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem}
#trades .pf-tile{display:block;overflow:hidden;border-radius:8px;border:1px solid rgba(255,255,255,.18);background:#091120;box-shadow:0 14px 28px -18px rgba(0,0,0,.7)}
#trades .pf-tile img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:top}
@media (max-width:1100px){#trades .pf-band{grid-template-columns:minmax(0,1fr) minmax(0,21rem);gap:1.5rem 2rem;padding:1.75rem 1.6rem}}
@media (max-width:760px){#trades .pf-band{grid-template-columns:minmax(0,1fr);gap:1.75rem;padding:1.75rem 1.4rem}}

/* HUB BUILD STEPS (2026-11-19) START
   /websites "How a build works": three stops on one gold line with no boxes, then one price panel.
   Every rule starts with #how.hb, which only the hub page carries. Delete from START to END to undo. */
#how.hb .hb-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 3.5rem;margin:0;padding:0;background:none;border:0;position:relative}
#how.hb .hb-steps::before{content:'';position:absolute;left:0;right:0;top:28px;height:2px;margin-top:-1px;background:linear-gradient(90deg,#D4B874 0,#D4B874 66%,rgba(212,184,116,.25) 100%);z-index:0}
#how.hb .hb-steps li{position:relative;z-index:1;display:grid;grid-template-columns:56px minmax(0,1fr);align-items:center;align-content:start;column-gap:1rem;margin:0;padding:0;background:none;border:0;border-radius:0;box-shadow:none}
#how.hb .hb-steps li::before{grid-column:1;grid-row:1;display:grid;place-items:center;width:56px;height:56px;margin:0;border-radius:50%;font-size:1.6rem;line-height:1;background:#D4B874;color:#0B1528;box-shadow:0 0 0 7px rgba(212,184,116,.18),0 16px 28px -14px rgba(0,0,0,.8)}
#how.hb .hb-when{grid-column:2;grid-row:1;justify-self:start;padding:.32rem .8rem;border-radius:999px;background:#0B1528;border:1px solid rgba(212,184,116,.55);color:#EDF2F9;font-size:.9rem;font-weight:600;line-height:1.2;white-space:nowrap}
#how.hb .hb-steps h3{grid-column:1 / -1;margin:1.9rem 0 .7rem;font-family:var(--f-display);font-size:1.75rem;font-weight:600;line-height:1.1;color:#fff}
#how.hb .hb-steps p{grid-column:1 / -1;margin:0;max-width:34ch;font-size:1.06rem;line-height:1.65;color:#EDF2F9}
#how.hb .hb-price{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);align-items:center;gap:2rem 3.5rem;margin-top:3.75rem;padding:2.4rem 3rem;border-radius:var(--lk-radius,16px);background:radial-gradient(620px 300px at 92% 0,rgba(72,112,200,.22),transparent 70%),linear-gradient(180deg,#12223F 0,#0E1A33 100%);border:1px solid rgba(255,255,255,.14);box-shadow:0 40px 70px -44px rgba(0,0,0,.8)}
#how.hb .hb-price .price-line{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem 2.5rem;margin:0;font-size:1rem}
#how.hb .hb-fig{display:flex;flex-direction:column;gap:.45rem;min-width:0}
#how.hb .hb-fig + .hb-fig{padding-left:2.5rem;border-left:1px solid rgba(255,255,255,.16)}
#how.hb .hb-lab{font-size:1rem;font-weight:600;color:#EDF2F9}
#how.hb .hb-fig b{margin:0;font-family:var(--f-display);font-size:clamp(2.6rem,4vw,3.5rem);font-weight:600;line-height:1;color:#fff}
#how.hb .hb-amt{display:flex;flex-wrap:wrap;align-items:baseline;gap:.1rem .6rem}
#how.hb .hb-q{font-size:1.06rem;line-height:1.3;color:#EDF2F9;white-space:nowrap}
#how.hb .hb-free{font-size:1rem;line-height:1.3;font-weight:600;color:#fff}
#how.hb .hb-price .links-row{display:flex;flex-direction:column;align-items:flex-start;gap:.35rem;margin:0}
@media (max-width:1100px){
  #how.hb .hb-steps{gap:0 2rem}
  #how.hb .hb-price{grid-template-columns:minmax(0,1fr);padding:2rem 1.75rem}
}
@media (max-width:760px){
  #how.hb .hb-steps{grid-template-columns:minmax(0,1fr);gap:2.4rem 0}
  #how.hb .hb-steps::before{display:none}
  #how.hb .hb-steps li:not(:last-child)::after{content:'';position:absolute;left:27px;top:64px;bottom:calc(-2.4rem + 8px);width:2px;background:#D4B874;opacity:.7}
  #how.hb .hb-steps h3{grid-column:2;margin:1rem 0 .5rem;font-size:1.5rem}
  #how.hb .hb-steps p{grid-column:2;max-width:none}
  #how.hb .hb-price{margin-top:2.75rem;padding:1.6rem 1.3rem}
  #how.hb .hb-price .price-line{grid-template-columns:minmax(0,1fr);gap:1.4rem}
  #how.hb .hb-fig + .hb-fig{padding-left:0;padding-top:1.4rem;border-left:0;border-top:1px solid rgba(255,255,255,.16)}
}
/* HUB BUILD STEPS (2026-11-19) END */
