/* ==========================================================================
   Hype5it.com — Programme 1.2
   Design tokens + components. Editable source. Fonts: Instrument Serif, Inter (SIL OFL, bundled in ./fonts).
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root{
  /* colour — paper & ink (official brand ink #1f1d1b, warm grey #625d58, teal #5cc1cf) */
  --paper:#f5f2ec; --paper-2:#ece8e0; --paper-3:#e3ded4; --white:#ffffff;
  --ink:#1f1d1b; --ink-2:#625d58; --ink-3:#76706a; --rule:#d9d4cb; --rule-strong:#1f1d1b;
  --teal:#5cc1cf; --teal-ink:#1b6b73; --teal-wash:#e4f3f5; --teal-line:#bfe3e8;
  --ok:#2f6b3a; --ok-wash:#e6f1e7; --err:#a63a2b; --err-wash:#fbe9e5; --warn-ink:#7a4f05; --warn-wash:#fbf1d9;
  /* type */
  --serif:"Instrument Serif", Georgia, "Times New Roman", serif;
  --sans:"Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-display:88px; --fs-display-2:64px; --fs-h2:52px; --fs-h3:34px; --fs-h4:24px; --fs-lede:21px; --fs-body:17px; --fs-small:15px; --fs-caption:13.5px; --fs-eyebrow:12px;
  --lh-tight:.98; --lh-heading:1.04; --lh-body:1.55;
  /* layout */
  --max:1280px; --gutter:40px; --gap:24px; --section:96px; --section-s:64px;
  /* the sticky header (.nav 72 px + its rule) and the sub-navigation stuck under it (section 15); --bar-h is the
     WordPress toolbar of signed-in users (style.css) */
  --header-h:73px; --subnav-h:56px;
  /* radii, lines, shadow */
  --r-s:6px; --r-m:10px; --r-l:14px; --r-pill:999px; --line:1px;
  --shadow-frame:0 30px 80px -40px rgba(31,29,27,.35);
  /* motion */
  --t-fast:160ms; --t-med:320ms; --ease:cubic-bezier(.2,.7,.2,1);
  /* dark surfaces (the CTA band's palette): the scrolled header and dark or image sections swap the tokens below
     (section 24); --fixed-* keep the light-palette values for what stays light inside them */
  --dark-ink-2:#c9c3ba; --dark-ink-3:#a8a29a; --dark-rule:#3b3733;
  --fixed-ink:var(--ink); --fixed-paper:var(--paper); --fixed-ink-2:var(--ink-2); --fixed-ink-3:var(--ink-3); --fixed-rule:var(--rule); --fixed-teal-ink:var(--teal-ink);
}
@media (max-width:700px){
  :root{--fs-display:50px; --fs-display-2:42px; --fs-h2:38px; --fs-h3:28px; --fs-h4:21px; --fs-lede:18px; --fs-body:16.5px; --gutter:20px; --section:56px; --section-s:40px; --gap:16px; --header-h:61px}
}

/* ---------- 2. Base ---------- */
*{box-sizing:border-box} html,body{margin:0}
html{scroll-behavior:smooth} @media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:var(--fs-body);line-height:var(--lh-body);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;overflow-x:clip}
/* html clips too, so that body's clip applies to body itself (full window width) instead of passing to the viewport:
   a wide hero or a stretched section may then leave main (see 7b and 24) without any horizontal scrolling. */
