/* DLG inner pages (2026-11-22). Loaded by inner pages only; the homepage never loads this file.
   Everything here is scoped to .pg / .pg-* so nothing can leak into the approved homepage styles.
   Critic fixes for everything new: one container (.wrap, from sundown.css), a named type scale (C2),
   no synthesised weights (C3: Cabinet 500/700/800/900, Switzer 400/500/600 only), word-spacing set on
   the element that needs it (C4), spacing and radius tokens. */

:root {
  /* Type scale: 9 named steps. The inner-page H1 is the top step; nothing on an inner page is larger. */
  --step-0: .8125rem;                                  /* 13px  meta, crumbs, labels */
  --step-1: .9375rem;                                  /* 15px  small print */
  --step-2: 1.0625rem;                                 /* 17px  body */
  --step-3: clamp(1.125rem, 1.05rem + .3vw, 1.3125rem); /* lede */
  --step-4: clamp(1.3rem, 1.15rem + .6vw, 1.65rem);     /* h3, card titles */
  --step-5: clamp(1.55rem, 1.25rem + 1.1vw, 2.1rem);    /* figures in lists */
  --step-6: clamp(1.85rem, 1.35rem + 1.9vw, 2.85rem);   /* h2 */
  --step-7: clamp(2.15rem, 1.45rem + 2.6vw, 3.4rem);    /* big figure */
  --step-8: clamp(2.45rem, 1.5rem + 3.7vw, 4.4rem);     /* h1 */
  /* Spacing */
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.5rem;
  --space-6: 2.25rem; --space-7: 3.5rem; --space-8: clamp(3.25rem, 7vw, 6rem);
  --pg-radius: var(--r, 4px);
}

/* ---------------------------------------------------------------- type */
.pg-h1, .pg-h2, .pg-h3 { font-family: var(--sc-font-display); color: var(--sc-ink); margin: 0; text-wrap: balance; }
.pg-sec p.pg-h2, .pg-sec p.pg-h3 { font-family: var(--sc-font-display); color: var(--sc-ink); text-wrap: balance; }   /* no margin here: .pg-sec .pg-h2/.pg-h3 spacing must still apply */
.pg-sec p.pg-h2 { margin-top: 0; }   /* matches h2.pg-h2, which never takes the p + p gap */
.pg-h1 { font-weight: 800; font-size: var(--step-8); line-height: .98; letter-spacing: var(--display-track); word-spacing: .08em; max-width: 18ch; }
.pg-h2, .pg-sec p.pg-h2 { font-weight: 800; font-size: var(--step-6); line-height: 1.02; letter-spacing: var(--head-track); word-spacing: .06em; max-width: 24ch; }
.pg-h3, .pg-sec p.pg-h3 { font-weight: 800; font-size: var(--step-4); line-height: 1.1; letter-spacing: 0; word-spacing: .04em; }
.pg .lede { font-size: var(--step-3); }
.pg-sec p, .pg-sec li { font-size: var(--step-2); line-height: 1.65; }
.pg-sec p { color: var(--sc-ink-soft); max-width: 62ch; margin: 0; text-wrap: pretty; }
.pg-sec p + p { margin-top: var(--space-4); }
.pg-sec strong { color: var(--sc-ink); font-weight: 600; }
.pg-sec a:not(.btn) { color: var(--sc-ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
.pg-kicker, .pg-sec p.pg-kicker { font-size: var(--step-0); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dlg-orange-hot, var(--sc-accent)); margin: 0 0 var(--space-3); }
/* p.pg-h2 / p.pg-h3 / p.pg-kicker above: .pg-sec p (0,1,1) used to beat the bare class, so a <p class="pg-h2"> rendered as body text. */
.pg-note { font-size: var(--step-1) !important; color: var(--sc-ink-soft); }

/* ------------------------------------------------------------- opening */
.pg-open { padding-top: calc(var(--chrome) + clamp(1.25rem, 3.5vh, 2.75rem)); padding-bottom: clamp(2.25rem, 6vh, 4.5rem); }
.pg-open__in { position: relative; z-index: 2; }
.pg-open__copy { display: grid; gap: var(--space-4); align-content: start; }
.pg-open__intro { max-width: 46ch; }
.pg-open__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.pg-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; font-size: var(--step-0); color: var(--sc-ink-soft); }
.pg-crumbs li + li::before { content: "/"; margin-right: .35rem; color: color-mix(in oklab, var(--sc-ink) 35%, transparent); }
.pg-crumbs a { color: var(--sc-ink-soft); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .pg-crumbs a:hover { color: var(--sc-ink); text-decoration: underline; } }
.pg-crumbs [aria-current] { color: var(--sc-ink); }

