/* Petra Graphica — home page desktop layout tweaks (v6, 30 Nov 2026). Desktop only; mobile untouched. */
@media (min-width:1024px){
  /* Right-hand media: left edge on the header diamond's centre (= centre of the section row),
     right edge unchanged, contents scaled ~0.867 so nothing is distorted. Left text column untouched. */
  .home .service-block{container-type:inline-size}
  .home .service-block>.media{width:50cqw;justify-self:end}
  .home .lede-card img{height:364px}
  .home .art-rail a:not(.mark) img{height:364px}
  .home .art-rail a.mark img{width:140px}
  .home .art-rail a.mark img.forest{width:124px}
  .home .art-rail a.mark .rule{height:104px}
  .home .guide-mini{height:min(485px,45vw)}
  .home .service-block.brand .logo-rail{gap:62px;padding:72px 0}
  .home .service-block.brand .logo-rail img{width:191px;height:139px}
  .home .service-block.brand .logo-rail img.logo-smaller{width:173px;height:127px}

  /* Closing "Hi! I'm Amelia" section: photo left, text right, more room above and below */
  .home .close-segment{display:grid;grid-template-columns:auto auto;justify-content:center;align-items:center;
    column-gap:36px;row-gap:12px;margin-top:-16px;margin-bottom:0;padding:40px 0 100px}
  .home .close-segment .hello{display:contents}
  .home .close-segment .hello-photo{grid-column:1;grid-row:1/span 3;width:160px;height:160px}
  .home .close-segment .hello-line{grid-column:2;grid-row:1;justify-self:start;align-self:end}
  .home .close-segment .discuss-line{grid-column:2;grid-row:2;justify-self:start;margin:0;text-align:left}
  .home .close-segment .discuss{grid-column:2;grid-row:3;justify-self:start;align-self:start}
}

/* All widths: no border around the logo slideshow box (the scroll bar beneath anchors it) */
.home .service-block.brand .logo-rail{border:0}

/* All widths: one-at-a-time logo slideshow (built by /layout/logo-slideshow-v4.js).
   React's scrolling rail and pink scroll bar are hidden only once the slideshow exists, so without JS the old rail remains. */
.logo-rail-wrap:has(> .pg-logo-show) > .logo-rail,
.logo-rail-wrap:has(> .pg-logo-show) > .logo-scroll{display:none}
.pg-logo-show{width:100%}
.pg-logo-stage{position:relative;height:374px}
.pg-logo-stage img{position:absolute;left:50%;top:50%;width:286px;height:208px;max-width:calc(100% - 48px);transform:translate(-50%,-50%);
  object-fit:contain;object-position:center;opacity:0;transition:opacity .6s ease-in-out}
.pg-logo-stage img.logo-smaller{width:260px;height:190px}
.pg-logo-stage img.is-on{opacity:1}
.pg-logo-dots{display:flex;justify-content:center;gap:2px;margin-top:4px}
.pg-logo-dots button{appearance:none;-webkit-appearance:none;border:0;background:none;padding:0;margin:0;
  width:22px;height:22px;display:grid;place-items:center;cursor:pointer}
.pg-logo-dots button::before{content:"";width:8px;height:8px;background:#c7c8ca;transition:background-color .3s}
.pg-logo-dots button:hover::before{background:#939598}
.pg-logo-dots button.is-on::before{background:#e7a3b8}
.pg-logo-dots button:focus-visible{outline:1px solid #e7a3b8;outline-offset:-2px}
@media (min-width:1024px){.pg-logo-stage{height:331px}}
@media (prefers-reduced-motion:reduce){.pg-logo-stage img,.pg-logo-dots button::before{transition:none}}

/* All widths (v6): St Peter's / church artwork scroller.
   The first item (St Peter's + Forest Church logo pair) is made exactly as wide as the box and centres the pair inside it,
   so on load the space left and right of the pair is equal and the next artwork starts just past the right edge (no peeking in).
   A real ::after spacer gives the last artwork the same breathing room at the far end. React's markup and auto-scroll are untouched. */
.home .art-rail a.mark{flex:0 0 100%;width:100%;justify-content:center;box-sizing:border-box}
.home .art-rail::after{content:"";flex:none;align-self:stretch;width:max(2px,calc((100% - 309px)/2 - 22px))}
/* phones: the logo pair nearly fills the box, so shrink it ~10% to leave ~24px each side */
@media (max-width:480px){
  .home .art-rail a.mark img{width:144px}
  .home .art-rail a.mark img.forest{width:128px}
}

/* All widths (v6): handwritten segue between the eye header and section 1.
   Same handwritten face and dark text colour as the 'stories' highlight. Hidden while the header intro plays, then fades in. */
.home .pg-segue{margin:0;padding:20px 16px 0;text-align:center;font-family:"Homemade Apple",cursive;font-weight:400;
  font-size:clamp(20px,2.2vw,28px);line-height:1.6;color:inherit;transition:opacity .6s ease .15s}
html.pg-intro-pending .home .pg-segue,.home:has(.hero-lockup.is-intro) .pg-segue{opacity:0;transition:none}
@media (min-width:1024px){.home .pg-segue{padding:28px 16px 0}}
@media (prefers-reduced-motion:reduce){.home .pg-segue{transition:none}}

/* All widths (v6): handwritten highlight words in the section headings ~13% smaller (1.22em -> 1.06em), same in sections 1-4. */
.home .service-block h2 .marked{font-size:1.06em}

/* All widths (v6): avoid single-word last lines in the section copy (the last two words are also joined with a no-break space in the markup). */
.home .service-block .copy p{text-wrap:pretty}
