/* GRIPPIA — the site's own pages: services, industries, work, Lombok & Bali,
   about, contact. Loaded after styles.css and blog.css (it reuses the reading
   column, contents rail and breadcrumbs of the blog), built only from the
   landing's tokens so light and dark follow it.

   The idea: every page answers one search in its H1, says it in one sentence,
   shows the facts in a small card (like the landing's interface mock-ups), and
   then gets out of the way: a long readable column, real links onwards, the
   questions people ask, and the same blue close as the landing. */

/* ---------- head ---------- */
main.pg > .pg-head{display:grid;gap:clamp(32px,4vw,56px) clamp(48px,6vw,96px);align-items:end;
  padding-top:calc(var(--nav-clear) + clamp(28px,4.5vw,64px));padding-bottom:0}
@media(min-width:1000px){main.pg > .pg-head.has-facts{grid-template-columns:minmax(0,1fr) minmax(300px,380px)}}
.pg-intro{min-width:0}
.pg-intro .label{margin:clamp(14px,1.8vw,22px) 0 0}
.pg-title{margin:clamp(12px,1.6vw,18px) 0 0;max-width:20ch;font-size:clamp(36px,4.8vw,66px);line-height:1.03;
  letter-spacing:-.04em;font-weight:500;text-wrap:balance}
.pg-lede{margin-top:clamp(18px,2vw,26px);max-width:54ch;font-size:clamp(19px,1.55vw,22px);line-height:1.5;
  color:var(--fg-2);text-wrap:pretty}
.pg-ctas{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:clamp(26px,3vw,36px)}

/* the facts: a small card of hairlines, read in one glance */
.pg-facts{margin:0;padding:clamp(18px,2vw,24px) clamp(20px,2.2vw,28px);border-radius:24px;background:var(--card);
  border:1px solid var(--line);box-shadow:var(--shadow)}
.pg-facts-h{margin:0 0 6px;font-size:13px;font-weight:600;color:var(--fg-2)}
.pg-facts dl{margin:0}
.pg-facts div{display:grid;gap:2px;padding:12px 0;border-top:1px solid var(--line)}
.pg-facts div:first-child{border-top:0}
.pg-facts dt{font-size:13px;font-weight:600;color:var(--fg-2)}
.pg-facts dd{margin:0;font-size:16px;line-height:1.4;font-weight:500;text-wrap:pretty}

/* ---------- media: a case's own footage ---------- */
.pg-media{margin-top:clamp(40px,5vw,72px)}
.pg-media video{display:block;width:100%;height:auto;aspect-ratio:16 / 9;border-radius:clamp(18px,2vw,28px);
  background:var(--stage);border:1px solid var(--line)}
.pg-media figcaption{margin-top:12px;font-size:14px;color:var(--fg-2)}

/* ---------- the reading column (blog.css), without the article head ---------- */
.pg-grid{grid-template-areas:"body"}
@media(min-width:1100px){.pg-grid{grid-template-areas:"toc body ."}
  /* no contents rail (short pages): the text starts where the head does */
  .pg-grid.no-toc{grid-template-columns:minmax(0,68ch) minmax(0,1fr);grid-template-areas:"body ."}}
.pg-grid .post-body{margin-top:clamp(48px,6vw,88px)}
.pg-grid .post-toc{margin-top:clamp(48px,6vw,88px)}
.pg--hub .pg-grid .post-body,.pg--contact .pg-grid .post-body{margin-top:clamp(36px,4vw,56px)}
/* short pages read as one block: no section numbers to count */
.pg--hub .prose h2::before,.pg--contact .prose h2::before{content:none}

/* ---------- onwards: cards that link to the next page ---------- */
.pg-sec{padding-block:clamp(64px,8vw,112px) 0}
.pg-sec + .pg-sec{padding-top:clamp(48px,6vw,80px)}
.pg-sec-h{margin:0;max-width:24ch;font-size:clamp(26px,2.4vw,36px);line-height:1.1;letter-spacing:-.03em;font-weight:500}
.pg-cards{display:grid;gap:14px;margin-top:clamp(20px,2.4vw,28px)}
@media(min-width:640px){.pg-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1000px){.pg-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
.pg-card{position:relative;display:grid;grid-template-rows:auto 1fr auto;gap:10px;min-height:100%;
  padding:clamp(20px,2.2vw,26px);border-radius:22px;background:var(--card);border:1px solid var(--line);
  transition:border-color .2s,box-shadow .25s,transform .25s}
.pg-card :is(h2,h3){margin:0;font-size:clamp(19px,1.5vw,21px);line-height:1.25;letter-spacing:-.018em;font-weight:600}
.pg-card :is(h2,h3) a{color:var(--fg);text-decoration:none}
/* the whole card is the link's hit area; the heading stays the accessible name */
.pg-card :is(h2,h3) a::after{content:"";position:absolute;inset:0;border-radius:inherit}
.pg-card p{color:var(--fg-2);font-size:15.5px;line-height:1.5;text-wrap:pretty}
.pg-card .arr{justify-self:start;color:var(--blue-ink);font-size:18px}
.pg-card:hover{border-color:var(--line-2);box-shadow:var(--shadow);transform:translateY(-2px)}
.pg-card:hover .arr{transform:translateX(3px)}
.pg-card:focus-within{outline:2px solid var(--blue);outline-offset:3px}
.pg-card :is(h2,h3) a:focus-visible{outline:none}
@media(prefers-reduced-motion:reduce){.pg-card,.pg-card:hover{transform:none;transition:none}}
/* a case card says it is a real client */
.pg-card .tag-real{display:inline-flex;align-items:center;gap:7px;width:fit-content;font-size:12.5px;font-weight:600;color:var(--fg-2)}
.pg-card .tag-real::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--live)}

/* ---------- questions ---------- */
.pg-faq{margin-top:clamp(72px,9vw,128px);padding-block:clamp(64px,8vw,112px)}
.pg-faq .h2{max-width:16ch}

/* ---------- the close ---------- */
main.pg > .post-cta{margin-top:clamp(72px,9vw,128px)}
main.pg > .pg-faq + .post-cta{margin-top:0}
main.pg > .close#contact{margin-top:clamp(56px,7vw,96px)}

/* ---------- 404 ---------- */
.nf{min-height:70vh;display:grid;align-content:center;padding-top:calc(var(--nav-clear) + 40px)}
.nf > .wrap{width:100%}
.nf .h2{font-size:clamp(48px,8vw,112px);line-height:.95;letter-spacing:-.05em;max-width:12ch}
.nf .lede{margin-top:20px;max-width:46ch}
.nf ul{display:flex;flex-wrap:wrap;gap:10px;margin-top:32px}
