/* Petra Graphica v9c (30 Nov 2026): footer sits at the bottom of the window when a page is short (e.g. /ai/).
   .sheet already has min-height:100vh; make it a column and push the footer down. Children keep their width/margins. */
.sheet{display:flex;flex-direction:column}
.sheet>*{flex-shrink:0}
.sheet>.foot{margin-top:auto}

/* v9c: avoid one-word last lines in body copy (Chrome/Edge; Safari uses the &nbsp; fallback in the copy) */
.case p,.column p{text-wrap:pretty}
/* v9c: A Gier gallery - serve WebP where supported (inline style keeps the JPG as fallback) */
@supports (background-image:image-set(url("x.webp") type("image/webp"))){
.pic[style*="/assets/agier-hero-georgie-pg7.jpg"]{background-image:image-set(url("/assets/agier-hero-georgie-pg7.webp") type("image/webp"),url("/assets/agier-hero-georgie-pg7.jpg") type("image/jpeg"))!important}
.pic[style*="/assets/agier-prints-pg6.jpg"]{background-image:image-set(url("/assets/agier-prints-pg6.webp") type("image/webp"),url("/assets/agier-prints-pg6.jpg") type("image/jpeg"))!important}
.pic[style*="/assets/agier-shop-pg6.jpg"]{background-image:image-set(url("/assets/agier-shop-pg6.webp") type("image/webp"),url("/assets/agier-shop-pg6.jpg") type("image/jpeg"))!important}
.pic[style*="/assets/agier-circles-pg6.jpg"]{background-image:image-set(url("/assets/agier-circles-pg6.webp") type("image/webp"),url("/assets/agier-circles-pg6.jpg") type("image/jpeg"))!important}
.pic[style*="/assets/agier-review-pg6.jpg"]{background-image:image-set(url("/assets/agier-review-pg6.webp") type("image/webp"),url("/assets/agier-review-pg6.jpg") type("image/jpeg"))!important}
.pic[style*="/assets/asado-logo-dark-pg6.jpg"]{background-image:image-set(url("/assets/asado-logo-dark-pg6.webp") type("image/webp"),url("/assets/asado-logo-dark-pg6.jpg") type("image/jpeg"))!important}
.pic[style*="/assets/asado-guide-cover-pg6.jpg"]{background-image:image-set(url("/assets/asado-guide-cover-pg6.webp") type("image/webp"),url("/assets/asado-guide-cover-pg6.jpg") type("image/jpeg"))!important}
.pic[style*="/assets/asado-guide-type-pg6.jpg"]{background-image:image-set(url("/assets/asado-guide-type-pg6.webp") type("image/webp"),url("/assets/asado-guide-type-pg6.jpg") type("image/jpeg"))!important}
.pic[style*="/assets/asado-guide-colours-pg6.jpg"]{background-image:image-set(url("/assets/asado-guide-colours-pg6.webp") type("image/webp"),url("/assets/asado-guide-colours-pg6.jpg") type("image/jpeg"))!important}
}

/* v9f (from v9e): ONE shared content column. --pg-col is the only place the desktop content width is set.
   Every page's content, the landing page, the header bar and the footer all line up on it (desktop, >800px).
   Mobile (<=800px) keeps its own layout. */
:root{--pg-col:720px;--pg-col-w:min(var(--pg-col),100% - 48px);--pg-col-pad:max(24px,50vw - var(--pg-col) / 2)}
@media (width>800px){
  /* pages */
  .sheet .column,.sheet .column.about,.sheet .case,.sheet .work-page,.sheet .page-rule{width:var(--pg-col-w);max-width:none}
  .sheet:not(.home){max-width:none}
  /* header bar + menu: same inner edges on every page */
  .sheet .mast-bar,.home .mast-bar{padding-left:var(--pg-col-pad);padding-right:var(--pg-col-pad)}
  .sheet .mast-nav,.home .mast-nav{right:var(--pg-col-pad);padding-left:0;padding-right:0}
  /* footer: same inner box on every page */
  .sheet .foot-inner,.home .foot-inner{width:var(--pg-col-w);margin-left:auto;margin-right:auto}
}
/* v9f: landing page content in the 720 column on TABLET only (801-1023px, as in v9e). On desktop (>=1024px) the landing
   content is back to its v9d width and two-column sections; only its header bar and footer use --pg-col there. */
