/* ==================================================================
 * SimplyGJ visual navigation layer (19 Nov 2026)
 * Loaded only when sgj_visuals_on(). Motion: transform/opacity only,
 * one ease (--ease), everything static under prefers-reduced-motion.
 * ================================================================== */

:root{--vis-bg:#F4F1E9;--vis-dur:.7s}

/* Shared image frame ------------------------------------------------ */
.svc__media,.svc-detail__media,.page-head__vis,.navcard__media{display:block;position:relative;overflow:hidden;background:var(--vis-bg);border-radius:var(--r-md);isolation:isolate}
.svc__media img,.svc-detail__media img,.page-head__vis img,.navcard__media img{width:100%;height:100%;object-fit:contain;transition:transform var(--vis-dur) var(--ease)}

/* 1. Homepage service cards: illustration replaces the line icon ---- */
.svc__media{aspect-ratio:4/3;margin-bottom:1.15rem;box-shadow:inset 0 0 0 1px var(--line)}
.svc__media + .svc__icon{display:none}
a.svc:hover .svc__media img,a.svc:focus-visible .svc__media img{transform:scale(1.05) translateY(-2%)}
a.svc:focus-visible{outline:2px solid var(--ink);outline-offset:6px;border-radius:var(--r-md)}
.services__grid{row-gap:clamp(2rem,1.5rem + 2vw,3.5rem)}

/* 2. Services overview: picture above each service's promise ------- */
.svc-detail__media{aspect-ratio:4/3;max-width:440px;margin-bottom:var(--s-3);box-shadow:inset 0 0 0 1px var(--line)}
.svc-detail__media:hover img{transform:scale(1.04)}
@media (max-width:1024px){.svc-detail__media{max-width:520px}}

/* Jump pills on /services get a thumbnail so you can scan by picture */
.pill__thumb{width:22px;height:22px;border-radius:50%;overflow:hidden;flex:none;margin:0 .45em 0 -.45em;background:var(--vis-bg)}
.pill__thumb img{width:100%;height:100%;object-fit:cover;transform:scale(1.25)}

/* 3. Page heads: one illustration per destination ------------------- */
.page-head__vis{aspect-ratio:4/3;width:100%;max-width:340px;margin:0 0 1.1rem;box-shadow:inset 0 0 0 1px var(--line)}
.page-head__vis img{animation:visIn 1s var(--ease) both .15s}
@keyframes visIn{from{opacity:0;transform:scale(1.04)}to{opacity:1;transform:none}}
@media (max-width:860px){
  /* Phones: CTA stays above the fold, picture follows it */
  .page-head__side{display:flex;flex-direction:column}
  .page-head__vis{order:9;max-width:none;aspect-ratio:2/1;margin:1.5rem 0 0}
}
@media (max-width:699px){.svc__media{aspect-ratio:16/9}.svc-detail__media{aspect-ratio:16/9;max-width:none}}

/* 4. Where next / related services card band ------------------------ */
.navcards{border-top:1px solid var(--line)}
.navcards__heading{font-size:var(--t-lg);letter-spacing:-.02em;max-width:46ch;margin:-1rem 0 var(--s-4);color:var(--ink-2)}
.navcards__grid{display:grid;gap:clamp(1rem,.6rem + 1.2vw,1.75rem);grid-template-columns:repeat(4,minmax(0,1fr))}
.navcards__grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.navcards__grid--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.navcard{display:flex;flex-direction:column;background:var(--paper,#FBFAF6);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;transition:transform .5s var(--ease),border-color .4s var(--ease)}
.navcard__media{aspect-ratio:4/3;border-radius:0}
.navcard__body{display:flex;flex-direction:column;gap:.45rem;padding:1.1rem 1.25rem 1.35rem}
.navcard__title{font-size:var(--t-lg);font-weight:500;letter-spacing:-.025em;line-height:1.2;display:flex;align-items:baseline;gap:.35em}
.navcard__title .arrow{font-size:.8em;transform:translate(-3px,3px);opacity:.35;transition:transform .5s var(--ease),opacity .4s var(--ease)}
.navcard__text{font-size:var(--t-sm);line-height:1.55;color:var(--ink-2)}
.navcard:hover,.navcard:focus-visible{transform:translateY(-4px);border-color:var(--ink)}
.navcard:hover .navcard__media img,.navcard:focus-visible .navcard__media img{transform:scale(1.06)}
.navcard:hover .arrow,.navcard:focus-visible .arrow{transform:none;opacity:1}
.navcard:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
@media (max-width:1024px){.navcards__grid,.navcards__grid--3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:699px){
  /* Phones: a swipeable row instead of a tall stack */
  .navcards__grid,.navcards__grid--3,.navcards__grid--2{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:.85rem;margin-inline:calc(var(--gutter) * -1);padding:0 var(--gutter) .5rem;scrollbar-width:none}
  .navcards__grid::-webkit-scrollbar{display:none}
  .navcard{flex:0 0 78%;scroll-snap-align:start}
}

/* 5. Homepage hero: strip of real client work ----------------------- */
.hero-work{width:100vw;margin-left:calc(50% - 50vw);margin-top:clamp(2.5rem,1.5rem + 3vw,4.5rem);overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent)}
.hero-work__track{display:flex;gap:clamp(.75rem,1.2vw,1.25rem);width:max-content;animation:workSlide 70s linear infinite;will-change:transform}
.hero-work:hover .hero-work__track,.hero-work:focus-within .hero-work__track{animation-play-state:paused}
.hero-work__item{position:relative;flex:none;width:clamp(240px,24vw,400px);aspect-ratio:16/10;border-radius:var(--r-md);overflow:hidden;background:var(--cream-3,#E8E4D8)}
.hero-work__item img{width:100%;height:100%;object-fit:cover;transition:transform .9s var(--ease)}
.hero-work__label{position:absolute;left:.75rem;bottom:.75rem;display:inline-flex;gap:.35em;align-items:center;padding:.45em .9em;border-radius:var(--r-pill);background:var(--cream);font-size:var(--t-xs);font-weight:500;transform:translateY(6px);opacity:0;transition:opacity .4s var(--ease),transform .5s var(--ease)}
.hero-work__item:hover img,.hero-work__item:focus-visible img{transform:scale(1.05)}
.hero-work__item:hover .hero-work__label,.hero-work__item:focus-visible .hero-work__label{opacity:1;transform:none}
.hero-work__item:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
@keyframes workSlide{to{transform:translate3d(-50%,0,0)}}
@media (hover:none){.hero-work__label{opacity:1;transform:none}}

/* Reduced motion: no drift, no zoom. The strip becomes a scrollable row. */
@media (prefers-reduced-motion:reduce){
  .hero-work{-webkit-mask-image:none;mask-image:none;overflow-x:auto;scroll-snap-type:x mandatory}
  .hero-work__track{animation:none;padding-inline:var(--gutter)}
  .hero-work__item{scroll-snap-align:start}
  .hero-work__item[aria-hidden="true"]{display:none}
  .page-head__vis img{animation:none}
  .svc__media img,.svc-detail__media img,.navcard__media img,.hero-work__item img,.navcard{transition:none!important;transform:none!important}
}

/* ==================================================================
 * Part 2 (23 Nov 2026): pictures and icons inside sections
 * ================================================================== */
:root{--mustard:#F2C14E;--mustard-2:#FBE7B0}

/* Band heading + illustration ---------------------------------------- */
.lp-band--vis .lp__head{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);column-gap:clamp(2rem,5vw,6rem);align-items:center}
.lp-band--vis .lp__head>*{grid-column:auto}
.lp__headtext{display:grid;gap:1rem;align-content:center}
.lp__vis{margin:0;aspect-ratio:4/3;width:100%;max-width:460px;justify-self:end;background:var(--vis-bg);border-radius:var(--r-lg);overflow:hidden;box-shadow:inset 0 0 0 1px var(--line)}
.lp__vis img{width:100%;height:100%;object-fit:cover;transition:transform 1.2s var(--ease)}
.lp-band--vis:hover .lp__vis img{transform:scale(1.03)}
.lp-band--flip .lp__head{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr)}
.lp-band--flip .lp__vis{order:-1;justify-self:start}
@media (max-width:860px){
  .lp-band--vis .lp__head,.lp-band--flip .lp__head{grid-template-columns:1fr}
  .lp__vis,.lp-band--flip .lp__vis{order:2;max-width:none;aspect-ratio:16/10;justify-self:stretch}
}

/* Icon badge --------------------------------------------------------- */
.ico{flex:none;display:inline-grid;place-items:center;width:52px;height:52px;border-radius:14px;background:var(--mustard);color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--ink),3px 3px 0 var(--ink);transition:transform .45s var(--ease),box-shadow .45s var(--ease)}
.ico svg{width:26px;height:26px}
.ico--sm{width:34px;height:34px;border-radius:10px;box-shadow:inset 0 0 0 1.5px var(--ink),2px 2px 0 var(--ink)}
.ico--sm svg{width:18px;height:18px}
.ico--lg{width:64px;height:64px;border-radius:16px;margin-bottom:1rem}
.ico--lg svg{width:30px;height:30px}

/* Cards: icon on top, roomier, alternating tints --------------------- */
.lp-band--icons .lp-cards{background:transparent;border:0;gap:clamp(.9rem,.6rem + 1vw,1.4rem)}
.lp-band--icons .lp-card{background:var(--paper);border:1px solid var(--line);border-radius:var(--r-lg);gap:.85rem;transition:transform .45s var(--ease),border-color .35s var(--ease),background .35s var(--ease)}
.lp-band--icons .lp-card:hover{transform:translateY(-4px);border-color:var(--ink);background:#fff}
.lp-band--icons .lp-card:hover .ico{transform:rotate(-6deg)}
.lp-band--icons .lp-card:nth-child(4n+2) .ico{background:var(--mustard-2)}
.lp-band--icons .lp-card:nth-child(4n+3) .ico{background:var(--cream-2)}
.lp-card__top{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.35rem}
.lp-card__step{font-family:var(--f-mono);font-size:var(--t-meta);letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.lp-band--icons.lp-band--plain .lp-card{border:1px solid var(--line);padding:clamp(1.4rem,1rem + 1.2vw,2.1rem)}

/* Numbered steps read as a path on wide screens */
@media (min-width:1025px){
  .lp-band--numbered.lp-band--icons .lp-cards{counter-reset:none;position:relative}
  .lp-band--numbered.lp-band--icons .lp-card{position:relative}
  .lp-band--numbered.lp-band--icons .lp-card:not(:last-child)::after{content:"";position:absolute;right:calc(-1 * clamp(.9rem,.6rem + 1vw,1.4rem));top:52px;width:clamp(.9rem,.6rem + 1vw,1.4rem);height:2px;background:var(--ink)}
}

/* Checklist: icons instead of identical ticks ------------------------ */
.lp-band--icons .lp-checks{gap:0 clamp(1rem,3vw,2.5rem)}
.lp-band--icons .lp-check{align-items:center;gap:.9rem}

/* Service list items without an illustration ------------------------ */
.svc .ico--lg + .svc__title{margin-top:0}

/* Pricing + FAQ illustrations --------------------------------------- */
.pricing.lp-band--vis .lp__vis{max-width:380px}
.faq__cols{grid-template-columns:minmax(0,1fr) minmax(0,2.2fr);column-gap:clamp(2rem,5vw,5rem);align-items:start}
.faq__aside{position:sticky;top:calc(var(--header-h,72px) + 1.5rem);display:grid;gap:1rem}
.faq__aside .lp__vis{max-width:none;justify-self:stretch}
.faq__ask{font-size:var(--t-sm);color:var(--ink-2)}
@media (max-width:860px){.faq__cols{grid-template-columns:1fr}.faq__aside{position:static;order:2}.faq__aside .lp__vis{aspect-ratio:16/10}}

@media (prefers-reduced-motion:reduce){
  .lp__vis img,.lp-band--icons .lp-card,.ico{transition:none!important;transform:none!important}
}

/* Service lists with 5+ items: intro on top, 3-up illustrated cards */
.services__body:has(.services__grid > :nth-child(5)) .services__intro{grid-column:1/-1;max-width:62ch;display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1.5rem;font-size:var(--t-body)}
.services__body:has(.services__grid > :nth-child(5)) .services__intro .btn{margin-top:0}
.services__grid:has(> :nth-child(5)){grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:clamp(1rem,2vw,1.75rem);row-gap:clamp(1rem,2vw,1.75rem)}
.services__grid:has(> :nth-child(5)) .svc{padding:0 0 1.25rem;border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;background:var(--paper);transition:transform .45s var(--ease),border-color .35s var(--ease)}
.services__grid:has(> :nth-child(5)) .svc:hover{transform:translateY(-4px);border-color:var(--ink)}
.services__grid:has(> :nth-child(5)) .svc__media{border-radius:0;aspect-ratio:16/9;margin-bottom:1rem;box-shadow:none;border-bottom:1px solid var(--line)}
.services__grid:has(> :nth-child(5)) .svc__media img{object-fit:cover}
.services__grid:has(> :nth-child(5)) .svc__title,.services__grid:has(> :nth-child(5)) .svc__text{padding-inline:1.25rem}
.services__grid:has(> :nth-child(5)) .ico--lg{margin:1.25rem 1.25rem 1rem}
@media (max-width:1024px){.services__grid:has(> :nth-child(5)){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:599px){.services__grid:has(> :nth-child(5)){grid-template-columns:1fr}}

/* Checklist sitting beside the illustration */
.lp__headtext .lp-checks{grid-template-columns:1fr;margin-top:.75rem}
.lp__headtext .lp-check{padding-right:0}
.lp-band--compact .lp__vis,.pricing.lp-band--vis .lp__vis{max-width:340px}

/* Dark CTA card with illustration */
.lp-cta__card--vis{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);column-gap:clamp(2rem,5vw,5rem);align-items:center}
.lp-cta__card--vis>*{grid-column:1}
.lp-cta__card--vis .lp__vis{grid-column:2;grid-row:1 / span 8;max-width:420px;justify-self:end;position:relative;z-index:1;box-shadow:none;border-radius:var(--r-lg)}
.lp-cta__card--vis::after{right:auto;left:-15%}
@media (max-width:860px){.lp-cta__card--vis{grid-template-columns:1fr}.lp-cta__card--vis .lp__vis{grid-column:1;grid-row:auto;order:9;max-width:none;aspect-ratio:16/10}}

/* Related-services text list is replaced by the illustrated cards below it */
.further-reading{display:none}
/* Enquiry band illustration */
.enquiry-band__intro .lp__vis{margin-top:var(--s-4);max-width:360px;justify-self:start}
@media (max-width:860px){.enquiry-band__intro .lp__vis{display:none}}

/* Big CTA band with illustration */
.cta-band--vis{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);column-gap:clamp(2rem,5vw,6rem);align-items:center}
.cta-band--vis>*{grid-column:1}
.cta-band--vis .lp__vis{grid-column:2;grid-row:1 / span 4;max-width:440px;justify-self:end;box-shadow:none}
.section--ink .lp__vis{background:var(--cream)}
@media (max-width:860px){.cta-band--vis{grid-template-columns:1fr}.cta-band--vis .lp__vis{grid-column:1;grid-row:auto;order:9;max-width:none;aspect-ratio:16/10}}
/* Stats get an icon */
.stat__ico{margin-bottom:.9rem}
@media (max-width:699px){.acc summary .acc__ico{display:none}}