/* B: Damien's photo, framed beside the copy (most sources are 591 to 1440px: framed keeps them crisp,
   and the text sits on the ground, never on the photo, so its contrast is guaranteed). */
.pg-open--photo .pg-open__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
  min-height: calc(min(72vh, 46rem) - var(--chrome)); }
.pg-open__fig { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--pg-radius); overflow: hidden;
  box-shadow: 0 2px 6px hsl(229 40% 4% / .4), 0 24px 48px -20px hsl(229 40% 4% / .7); }
.pg-open__fig img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* A: the homepage's house at night, a still (the planes and grade come from sundown.css + the fixed time). */
.pg-open--house { position: relative; overflow: clip; background: var(--sky-top); min-height: clamp(30rem, 74vh, 50rem); display: flex; align-items: flex-end; }
.pg-open--house > .pg-open__in { width: 100%; z-index: 4; }   /* above the scrim (z 3): the scrim darkens the scene, never the copy */
.pg-house { position: absolute; inset: 0; pointer-events: none; }
.pg-house .scene { width: max(100%, 160vh); bottom: -4%; }
.pg-house__scrim { position: absolute; inset: 0; z-index: 3;
  background:
    linear-gradient(to top, hsl(229 40% 6% / .94) 0%, hsl(229 40% 6% / .82) 34%, hsl(229 40% 6% / .25) 62%, transparent 80%),
    radial-gradient(90% 70% at 0% 100%, hsl(229 40% 6% / .65), transparent 70%); }

/* ------------------------------------------------------------ sections */
.pg-sec__in { padding-block: var(--space-8); }
.pg-sec .pg-h2 { margin-bottom: var(--space-5); }
.pg-sec .pg-h3 { margin: var(--space-6) 0 var(--space-3); }
.pg-cols { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.pg-cols > :first-child .pg-h2 { margin-bottom: var(--space-4); }

/* ticked list */
.pg-list { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.pg-list li { position: relative; padding-left: 1.75rem; color: var(--sc-ink-soft); }
.pg-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: .8rem; height: .45rem; border-left: 2px solid var(--sc-accent); border-bottom: 2px solid var(--sc-accent); transform: rotate(-45deg); }
.pg-list b, .pg-list strong { color: var(--sc-ink); font-weight: 600; }

/* numbered steps */
.pg-steps { list-style: none; margin: var(--space-5) 0 0; padding: 0; counter-reset: pgstep; display: grid; gap: var(--space-5); }
.pg-steps li { counter-increment: pgstep; position: relative; padding-left: 3.4rem; color: var(--sc-ink-soft); max-width: 62ch; }
.pg-steps li::before { content: counter(pgstep); position: absolute; left: 0; top: .05em; font-family: var(--sc-font-display); font-weight: 900; font-size: var(--step-5); line-height: 1; color: var(--sc-accent); }
.pg-steps b, .pg-steps strong { display: block; color: var(--sc-ink); font-weight: 600; margin-bottom: .2rem; }

/* cards (links to other services / regions) */
.pg-cards { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: var(--space-3); }
.pg-cards a { display: grid; gap: .35rem; height: 100%; padding: var(--space-5); border: 1px solid var(--dlg-edge); border-radius: var(--pg-radius); text-decoration: none; color: var(--sc-ink);
  background: color-mix(in oklab, var(--sc-canvas) 35%, transparent); transition: border-color 160ms var(--sc-ease-out), transform 160ms var(--sc-ease-out); }
.pg-cards a b { font-family: var(--sc-font-display); font-weight: 800; font-size: var(--step-4); word-spacing: .04em; }
.pg-cards a span { color: var(--sc-ink-soft); font-size: var(--step-1); line-height: 1.5; }
.pg-cards a::after { content: "\2192"; content: "\2192" / ""; color: var(--sc-accent); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .pg-cards a:hover { border-color: var(--sc-accent); transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .pg-cards a { transition: none; } .pg-cards a:hover { transform: none; } }

/* inline lists: suburbs, brands */
.pg-tags { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pg-tags li { font-size: var(--step-1); padding: .35rem .75rem; border: 1px solid var(--dlg-edge); border-radius: 999px; color: var(--sc-ink); background: color-mix(in oklab, var(--sc-canvas) 30%, transparent); }

/* published figures (the homepage's .fig blocks, laid out as a list) */
.pg-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: var(--space-5) clamp(1.5rem, 4vw, 3rem); margin-top: var(--space-5); }
.pg-figs .fig { padding-top: var(--space-4); border-top: 1px solid color-mix(in oklab, var(--sc-ink) 18%, transparent); }
.pg-figs .fig__n { font-size: var(--step-7); color: var(--sc-ink); line-height: .95; max-width: none; }   /* beats .pg-sec p (body text colour and line height) */
.pg-figs .fig__n .unit { font-size: .38em; letter-spacing: 0; margin-left: .2em; }
.pg-figs .fig__basis { font-size: var(--step-1); }

/* trust facts (partial) */
.pg-trust { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: var(--dlg-edge); border: 1px solid var(--dlg-edge); border-radius: var(--pg-radius); overflow: hidden; }
.pg-trust li { display: grid; gap: .2rem; padding: var(--space-5); background: var(--g-deep); }
.g-mid .pg-trust li { background: var(--g-mid); }
.pg-trust b { font-family: var(--sc-font-display); font-weight: 800; font-size: var(--step-4); color: var(--sc-ink); line-height: 1.1; word-spacing: .04em; }
.pg-trust span { font-size: var(--step-1); color: var(--sc-ink-soft); }

/* orange call-out band (optional, one per page at most) */
.pg-sec.g-orange .pg-h2, .pg-sec.g-orange p { color: #0B0E1A; }

/* ------------------------------------------------------------- proof */
.pg-proof__in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-5) clamp(1.5rem, 5vw, 4rem); align-items: center; padding-block: var(--space-7); }
.pg-quote { margin: 0; }
.pg-quote blockquote { margin: 0; }
.pg-quote p { font-family: var(--sc-font-display); font-weight: 800; font-size: var(--step-6); line-height: 1.02; letter-spacing: var(--head-track); word-spacing: .06em; color: var(--sc-ink); margin: 0; text-wrap: balance; }
.pg-quote .who { margin-top: var(--space-3); font-size: var(--step-1); color: var(--sc-ink-soft); }
.pg-quote .who b { color: var(--sc-ink); font-weight: 600; }

/* ---------------------------------------------------------------- faq */
.pg-faq { padding-block: 0; }   /* the homepage's .faq adds section padding; the inner .wrap carries it here */
.pg-faq .wrap { padding-block: var(--space-8); }
.pg-faq .pg-h2 { margin-bottom: var(--space-5); }
.pg-faq__list { max-width: 52rem; }

/* ------------------------------------------------------------ related */
.pg-related .wrap { padding-block: var(--space-7); }
.pg-related .pg-h3 { margin-bottom: var(--space-4); }
.pg-related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3); }
.pg-related a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; border: 1px solid var(--dlg-edge); border-radius: 999px; color: var(--sc-ink); text-decoration: none; font-weight: 600; font-size: var(--step-1); }
.pg-related a span { color: var(--sc-accent); }
@media (hover: hover) and (pointer: fine) { .pg-related a:hover { border-color: var(--sc-accent); } }

