/* ============================================================================
   GEMINI AMPM — night theme layer (loads AFTER gemini-base.css)
   Same group DNA as AMPM Building Services — Big Shoulders + Archivo, the
   four-colour meridian, the stamp markers — but Gemini owns the NIGHT.
   Home runs the inverted PM→AM arc; interior pages run the BS calm-page
   system in a dark "night" skin (flip --paper/--ink vars), with a day skin
   toggle. Tweak hooks: [data-arc], [data-skin], --g-accent, --d-display.
   ============================================================================ */

:root {
  --g-accent: var(--m-orange);          /* night identity accent (tweakable) */
  --night-2: #141a30;
  --dusk: #2b3558;
  --d-display: "Big Shoulders Display", "Big Shoulders Fallback", "Big Shoulders Fallback Avenir", "Big Shoulders Fallback Roboto", "Archivo", sans-serif;
}

body { background: var(--night); color: var(--night-text); }

/* ===========================================================================
   A. INTERIOR-PAGE SKIN  — flip the BS sub-page variables to go dark.
   The whole .page component family (.svc-detail, .capgroups, .caselist,
   .otherlines, .statband, .acc-wall, .thread, .team, .routes2, .kicker…)
   re-themes automatically because it reads these vars.
   =========================================================================== */
html[data-skin="night"] {
  --paper: #0b0e1c;
  --paper-2: #161d36;
  --paper-card: #10162c;
  --ink: #f4ead8;                 /* now the light tone — borders, grid lines, text */
  --ink-2: rgba(244,234,216,0.74);
  --ink-3: rgba(244,234,216,0.60);
  --line: rgba(244,234,216,0.18);
  --line-strong: rgba(244,234,216,0.85);
}
/* the few base rules that hardcode ink-rgba (not the vars) need a night value */
html[data-skin="night"] .case-card .ci,
html[data-skin="night"] .cap .img,
html[data-skin="night"] .hero-fig image-slot,
html[data-skin="night"] .case image-slot { background: rgba(244,234,216,0.07); }
html[data-skin="night"] .svc:hover,
html[data-skin="night"] .svc-detail.link:hover { background: rgba(244,234,216,0.05); }
/* buttons: keep a light-on-dark solid + ghost outline */
/* Night-skin primary CTA — gemini green, no longer the washed-out cream-on-dark
   that visitors struggled to read. Same green is applied to the .gdawn day-mode
   section below so CTAs are consistent across both bands.
   IMPORTANT: scoped with :not(.ghost):not(.line) — without it this rule
   out-specifies .btn.ghost and paints solid green buttons onto the green/orange
   closing bands (invisible green-on-green, audit-confirmed on /security/). */