@media (width>800px) and (width<1024px){
  .home{max-width:none}
  .home .hero-lockup,.home .services,.home .pg-chomp,.home .pg-segue,.home .close-segment{width:var(--pg-col-w);max-width:none;margin-left:auto;margin-right:auto;box-sizing:border-box}
}
/* v9e: footer box identical on every page at mobile widths too (home used 100% - 32px; now matches the other pages) */
@media (width<=800px){.sheet.home .foot-inner{width:min(640px,100% - 40px)}}
/* v9e section 4: client label above the logo frame (built by /layout/logo-slideshow-v5.js). All labels share one grid cell,
   so the row is always as tall as the longest label (2 lines max) and the frame never moves between slides. */
.pg-logo-labels{display:grid;align-items:end;margin:0 0 4px;padding:0 24px;min-height:calc(2 * 1.5 * .68rem)}
.pg-logo-label{grid-area:1/1;margin:0;text-align:center;font-family:Outfit,Helvetica,Arial,sans-serif;font-size:.68rem;font-weight:500;
  line-height:1.5;letter-spacing:.14em;text-transform:uppercase;color:#767676;text-wrap:balance;opacity:0;transition:opacity .6s ease-in-out}
.pg-logo-label.is-on{opacity:1}
/* A Gier Design logo 20% smaller inside the same frame */
.pg-logo-stage img.pg-logo-agier{transform:translate(-50%,-50%) scale(.8)}
@media (prefers-reduced-motion:reduce){.pg-logo-label{transition:none}}
/* v9e/v9f: in the 720-wide tablet band 4 mouths bump into each other, so tablet uses 3 (as phones do); desktop keeps 4 at the v9d width */
@media (width>800px) and (width<1024px){.sheet.home .pg-chomp{--pg-mouths:3}}
/* v9g phones: the header block is exactly one SMALL viewport tall (100svh = browser bars visible), so the
   WHY DO / eye / YOU NEED lockup is centred in the visible area below the site nav and "let's talk about it" stays below
   the fold at scrollY 0. On short phones the WHY DO / YOU NEED images are capped by the visible height so NEED is never cut off.
   (v9f used 100lvh, sized for hidden bars, which put the lockup low with the bars showing.) The writing timing is unchanged. */
@media (width<=767px){
  .sheet.home>.panel{box-sizing:border-box;min-height:100vh;min-height:100svh;display:flex;flex-direction:column}
  .sheet.home>.panel>.mast{flex:1 0 auto;justify-content:center}
  .sheet.home .hero-lockup .hero-side,.sheet.home .hero-lockup .hero-side:first-child,.sheet.home .hero-lockup .hero-side:last-child{width:min(280px,78%,(100svh - 300px) * .6)}
}

/* ===== v9h (1 Dec 2026) ===== */
/* v9h 1. Phones: the site nav bar is never covered while scrolling.
   Cause found: the header intro lifts the WHY DO / eye / YOU NEED lockup ABOVE the nav bar (z-index 31 vs 20) for its whole
   run (about 3.25s, and on a phone it starts only after the page has loaded and settled, so often 3-6s after the page appears).
   Scrolling during that window slid the big letters over the bar, so the bar looked cut in half / not locked.
   Fix: the bar is the top layer (z-index 1000, its own GPU layer, fixed at top:0). So that the intro still looks exactly the same,
   the bar stays invisible while the intro's white cover is opaque and fades in exactly as the cover lifts (1250-1850ms), but
   once visible it is always above the letters. The landing-page body is isolated (z-index 0) so nothing in it, like the 3D
   portfolio, the video or the logo slideshow, can paint over the bar. The inner-page lightbox still covers the bar.
   Desktop and tablet are unchanged. */
@media (width<=767px){
  .mast-bar{position:fixed;top:0;left:0;right:0;z-index:1000;transform:translateZ(0);-webkit-transform:translateZ(0);
    backface-visibility:hidden;-webkit-backface-visibility:hidden}
  html:has(.hero-lockup.is-intro) .mast-bar{animation:pg-bar-after-cover 1850ms linear both}
  .sheet.home>.home-rest{position:relative;z-index:0;isolation:isolate}
  .pg-portfolio-embed-wrap{isolation:isolate}
  .lightbox{z-index:1100}
}
/* mirrors the intro cover's fade (hero-intro-v3.js: opaque until 1250ms, ease-out to clear at 1850ms) */
@keyframes pg-bar-after-cover{0%{opacity:0}67.57%{opacity:0;animation-timing-function:ease-out}100%{opacity:1}}
/* v9h 4. Eye colours: CSS custom properties, CSS only. The animation is unchanged. Green/blue is on by default.
   TO FLIP BACK TO PINK: in the :root line just below, change the four values to the pink set:
     --pg-eye-ring:#f8c3da;--pg-eye-pupil:#f26660;--pg-eye-spin:#ec9390;--pg-eye-lid:#f26660
   (The class "pg-eye-pink" on <html> or <body> does the same, but React re-renders those tags on load and can drop a class
   written into the HTML, so editing the variables is the reliable switch.) */
:root{--pg-eye-ring:#c4e9fb;--pg-eye-pupil:#458d91;--pg-eye-spin:#7eadb0;--pg-eye-lid:#458d91}
.pg-eye-pink{--pg-eye-ring:#f8c3da;--pg-eye-pupil:#f26660;--pg-eye-spin:#ec9390;--pg-eye-lid:#f26660}
.pg-eye .pg-iris circle:nth-of-type(1){fill:var(--pg-eye-ring)}
.pg-eye .pg-iris circle:nth-of-type(2){fill:var(--pg-eye-pupil)}
.hero-lockup .pg-spinner{background:var(--pg-eye-spin)}
.hero-lockup .pg-lid{background:var(--pg-eye-lid)}
/* v9h 8. Desktop (>=1024px): on every page the header bar and footer use the landing page's width (1052px).
   Page content stays in its 720px column. Tablet and phones are unchanged. */
:root{--pg-chrome:1052px}
@media (width>=1024px){
  .sheet .mast-bar,.home .mast-bar{padding-left:max(24px,50vw - var(--pg-chrome) / 2);padding-right:max(24px,50vw - var(--pg-chrome) / 2)}
  .sheet .mast-nav,.home .mast-nav{right:max(24px,50vw - var(--pg-chrome) / 2)}
  .sheet .foot-inner,.home .foot-inner{width:min(var(--pg-chrome),100% - 48px)}
}
/* v9h (steer): desktop footer line "Amelia Carlson is a Visual Communication Designer / based in Guernsey, Channel Islands" 20% smaller
   (15.2px -> 12.16px). Both lines of the sentence shrink together and stay just above the © line (11.52px). Tablet and phones unchanged. */
@media (width>=1024px){.foot .foot-place{font-size:calc(.95rem * .8)}}
/* v9h 3. Header: Amelia's new layout (from header-rays-layout-outlined.svg; outlined letterforms in /pg/*-v9h.svg).
   Row layout (>=768px): the three parts keep her artboard proportions. Units from the artboard: WHY DO 125.8, diamond 231.85,
   YOU NEED 132, with WHY DO and YOU NEED tucking 5.7 and 6.3 under the diamond's tips (total 477.7 = 100%). */
@media (width>=768px){
  .sheet.home .hero-lockup{justify-content:center;gap:0}
  .sheet.home .hero-lockup img.hero-side:first-of-type{flex:0 0 26.334%;width:26.334%;max-width:none;margin:0 -1.193% 0 0}
  .sheet.home .hero-lockup .role{flex:0 0 48.534%;width:48.534%;max-width:none;margin:0}
  .sheet.home .hero-lockup img.hero-side:last-of-type{flex:0 0 27.632%;width:27.632%;max-width:none;margin:0 0 0 -1.319%}
}
@media (width>=1024px){.sheet.home .hero-lockup{margin-bottom:56px}}
/* Rays: drawn behind the diamond inside the eye SVG. Hidden while the intro plays, then they fade and grow in gently
   from the eye once the intro has finished (the intro's own sequence and timing are unchanged). */
.pg-eye .pg-rays{opacity:1;transform:none;transition:opacity 1.6s ease .1s,transform 1.8s cubic-bezier(.16,1,.3,1) .1s}
html.pg-intro-pending .pg-eye .pg-rays,.hero-lockup.is-intro .pg-eye .pg-rays{opacity:0;transform:scale(.8);transition:none}
@media (width<=767px){
  .pg-eye .pg-rays{transform:scale(.72)}
  html.pg-intro-pending .pg-eye .pg-rays,.hero-lockup.is-intro .pg-eye .pg-rays{transform:scale(.58)}
  .sheet.home>.panel{overflow-x:clip}
}
@media (prefers-reduced-motion:reduce){.pg-eye .pg-rays{transition:none}}