/* -------------------------------------------------------------- phones */
@media (max-width: 860px) {
  .pg-open--photo .pg-open__in { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .pg-open__fig { aspect-ratio: 16 / 10; }
  .pg-cols { grid-template-columns: minmax(0, 1fr); }
  .pg-proof__in { grid-template-columns: minmax(0, 1fr); }
  .pg-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-house .scene { width: max(100%, 175vw); bottom: 0; }
}
@media (max-width: 600px) {
  .pg-trust { grid-template-columns: minmax(0, 1fr); }
  .pg-open__cta { flex-direction: column; align-items: stretch; }
  .pg-open__cta .btn { justify-content: center; min-height: 52px; }
  /* phones: the house is a band under the bar and the copy sits below it on the night ground,
     so the lit windows are seen instead of hidden behind the headline */
  .pg-open--house { display: block; min-height: 0; background: var(--sc-canvas); }
  .pg-house { position: relative; inset: auto; height: clamp(190px, 32svh, 280px); margin: calc(-1 * clamp(1.25rem, 3.5vh, 2.75rem)) 0 0; overflow: hidden; background: var(--sky-top); }
  .pg-house .scene { width: max(100%, 190vw); bottom: -6%; }
  .pg-house__scrim { background: linear-gradient(to bottom, transparent 55%, var(--sc-canvas) 100%); }
  .pg-open--house > .pg-open__in { margin-top: var(--space-4); }
  .pg-h1 { max-width: none; }
}
/* short phones (SE-size, 568 to 700px tall): a shorter house band and headline so the Call button stays above the fold */
@media (max-width: 600px) and (max-height: 700px) {
  .pg-house { height: clamp(110px, 19svh, 150px); }
  .pg-h1 { font-size: clamp(1.95rem, 8.6vw, 2.35rem); }
  .pg-open__copy { gap: .7rem; }
  .pg .lede.pg-open__intro { font-size: 1rem; }
}
/* short landscape phones: keep the opening compact */
@media (max-height: 520px) {
  .pg-open--house { min-height: 0; }
  .pg-open--photo .pg-open__fig { display: none; }
}