html[data-skin="night"] .btn:not(.ghost):not(.line) { background: var(--m-green-cta, #2f7223); color: #fff; border-color: var(--m-green-cta, #2f7223); }
html[data-skin="night"] .btn:not(.ghost):not(.line):hover { transform: translateY(-2px); background: #25601c; border-color: #25601c; }
html[data-skin="night"] .btn.line { background: transparent; color: var(--m-green, #3D8E2E); border-color: var(--m-green, #3D8E2E); }
html[data-skin="night"] .btn.line:hover { background: var(--m-green-cta, #2f7223); color: #fff; border-color: var(--m-green-cta, #2f7223); }
html[data-skin="night"] .team .person .role,
html[data-skin="night"] .grp-grid .cell.current .tag { color: var(--m-green); }
/* on a night page the moon-glow drifts behind the hero */
.page { position: relative; overflow: hidden; }
.page .pageglow { position: absolute; top: -120px; right: -60px; width: 560px; height: 560px;
  pointer-events: none; z-index: 0; background: radial-gradient(circle, rgba(186,203,255,0.14) 0%, rgba(186,203,255,0) 66%); }
html[data-skin="day"] .page .pageglow { display: none; }
.page .shell { position: relative; z-index: 1; }

/* interior dark hero band (the night signature on every sub-page) */
.p-hero.nightband { margin: 0 calc(-1 * var(--pad-x)); padding-left: var(--pad-x); padding-right: var(--pad-x);
  background: linear-gradient(170deg, var(--dusk) 0%, #18203c 55%, var(--night) 100%); color: var(--night-text); }
html[data-skin="night"] .p-hero.nightband { background: linear-gradient(170deg, #1a2240 0%, #0d1226 100%); }
.p-hero.nightband h1 { color: var(--ink-hi, #fffaf0); }
.p-hero.nightband .lede { color: rgba(244,234,216,0.85); }
.p-hero.nightband .lede strong { color: var(--ink-hi, #fffaf0); }
html[data-skin="day"] .p-hero.nightband .kicker { color: rgba(244,234,216,0.7); }

/* accent-driven kicker tick + active nav underline use the night accent */
.kicker::before { background: currentColor; }
.svc-bar.accent { background: var(--g-accent); }

/* ===========================================================================
   B. THE HOME ARC  — scoped under .ghome. PM (dusk) → deep night → AM (dawn).
   =========================================================================== */
.ghome { position: relative; color: var(--night-text);
  background: linear-gradient(180deg, var(--dusk) 0%, #1b2440 6%, var(--night) 15%, var(--night) 100%); }
html[data-arc="subtle"] .ghome {
  background: linear-gradient(180deg, #1e2748 0%, #121831 9%, var(--night) 22%, var(--night) 100%); }

/* stars + moon glow in the deep-night band */
.ghome .stars { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.ghome .star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: 0.7;
  animation: g-twinkle 4.6s ease-in-out infinite; }
.ghome .star.s2 { width: 2px; height: 2px; opacity: 0.45; }
@keyframes g-twinkle { 0%,100% { opacity: 0.18; } 50% { opacity: 0.92; } }
.ghome .moonglow { position: absolute; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(186,203,255,0.22) 0%, rgba(186,203,255,0) 65%); }
html[data-arc="still"] .ghome .star { animation: none; }
@media (prefers-reduced-motion: reduce) { .ghome .star { animation: none; } }

/* spine + content rails (mirror the launch site) */
.ghome .gspine { position: fixed; left: var(--spine-x); top: 0; bottom: 0; width: 2px;
  background: rgba(244,234,216,0.16); z-index: 1; pointer-events: none; }
@media (max-width: 1000px) { .ghome .gspine { display: none; } }
.gwrap { padding-left: calc(var(--spine-x) + clamp(18px,3vw,46px)); padding-right: var(--pad-x);
  position: relative; z-index: 2; max-width: 1480px; }
@media (max-width: 1000px) { .gwrap { padding-left: var(--pad-x); } }

/* stamp marker on dark */
.gstamp { font-family: var(--d-display); font-weight: 700; font-size: clamp(20px,2.2vw,30px);
  letter-spacing: 0.04em; display: flex; align-items: center; gap: 16px; margin: 0 0 26px; color: var(--night-text); }
.gstamp .tick { width: 46px; height: 2px; background: var(--g-accent); margin-left: calc(-46px - 18px); }
@media (max-width: 1000px) { .gstamp .tick { display: none; } }
.gstamp .shift { font-family: var(--d-body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.6; }

/* hero */
.ghero { padding-top: clamp(36px,5vw,70px); padding-bottom: clamp(48px,6vw,80px); }
.ghero h1 { font-family: var(--d-display); font-weight: 800; font-size: clamp(64px,12vw,168px);
  line-height: 0.86; letter-spacing: 0.005em; text-transform: uppercase; margin: 12px 0 0; color: var(--ink-hi, #fffaf0); }
.ghero h1 .arr { display: inline-block; transform: translateY(-0.06em); color: var(--g-accent); }
/* The figure column is capped rather than an fr share: the h1 is set in a
   condensed display face and needs the remaining width to hold its three
   authored lines without re-wrapping — sized to survive the wider Archivo
   fallback too. Two columns start at the h1 so the media tops align. */
.ghero .hero-grid { display: grid; grid-template-columns: minmax(0,1fr) clamp(260px,32vw,500px);
  gap: clamp(28px,4vw,56px); margin-top: 0; align-items: start; }
@media (max-width: 900px) { .ghero .hero-grid { grid-template-columns: 1fr; gap: clamp(24px,4vw,36px); } }
.ghero .hero-lede { margin-top: clamp(28px,4vw,46px); }
.ghero .standfirst { font-size: clamp(17px,1.5vw,21px); line-height: 1.55; font-weight: 500;
  max-width: 34ch; margin: 0; color: rgba(244,234,216,0.85); }
.ghero .standfirst strong { color: var(--ink-hi, #fffaf0); font-weight: 700; }
.gcta { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.gfig { position: relative; margin: 0; }
.gfig image-slot { background: rgba(244,234,216,0.07); }
.gcap { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.55; margin-top: 10px; }

/* discipline ribbon (four hero pillars) */
.gribbon { position: relative; z-index: 2; margin: 0 var(--pad-x) 0 calc(var(--spine-x) + clamp(18px,3vw,46px)); }
@media (max-width: 1000px) { .gribbon { margin-left: var(--pad-x); } }
/* Segment fills come from inline `background: var(--m-orange)` etc. Against
   white label text the brand orange is 3.0:1 and the green 4.1:1 — both under
   the 4.5:1 AA floor. Re-pointing the two custom properties here deepens only
   the ribbon fills; the tokens are untouched everywhere else, and blue (6.3:1)
   and purple (8.0:1) already pass so they keep their exact brand values. */
.gribbon .bar { display: flex; height: 64px;
  --m-orange: #B75316;   /* 4.9:1 against #fff */
  --m-green:  #2f7223;   /* 5.9:1 against #fff */ }
.gribbon .seg { flex: 1; display: flex; align-items: center; padding: 0 18px;
  font-family: var(--d-display); font-weight: 700; font-size: clamp(15px,1.35vw,18px); letter-spacing: 0.05em;
  text-transform: uppercase; color: #fff; text-decoration: none; transition: flex 0.3s; }
.gribbon .seg:hover { flex: 1.35; }
.gribbon .legend { display: flex; justify-content: space-between; gap: 12px; font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.55; padding: 12px 2px 0; }
@media (max-width: 700px) { .gribbon .legend span:nth-child(2) { display: none; } }

/* big section head */
.gh2 { font-family: var(--d-display); font-weight: 800; font-size: clamp(44px,7vw,92px); line-height: 0.92;
  text-transform: uppercase; letter-spacing: 0.005em; margin: 0 0 40px; color: var(--ink-hi, #fffaf0); }
.gh2 .lt { color: rgba(244,234,216,0.5); }

/* services ledger */
.gservices { padding-top: clamp(80px,9vw,120px); }
.gsvc { display: grid; grid-template-columns: clamp(70px,9vw,140px) 1fr 1.05fr 64px; gap: clamp(16px,2.6vw,36px);
  align-items: center; border-top: 3px solid rgba(244,234,216,0.85); padding: clamp(20px,2.4vw,30px) 0;
  text-decoration: none; color: inherit; transition: background 0.2s; cursor: pointer; }
.gsvc:last-of-type { border-bottom: 3px solid rgba(244,234,216,0.85); }
.gsvc:hover { background: rgba(244,234,216,0.05); }
.gsvc:hover .go { transform: translateX(10px); }
.gsvc .num { font-family: var(--d-display); font-weight: 800; font-size: clamp(40px,5.5vw,76px); line-height: 1; color: var(--ink-hi, #fffaf0); }
.gsvc .nm { font-family: var(--d-display); font-weight: 700; font-size: clamp(24px,3vw,40px); line-height: 0.95;
  text-transform: uppercase; letter-spacing: 0.01em; color: var(--ink-hi, #fffaf0); }
.gsvc .nm .sw { display: inline-block; width: 36px; height: 13px; margin-left: 14px; vertical-align: middle; }
.gsvc p { font-size: 15px; line-height: 1.55; font-weight: 500; margin: 0; color: rgba(244,234,216,0.78); max-width: 46ch; }
.gsvc .go { font-family: var(--d-display); font-weight: 800; font-size: 40px; text-align: right; transition: transform 0.2s; color: var(--ink-hi, #fffaf0); }
@media (max-width: 800px) { .gsvc { grid-template-columns: 56px 1fr 40px; } .gsvc p { display: none; } }

/* glass panels over the night sky (proof / log / clients) */
.gglass { border: 3px solid rgba(244,234,216,0.85); background: rgba(16,22,44,0.42);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.gproof { margin-top: clamp(40px,5vw,60px); display: flex; flex-wrap: wrap; }
.gproof .cell { flex: 1 1 200px; padding: 26px; border-right: 3px solid rgba(244,234,216,0.85); }
.gproof .cell:last-child { border-right: 0; }
@media (max-width: 860px) { .gproof .cell { border-right: 0; border-bottom: 3px solid rgba(244,234,216,0.85); } .gproof .cell:last-child { border-bottom: 0; } }
.gproof .big { font-family: var(--d-display); font-weight: 800; font-size: clamp(40px,4.4vw,58px); line-height: 0.95; color: var(--ink-hi, #fffaf0); }
.gproof .lbl { font-size: 13px; font-weight: 600; line-height: 1.4; margin-top: 8px; color: rgba(244,234,216,0.8); }

/* the watch — night log */
.gwatch { padding-top: clamp(90px,11vw,140px); }
.gwatch .cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,56px); align-items: center; }
@media (max-width: 900px) { .gwatch .cols { grid-template-columns: 1fr; } }
.gwatch .story p { font-size: clamp(16px,1.4vw,18px); line-height: 1.65; font-weight: 500;
  color: rgba(244,234,216,0.85); margin: 0 0 18px; max-width: 52ch; }
.gwatch .story p strong { color: var(--ink-hi, #fffaf0); font-weight: 700; }
.glog { padding: clamp(24px,3vw,32px) clamp(26px,3vw,34px); }
.glog .hd { font-family: var(--d-display); font-weight: 800; font-size: 22px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-hi, #fffaf0); margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.glog .hd .dotlive { width: 9px; height: 9px; border-radius: 50%; background: var(--m-green);
  box-shadow: 0 0 0 0 rgba(61,142,46,0.6); animation: g-pulse 2.4s infinite; }
@keyframes g-pulse { 0% { box-shadow: 0 0 0 0 rgba(61,142,46,0.55); } 70% { box-shadow: 0 0 0 10px rgba(61,142,46,0); } 100% { box-shadow: 0 0 0 0 rgba(61,142,46,0); } }
html[data-arc="still"] .glog .hd .dotlive { animation: none; }
.glog .row { display: grid; grid-template-columns: 76px 1fr; gap: 18px; padding: 12px 0;
  border-top: 1px solid rgba(244,234,216,0.28); font-size: 14px; font-weight: 500; color: rgba(244,234,216,0.85); }
.glog .row .t { font-family: var(--d-display); font-weight: 700; font-size: 17px; letter-spacing: 0.06em; color: var(--ink-hi, #fffaf0); }
.glog .row strong { color: var(--ink-hi, #fffaf0); }

/* clients */
.gclients { padding-top: clamp(80px,10vw,120px); }
.gclient-row { display: grid; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .gclient-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .gclient-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .gclient-row { grid-template-columns: 1fr; } }

/* "See every client we work with →" pill CTA below the home featured-12 grid */
.gpill { display: inline-block; font-family: var(--d-ui); font-weight: 700;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(244,234,216,0.92); text-decoration: none;
  padding: 13px 28px; border: 2px solid rgba(244,234,216,0.6); border-radius: 999px;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease; }
.gpill:hover { color: var(--ink-hi, #fffaf0); border-color: var(--ink-hi, #fffaf0); background: rgba(255,255,255,0.08); }
.gclient { padding: 28px 26px; border-right: 1px solid rgba(244,234,216,0.18);
  border-bottom: 1px solid rgba(244,234,216,0.18);
  display: flex; flex-direction: column; gap: 12px; min-height: 168px;
  text-decoration: none; color: inherit;
  transition: background 0.18s ease; }
.gclient--linked:hover { background: rgba(244,234,216,0.04); }
.gclient--linked:hover .nm { color: var(--g-accent, var(--m-orange)); }
.gclient-logo { display: block; height: 36px; width: auto; max-width: 80%; object-fit: contain;
  object-position: left center; filter: brightness(0) invert(1); opacity: 0.92; }
/* Logos that are already white, have built-in coloured backgrounds, or
   depend on brand colour for legibility (NHS blue, Kingston blue, Maze
   navy box) — keep their original colour. */
.gclient-logo--keep { filter: none; opacity: 1; height: 44px; }
.gclient-logo--text { font-family: var(--d-display); font-weight: 700; font-size: 14px;
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244,234,216,0.5);
  height: 36px; display: flex; align-items: center; filter: none; }
.gclient .nm { font-family: var(--d-display); font-weight: 800; font-size: 22px; text-transform: uppercase; color: var(--ink-hi, #fffaf0); line-height: 1.05;
  transition: color 0.18s ease; }
.gclient .what { font-size: 13px; font-weight: 500; line-height: 1.5; color: rgba(244,234,216,0.7); }

/* who-we-are (Direction B) */
.gwho { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: rgba(244,234,216,0.18);
  border: 1px solid rgba(244,234,216,0.18); }
@media (max-width: 860px) { .gwho { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .gwho { grid-template-columns: 1fr; } }
.gwho .cell { background: var(--night); padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; }
.gwho .cell .n { font-family: var(--d-display); font-weight: 800; font-size: 22px; color: var(--g-accent); }
.gwho .cell h4 { font-family: var(--d-display); font-weight: 700; text-transform: uppercase; font-size: 21px;
  line-height: 1; margin: 0; color: var(--ink-hi, #fffaf0); }
.gwho .cell p { font-size: 13.5px; line-height: 1.55; font-weight: 500; color: rgba(244,234,216,0.78); margin: 0; }

/* sectors teaser (home) */
.gsector-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: rgba(244,234,216,0.18);
  border: 1px solid rgba(244,234,216,0.18); }
@media (max-width: 900px) { .gsector-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .gsector-grid { grid-template-columns: 1fr; } }
.gsector { background: var(--night); padding: 24px 22px; display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; cursor: pointer; transition: background 0.2s; min-height: 132px; }
.gsector:hover { background: var(--night-2); }

/* Phone accordion for the sector band ("the buildings we keep safe") — the
   full card grid is 24 cards, which single-columns into a ~3000px scroll on
   a phone. Below 700px the grid swaps for a native <details> accordion: one
   compact row per sector (swatch + name + chevron), tap to open the blurb
   and the "View sector" link. No script needed; multiple rows can be open. */
.gsector-acc { display: none; }
@media (max-width: 700px) {
  .gsector-grid { display: none; }
  .gsector-acc { display: block; border-top: 1px solid rgba(244,234,216,0.18); }
  .gsector-item { border-bottom: 1px solid rgba(244,234,216,0.18); }
  .gsector-item summary { list-style: none; display: flex; align-items: center; gap: 14px;
    padding: 15px 2px; min-height: 44px; cursor: pointer; }
  .gsector-item summary::-webkit-details-marker { display: none; }
  .gsector-item .sw { width: 26px; height: 10px; flex: none; }
  .gsector-item .nm { flex: 1; font-family: var(--d-display); font-weight: 700;
    text-transform: uppercase; font-size: 19px; line-height: 1.02; color: var(--ink-hi, #fffaf0); }
  .gsector-item .chev { flex: none; width: 0; height: 0; margin-right: 4px;
    border-left: 6px solid transparent; border-right: 6px solid transparent;
    border-top: 7px solid rgba(244,234,216,0.7); transition: transform 0.18s ease; }
  .gsector-item[open] .chev { transform: rotate(180deg); border-top-color: var(--m-orange); }
  .gsector-item[open] summary .nm { color: var(--m-orange); }
  .gsector-item .body { padding: 2px 2px 18px 40px; }
  .gsector-item .bl { font-size: 14.5px; line-height: 1.55; color: rgba(244,234,216,0.78); margin: 0 0 12px; }
  .gsector-item .go { font-family: var(--d-ui); font-weight: 700; font-size: 13px;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-hi, #fffaf0);
    text-decoration: underline; text-underline-offset: 4px; }
  /* "More sectors" group — the six featured rows sit above; the long tail
     collapses behind this single expander so the section stays short. Its
     summary mirrors the row layout but reads as a control, not a sector:
     text face, muted, with a count chip. */
  .gsector-more summary { list-style: none; display: flex; align-items: center; gap: 12px;
    padding: 15px 2px; min-height: 44px; cursor: pointer; }
  .gsector-more summary::-webkit-details-marker { display: none; }
  .gsector-more .nm { font-family: var(--d-ui); font-weight: 700; font-size: 15px;
    letter-spacing: 0.1em; text-transform: uppercase; color: rgba(244,234,216,0.78); }
  .gsector-more .count { font-family: var(--d-ui); font-weight: 700; font-size: 12px;
    color: rgba(244,234,216,0.78); border: 1px solid rgba(244,234,216,0.35);
    border-radius: 999px; padding: 2px 9px; margin-right: auto; }
  .gsector-more .chev { flex: none; width: 0; height: 0; margin-right: 4px;
    border-left: 6px solid transparent; border-right: 6px solid transparent;
    border-top: 7px solid rgba(244,234,216,0.7); transition: transform 0.18s ease; }
  .gsector-more[open] > summary .chev { transform: rotate(180deg); border-top-color: var(--m-orange); }
  .gsector-more[open] > summary .nm { color: var(--m-orange); }
  .gsector-more[open] > summary .count { color: var(--m-orange); border-color: var(--m-orange); }
  .gsector-more .more-body { border-top: 1px solid rgba(244,234,216,0.18); }
  .gsector-more .more-body .gsector-item:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .gsector-item .chev, .gsector-more .chev { transition: none; } }
.gsector .sw { width: 30px; height: 11px; }
.gsector .nm { font-family: var(--d-display); font-weight: 700; text-transform: uppercase; font-size: 19px;
  line-height: 1; color: var(--ink-hi, #fffaf0); }
.gsector .bl { font-size: 12.5px; line-height: 1.5; font-weight: 500; color: rgba(244,234,216,0.74); margin: 0; }

/* news teaser (home + index) */
.gnews-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media (max-width: 900px) { .gnews-row { grid-template-columns: 1fr; } }
.gnews { display: flex; flex-direction: column; text-decoration: none; color: inherit; cursor: pointer; }
.gnews .ni { width: 100%; height: 196px; background: rgba(244,234,216,0.07); display: block; }
.gnews .meta { display: flex; gap: 14px; align-items: center; margin: 16px 0 8px; font-size: 11px;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(244,234,216,0.55); }
.gnews .meta .cat { color: var(--g-accent); }
.gnews h3 { font-family: var(--d-display); font-weight: 700; text-transform: uppercase; font-size: 21px;
  line-height: 1.04; margin: 0 0 8px; color: var(--ink-hi, #fffaf0); }
.gnews p { font-size: 13.5px; line-height: 1.5; font-weight: 500; color: rgba(244,234,216,0.74); margin: 0; }
.gnews:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* ===== pre-dawn — the sky starts lifting at the 04:30 section =====
   Before this, .ghome held solid night right up to the daybreak band and the
   whole sunrise happened in one compressed 640px slam. This wrapper (04:30
   Trusted by + 04:50 Accredited + 05:10 News) walks night navy up through
   astronomical-then-nautical twilight blues; %-stops are safe here because
   they're relative to the wrapper itself, which starts exactly at 04:30 at
   any viewport. The stops are front-loaded — the first cut saved most of the
   change for the last quarter and the start read as still-night. End tone
   #2b3a6b is where .gdaybreak picks up. Cream text stays ≥9:1 on every stop,
   so nothing in these sections needs a colour change. */
.gpredawn { background: linear-gradient(180deg,
  var(--night) 0%, #141b38 18%, #1b2547 42%, #232f58 68%, #2b3a6b 100%); }
html[data-arc="subtle"] .gpredawn { background: linear-gradient(180deg,
  var(--night) 0%, #121831 22%, #182140 55%, #202a4c 100%); }

/* ===== dawn handback — pixel-anchored daybreak band at the foot =====
   Continues from .gpredawn's end tone (no restart from --night) and takes
   ~1000px to reach full daylight instead of 640px, walking twilight blue →
   mauve → peach → cream so the colour change is gradual rather than a jump. */
.gdaybreak { position: relative; z-index: 2;
  background: linear-gradient(180deg, #2b3a6b 0px, #41507c 150px, #6b6392 300px,
    #9a7492 440px, #c97f5e 580px, #e8b183 700px, #ecc9a0 790px, #f3dfc4 880px, #fdfaf2 1000px); }
html[data-arc="subtle"] .gdaybreak {
  background: linear-gradient(180deg, #202a4c 0px, #3c4663 200px, #8d7794 440px,
    #cbb3a4 660px, #f3ead9 850px, #fdfaf2 980px); }
/* Sun glow on the horizon — a soft radial sitting in the peach band. Static
   (no animation), pointer-transparent, and painted under the .gwrap content
   (which carries z-index: 2). */
.gdaybreak::before { content: ""; position: absolute; left: 50%; top: 620px;
  width: min(760px, 92vw); height: 440px; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(255,196,120,0.5) 0%,
    rgba(255,170,90,0.24) 40%, rgba(255,170,90,0) 72%);
  pointer-events: none; }
html[data-arc="subtle"] .gdaybreak::before { opacity: 0.5; }
.gdawn { padding-top: 880px; padding-bottom: 70px; color: var(--ink-fixed, #1c1812); }
.gdawn .gstamp { color: #1c1812; }
.gdawn .gstamp .tick { background: var(--g-accent); }
.gdawn .gh2 { color: #1c1812; }
.gdawn .lead { font-size: clamp(17px,1.5vw,20px); line-height: 1.6; font-weight: 500; max-width: 54ch;
  margin: 0 0 32px; color: rgba(28,24,18,0.85); }
.gdawn .lead strong { color: #1c1812; font-weight: 700; }
/* Daybreak (cream-page) section — same gemini green as the night-skin CTAs.
   The previous cream-on-cream phone CTA was almost invisible against the
   page background; green now gives strong contrast (4.5:1+ vs cream). */
.gdawn .btn { background: var(--m-green, #3D8E2E); color: #fff; border-color: var(--m-green, #3D8E2E); }
.gdawn .btn:hover { background: #2f7223; border-color: #2f7223; }
.gdawn .btn.line { background: transparent; color: var(--m-green, #3D8E2E); border-color: var(--m-green, #3D8E2E); }
.gdawn .btn.line:hover { background: var(--m-green, #3D8E2E); color: #fff; border-color: var(--m-green, #3D8E2E); }
.gsister { margin-top: 52px; border: 3px solid #1c1812; padding: 26px 30px; display: flex;
  align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; cursor: pointer;
  text-decoration: none; color: #1c1812; transition: background 0.2s; }
.gsister:hover { background: rgba(28,24,18,0.04); }
.gsister .txt { font-size: 15px; font-weight: 600; line-height: 1.5; max-width: 56ch; }
.gsister .txt strong { font-family: var(--d-display); font-weight: 800; font-size: 21px; text-transform: uppercase;
  letter-spacing: 0.03em; display: block; margin-bottom: 4px; }
.gsister .arrow { font-family: var(--d-display); font-weight: 800; font-size: 40px; }

/* ===== moon mark (the sun mark, lower-half — Gemini's signature) ===== */
.moonmark { width: 34px; height: 34px; position: relative; overflow: hidden; flex: none; display: block; color: inherit; }
.moonmark::before { content: ""; position: absolute; left: 2px; right: 2px; bottom: 4px; height: 14px;
  background: currentColor; border-radius: 0 0 14px 14px; }
.moonmark::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 19px; height: 2.5px; background: currentColor; }

/* ===== Gemini AMPM logo lockup (production PNG artwork) =====
   Two <img> tags stack; CSS picks the right one for the surface.
   Default = cream "-rev" artwork (matches the night skin and any
   [data-nav-dark] section). On a light surface (day skin nav before
   it scrolls over a dark band), we flip to the charcoal version. */
.glogo { display: inline-flex; align-items: center; line-height: 0; color: inherit; }
.glogo .glogo-img { display: block; height: 34px; width: auto; max-width: none; }
.glogo.lg .glogo-img { height: 80px; }

/* Default surface = light — show charcoal artwork. The nav already toggles
   .dark when scrolled over a [data-nav-dark] section; we follow that, plus
   any [data-nav-dark] ancestor (the footer is permanently dark). */
.glogo .glogo-img--light { display: block; }
.glogo .glogo-img--dark  { display: none; }
.nav.dark .glogo .glogo-img--light,
[data-nav-dark] .glogo .glogo-img--light { display: none; }
.nav.dark .glogo .glogo-img--dark,
[data-nav-dark] .glogo .glogo-img--dark  { display: block; }
.nav .wm { text-decoration: none; font-family: var(--d-body); }
.foot .fwm { line-height: 1; }

/* nav: est. line + dark-by-default tweaks reuse base .nav */
.nav .est { font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.55; white-space: nowrap; align-self: center; }
@media (max-width: 1100px) { .nav .est { display: none; } }
.nav .wm small { letter-spacing: 0.08em; }

/* ===== child-service grid (service pillar pages) — preserved URLs visible ===== */
.kids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 860px) { .kids { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .kids { grid-template-columns: 1fr; } }
.kid { background: var(--paper); padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; min-height: 96px;
  justify-content: space-between; text-decoration: none; color: inherit;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease; }
.kid:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 1px 0 var(--g-accent) inset, 0 6px 18px rgba(28,24,18,0.08); }
.kid:hover .kn { color: var(--g-accent); }
.kid:hover .ku { color: var(--ink); }
.kid .kn { font-family: var(--d-display); font-weight: 700; text-transform: uppercase; font-size: 18px; line-height: 1.02; color: var(--ink);
  transition: color 0.18s ease; }
.kid .ku { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 10.5px; letter-spacing: 0.01em;
  color: var(--ink-3); word-break: break-all; line-height: 1.4; transition: color 0.18s ease; }

/* ===== sector chips (service pillar pages) ===== */
.sectorchips { display: flex; flex-wrap: wrap; gap: 10px; }
.sectorchip { display: inline-flex; align-items: center; gap: 10px; padding: 9px 15px; border: 2px solid var(--line);
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-2);
  cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.sectorchip:hover { border-color: var(--line-strong); color: var(--ink); }
.sectorchip .sw { width: 22px; height: 9px; flex: none; }

/* ===== accreditation page (single cert detail view) ===== */
.acc-detail { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (max-width: 900px) { .acc-detail { grid-template-columns: 1fr; } }
.acc-covers { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 12px; }
.acc-covers li { font-size: 15.5px; line-height: 1.55; padding-left: 20px; position: relative; color: var(--ink-2); }
.acc-covers li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 2px; background: var(--g-accent, var(--m-orange)); }
.acc-covers li strong { color: var(--ink); }

.acc-cert-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; background: var(--paper);
  border: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease; }
.acc-cert-card:hover { border-color: var(--g-accent, var(--m-orange)); box-shadow: 0 8px 24px rgba(28,24,18,0.10); }
.acc-cert-card img { display: block; width: 100%; height: auto; box-shadow: 0 2px 6px rgba(28,24,18,0.12); }
.acc-cert-go { font-family: var(--d-ui); font-weight: 700; font-size: 13px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--g-accent, var(--m-orange)); }
.acc-cert-card.pending { padding: 36px 24px; align-items: flex-start; justify-content: center; min-height: 240px; }
.acc-cert-pending { font-family: var(--d-display); font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); }
.acc-cert-pending-sub { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); margin-top: 8px; }

/* "Where we apply this" — related pillar links */
.acc-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 860px) { .acc-pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .acc-pillars { grid-template-columns: 1fr; } }
.acc-pillar { background: var(--paper); padding: 22px 22px 20px; display: grid;
  grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 6px 14px; align-items: start;
  text-decoration: none; color: inherit; transition: background 0.18s ease; }
.acc-pillar:hover { background: #fff; }
.acc-pillar:hover .go { transform: translateX(4px); color: var(--g-accent, var(--m-orange)); }
.acc-pillar .t { font-family: var(--d-display); font-weight: 700; text-transform: uppercase; font-size: 18px; line-height: 1.02; color: var(--ink); }
.acc-pillar .d { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); grid-column: 1 / -1; }
.acc-pillar .go { font-family: var(--d-display); font-weight: 800; font-size: 22px; color: var(--ink-3); transition: transform 0.18s ease, color 0.18s ease; }

/* Bottom strip — "all twelve accreditations" */
.acc-siblings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 900px) { .acc-siblings { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .acc-siblings { grid-template-columns: 1fr; } }
.acc-sibling { background: var(--paper); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px;
  text-decoration: none; color: inherit; transition: background 0.18s ease; }
/* Was a hardcoded #fff. On the night skin the card's own text is --ink (cream)
   and --ink-3 (cream 60%), so hovering flipped the ground to white underneath
   cream text — ~1.2:1, i.e. the tile blanked out. --paper-2 is the skin-aware
   lift (#161d36 night / #f4ecdb day) and keeps the text readable in both. */
.acc-sibling:hover { background: var(--paper-2); }
.acc-sibling:hover .t { color: var(--g-accent, var(--m-orange)); }
.acc-sibling .t { font-family: var(--d-display); font-weight: 700; text-transform: uppercase; font-size: 16px; line-height: 1.05; color: var(--ink); transition: color 0.18s ease; }
.acc-sibling .d { font-size: 11.5px; line-height: 1.45; color: var(--ink-3); }

/* ===== clients directory page (full /clients/) =====
   Mirrors the dark-skin home .gclient tiles but in the day-skin
   sub-page layout. Each sector renders as an H2 + grid block. */
.cdir-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 1100px) { .cdir-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .cdir-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .cdir-grid { grid-template-columns: 1fr; } }
.cdir-cell { background: var(--paper); padding: 24px 22px; display: flex; flex-direction: column; gap: 10px;
  min-height: 160px; text-decoration: none; color: inherit;
  transition: background 0.18s ease, box-shadow 0.18s ease; }
a.cdir-cell:hover { background: #fff; box-shadow: 0 4px 14px rgba(28,24,18,0.08); }
a.cdir-cell:hover .cdir-nm { color: var(--g-accent, var(--m-orange)); }
.cdir-logo { display: block; height: 32px; width: auto; max-width: 80%; object-fit: contain;
  object-position: left center; opacity: 0.95; }
.cdir-logo--keep { /* preserve original colours */ }
.cdir-logo--text { font-family: var(--d-display); font-weight: 700; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
  height: 32px; display: flex; align-items: center; }
.cdir-nm { font-family: var(--d-display); font-weight: 800; font-size: 18px; text-transform: uppercase;
  color: var(--ink); line-height: 1.05; transition: color 0.18s ease; }
.cdir-what { font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }

/* ===== sectors index grid ===== */
.sec-index { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 760px) { .sec-index { grid-template-columns: 1fr; } }
.sec-card { background: var(--paper); padding: 30px 30px 32px; display: flex; flex-direction: column; gap: 12px; cursor: pointer; transition: background 0.2s; }
.sec-card:hover { background: var(--paper-2); }
.sec-card .sw { width: 44px; height: 14px; }
.sec-card h3 { font-family: var(--d-display); font-weight: 700; text-transform: uppercase; font-size: clamp(24px,2.6vw,32px); line-height: 0.98; margin: 0; color: var(--ink); }
.sec-card p { font-size: 14.5px; line-height: 1.6; font-weight: 500; color: var(--ink-2); margin: 0; max-width: 52ch; }
.sec-card .url { font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; color: var(--ink-3); margin-top: 4px; }

/* ===== news index ===== */
.news-index { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .news-index { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .news-index { grid-template-columns: 1fr; } }
.ni-card { display: flex; flex-direction: column; cursor: pointer; }
.ni-card .img { width: 100%; height: 200px; background: rgba(28,24,18,0.07); display: block; }
html[data-skin="night"] .ni-card .img { background: rgba(244,234,216,0.07); }
.ni-card .meta { display: flex; gap: 14px; align-items: center; margin: 16px 0 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.ni-card .meta .cat { color: var(--g-accent); }
.ni-card h4 { font-family: var(--d-display); font-weight: 700; text-transform: uppercase; font-size: 22px; line-height: 1.04; margin: 0 0 8px; color: var(--ink); }
.ni-card p { font-size: 14px; line-height: 1.55; font-weight: 500; color: var(--ink-2); margin: 0; }
.ni-card .url { font-family: ui-monospace, Menlo, monospace; font-size: 10px; color: var(--ink-3); margin-top: 10px; word-break: break-all; }
.ni-card:hover h4 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* ===== contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 34px; } }
.cform { display: flex; flex-direction: column; }
.cform .f { border: 0; border-bottom: 2px solid var(--line-strong); background: transparent; color: var(--ink);
  font-family: var(--d-body); font-size: 16px; font-weight: 500; padding: 15px 2px 11px; outline: none; }
.cform .f::placeholder { color: var(--ink-3); }
.cform .f:focus { border-bottom-color: var(--g-accent); }
.cform select.f { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23f4ead8' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.cform .btn { margin-top: 26px; align-self: flex-start; cursor: pointer; }
.cform .sla { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-top: 14px; }
/* failed-submission banner: hidden unless the handler bounced back with ?err= */
.cform .cform-err { border: 2px solid var(--m-orange, #e8630a); color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.5; padding: 12px 14px; margin: 0 0 18px; }
/* anchor jumps (hero CTA -> #enquiry, /contact/?err=...#form) land under the
   72px sticky nav without this */
section[id], form[id] { scroll-margin-top: 88px; }

/* ===== Apprenticeships page ===== */
.founder { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(28px,4vw,56px); align-items: start; }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; } }
.founder .portrait { position: relative; }
.founder .portrait image-slot { width: 100%; height: clamp(360px,42vw,520px); display: block; background: rgba(244,234,216,0.07); }
html[data-skin="day"] .founder .portrait image-slot { background: rgba(28,24,18,0.06); }
.founder .portrait .pin { position: absolute; left: 0; bottom: 0; background: var(--g-accent); color: #fff;
  font-family: var(--mono, ui-monospace); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 9px 14px; }
.founder .letter p { font-size: clamp(17px,1.5vw,21px); line-height: 1.6; font-weight: 500; color: var(--ink-2); margin: 0 0 18px; text-wrap: pretty; }
.founder .letter p.lead-q { font-family: var(--d-display); font-weight: 700; font-size: clamp(26px,3vw,40px); line-height: 1.08;
  text-transform: none; letter-spacing: 0; color: var(--ink); margin-bottom: 26px; }
.founder .letter p strong { color: var(--ink); font-weight: 700; }
.founder .sign { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding-top: 20px; border-top: 2px solid var(--line); }
.founder .sign .nm { font-family: var(--d-display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: 0.01em; color: var(--ink); line-height: 1; }
.founder .sign .ro { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.08em; }

.pathway { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 900px) { .pathway { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pathway { grid-template-columns: 1fr; } }
.pathway .step { background: var(--paper); padding: 24px 22px; display: flex; flex-direction: column; gap: 10px; }
.pathway .step .pn { font-family: var(--d-display); font-weight: 800; font-size: 30px; color: var(--g-accent); line-height: 1; }
.pathway .step h4 { font-family: var(--d-display); font-weight: 700; text-transform: uppercase; font-size: 18px; line-height: 1; margin: 0; color: var(--ink); }
.pathway .step p { font-size: 13px; line-height: 1.5; font-weight: 500; color: var(--ink-2); margin: 0; }

.apvalues { display: flex; flex-wrap: wrap; border: 1px solid var(--line); }
.apvalues .v { flex: 1 1 25%; padding: 24px 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.apvalues .v:last-child { border-right: 0; }
@media (max-width: 760px) { .apvalues .v { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid var(--line); } .apvalues .v:last-child { border-bottom: 0; } }
.apvalues .v .t { font-family: var(--d-display); font-weight: 800; font-size: 19px; text-transform: uppercase; color: var(--ink); line-height: 1; }
.apvalues .v .d { font-size: 13.5px; line-height: 1.55; font-weight: 500; color: var(--ink-2); }

/* ===== reveal: keep content reliably visible =====
   The base .reveal opacity-transition can stall at 0 in throttled/background
   iframes (target is correct but the transition never advances). Force the
   resolved/visible state so copy never gets trapped invisible. A gentle
   entrance still plays on .in when the tab is active and motion is allowed. */
.reveal, .page .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: no-preference) {
  .reveal.in { animation: g-rise 0.55s ease both; }
}
@keyframes g-rise { from { transform: translateY(16px); } to { transform: none; } }

/* ===== accreditation strip (home, dark) ===== */
.gaccred { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: rgba(244,234,216,0.85); border: 3px solid rgba(244,234,216,0.85); }
@media (max-width: 1000px) { .gaccred { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gaccred { grid-template-columns: repeat(2, 1fr); } }
.gaccred .cell { background: var(--night); padding: 20px 18px; display: flex; flex-direction: column; gap: 7px; min-height: 140px; justify-content: center;
  text-decoration: none; color: inherit; position: relative; perspective: 800px; transition: box-shadow 0.18s ease; }
.gaccred a.cell.linked { cursor: pointer; }
.gaccred a.cell.linked:hover { box-shadow: 0 0 0 1px rgba(244,234,216,0.4) inset, 0 6px 18px rgba(0,0,0,0.35); }
/* Flipper structure mirrors .acc-wall: front face is the label, back is the cert thumb. */
.gaccred .flipper { position: relative; width: 100%; height: 100%; min-height: inherit;
  transform-style: preserve-3d; transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1); }
.gaccred a.cell.linked:hover .flipper { transform: rotateY(180deg); }
@media (prefers-reduced-motion: reduce) {
  .gaccred .flipper { transition: none; }
  .gaccred a.cell.linked:hover .flipper { transform: none; }
  .gaccred a.cell.linked:hover .face.back { display: block; }
}
.gaccred .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; gap: 7px; padding: 20px 18px; justify-content: center; }
.gaccred .face.back { transform: rotateY(180deg); background-color: var(--night);
  background-size: contain; background-position: center; background-repeat: no-repeat;
  background-origin: content-box; padding: 14px; }
/* Tiles without a flipper (no thumb) keep the original layout. */
.gaccred .cell > .face.front:only-child { position: relative; inset: auto; padding: 0; }
.gaccred .t { font-family: var(--d-display); font-weight: 700; text-transform: uppercase; font-size: 20px; line-height: 0.98; color: var(--ink-hi, #fffaf0); }
.gaccred .d { font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(244,234,216,0.6); line-height: 1.35; }

/* ===== mobile responsiveness fixes (audit findings) ===== */
/* Sticky-nav phone CTA — meets the 44×44px tap-target minimum on phone. */
@media (max-width: 720px) {
  .nav .phone { min-height: 44px; padding: 10px 16px; display: inline-flex; align-items: center; }
}
/* Nav overflow fix ≤480px: base .nav gap is 32px with 4 visible items
   (sunmark, logo, phone, burger) = 96px of gaps alone — pushed the burger
   ~26px off-canvas at 390px (audit-confirmed horizontal scroll). */
@media (max-width: 480px) {
  .nav { gap: 10px; padding-left: 14px; padding-right: 14px; }
  .nav .phone { font-size: 13px; padding: 9px 12px; letter-spacing: 0.02em; }
  .nav__burger { margin-left: 0; }
}
/* The 4-segment colour ribbon stacks 2×2 on phone instead of crammed strip. */
@media (max-width: 720px) {
  /* .bar is display:flex at desktop — must switch TO grid here or the
     grid-template-columns is a no-op and the 4 labels overflow the viewport
     (audit-confirmed horizontal scroll at 390px). */
  .gribbon .bar { display: grid; grid-template-columns: 1fr 1fr; height: auto; }
  .gribbon .bar .seg, .gribbon .seg { min-height: 56px; }
  .gribbon .legend { flex-direction: column; gap: 6px; }
}
/* Accreditation flip-tiles use :hover which never fires on touch. Add a tap
   trigger: tapping once flips, tapping again on the back navigates. We
   simulate this by toggling :focus-within (the cell is an <a>, so tap = focus). */
.gaccred a.cell.linked:focus-within .flipper { transform: rotateY(180deg); }
.acc-wall a.cell.linked:focus-within .flipper { transform: rotateY(180deg); }
/* Also: on coarse-pointer devices (touch), the flip happens on tap regardless. */
@media (hover: none) and (pointer: coarse) {
  .gaccred a.cell.linked:active .flipper,
  .acc-wall a.cell.linked:active .flipper { transform: rotateY(180deg); }
}

/* ===== footer legal strip ===== */
.foot-legal { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(244,234,216,0.06);
  font-size: 12.5px; color: rgba(244,234,216,0.62); display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center; }
.foot-legal a { color: inherit; text-decoration: none; }
.foot-legal a:hover { color: var(--ink, #f4ead8); text-decoration: underline; }
.foot-legal span { opacity: 0.5; }

/* ===== news article CTA callout box ===== */
.article-body .cta-callout { background: rgba(232,116,44,0.10); border: 1px solid rgba(232,116,44,0.45);
  border-radius: 6px; padding: clamp(22px, 3vw, 32px); margin: clamp(24px, 4vw, 40px) 0; }
.article-body .cta-callout p:first-child { font-size: 18px; line-height: 1.55; color: var(--ink, #f4ead8); margin-top: 0; }
.article-body .cta-callout strong { color: var(--ink, #f4ead8); }
.article-body .cta-callout a { color: var(--m-orange); font-weight: 600; }

/* ===== pillar FAQ (per-service expandable Q&A — feeds FAQPage schema) ===== */
.pfaq { display: grid; gap: 12px; }
.pfaq__item { background: var(--paper, #161d36); border: 1px solid var(--line, rgba(244,234,216,0.18));
  border-radius: 4px; padding: 18px 22px; transition: border-color 0.15s ease; }
.pfaq__item[open] { border-color: rgba(232,116,44,0.45); }
.pfaq__item summary { list-style: none; cursor: pointer; font-family: var(--d-display, system-ui);
  font-weight: 600; font-size: clamp(16px, 1.5vw, 19px); padding-right: 30px; position: relative;
  color: var(--ink, #f4ead8); }
.pfaq__item summary::-webkit-details-marker { display: none; }
.pfaq__item summary::after { content: '+'; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%); color: var(--m-orange); font-family: var(--d-display, sans-serif);
  font-weight: 800; font-size: 24px; transition: transform 0.18s ease; }
.pfaq__item[open] summary::after { content: '−'; }
.pfaq__answer { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(244,234,216,0.10);
  color: var(--ink-2, rgba(244,234,216,0.74)); font-size: 15.5px; line-height: 1.6; }
.pfaq__answer strong { color: var(--ink, #f4ead8); font-weight: 700; }

/* ===== sister-company card on homepage: BS brand mark on the left ===== */
.gsister-logo { width: clamp(110px, 14vw, 170px); height: auto; flex-shrink: 0; display: block; margin-right: clamp(18px, 2.5vw, 32px); }
@media (max-width: 720px) { .gsister-logo { margin-bottom: 14px; margin-right: 0; } }

/* ===== homepage quick-capture form ===== */
.gquick { padding-top: clamp(60px, 7vw, 90px); padding-bottom: clamp(40px, 5vw, 70px); }
.gquick__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); align-items: start;
  background: rgba(244,234,216,0.04); border: 1px solid rgba(244,234,216,0.10); border-radius: 4px;
  padding: clamp(28px, 4vw, 48px); }
@media (max-width: 880px) { .gquick__inner { grid-template-columns: 1fr; } }
.gquick__lead .gh2 { font-size: clamp(36px, 4.5vw, 56px); margin-top: 14px; margin-bottom: 16px; color: var(--ink-hi, #fffaf0); }
.gquick__sub { color: rgba(244,234,216,0.74); font-size: 16px; line-height: 1.5; max-width: 38ch; }
.gquick__form { display: grid; gap: 14px; }
.gquick__field { display: flex; flex-direction: column; gap: 6px; }
.gquick__field > span { font-size: 13px; font-weight: 600; color: rgba(244,234,216,0.85); text-transform: uppercase; letter-spacing: 0.06em; }
.gquick__field input { background: rgba(244,234,216,0.06); border: 1px solid rgba(244,234,216,0.18);
  border-radius: 4px; color: #f4ead8; font: inherit; font-size: 16px; padding: 13px 14px; transition: border-color 0.15s ease; }
.gquick__field input:focus { outline: none; border-color: var(--m-orange); background: rgba(244,234,216,0.08); }
.gquick__field input::placeholder { color: rgba(244,234,216,0.40); }
.gquick__form .btn { justify-self: start; margin-top: 6px; }
.gquick__sla { color: rgba(244,234,216,0.52); font-size: 13px; margin: 0; }

/* utility */
.center-narrow { max-width: 760px; }


/* Round-2 audit: coloured closing bands failed AA — solid white body copy,
   near-opaque kickers and stronger ghost borders on every .band. */
.band .body, .band p.body { color: #fff !important; }
.band .kicker { color: rgba(255,255,255,0.95) !important; }
.band .btn.ghost { border-color: rgba(255,255,255,0.9); }


/* Skip-to-content (WCAG 2.4.1) — visually hidden until keyboard focus. */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--m-green, #3D8E2E); color: #fff; padding: 12px 20px;
  font-weight: 700; text-decoration: none; }
.skip-link:focus { left: 0; }

/* ===== touch devices: no sticky card hovers =====
   Companion to the block in gemini-base.css — same iOS tap-applies-:hover
   quirk, covering this layer's cards. Selectors mirror the hover rules
   above, including the night-skin-prefixed ones (higher specificity than a
   bare .svc:hover, so they must be repeated here to be beaten). */
@media (hover: none) {
  .gsvc:hover, .gclient--linked:hover, .gsister:hover { background: transparent; }
  html[data-skin="night"] .svc:hover,
  html[data-skin="night"] .svc-detail.link:hover { background: transparent; }
  .gsector:hover { background: var(--night); }
  .kid:hover { background: var(--paper); transform: none; box-shadow: none; }
  .acc-pillar:hover, .acc-sibling:hover, .sec-card:hover { background: var(--paper); }
  a.cdir-cell:hover { background: var(--paper); box-shadow: none; }
  /* flip-on-hover accreditation tiles: a tap flips them and the flip then
     sticks after navigating back — keep the flip for real pointers and
     keyboard focus only. */
  .gaccred a.cell.linked:hover .flipper { transform: none; }
}

/* --- set-back page imagery (2026-07-29) ------------------------------------
   Hero underlay: image sits BEHIND the nightband gradient at low opacity,
   masked to the right so the headline column stays fully legible. Inset:
   a modest editorial image under the kicker column of a body section. */
.p-hero.nightband { position: relative; overflow: hidden; }
.p-hero.nightband .hero-img { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.p-hero.nightband .hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%;
  opacity: 0.66; filter: saturate(0.98) brightness(1.12); }
.p-hero.nightband .hero-img::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, #0d1226 12%, rgba(13,18,38,0.32) 46%, rgba(13,18,38,0.02) 100%); }
.p-hero.nightband > *:not(.hero-img) { position: relative; z-index: 1; }
.intro2 .inset-img { display: block; width: 100%; max-width: 340px; margin-top: 22px;
  border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover;
  box-shadow: 0 18px 44px rgba(0,0,0,0.4); border: 1px solid rgba(244,234,216,0.10); }
@media (max-width: 900px) { .intro2 .inset-img { max-width: 100%; aspect-ratio: 16 / 9; } }

/* ── In-copy links (2026-08-31) ──────────────────────────────────────────────
   Prose links (.body, .lede, FAQs, covers lists, case notes, article bodies)
   never had a colour rule, so they rendered browser-default blue/purple on
   the night skin. House accent orange with a soft underline instead. Links
   inside coloured CTA bands stay inherit so they read on green/orange. */
.body a, .lede a, .pfaq a, .acc-covers a, .case-note a, .article-body a, .cs a {
  color: var(--m-orange, #E8742C); font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px;
  text-decoration-color: rgba(232,116,44,0.45);
}
.body a:hover, .lede a:hover, .pfaq a:hover, .acc-covers a:hover,
.case-note a:hover, .article-body a:hover, .cs a:hover {
  text-decoration-color: var(--m-orange, #E8742C);
}
.band .body a, .band .lede a { color: inherit; text-decoration-color: rgba(255,255,255,0.5); }

/* Home sector grid: featured-first with a show-all toggle (desktop/tablet). */
.gsector-toggle { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; margin-top: 22px; }
.gsector-toggle button { cursor: pointer; }
.gsector-all { font-family: var(--d-ui); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; color: rgba(244,234,216,0.74); text-decoration: none; }
.gsector-all:hover { color: var(--m-orange); }
@media (max-width: 700px) { .gsector-toggle { display: none; } }
/* .gsector sets display:flex, which out-specifies the UA [hidden] rule —
   without this the show-all toggle's hidden tiles never actually hide. */
.gsector[hidden] { display: none; }

/* ── Case-study media: photo grid + click-to-play video (2026-10-06) ─────────
   Peterborough Court carries third-party photography and a client video.
   The video is a poster + button until pressed, so no YouTube script, iframe
   or cookie loads on page view; the iframe is youtube-nocookie on click. */
.cs-media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.cs-media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.4); border: 1px solid rgba(244,234,216,0.10); }
.cs-media img.top { object-position: 50% 28%; }
.cs-credit { font-size: 13px; opacity: 0.66; margin-top: 12px; }
.vid { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  background: #0d1226; box-shadow: 0 18px 44px rgba(0,0,0,0.4); border: 1px solid rgba(244,234,216,0.10); }
.vid img, .vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid img { object-fit: cover; }
.vid-play { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0;
  background: rgba(13,18,38,0.18); color: #fff; cursor: pointer; display: grid; place-items: center; }
.vid-play:hover, .vid-play:focus-visible { background: rgba(13,18,38,0.32); }
.vid-play span { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%;
  background: var(--m-orange, #E8742C); box-shadow: 0 10px 30px rgba(0,0,0,0.45); }
.vid-play svg { width: 30px; height: 30px; margin-left: 4px; fill: #fff; }
.vid-cap { font-size: 14px; opacity: 0.8; margin-top: 12px; }
@media (max-width: 640px) { .cs-media { grid-template-columns: 1fr; } }

/* ── Mobile call bar (2026-10-19) ────────────────────────────────────────────
   Fixed bottom bar on small screens only: tap-to-call plus a quote link.
   The 24/7 answered phone line is the strongest converter in the trade. */
.mcall { display: none; }
@media (max-width: 760px) {
  .mcall { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    gap: 1px; background: rgba(13,18,38,0.6); backdrop-filter: blur(8px);
    border-top: 1px solid rgba(244,234,216,0.18);
    padding-bottom: env(safe-area-inset-bottom); }
  .mcall a { flex: 1; text-align: center; padding: 14px 8px; font-weight: 700;
    font-size: 15px; text-decoration: none; letter-spacing: 0.02em; }
  .mcall__ring { background: var(--m-green-cta, #2f7223); color: #fff; }
  .mcall__enq { background: #10162c; color: var(--m-orange, #E8742C); }
  body { padding-bottom: 58px; }
}

/* Shared data table for articles and body copy (2026-10-19): the AI-era
   extractability standard says every money page carries a table. */
.data-table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 8px 0 4px; }
.data-table th { text-align: left; padding: 11px 16px 11px 0; border-bottom: 2px solid rgba(244,234,216,0.85);
  font-family: var(--d-display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 13px; }
.data-table td { padding: 11px 16px 11px 0; border-bottom: 1px solid rgba(244,234,216,0.18); vertical-align: top; }