html{overflow-x:clip}
main{overflow-x:clip}
a{color:inherit;text-decoration:none}
a.link{color:var(--teal-ink);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
a.link:hover{text-decoration-thickness:2px}
img{max-width:100%;height:auto;display:block}
:focus-visible{outline:2px solid var(--teal-ink);outline-offset:3px;border-radius:3px}
.skip{position:absolute;left:-999px;top:8px;background:var(--ink);color:var(--paper);padding:10px 14px;border-radius:var(--r-s);z-index:99}
.skip:focus{left:8px}
.wrap{max-width:var(--max);margin:0 auto;padding:0 var(--gutter)}
.serif{font-family:var(--serif);font-weight:400;letter-spacing:-.01em}
.eyebrow{font-size:var(--fs-eyebrow);letter-spacing:.14em;text-transform:uppercase;color:var(--ink-2);font-weight:600}
.eyebrow.teal{color:var(--teal-ink)}
.rule{border:0;border-top:var(--line) solid var(--rule);margin:0}
.rule.strong{border-top-color:var(--ink)}
.muted{color:var(--ink-2)} .small{font-size:var(--fs-small)} .caption{font-size:var(--fs-caption);color:var(--ink-3)}
code,.code{font-family:var(--mono);font-size:.86em;background:var(--white);border:1px solid var(--rule);padding:1px 6px;border-radius:4px;color:var(--ink)}
h1,h2,h3,h4{margin:0;font-weight:400}
h1{font-family:var(--serif);font-size:var(--fs-display);line-height:var(--lh-tight);letter-spacing:-.02em}
h2{font-family:var(--serif);font-size:var(--fs-h2);line-height:var(--lh-heading);letter-spacing:-.015em}
h3{font-family:var(--serif);font-size:var(--fs-h3);line-height:1.1}
h4{font-family:var(--serif);font-size:var(--fs-h4);line-height:1.15}
h1 em,h2 em,h3 em{font-style:italic;color:var(--teal-ink)}
p{margin:0 0 1em} p:last-child{margin-bottom:0}
.lede{font-size:var(--fs-lede);line-height:1.45;color:var(--ink-2);max-width:620px}

/* ---------- 3. Prototype notice (design prototype only — remove at implementation) ---------- */
.proto{background:var(--warn-wash);color:var(--warn-ink);font-size:13px;line-height:1.4;border-bottom:1px solid #ead9b3}
.proto .wrap{display:flex;gap:16px;align-items:center;justify-content:space-between;padding-top:8px;padding-bottom:8px}
.proto b{font-weight:700}
.proto button{background:transparent;border:1px solid currentColor;color:inherit;border-radius:var(--r-pill);padding:4px 10px;font:600 12px var(--sans);cursor:pointer;white-space:nowrap}
.proto[hidden]{display:none}

/* ---------- 4. Buttons & chips ---------- */
.btn{display:inline-flex;align-items:center;gap:10px;white-space:nowrap;padding:14px 22px;border-radius:var(--r-pill);font-weight:600;font-size:15px;line-height:1;border:1px solid var(--ink);background:transparent;color:var(--ink);cursor:pointer;font-family:var(--sans);transition:background var(--t-fast) var(--ease),color var(--t-fast) var(--ease),transform var(--t-fast) var(--ease)}
.btn:hover{transform:translateY(-1px)} .btn:active{transform:none}
.btn.primary{background:var(--ink);color:var(--paper)}        /* software actions */
.btn.primary:hover{background:#000}
.btn.service{background:var(--teal-ink);color:var(--white);border-color:var(--teal-ink)}  /* service actions */
.btn.service:hover{background:#155960}
/* the CTA band's service button (teal, ink text) as a modifier of its own: the header's "Contact us" */
.btn.teal,.band-cta .btn.service{background:var(--teal);color:var(--fixed-ink);border-color:var(--teal)}
.btn.ghost{background:transparent} .btn.ghost:hover{background:var(--paper);color:var(--ink)}
.btn.sm{padding:10px 16px;font-size:14px}
.btn .arr{font-family:var(--serif);font-size:20px;line-height:0;margin-left:2px}
.btn[aria-disabled="true"]{opacity:.55;cursor:not-allowed}
.chip{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border:1px solid var(--rule);border-radius:var(--r-pill);font-size:12.5px;font-weight:600;color:var(--ink-2);background:var(--white);white-space:nowrap}
.chip i{width:7px;height:7px;border-radius:50%;background:var(--teal);display:inline-block}
.chip.grey i{background:var(--ink-3)}
.chips{display:flex;gap:8px;flex-wrap:wrap}
@media (max-width:700px){.chip{white-space:normal;text-align:left}}

/* ---------- 5. Header ---------- */
/* Two states: paper-2 at the top of the page; ink once the page is scrolled (.scrolled, set by site.js with an
   IntersectionObserver — no scroll listener; without JavaScript the header keeps the first state). The scrolled
   header is a dark surface (section 24): the tokens swap, so links, buttons, the menu and focus follow; only colours
   and the two stacked logos' opacity change, never a size. */
.site-header{position:sticky;top:0;background:var(--paper-2);color:var(--ink);z-index:9;border-bottom:var(--line) solid var(--rule);transition:background-color var(--t-med) var(--ease),color var(--t-med) var(--ease),border-color var(--t-med) var(--ease)}
.site-header.scrolled{background:var(--fixed-ink);border-bottom-color:var(--fixed-ink)}
.nav{display:flex;align-items:center;justify-content:space-between;height:72px;gap:20px}
.logo{display:flex;align-items:center;position:relative;flex-shrink:0}
.logo img{height:50px;width:auto;max-width:none;margin-left:-8px;flex-shrink:0}
.logo .logo-neg{position:absolute;left:0;top:0;opacity:0}
.site-header .logo img{transition:opacity var(--t-med) var(--ease)}
.site-header.scrolled .logo .logo-pos{opacity:0} .site-header.scrolled .logo .logo-neg{opacity:1}
.nav-list{display:flex;gap:28px;list-style:none;margin:0;padding:0;font-size:15px;font-weight:500}
.nav-list a{padding:6px 0;border-bottom:2px solid transparent}
.nav-list a[aria-current="page"]{border-bottom-color:var(--ink)}
.nav-actions{display:flex;gap:10px;align-items:center}
.nav-actions .btn{padding:11px 18px;font-size:14px}
.site-header.scrolled .btn.ghost:hover{background:var(--fixed-paper);color:var(--fixed-ink)}
.menu-btn{display:none;border:1px solid var(--ink);background:transparent;color:inherit;border-radius:var(--r-pill);padding:9px 14px;font:600 14px var(--sans);cursor:pointer}
/* Dropdowns (0.4.4): Help and About list their page's sections. Above 1024 px a light panel under the item — opened by
   its button (site.js: aria-expanded, one at a time, Escape / a click elsewhere / the focus leaving closes it), and on
   hover with a pointer (Escape hides it until the pointer leaves); without JavaScript, also while focus is inside. The
   panel keeps the light palette on the scrolled (dark) header. In the small-screen menu the sections are listed,
   indented, under their item. */
.nav-list > li{position:relative;display:flex;align-items:center}
.sub-btn{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;margin:0 -6px 0 2px;padding:0;border:0;border-radius:var(--r-s);background:transparent;color:inherit;cursor:pointer}
.sub-btn svg{display:block;transition:transform var(--t-fast) var(--ease)}
.has-sub.open .sub-btn svg{transform:rotate(180deg)}
.sub{display:none;margin:0;padding:0;list-style:none}
@media (min-width:1025px){
  .sub{position:absolute;top:calc(100% + 18px);left:-14px;z-index:10;width:320px;padding:8px;background:var(--white);border:1px solid var(--fixed-rule);border-radius:var(--r-m);box-shadow:0 24px 48px -24px rgba(31,29,27,.35);--ink:var(--fixed-ink);--ink-2:var(--fixed-ink-2);--rule:var(--fixed-rule);--teal-ink:var(--fixed-teal-ink);color:var(--ink)}
  .sub::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:22px}
  .has-sub.open > .sub,.no-js .has-sub:focus-within > .sub{display:block}
  .nav-list .sub a{display:grid;gap:2px;padding:10px 12px;border:0;border-radius:var(--r-s);font-weight:400}
  .nav-list .sub a:hover{background:var(--fixed-paper)}
  .sub b{font-size:15px;font-weight:600}
  .sub span{font-size:13px;line-height:1.35;color:var(--ink-2)}
}
@media (min-width:1025px) and (hover:hover){.has-sub:hover:not(.hover-off) > .sub{display:block}}
@media (prefers-reduced-motion:reduce){.sub-btn svg{transition:none}}
@media (max-width:1024px){
  .nav-list{display:none} .menu-btn{display:inline-flex}
  .nav-actions .btn.ghost{display:none}
  .site-header.open .nav-list{display:grid;position:absolute;left:0;right:0;top:100%;background:var(--paper);border-bottom:1px solid var(--rule);padding:12px var(--gutter) 18px;gap:4px;max-height:calc(100vh - var(--header-h) - var(--bar-h, 0px));overflow-y:auto}
  .site-header.open .nav-list a{display:block;padding:10px 0;border-bottom:1px solid var(--rule);font-size:16px}
  .nav-list > li{display:block}
  .sub-btn{display:none}
  .site-header.open .sub{display:grid;gap:4px;padding:4px 0 0 16px}
  .site-header.open .nav-list .sub a{font-size:15px}
  .sub b{font-weight:400}
  .sub span{display:none}
}
@media (max-width:700px){.nav{height:60px} .logo img{height:36px} .nav-actions .btn{padding:10px 14px;font-size:13.5px}}

/* ---------- 6. Sections & grids ---------- */
.section{padding:var(--section) 0}
.section.tight{padding-top:0}
.section.band{background:var(--paper-2);border-radius:18px;padding-left:48px;padding-right:48px}
@media (max-width:700px){.section.band{padding-left:20px;padding-right:20px;border-radius:14px}}
.sec-head{display:grid;grid-template-columns:2fr 3fr;gap:48px;align-items:end;margin-bottom:48px}
.sec-head h2{margin-top:12px}
.sec-head p{font-size:18px;color:var(--ink-2);margin:0;max-width:560px}
/* 0.4.8 (owner, 3 November): the intro paragraph starts on a column line of what follows it — the second column of a
   two-column grid, the third of a four-column one, the last of a three-column one. --sh-p is the width from that line
   to the right edge; anything else below (a figure, a table) gets the two-column line. */
.sec-head{--sh-p:calc((100% - var(--gap)) / 2);grid-template-columns:minmax(0,1fr) var(--sh-p);column-gap:var(--gap)}
.sec-head:has(+ :is(.grid-3,.paths,.comps,.rules)){--sh-p:calc((100% - 2 * var(--gap)) / 3)}
.sec-head:has(+ .plain){--sh-p:calc((100% - 56px) / 3)}
.sec-head:has(+ .cast){--sh-p:calc((100% - 64px) / 2)}
.sec-head:has(+ .faq){--sh-p:calc((100% - 48px) / 2)}
.sec-head:has(+ .statuses){--sh-p:calc((100% - 20px) / 2)}
.sec-head:has(+ .scope){--sh-p:calc((100% - 14px) / 2)}
.sec-head:has(+ .pair){--sh-p:calc(50% - 48px)}
.sec-head:has(+ .enq){--sh-p:calc((100% - 56px) * 7 / 12)}
@media (max-width:1024px){.sec-head:has(+ :is(.comps,.pair,.enq)){--sh-p:calc((100% - var(--gap)) / 2)}}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:var(--gap)}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--gap)}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--gap)}
@media (max-width:1024px){.grid-4{grid-template-columns:1fr 1fr}}
@media (max-width:700px){.sec-head{grid-template-columns:1fr;gap:14px;margin-bottom:28px} .grid-2,.grid-3,.grid-4{grid-template-columns:1fr}}

