/* ============================================================
   markboyer.co.uk · inner pages (October 2026 rebuild)
   Loaded after style.css by pages with <body class="pg">. Shares
   the homepage's language (home.css) without depending on it:
   gradient type, keys, the hero, the scope strip, decision rows,
   the dark band and the builds row. Everything is prefixed pg-.
   ============================================================ */

.pg .wrap { max-width: 1360px; }
.pg h1, .pg h2, .pg h3 { text-wrap: balance; }
.pg p { text-wrap: pretty; }

.pg .g { background: linear-gradient(100deg, var(--violet), var(--magenta) 55%, var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pg .k { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 7px; background: var(--violet-tint); color: var(--violet-deep); font-size: 0.8rem; font-weight: 450; }
.pg .k.plain { background: #fff; border: 1px solid var(--line); color: var(--body-c); }
.pg .k.on-dark { background: rgba(184,138,248,0.14); color: #D6C2FC; }
.pg .mono { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }
.pg .h2 { font-size: clamp(2rem, 3.7vw, 3.1rem); line-height: 1.06; letter-spacing: -0.025em; font-weight: 470; font-variation-settings: 'wght' 470; color: var(--ink); margin: 0; }
.pg .lede { font-size: 1.06rem; line-height: 1.6; color: var(--body-c); max-width: 34rem; }
.pg .sub { font-size: 0.97rem; color: var(--mute); max-width: 36rem; }
.pg .arrow { font-weight: 500; color: var(--violet-deep); }
.pg .arrow:hover { color: var(--violet); }

/* ---- Hero ---- */
.pg-hero { position: relative; overflow: hidden; padding: calc(60px + clamp(2.2rem, 5vw, 4.5rem)) 0 clamp(2.4rem, 5vw, 3.8rem); }
.pg-hero .glow { position: absolute; right: -140px; top: -120px; width: 620px; height: 620px; border-radius: 999px; pointer-events: none; background: radial-gradient(closest-side, rgba(124,58,242,0.14), rgba(193,63,164,0.07) 55%, rgba(255,255,255,0) 100%); }
.pg-hero .wrap { display: flex; flex-wrap: wrap; gap: clamp(2.2rem, 5vw, 4.5rem); align-items: center; }
.pg-hero .copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.pg-hero h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1.04; letter-spacing: -0.03em; font-weight: 470; font-variation-settings: 'wght' 470; color: var(--ink); margin: 0; max-width: 18ch; }
.pg-hero h1 span { display: block; }
.pg-hero .lede { font-size: clamp(1.06rem, 1.45vw, 1.22rem); line-height: 1.55; max-width: 40rem; }
.pg-hero .actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 2px; }
.pg-hero .chips-row { margin: 0; }
.pg-hero figure { position: relative; flex: 0 1 360px; min-width: 0; margin: 0; }
.pg-hero figure img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: 28px; background: var(--plum-8); }
.pg-hero figcaption { position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(244,245,249,0.92); color: var(--ink); font-size: 0.82rem; backdrop-filter: blur(6px); }
.pg-hero figcaption i { width: 7px; height: 7px; border-radius: 999px; background: var(--coral); }

/* ---- Scope strip ---- */
.pg-scope { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--panel); }
.pg-scope .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 18px 24px; padding-top: 26px; padding-bottom: 26px; }
.pg-scope b { display: block; font-size: clamp(1.7rem, 2.4vw, 2.1rem); line-height: 1; letter-spacing: -0.03em; font-weight: 460; color: var(--ink); margin-bottom: 4px; }
.pg-scope span { font-size: 0.85rem; color: var(--mute); }

