/* pages.css — additions used only by the multi-page build.
   site.css is shared with the one-page build and is never modified here. */

/* ---------- page header band ---------- */
.phead{background:var(--sand);border-bottom:1px solid var(--sand-deep)}
.phead .wrap{padding:60px 36px 56px}
.phead h1{font-size:clamp(2.25rem,4.3vw,3.35rem);margin-top:15px}
.plede{font-size:1.17rem;line-height:1.66;max-width:62ch;margin-top:20px}
.plede+.plede{margin-top:14px}

.phead.split .wrap{display:grid;grid-template-columns:1.22fr .78fr;gap:56px;align-items:center}
.phead.split .plede{max-width:none}
.phead.split .wkphoto{width:100%;max-width:330px;justify-self:end}

/* ---------- "next up" cross-links ---------- */
.nextup{background:var(--paper);border-top:1px solid var(--line);padding:66px 0}
.nxts{display:grid;gap:22px}
.nxts.n3{grid-template-columns:repeat(3,1fr)}
.nxts.n2{grid-template-columns:repeat(2,1fr)}
.nxts.n1{grid-template-columns:minmax(0,560px)}
.nxt{display:flex;flex-direction:column;gap:9px;background:var(--card);border:1px solid var(--line);
     border-radius:var(--rc);padding:28px 30px;box-shadow:var(--lift);text-decoration:none;
     transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.nxt:hover{transform:translateY(-3px);box-shadow:var(--lift2);border-color:var(--blue)}
.nxt h3{margin:0}
.nxt p{margin:0;font-size:1.01rem;color:var(--body)}
.nxt .go{margin-top:6px;font-weight:650;font-size:.95rem;color:var(--blue-deep)}

/* ---------- contact band ---------- */
.ctaband{background:var(--blue-soft);border-top:1px solid var(--line);padding:70px 0}
.ctainner{display:grid;grid-template-columns:1.15fr .85fr;gap:48px;align-items:center}
.ctainner h2{margin-top:12px}
.ctainner p{margin-top:15px;font-size:1.09rem;max-width:48ch}
.ctainner .btns{margin-top:0;justify-content:flex-end}

/* ---------- small page-level bits ---------- */
.morelink{margin-top:38px;display:flex;justify-content:center}
.sessband{border-top:1px solid var(--line)}

/* ---------- responsive ---------- */
@media(max-width:920px){
  .phead .wrap{padding:44px 36px 42px}
  .phead.split .wrap{grid-template-columns:1fr;gap:34px}
  .phead.split .wkphoto{max-width:300px;justify-self:start}
  .nxts.n1,.nxts.n2,.nxts.n3{grid-template-columns:1fr;gap:16px}
  .nextup{padding:52px 0}
  .ctainner{grid-template-columns:1fr;gap:26px}
  .ctainner .btns{justify-content:flex-start}
  .ctaband{padding:54px 0}
}
@media(max-width:620px){
  .phead .wrap{padding:34px 20px 32px}
  .phead h1{font-size:2.05rem}
  .plede{font-size:1.07rem}
  .nextup,.ctaband{padding:46px 0}
  .nxt{padding:22px 24px}
}


/* ---------- resources: one category at a time ---------- */
.restab{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.chips{align-items:center}
.chips .chip{cursor:pointer;user-select:none;transition:background .15s ease,color .15s ease,border-color .15s ease}
.chiphint{font-size:.93rem;color:var(--muted);margin:-18px 0 30px}

/* every panel hidden; the checked tab reveals its own, with no inter-panel rules left over */
.rescat{display:none;margin-top:34px;padding-top:0;border-top:0}
.rescat+.rescat{padding-top:0;border-top:0}
#tab-devices:checked ~ #res-devices,
#tab-gaming:checked ~ #res-gaming,
#tab-apps:checked ~ #res-apps,
#tab-platforms:checked ~ #res-platforms,
#tab-extensions:checked ~ #res-extensions,
#tab-dns:checked ~ #res-dns,
#tab-wifi:checked ~ #res-wifi{display:block}
#tab-devices:checked ~ .chips label[for="tab-devices"],
#tab-gaming:checked ~ .chips label[for="tab-gaming"],
#tab-apps:checked ~ .chips label[for="tab-apps"],
#tab-platforms:checked ~ .chips label[for="tab-platforms"],
#tab-extensions:checked ~ .chips label[for="tab-extensions"],
#tab-dns:checked ~ .chips label[for="tab-dns"],
#tab-wifi:checked ~ .chips label[for="tab-wifi"]{background:var(--blue);color:#fff;border-color:var(--blue)}
#tab-devices:focus-visible ~ .chips label[for="tab-devices"],
#tab-gaming:focus-visible ~ .chips label[for="tab-gaming"],
#tab-apps:focus-visible ~ .chips label[for="tab-apps"],
#tab-platforms:focus-visible ~ .chips label[for="tab-platforms"],
#tab-extensions:focus-visible ~ .chips label[for="tab-extensions"],
#tab-dns:focus-visible ~ .chips label[for="tab-dns"],
#tab-wifi:focus-visible ~ .chips label[for="tab-wifi"]{outline:2px solid var(--blue);outline-offset:2px}

/* ---------- brand logos on resource cards ---------- */
.tname{display:flex;align-items:center;gap:12px;min-width:0}
.tname h3{margin:0}
.rlogo{width:74px;height:52px;box-sizing:border-box;object-fit:contain;flex:none;
       background:#fff;border:1px solid var(--line);border-radius:9px;padding:3px}
.card .top{align-items:center}
@media(max-width:620px){
  .rlogo{width:62px;height:46px}
  .tname{gap:10px}
}

/* PureFi page */
.pflogo{display:block;height:54px;width:auto;margin-bottom:20px}
@media(max-width:620px){.pflogo{height:42px}}

/* multi-layer pyramid */
.pyramid{margin:0;max-width:860px;margin-left:auto;margin-right:auto}
.pyramid img{width:100%;height:auto;display:block}


/* ---------- hero with the copy over the photograph ---------- */
/* follows purefihome.com: white type low on the left, and the photograph left
   crisp. Only a soft darkening at the bottom-left carries the text — the faces
   sit centre and high, so they stay untouched. */
/* the hero matches the photograph's own 1180x599 so none of it is cropped away:
   the pair then occupy the right of the frame and the sofa side is free for text */
/* framed like purefihome.com: a 2.38:1 band, not the photo's own shape */
/* width:100% is load-bearing. Without it, aspect-ratio plus max-height on a flex
   container resolves the WIDTH back from the clamped height (470 x 2.9 = 1363px),
   so the banner stopped short of the right edge on any screen wider than ~1363. */
/* overflow:clip, not hidden. hidden makes this a scroll container, which the
   parallax timeline then resolves against — and the image never moves inside
   it, so the animation sat frozen. clip crops without creating one. */
.hero-over{position:relative;display:flex;align-items:flex-end;overflow:clip;
           width:100%;aspect-ratio:2.4;max-height:760px;min-height:360px;background:#cfcbbd}
.hero-over{align-items:center}
.hero-over .heroimg{position:absolute;inset:0;width:100%;
                    /* top-anchored, both here and below: the father's kippah is in
                       the top 10% of the photograph and almost touches its edge, so
                       any crop off the top loses it. Overflow is given to the bottom. */
                    object-fit:cover;object-position:50% 0%;
                    /* taller than the band, so it has room to travel on scroll */
                    height:134%;top:0}
.hero-over::after{content:"";position:absolute;inset:0;z-index:1;background:
  linear-gradient(to top, rgba(0,39,72,.72) 0%, rgba(0,39,72,.56) 34%,
                          rgba(0,39,72,.36) 62%, rgba(0,39,72,.18) 86%, rgba(0,39,72,.08) 100%),
  linear-gradient(100deg, rgba(0,39,72,.62) 0%, rgba(0,39,72,.34) 32%,
                          rgba(0,39,72,0) 60%)}
.hero-over .wrap{position:relative;z-index:2;padding-top:46px;padding-bottom:52px}
.hero-over .herocopy{max-width:min(52%,620px)}
.hero-over h1{font-size:clamp(2.15rem,4.2vw,3.35rem);line-height:1.1;color:#fff;text-wrap:nowrap}
.hero-over h1 em{font-style:italic;font-weight:500}
.hero-over .eyebrow{color:#9fd4ff;font-size:1.02rem;letter-spacing:.11em}
.hero-over .lede{color:rgba(255,255,255,.92);max-width:none;font-size:1.22rem;line-height:1.62;margin-top:22px}

/* The photograph drifts as the page moves. Scroll-driven animation rather than
   JavaScript, so there is no scroll handler to jank; browsers that do not support
   it just show a still picture. Honoured only when motion is welcome. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) and (min-width:761px) {
    .hero-over .heroimg{
      /* longhands on purpose: the `animation` shorthand sets duration to 0s,
         which leaves a scroll-driven animation with no range to play over.

         scroll(root), not view(). A view() timeline measures the element
         against the viewport, and the hero sits at the top of the page, so on
         first paint it is already about half way through its own range — the
         "resting" frame was really the middle of the travel, which pulled the
         photograph up and cut the kippah off the top. Measured against the
         document scroll, 0 really is 0, so the frame below is what loads. */
      animation-name:heroDrift;
      animation-duration:auto;
      animation-timing-function:linear;
      animation-fill-mode:both;
      animation-timeline:scroll(root block);
      animation-range:0 700px;
      will-change:transform}
    /* starts flush with the top of the photograph and drifts down from there,
       into the 34% of overhang below. Never travels upward past zero. */
    @keyframes heroDrift{
      from{transform:translateY(0)}
      to{transform:translateY(-18%)}}
  }
}

/* on a phone there is no room beside the subjects, so stack: copy, then photo */
@media(max-width:760px){
  /* undo the desktop framing entirely: no fixed aspect, no clipping, full-width copy */
  .hero-over{display:flex;flex-direction:column;aspect-ratio:auto;
             min-height:0;max-height:none;overflow:visible}
  .hero-over .herocopy{max-width:none}
  .hero-over h1{font-size:2.05rem;text-wrap:balance}
  .hero-over .lede{font-size:1.07rem}
  .hero-over::after{display:none}
  .hero-over .heroimg{position:relative;order:2;top:auto;height:auto;aspect-ratio:3/2;
                      object-position:60% 28%;animation:none;transform:none}
  .hero-over .wrap{order:1;padding:36px 20px 30px;background:var(--paper)}
  .hero-over h1,.hero-over .lede{color:var(--ink)}
  .hero-over .lede{color:var(--body)}
  .hero-over .eyebrow{color:var(--honey)}
  .hero-over{background:var(--paper)}
}

/* the pyramid is cropped tight now, so the two sections can sit closer */
/* the artwork is left-weighted: the triangle sits left, the labels hang right,
   and its ink centres at 42% not 50%. The box is centred, so nudge the image
   right by the difference to centre it optically. */
.pyramid{max-width:560px;transform:translateX(5%)}
@media(max-width:620px){.pyramid{max-width:100%;transform:none}}
section.layers{padding-bottom:34px}
section.cats{padding-top:30px}
@media(max-width:620px){section.layers{padding-bottom:22px}section.cats{padding-top:20px}}

/* The archive's "Watch the recording" links now jump to the players at the top
   of this page instead of leaving for vimeo.com, so give the target a little
   headroom and glide to it rather than teleport — only where motion is welcome. */
.vids figure{scroll-margin-top:28px}
@media (prefers-reduced-motion: no-preference){html{scroll-behavior:smooth}}