/* ---------- 7. Hero ---------- */
.hero{padding:88px 0 56px;display:grid;grid-template-columns:7fr 5fr;gap:64px;align-items:end}
.hero .lede{margin:0 0 34px}
.hero h1{margin:18px 0 28px}
.ctas{display:flex;gap:14px;flex-wrap:wrap;align-items:center}
.ctas .note{font-size:13.5px;color:var(--ink-3);margin-left:4px}
.programme{border-top:1px solid var(--ink);padding-top:18px}
.programme .eyebrow{margin-bottom:14px}
.programme dl{margin:0;display:grid;grid-template-columns:auto 1fr;gap:10px 18px;font-size:15px}
.programme dt{color:var(--ink-3)} .programme dd{margin:0;font-weight:500}
.programme dd .serif{font-size:22px;line-height:1;display:inline-block}
.programme .chips{margin-top:16px}
@media (max-width:700px){.hero{grid-template-columns:1fr;gap:36px;padding:44px 0 32px} .hero h1{margin:14px 0 20px}}

/* ---------- 8. Product frames (screenshot art direction) ---------- */
.frame{margin:0;position:relative}
.frame .shot{border:1px solid var(--rule);border-radius:var(--r-m);overflow:hidden;background:var(--white);box-shadow:var(--shadow-frame)}
.frame.flat .shot{box-shadow:none}
.frame .bar{height:34px;border-bottom:1px solid var(--rule);display:flex;align-items:center;gap:8px;padding:0 14px;background:#faf8f4}
.frame .bar i{width:10px;height:10px;border-radius:50%;background:var(--rule);display:block}
.frame .bar span{font-size:12px;color:var(--ink-3);margin-left:8px;font-family:var(--mono)}
.frame .bar .right{margin-left:auto;font-size:11.5px;color:var(--ink-3);font-family:var(--sans)}
.frame.public .bar{background:var(--ink);border-bottom-color:#3b3733} .frame.public .bar i{background:#4a4642} .frame.public .bar span,.frame.public .bar .right{color:#a8a29a}
.frame img{display:block;width:100%}
.frame figcaption{display:flex;justify-content:space-between;gap:20px;font-size:var(--fs-caption);color:var(--ink-3);padding:14px 4px 0}
.frame figcaption b{color:var(--ink-2);font-weight:600}
.frame.app .bar::before{content:"";width:14px;height:14px;background:url("../brand/official-hype5-icon-hand-square.svg") center/contain no-repeat;margin-right:4px}
/* numbered callouts under a frame (adopted from Direction 2) */
.callouts{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border:1px solid var(--rule);border-top:0;background:var(--white);border-radius:0 0 var(--r-m) var(--r-m);overflow:hidden}
.frame.with-callouts .shot{border-radius:var(--r-m) var(--r-m) 0 0}
.callouts > div{padding:18px 20px;border-right:1px solid var(--rule)} .callouts > div:last-child{border-right:0}
.callouts .n{font-family:var(--serif);color:var(--teal-ink);font-size:22px;line-height:1;margin-bottom:8px}
.callouts b{display:block;font-size:14.5px;margin-bottom:4px;font-weight:600}
.callouts p{margin:0;font-size:13.5px;color:var(--ink-2)}
.pin{position:absolute;width:26px;height:26px;border-radius:50%;background:var(--teal-ink);color:#fff;font:600 12px/26px var(--sans);text-align:center;box-shadow:0 0 0 3px rgba(245,242,236,.9)}
@media (max-width:1024px){.callouts{grid-template-columns:1fr 1fr} .callouts > div:nth-child(2){border-right:0} .callouts > div:nth-child(n+3){border-top:1px solid var(--rule)}}
/* placeholder for captures still to be made (prototype only) */
.capture-pending{border:1px dashed var(--ink-3);border-radius:var(--r-m);padding:28px;background:repeating-linear-gradient(135deg,transparent 0 12px,rgba(31,29,27,.03) 12px 24px);color:var(--ink-2);font-size:14px;min-height:220px;display:flex;flex-direction:column;justify-content:center;gap:6px}
.capture-pending b{color:var(--ink)}

/* ---------- 9. Manage → Publish pairs ---------- */
.pair{display:grid;grid-template-columns:1fr auto 1fr;gap:24px;align-items:center}
.pair .arrow{font-family:var(--serif);font-size:44px;color:var(--teal-ink);line-height:1;text-align:center;width:48px}
.pair .label{font-size:12.5px;letter-spacing:.1em;text-transform:uppercase;font-weight:600;color:var(--ink-2);margin:0 0 10px;display:flex;gap:10px;align-items:center}
.pair .label i{width:8px;height:8px;border-radius:50%;background:var(--ink);display:inline-block}
.pair .label.pub i{background:var(--teal)}
.pair + .pair{margin-top:40px}
.pair.small .frame .shot{box-shadow:none}
.carry{margin-top:14px;font-size:14px;color:var(--ink-2);line-height:1.5}
.carry b{color:var(--ink);font-weight:600}
@media (max-width:1024px){.pair{grid-template-columns:1fr} .pair .arrow{transform:rotate(90deg);width:auto;margin:-6px auto}}

/* ---------- 10. Cast list (feature leaders) ---------- */
.cast{display:grid;grid-template-columns:1fr 1fr;gap:0 64px}
.cast .row{display:grid;grid-template-columns:1fr auto 1fr;align-items:baseline;gap:12px;padding:18px 0;border-bottom:1px solid var(--rule)}
.cast .row .role{font-family:var(--serif);font-size:26px}
.cast .row .role:has(.icon){padding-left:38px;text-indent:-38px}
.cast .row .role .icon{display:inline-block;width:26px;height:26px;vertical-align:-4px;margin-right:12px;text-indent:0}
.cast .row .dots{border-bottom:1px dotted var(--ink-3);height:1px;transform:translateY(-6px);min-width:40px;width:100%}
.cast .row .who{font-size:15px;color:var(--ink-2);text-align:right}
@media (max-width:700px){.cast{grid-template-columns:1fr} .cast .row .role{font-size:21px} .cast .row .role:has(.icon){padding-left:32px;text-indent:-32px} .cast .row .role .icon{width:22px;height:22px;vertical-align:-3px;margin-right:10px}}

/* ---------- 11. Cards ---------- */
.card{background:var(--white);border:1px solid var(--rule);border-radius:var(--r-l);padding:32px;display:flex;flex-direction:column;gap:16px}
.card h3{font-size:36px;line-height:1}
.card .kind{font-size:12.5px;color:var(--ink-3);font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.card p{color:var(--ink-2)}
.card .shot{margin-top:auto;border-radius:var(--r-s);overflow:hidden;border:1px solid var(--rule);background:var(--paper-2)}
.card .foot{display:flex;justify-content:space-between;align-items:center;font-size:14px;color:var(--ink-2);gap:12px;flex-wrap:wrap}
.card ul{margin:0;padding:0;list-style:none;display:grid;gap:10px;color:var(--ink-2);font-size:15.5px}
.card li::before{content:"\2014  ";color:var(--teal-ink)}
.card.teal{background:var(--teal-wash);border-color:var(--teal-line)}
.card.ink{background:var(--ink);color:var(--paper);border-color:var(--ink)} .card.ink p,.card.ink ul{color:#c9c3ba} .card.ink .kind{color:#a8a29a}
.together{background:var(--teal-wash);border:1px solid var(--teal-line);border-radius:var(--r-l);padding:28px 32px;display:grid;grid-template-columns:auto 1fr auto;gap:28px;align-items:center}
.together .serif{font-size:30px;line-height:1.1}
.together p{margin:0;color:var(--teal-ink)}
@media (max-width:700px){.card{padding:24px} .card h3{font-size:30px} .together{grid-template-columns:1fr;gap:14px;padding:22px}}

/* ---------- 12. Facts / spec tables (adopted from Direction 2, set on paper) ---------- */
.spec{border:1px solid var(--rule);border-radius:var(--r-m);overflow:hidden;background:var(--white)}
.spec .r{display:grid;grid-template-columns:220px 1fr 1fr;border-bottom:1px solid var(--rule)}
.spec .r:last-child{border-bottom:0}
.spec .r > div{padding:14px 20px;font-size:15px}
.spec .r > div + div{border-left:1px solid var(--rule)}
.spec .h{background:#faf8f4;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);font-weight:600}
.spec .k{color:var(--ink-2)}
.spec .yes::before{content:"\25CF  ";color:var(--teal-ink)} .spec .no{color:var(--ink-3)} .spec .no::before{content:"\2014  "}
.spec.two .r{grid-template-columns:260px 1fr}
.facts{display:grid;grid-template-columns:1fr 1fr;gap:14px 24px;font-size:14.5px}
.facts > div{border-top:1px solid var(--rule);padding-top:10px}
.facts span{display:block;color:var(--ink-3);font-size:12px;letter-spacing:.1em;text-transform:uppercase;margin-bottom:4px}
.facts .foot{grid-column:1/3;font-size:12.5px;color:var(--ink-3);border-top:0;padding-top:0}
@media (max-width:700px){.spec .r{grid-template-columns:1fr 1fr 1fr} .spec .r > div{padding:10px 10px;font-size:13px} .spec.two .r{grid-template-columns:1fr 1.4fr}}

/* status model */
.statuses{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.statuses > div{border:1px solid var(--rule);background:var(--white);border-radius:var(--r-m);padding:22px}
.statuses h4{margin:0 0 6px}
.statuses p{margin:0;font-size:14px;color:var(--ink-2)}
.statuses i{display:block;width:34px;height:3px;background:var(--teal);margin-bottom:14px}
.statuses .icon{display:block;width:30px;height:30px;color:var(--teal-ink);margin-bottom:12px}
/* Line icons (0.4.8, inc/icons.php): one colour, the text colour unless a component sets another. */
.icon{flex:none}
.card > .icon{display:block;width:30px;height:30px;margin-bottom:14px}
@media (max-width:1024px){.statuses{grid-template-columns:1fr 1fr}} @media (max-width:700px){.statuses{grid-template-columns:1fr 1fr;gap:12px} .statuses > div{padding:16px}}

/* ---------- 13. Three columns with top rule (“plain statements”) ---------- */
.plain{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.plain > div{border-top:2px solid var(--ink);padding-top:18px}
.plain h4{margin:0 0 8px}
.plain p{margin:0;color:var(--ink-2);font-size:15.5px}
@media (max-width:700px){.plain{grid-template-columns:1fr}}

/* ---------- 14. Product family strip (adapted from Direction 3; deliberately quiet) ---------- */
.family{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.family span{padding:8px 14px;border:1px dashed var(--ink-3);border-radius:var(--r-pill);font-size:13.5px;color:var(--ink-2)}
.family span.now{border:1px solid var(--ink);color:var(--ink);background:var(--white);font-weight:600}
.family .sep{border:0;padding:0;color:var(--ink-3);font-size:12px;letter-spacing:.1em;text-transform:uppercase;margin:0 6px}

/* ---------- 15. Sub-navigation (product pages) ----------
   Sticky: it stays under the header once the page has scrolled it there. site.js then adds .stuck (an
   IntersectionObserver on .subnav-mark, no scroll listener): paper-2 and its rule reach both window
   edges (a border image with a horizontal outset, which the links' own scrolling does not clip), the links stay in
   the content column. Without JavaScript it sticks on the page's paper. The quieter links are ink-2 (ink-3 is below
   4.5:1 on paper and on paper-2). Targets of its links scroll to just below it. */
.subnav{position:sticky;top:calc(var(--bar-h, 0px) + var(--header-h));z-index:8;background:var(--paper);display:flex;gap:28px;border-bottom:1px solid var(--rule);font-size:14.5px;font-weight:600;color:var(--ink-2);padding:18px 0 0;scrollbar-width:none}
.subnav.stuck{background:var(--paper-2);border-image:linear-gradient(to top, var(--rule) 1px, var(--paper-2) 1px) fill 0 / 0 / 0 100vmax}
/* the mark site.js puts before it: from far above the page down to the point where the sub-navigation sticks, so it
   leaves the window exactly then, also on a jump straight past that point (absolute at its static place: no space,
   no margin collapsing) */
.subnav-mark{position:absolute;width:1px;height:100000px;margin-top:calc(-100000px - var(--bar-h, 0px) - var(--header-h));visibility:hidden;pointer-events:none}
main:has(> .subnav) [id]{scroll-margin-top:calc(var(--bar-h, 0px) + var(--header-h) + var(--subnav-h) + 16px)}
main:has(> .subnav) .feature[id]{scroll-margin-top:calc(var(--bar-h, 0px) + var(--header-h) + var(--subnav-h) + 24px - 48px)}
main:has(> .subnav) .section:is(:not(.tight),.bg-white,.bg-dark,.bg-image)[id]{scroll-margin-top:max(0px, calc(var(--bar-h, 0px) + var(--header-h) + var(--subnav-h) + 24px - var(--section)))}
.subnav a{padding-bottom:14px;white-space:nowrap;border-bottom:2px solid transparent;margin-bottom:-2px}
/* 0.4.8: on wide screens the links sit on the rule (no overflow, so the 2px line is not clipped); where they do not all
   fit, the bar scrolls sideways and the line sits just above the rule, whole. */
@media (max-width:1279px){.subnav{overflow-x:auto} .subnav a{margin-bottom:0}}
.subnav a.on,.subnav a:hover{color:var(--ink);border-bottom-color:var(--ink)}
.crumb{font-size:13px;color:var(--ink-3);padding-top:28px}

/* product page feature rows */
.feature{display:grid;grid-template-columns:5fr 7fr;gap:56px;align-items:center;padding:72px 0;border-bottom:1px solid var(--rule)}
.feature.flip{grid-template-columns:7fr 5fr} .feature.flip > div:first-child{order:2}
.feature h2{font-size:44px;margin:10px 0 16px}
.feature p{color:var(--ink-2);margin:0 0 16px}
.feature ul{margin:0;padding:0;list-style:none;color:var(--ink-2);display:grid;gap:8px;font-size:15.5px}
.feature li::before{content:"\2014  ";color:var(--teal-ink)}
@media (max-width:1024px){.feature,.feature.flip{grid-template-columns:1fr;gap:24px;padding:48px 0} .feature.flip > div:first-child{order:0} .feature h2{font-size:34px}}

/* ---------- 16. Pathways (software / developer / service) ---------- */
.paths{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--gap)}
.paths .card{min-height:320px}
.paths .card .num{font-family:var(--serif);font-size:40px;color:var(--teal-ink);line-height:1}
.paths .card h3{font-size:30px}
.paths .card .btn{align-self:flex-start;margin-top:auto}
/* a card button (and the Migration hero's) wraps instead of leaving a narrow card or column (e.g. “Request a website
   assessment” at 701–1000 px and at 320 px); the leading and padding together keep a one-line button exactly as
   high as before, its text in the same place (whole pixels, so nothing below moves by a fraction) */
.card .btn,.phero .btn{max-width:100%;white-space:normal;line-height:17px;padding-top:13px;padding-bottom:13px}
.card .btn.sm{line-height:16px;padding-top:9px;padding-bottom:9px}
@media (max-width:700px){.paths{grid-template-columns:1fr} .paths .card{min-height:0}}

/* ---------- 17. CTA band ---------- */
.band-cta{background:var(--ink);color:var(--paper);border-radius:18px;padding:64px;display:grid;grid-template-columns:3fr 2fr;gap:48px;align-items:center}
.band-cta h2{margin:10px 0 18px;font-size:56px}
.band-cta p{color:#c9c3ba;margin:0 0 26px;font-size:18px;max-width:520px}
.band-cta .btn{border-color:var(--paper);color:var(--paper)} .band-cta .btn.primary{background:var(--paper);color:var(--ink)} /* .band-cta .btn.service: with .btn.teal (section 4) */
.band-cta .eyebrow{color:#a8a29a}
.band-cta .side{border-left:1px solid #3b3733;padding-left:40px;display:grid;gap:14px;font-size:15px;color:#c9c3ba}
.band-cta .side b{color:var(--paper);font-weight:600;display:block}
@media (max-width:1024px){.band-cta{grid-template-columns:1fr;padding:40px 32px} .band-cta .side{border-left:0;padding-left:0;border-top:1px solid #3b3733;padding-top:20px}}
@media (max-width:700px){.band-cta{padding:32px 24px;border-radius:14px} .band-cta h2{font-size:40px}}

/* ---------- 18. Forms (service enquiry) ---------- */
.form{display:grid;gap:18px}
.form .row{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}
.field{display:grid;gap:6px}
.field label{font-size:14px;font-weight:600}
.field label .opt{font-weight:400;color:var(--ink-3)}
.field .hint{font-size:13px;color:var(--ink-3)}
.field input,.field select,.field textarea{font:400 16px var(--sans);color:var(--ink);background:var(--white);border:1px solid var(--rule);border-radius:var(--r-s);padding:12px 14px;width:100%;transition:border-color var(--t-fast)}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--teal-ink);outline:2px solid var(--teal-ink);outline-offset:1px}
.field textarea{min-height:140px;resize:vertical}
.field.invalid input,.field.invalid select,.field.invalid textarea{border-color:var(--err);background:#fffaf9}
.field .error{display:none;font-size:13.5px;color:var(--err);font-weight:600}
.field.invalid .error{display:block}
.check{display:flex;gap:12px;align-items:flex-start;font-size:14.5px;color:var(--ink-2)}
.check input{width:20px;height:20px;margin:1px 0 0;accent-color:var(--teal-ink);flex:none}
.hp{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.captcha{border:1px dashed var(--ink-3);border-radius:var(--r-s);padding:12px 14px;font-size:13px;color:var(--ink-2);background:var(--paper)}
.alert{border-radius:var(--r-m);padding:16px 18px;font-size:15px;display:none;gap:10px}
.alert b{display:block;margin-bottom:4px}
.alert.err{background:var(--err-wash);border:1px solid #efc7bf;color:#5e2117}
.alert.ok{background:var(--ok-wash);border:1px solid #c6dec9;color:#1d4a26}
.alert.show{display:block;margin-bottom:20px}
.form-foot{display:flex;gap:16px;align-items:center;flex-wrap:wrap;font-size:13px;color:var(--ink-3)}
.form-privacy{margin:0;font-size:13px;color:var(--ink-2)}
.form [aria-busy="true"] .btn,.form[aria-busy="true"] button[type=submit]{opacity:.75;cursor:progress}
.success-panel{display:none;background:var(--white);border:1px solid var(--rule);border-radius:var(--r-l);padding:36px}
.success-panel.show{display:block}
.success-panel h3{margin-bottom:10px}
.success-panel ol{margin:12px 0 0;padding-left:20px;color:var(--ink-2);font-size:15.5px} .success-panel li{margin:6px 0}
@media (max-width:700px){.form .row{grid-template-columns:1fr}}

/* ---------- 19. FAQ ---------- */
.faq{display:grid;grid-template-columns:1fr 1fr;gap:0 48px}
.faq > div{padding:20px 0;border-bottom:1px solid var(--rule)}
.faq b{display:block;font-family:var(--serif);font-weight:400;font-size:22px;margin-bottom:6px}
.faq p{margin:0;color:var(--ink-2);font-size:15px}
@media (max-width:700px){.faq{grid-template-columns:1fr}}

/* ---------- 20. Steps ---------- */
.steps{counter-reset:s;display:grid;grid-template-columns:repeat(4,1fr);gap:var(--gap)}
.steps > div{counter-increment:s;background:var(--white);border:1px solid var(--rule);border-radius:var(--r-m);padding:22px}
.steps > div::before{content:counter(s,decimal-leading-zero);font-family:var(--serif);font-size:28px;color:var(--teal-ink);display:block;margin-bottom:10px;line-height:1}
.steps h4{font-family:var(--sans);font-size:16px;font-weight:600;margin:0 0 6px}
.steps p{margin:0;font-size:14px;color:var(--ink-2)}
@media (max-width:1024px){.steps{grid-template-columns:1fr 1fr}} @media (max-width:700px){.steps{grid-template-columns:1fr}}

/* ---------- 21. Footer ---------- */
/* paper-2, like the header; its lightest text uses --ink-2 there (--ink-3 is 4.0:1 on paper-2) */
.site-footer{padding:56px 0 48px;border-top:1px solid var(--rule);font-size:14px;color:var(--ink-2);background:var(--paper-2);--ink-3:var(--ink-2)}
.site-footer .cols{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1fr;gap:28px}
.site-footer h5{margin:0 0 12px;color:var(--ink);font-size:12.5px;letter-spacing:.1em;text-transform:uppercase}
.site-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.site-footer .legal{margin-top:40px;padding-top:20px;border-top:1px solid var(--rule);display:flex;justify-content:space-between;gap:16px;color:var(--ink-3);font-size:13px}
.site-footer .legal .demo-note{max-width:576px}
@media (max-width:700px){.site-footer .cols{grid-template-columns:1fr 1fr} .site-footer .legal{flex-direction:column;gap:8px}}

/* ---------- 22. Phone row ---------- */
.phones{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--gap)}
.phones{align-items:start} .phones figure{margin:0}
.phones .shot{border:1px solid var(--rule);border-radius:16px;overflow:hidden;background:var(--white)}
.phones figcaption{font-size:var(--fs-caption);color:var(--ink-3);padding-top:10px}
@media (max-width:700px){.phones{grid-template-columns:1fr 1fr;gap:12px}}

/* ---------- 23. Motion (reveal) — disabled under reduced motion ---------- */
.reveal{opacity:0;transform:translateY(10px);transition:opacity var(--t-med) var(--ease),transform var(--t-med) var(--ease)}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none} .btn{transition:none} .site-header,.site-header .logo img{transition:none}}
.no-js .reveal{opacity:1;transform:none}

.enq .aside li::before{content:none}

@media (max-width:700px){
  .frame .bar .right{display:none}
  .frame .bar span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .frame figcaption{flex-direction:column;gap:4px}
  .proto{font-size:12px} .proto .wrap{flex-direction:column;align-items:flex-start;gap:8px}
  .pair .label{margin-top:8px}
}

/* grid children must be allowed to shrink below their intrinsic (image) width */
.pair > *,.feature > *,.grid-2 > *,.grid-3 > *,.grid-4 > *,.comps > *,.lights > *,.journeys > *,.enq > *,.paths > *{min-width:0}
picture{display:block}
.frame .bar{min-width:0} .frame .bar span{min-width:0}

/* ==========================================================================
   Programme 1.2 — hero with owner-supplied device mockup + specifications strip
   ========================================================================== */
.hero12{display:grid;grid-template-columns:minmax(0,46fr) minmax(0,54fr);gap:24px;align-items:center;padding:36px 0 8px}
.hero12 .copy{padding:24px 0 32px}
.hero12 .copy h1{margin:16px 0 20px}
.hero12 .copy .lede{margin:0 0 28px}
.hero12 .copy .ctas .note{display:block;margin:12px 0 0}
.hero12 .media{position:relative;margin:-28px -110px -36px -40px;pointer-events:none}
.hero12 .media img{display:block;width:100%;height:auto}
.hero12 .media figcaption{position:absolute;left:52px;bottom:18px;font-size:12px;color:var(--ink-3);pointer-events:auto}
/* product hero: large serif title */
.hero12 .copy.product h1{font-size:92px}
.hero12 .copy.product h1 small{display:block;font-size:26px;color:var(--ink-2);letter-spacing:0;margin-top:14px;font-style:italic}
/* specifications strip — directly below the hero, above the sub-navigation */
.specs{border-top:1px solid var(--rule);padding:18px 16px 0;display:grid;grid-template-columns:repeat(6,1fr);gap:16px 24px}
.specs > div{min-width:0;font-size:14.5px;line-height:1.4}
.specs span:not(.prov){display:block;font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3);margin-bottom:6px}
.specs .foot{grid-column:1/-1;font-size:12.5px;color:var(--ink-3);padding:6px 0 18px;border-bottom:var(--line) solid var(--rule)}
.specs .prov{color:var(--ink-3);font-size:12.5px}
.specs.five{grid-template-columns:repeat(5,1fr)}
@media (max-width:1180px){.hero12 .media{margin:-20px -70px -24px -24px}}
@media (max-width:1024px){
  .hero12{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding-top:20px}
  .hero12 .copy.product h1{font-size:60px} .hero12 .copy.product h1 small{font-size:20px}
  .hero12 .media{margin:-6px -36px -4px -24px}
  .hero12 .media figcaption{position:static;padding:0 0 0 24px;margin-top:-18px}
  .specs,.specs.five{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:700px){
  .hero12{grid-template-columns:1fr;gap:0;padding:20px 0 0}
  .hero12 .copy{padding:0 0 8px}
  .hero12 .copy h1,.hero12 .copy.product h1{font-size:50px}
  .hero12 .copy.product h1 small{font-size:19px}
  .hero12 .media{margin:4px -28px -10px;width:calc(100% + 56px)}
  .hero12 .media figcaption{position:static;padding:0 28px 6px}
  .specs,.specs.five{grid-template-columns:1fr 1fr;gap:12px 16px;padding-top:14px}
}
@media (max-width:360px){.specs,.specs.five{grid-template-columns:1fr} .hero12 .copy h1,.hero12 .copy.product h1{font-size:40px} .nav-actions .btn{padding:9px 12px;font-size:13px} .logo img{height:30px}}
/* the specs strip directly under a wide hero's rule (the home page's “at a glance” strip, the product pages'
   specifications): in the content column, without a rule or side padding of its own */
.hero12.wide + .specs{margin-top:0;padding-left:0;padding-right:0;border-top:0}
.glance .eyebrow{margin-bottom:12px}

/* ---------- 7a. Text hero (service, Help, About and Pricing pages; 0.4.4: moved here from page-migration.css) ---------- */
.phero{padding:40px 0 48px;display:grid;grid-template-columns:7fr 5fr;gap:56px;align-items:end;border-bottom:var(--line) solid var(--rule)}
.phero h1{font-size:76px;margin:16px 0 22px}
.phero .lede{margin:0 0 30px}
@media (max-width:1024px){.phero{grid-template-columns:minmax(0,1fr);gap:28px;padding:20px 0 32px} .phero h1{font-size:56px}}
@media (max-width:700px){.phero h1{font-size:44px}}
/* the Help and About heroes' list of their page's sections (0.4.4): fine rules, a serif label, a line of description */
.hub{display:grid;border-top:var(--line) solid var(--rule)}
.hub a{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 16px;padding:14px 0;border-bottom:var(--line) solid var(--rule)}
.hub a::after{content:"\2192";grid-column:2;grid-row:1/3;align-self:center;font-family:var(--serif);font-size:22px;line-height:1;color:var(--teal-ink);transition:transform var(--t-fast) var(--ease)}
.hub b{font-family:var(--serif);font-weight:400;font-size:24px;line-height:1.15}
.hub span{font-size:14px;color:var(--ink-2)}
.hub a:hover b{color:var(--teal-ink)} .hub a:hover::after{transform:translateX(3px)}
@media (prefers-reduced-motion:reduce){.hub a::after{transition:none}}

/* ---------- 7b. Wide hero (home, product and service pages) ----------
   Wider than the content column by up to 10 % of it on each side (15 % until 0.4.3), never closer to the window edge than the page
   gutter (so it is as wide as the column below 1281 px); a rule underneath. A crumb above it stays in the content
   column. The artwork sits higher and further in at desktop widths, less so just above the tablet layout, and as in
   the other heroes below it; on phones it spans the window exactly. main lets it out (section 24); body still clips
   anything beyond the window. */
:is(.hero12,.phero).wide{--hero-bleed:min(10%, max(0px, (100vw - 100%) / 2 - var(--gutter)));margin-left:calc(-1 * var(--hero-bleed));margin-right:calc(-1 * var(--hero-bleed));border-bottom:var(--line) solid var(--rule)}
@media (min-width:1181px){.hero12.wide .media{margin-right:-70px;top:-30px;right:40px}}
@media (min-width:1025px) and (max-width:1180px){.hero12.wide .media{top:-16px;right:30px}}
@media (max-width:700px){.hero12.wide .media{margin-left:calc(-1 * var(--gutter));margin-right:calc(-1 * var(--gutter));width:calc(100% + 2 * var(--gutter))}}

/* ---------- 7c. Stretched hero ----------
   A wide hero (7b) whose background reaches the window edges, chosen in the template with
   hype5it_programme_hero_attributes() (inc/sections.php): the page's paper or white, with the rule underneath across
   the window; dark; or an image under the overlay — the backgrounds of section 24, which also gives dark and image
   heroes the dark-surface palette. The crumb above a stretched hero is hidden, and the hero takes its room at the
   top; the background is as tall as the hero, so the artwork stays inside it. */
:is(.hero12,.phero).stretched{position:relative;isolation:isolate;border-bottom:0}
:is(.hero12,.phero).stretched::before{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:calc(50% - 50vw);right:calc(50% - 50vw);pointer-events:none;border-bottom:var(--line) solid var(--rule)}
:is(.hero12,.phero).stretched.bg-white::before{background:var(--white)}
:is(.hero12,.phero).stretched:is(.bg-dark,.bg-image)::before{background-color:var(--fixed-ink);border-bottom:0}
.crumb:has(+ :is(.hero12,.phero).stretched){display:none}
.hero12.stretched{padding-top:64px;padding-bottom:56px}
.phero.stretched{padding-top:72px;padding-bottom:64px}
@media (min-width:1181px){.hero12.stretched .media{top:0}}
@media (min-width:1025px) and (max-width:1180px){.hero12.stretched .media{top:0}}
@media (max-width:1024px){.hero12.stretched{padding-top:48px;padding-bottom:40px} .phero.stretched{padding-top:48px;padding-bottom:48px}}
@media (max-width:700px){.hero12.stretched{padding-top:36px;padding-bottom:28px} .phero.stretched{padding-top:36px;padding-bottom:40px}}

/* ---------- 24. Section presentation ----------
   Two independent choices for a .section, made in the templates with hype5it_programme_section_attributes()
   (inc/sections.php): the width — .boxed (default: in the content column) or .stretched (the background and rules
   reach the window edges, the content keeps the column) — and the background — none (the page's paper), .bg-white,
   .bg-dark (the ink palette of the CTA band) or .bg-image (an image under an ink overlay; ink while there is no
   image). .ruled adds a thin rule above and below. A section without these classes looks exactly as before. */
main:has(.hero12.wide, .phero.wide, .subnav, .section.stretched){overflow-x:visible}
.section.bg-white,.section.bg-dark,.section.bg-image{padding-top:var(--section);padding-bottom:var(--section)}
.section:is(.bg-white,.bg-dark,.bg-image) + .section.tight{padding-top:var(--section)}
/* boxed: the background on the section itself, shaped like .section.band */
.section.boxed:is(.bg-white,.bg-dark,.bg-image){border-radius:18px;padding-left:48px;padding-right:48px}
.section.boxed.bg-white{background:var(--white)}
.section.boxed:is(.bg-dark,.bg-image){background-color:var(--fixed-ink)}
.section.boxed.ruled{border:var(--line) solid var(--rule)}
.section.boxed:is(.bg-white,.bg-dark,.bg-image) + .section.boxed:is(.bg-white,.bg-dark,.bg-image){margin-top:var(--gap)}
@media (max-width:700px){.section.boxed:is(.bg-white,.bg-dark,.bg-image){padding-left:20px;padding-right:20px;border-radius:14px}}
/* stretched: the background is a layer behind the content, as wide as the window (body clips the scrollbar's width) */
.section.stretched{position:relative;isolation:isolate}
.section.stretched::before{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:calc(50% - 50vw);right:calc(50% - 50vw);pointer-events:none}
.section.stretched.bg-white::before{background:var(--white)}
.section.stretched:is(.bg-dark,.bg-image)::before{background-color:var(--fixed-ink)}
.section.stretched.ruled::before{border-top:var(--line) solid var(--rule);border-bottom:var(--line) solid var(--rule)}
.section.stretched.ruled + .section.stretched.ruled::before{border-top:0}
/* image: --section-image (and --section-position / --section-position-s) come from the helper; the overlay keeps
   light text at 4.5:1 over any image. Without an image the overlay lies on ink. */
:is(.section,.hero12,.phero).bg-image{--section-overlay:rgba(31,29,27,.8)}
:is(.section,.hero12,.phero).bg-image.no-overlay{--section-overlay:transparent}
.section.boxed.bg-image,:is(.section,.hero12,.phero).stretched.bg-image::before{background-image:linear-gradient(var(--section-overlay),var(--section-overlay)),var(--section-image,none);background-size:cover;background-repeat:no-repeat;background-position:var(--section-position,center)}
@media (max-width:700px){.section.boxed.bg-image,:is(.section,.hero12,.phero).stretched.bg-image::before{background-position:var(--section-position-s,var(--section-position,center))}}
/* Dark surfaces — the scrolled header, dark and image sections and heroes: the light palette's tokens swap for the
   CTA band's, so text, rules, links, focus rings and buttons follow without rules of their own. */
.site-header.scrolled,:is(.section,.hero12,.phero):is(.bg-dark,.bg-image){--ink:var(--fixed-paper);--paper:var(--fixed-ink);--ink-2:var(--dark-ink-2);--ink-3:var(--dark-ink-3);--rule:var(--dark-rule);--rule-strong:var(--fixed-paper);--teal-ink:var(--teal);color:var(--ink)}
/* …over a photograph the quietest text is ink-2's: through the 80 % overlay a white pixel becomes rgb(76,74,72), where
   dark ink-3 has 3.5:1 and dark ink-2 5.0:1 */
:is(.section,.hero12,.phero).bg-image{--ink-3:var(--dark-ink-2)}
/* …what has its own light surface inside them keeps the light palette (zero specificity: components still win) */
:where(.section,.hero12,.phero):where(.bg-dark,.bg-image) :where(.card,.spec,.statuses > div,.steps > div,.together,.success-panel,.chip,code,.frame,.alert,.form-mode,.captcha,.family span.now,.field input,.field select,.field textarea){--ink:var(--fixed-ink);--paper:var(--fixed-paper);--ink-2:var(--fixed-ink-2);--ink-3:var(--fixed-ink-3);--rule:var(--fixed-rule);--rule-strong:var(--fixed-ink);--teal-ink:var(--fixed-teal-ink);color:var(--ink)}
/* …and buttons on the dark surface itself behave as in the CTA band */
:is(.section,.hero12,.phero):is(.bg-dark,.bg-image) .btn.primary:not(:where(.card,.together,.success-panel) *):hover{background:var(--fixed-paper)}
:is(.section,.hero12,.phero):is(.bg-dark,.bg-image) .btn.ghost:not(:where(.card,.together,.success-panel) *):hover{background:var(--fixed-paper);color:var(--fixed-ink)}
:is(.section,.hero12,.phero):is(.bg-dark,.bg-image) .btn.service:not(:where(.card,.together,.success-panel) *){color:var(--fixed-ink)}
:is(.section,.hero12,.phero):is(.bg-dark,.bg-image) .btn.service:not(:where(.card,.together,.success-panel) *):hover{background:var(--teal)}

/* ---------- 25. Screenshot reel and lightbox (0.9.1) ----------
   A compact stretched dark section (inc/reel.php) with one row of screenshots at one height that scrolls sideways and
   runs out to the right edge of the window; each opens full size in a lightbox (assets/js/site.js) or, without
   JavaScript, as the image itself; on phones the row is swiped and the arrow buttons are not shown. Colours, rules,
   radii and type are the tokens above; no new ones. */
.section.reel-section{padding-top:var(--section-s);padding-bottom:var(--section-s)}
.reel-section .sec-head{margin-bottom:28px}
.reel{--reel-h:220px;position:relative}
.reel-track{list-style:none;margin:0 calc(50% - 50vw) 0 0;padding:0 var(--gutter) 14px 0;display:flex;gap:16px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:var(--dark-rule) transparent}
.reel-track > li{flex:none;scroll-snap-align:start}
.reel figure{margin:0;display:grid}
.reel-shot{display:block;border:var(--line) solid var(--rule);border-radius:var(--r-m);overflow:hidden;background:var(--fixed-paper);cursor:zoom-in;transition:border-color var(--t-fast) var(--ease)}
.reel-shot:hover{border-color:var(--ink-3)}
.reel-shot img{display:block;height:var(--reel-h);width:auto;max-width:none}
.reel figcaption{width:0;min-width:100%;font-size:var(--fs-caption);line-height:1.4;color:var(--ink-3);padding-top:10px}
.reel-nav{display:flex;gap:8px;justify-content:flex-end;margin-top:14px}
.reel-nav[hidden]{display:none}
.reel-btn{width:40px;height:40px;border-radius:50%;border:var(--line) solid var(--rule);background:transparent;color:var(--ink);font:400 20px/1 var(--serif);cursor:pointer;display:grid;place-items:center;transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
.reel-btn:hover:not([aria-disabled="true"]){background:var(--ink);color:var(--paper)}
.reel-btn[aria-disabled="true"]{opacity:.35;cursor:default}
@media (max-width:700px){.reel{--reel-h:168px} .reel-track{gap:12px} .reel-section .sec-head{margin-bottom:22px} .reel .reel-nav{display:none}}
/* lightbox: a modal <dialog> over a near-black backdrop, the image as large as the window allows */
.lightbox{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:var(--fixed-paper);overflow:hidden}
.lightbox[open]{display:grid;grid-template-rows:minmax(0,1fr) auto}
.lightbox::backdrop{background:rgba(20,19,18,.94)}
.lightbox figure{margin:0;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto;justify-items:center;align-items:center;gap:14px;padding:64px 76px 20px}
.lightbox img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:var(--r-m);background:var(--white)}
.lightbox figcaption{font-size:var(--fs-small);color:var(--dark-ink-2);text-align:center;max-width:760px}
.lightbox .lb-count{font-size:var(--fs-caption);color:var(--dark-ink-3);text-align:center;padding:0 0 20px}
.lb-btn{position:absolute;width:44px;height:44px;border-radius:50%;border:var(--line) solid var(--dark-rule);background:rgba(31,29,27,.85);color:var(--fixed-paper);font:400 22px/1 var(--serif);cursor:pointer;display:grid;place-items:center}
.lb-btn:hover{background:var(--fixed-paper);color:var(--fixed-ink)}
.lb-btn:focus-visible{outline-color:var(--teal)}
.lb-close{top:14px;right:14px;font:400 26px/1 var(--sans)}
.lb-prev,.lb-next{top:50%;transform:translateY(-50%)}
.lb-prev{left:16px} .lb-next{right:16px}
html:has(.lightbox[open]){overflow:hidden}
@media (max-width:700px){.lightbox figure{padding:60px 12px 12px} .lb-prev,.lb-next{top:auto;bottom:12px;transform:none} .lb-prev{left:12px} .lb-next{right:12px} .lightbox .lb-count{padding:0 0 26px}}
@media (prefers-reduced-motion:reduce){.reel-shot,.reel-btn{transition:none}}