/* ---- Section rhythm ---- */
.pg-sect { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.pg-sect.line { border-top: 1px solid var(--line-soft); }
.pg-head { display: flex; flex-wrap: wrap; gap: 24px 72px; align-items: flex-end; margin-bottom: 2.6rem; }
.pg-head .t { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.pg-head .r { flex: 1 1 340px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.pg-head .r p { font-size: 1.06rem; line-height: 1.6; color: var(--body-c); max-width: 32rem; }

/* ---- Decisions: figure, who, what moved ---- */
.pg-decs { border-top: 2px solid var(--ink); }
.pg-dec { display: grid; grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr); gap: 0.8rem 3rem; padding: 2.1rem 0; border-bottom: 1px solid var(--line-soft); align-items: start; }
.pg-dec .key { display: flex; flex-direction: column; gap: 6px; }
.pg-dec .n { font-size: clamp(2.4rem, 3.8vw, 3.3rem); line-height: 1; letter-spacing: -0.035em; font-weight: 460; }
.pg-dec .who { font-size: 1rem; font-weight: 500; color: var(--ink); margin-top: 6px; }
.pg-dec .role { font-size: 0.82rem; color: var(--mute); }
.pg-dec p { font-size: 1rem; line-height: 1.7; color: var(--body-c); max-width: 46rem; margin: 0; }
.pg-dec p + p { margin-top: 0.9rem; }
@media (max-width: 700px) { .pg-dec { grid-template-columns: 1fr; gap: 0.6rem; } }

/* ---- Dark band: how I lead ---- */
.pg-dark { position: relative; background: var(--plum-9); color: var(--on-dark); overflow: hidden; }
.pg-dark .glow { position: absolute; border-radius: 999px; pointer-events: none; }
.pg-dark .glow.a { left: -200px; top: -160px; width: 640px; height: 640px; background: radial-gradient(closest-side, rgba(124,58,242,0.35), rgba(124,58,242,0) 100%); }
.pg-dark .glow.b { right: -220px; bottom: -220px; width: 700px; height: 700px; background: radial-gradient(closest-side, rgba(193,63,164,0.22), rgba(193,63,164,0) 100%); }
.pg-dark .wrap { position: relative; }
.pg-dark .h2 { color: var(--on-dark); }
.pg-dark .pg-head .r p { color: #A9A4B2; }
.pg-cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.pg-cell { display: flex; gap: 16px; padding: 22px 24px; border-radius: 20px; background: var(--plum-8); border: 1px solid rgba(244,245,249,0.10); }
.pg-cell > b { font-family: var(--mono); font-size: 0.78rem; font-weight: 400; color: var(--violet-soft); padding-top: 3px; }
.pg-cell h3 { font-size: 1.12rem; line-height: 1.25; font-weight: 500; color: var(--on-dark); margin: 0 0 6px; }
.pg-cell p { font-size: 0.92rem; line-height: 1.6; color: #C9C5D1; margin: 0; }
.pg-said { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: flex-start; }
.pg-said .lead { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; }
.pg-said .lead p { font-size: 0.95rem; line-height: 1.6; color: #A9A4B2; margin: 0; max-width: 24rem; }
.pg-quotes { flex: 2 1 520px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px 28px; }
.pg-q { padding-left: 16px; border-left: 2px solid var(--violet); }
.pg-q:nth-child(2) { border-color: var(--magenta); }
.pg-q:nth-child(3) { border-color: var(--coral); }
.pg-q:nth-child(4) { border-color: var(--violet-soft); }
.pg-q p { font-size: 0.97rem; line-height: 1.5; color: var(--on-dark); margin: 0 0 8px; }
.pg-q .who { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: #A9A4B2; }

/* ---- Builds row ---- */
.pg-builds { border-radius: 24px; background: var(--panel); border: 1px solid var(--line-soft); padding: clamp(22px, 3vw, 32px); display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: flex-start; }
.pg-builds .lead { flex: 1 1 240px; display: flex; flex-direction: column; gap: 8px; }
.pg-builds .lead p { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); font-weight: 500; margin: 0; }
.pg-builds ul { flex: 2 1 460px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 14px 24px; }
.pg-builds li { padding-left: 14px; border-left: 2px solid var(--violet); }
.pg-builds li:nth-child(2) { border-color: var(--magenta); }
.pg-builds li:nth-child(3) { border-color: var(--coral); }
.pg-builds li b { display: block; font-size: 0.94rem; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.pg-builds li p { font-size: 0.88rem; color: var(--mute); margin: 0; }

/* ---- Prose blocks that sit between the bands ---- */
.pg-prose { max-width: 46rem; }
.pg-prose p { font-size: 1.05rem; line-height: 1.75; color: var(--body-c); margin: 0 0 1.3rem; }
.pg-prose p:last-child { margin-bottom: 0; }
.pg-prose p.first { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--ink); line-height: 1.55; }

/* ---- Beliefs grid (About) ---- */
.pg-beliefs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.pg-belief { display: flex; gap: 14px; padding: 20px 22px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line-soft); }
.pg-belief > b { font-family: var(--mono); font-size: 0.78rem; font-weight: 400; color: var(--violet); padding-top: 3px; }
.pg-belief p { font-size: 0.97rem; line-height: 1.6; color: var(--body-c); margin: 0; }

/* ---- Side-by-side prose + photo (About) ---- */
.pg-split { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-start; }
.pg-split .pg-prose { flex: 1 1 420px; min-width: 0; }
.pg-split figure { flex: 0 1 380px; min-width: 0; margin: 0; }
.pg-split figure img { display: block; width: 100%; height: auto; border-radius: 24px; }
.pg-split figcaption { font-size: 0.85rem; color: var(--mute); margin-top: 0.8rem; }
.pg-split figcaption strong { color: var(--mute); font-weight: 500; }

/* ---- Motion, all behind the preference ---- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes pgUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes pgGlow { 0%, 100% { opacity: .5; } 50% { opacity: .9; } }
  .js .pg-hero h1 span:first-child { animation: pgUp .8s var(--ease) .05s both; }
  .js .pg-hero h1 span:last-child { animation: pgUp .8s var(--ease) .2s both; }
  .js .pg-hero .glow { animation: pgGlow 9s ease-in-out infinite; }
}

@media (max-width: 600px) {
  .pg-hero figure { flex-basis: 100%; }
  .pg-hero figure img { aspect-ratio: 1 / 1; }
}
