/* Laserglow site BASE layer: tokens, base elements and the shared utilities.
   Extracted from site/index.html on 2026-09-09 so every page loads one copy.
   Token values come from design/laserglow-signal-system.html. Do not retype a value here. */

    /* ===========================================================================
   LASERGLOW HOMEPAGE  ·  build v4, 2026-09-02
   Signal System components (.signal, .card, .kpi, .pill, .tag, .chip, .tbl,
   .rv -> .in) + the 45-icon brand kit. Tokens from the Reference section.
   =========================================================================== */
    :root {
      --red-500: #ff3a42;
      --red-600: #e02a32;
      --red-400: #ff6169;
      --ok: #2ea85a;
      --caution: #e39a12;
      --info: #3d8bff;
      --display: "Wix Madefor Display", system-ui, sans-serif;
      --mono: ui-monospace, "SF Mono", "Space Mono", Menlo, Consolas, monospace;
      --text-f: "Wix Madefor Text", system-ui, sans-serif;
      --fs-hero: clamp(2.6rem, 5.4vw, 4.7rem);
      --fs-h2: clamp(1.95rem, 4vw, 3.1rem);
      --fs-body: 1.05rem;
      --sp-eyebrow-title: 26px;
      --sp-title-text: 22px;
      --sp-text-action: 36px;
      --sp-block: clamp(52px, 7vw, 84px);
      --pad-y: clamp(74px, 8.5vw, 118px);
      --maxw: 1220px;
      --gutter: clamp(20px, 4vw, 40px);
      --ease: cubic-bezier(.2, .6, .2, 1);
      --r-xs: 6px;
      --r-sm: 9px;
      --r-md: 12px;
      --r-lg: 16px;
      --r-xl: 22px;
      --r-full: 999px;
      --hdr-h: 72px;
    }

    :root,
    :root[data-theme="light"] {
      --s-0: #ffffff;
      --s-50: #f6f7f8;
      --s-100: #eff0f2;
      --s-200: #e3e5e8;
      --border: #e3e5e8;
      --border-soft: #ecedef;
      --rule: #858fa0;
      --c-hi: #0c0d0f;
      --c-mid: #5f636d;
      --c-lo: #8f939d;
      --t-1: #3c4657;
      --t-2: #8891a3;
      --t-3: #c6ccd7;
      --accent: #ff3a42;
      --accent-fill: #e02a32;
      --accent-ink: #cc2d34;
      --accent-wash: rgba(255, 58, 66, .09);
      --ok-ink: #1a6b3c;
      --ok-wash: rgba(46, 168, 90, .11);
      --warn-ink: #96650a;
      --warn-wash: rgba(227, 154, 18, .13);
      --info-ink: #1d6fd6;
      --info-wash: rgba(61, 139, 255, .11);
      --track: #e7e9ec;
      --on-hi: #ffffff;
      --on-hi-soft: rgba(255, 255, 255, .72);
      --on-mid: #ffffff;
      /* Text on media. Always light, in both themes, because it always sits on a
         photograph or a scrim. Taken from design/laserglow-signal-system.html;
         page-template.html referenced these before base.css carried them. */
      --on-media: #ffffff;
      --on-media-soft: rgba(255, 255, 255, .84);
      --on-media-dim: rgba(255, 255, 255, .66);
      --ico-hi: #ff6169;
      --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 30px -16px rgba(0, 0, 0, .15);
      --ink-0: #0c0d0f;
      --ink-1: #16171c;
      --ink-2: #1d1f25;
      --ink-line: #292c34;
      --grid-ink: rgba(12, 13, 15, .045);
    }

    :root[data-theme="dark"] {
      --s-0: #16171c;
      --s-50: #0d0e12;
      --s-100: #1d1f25;
      --s-200: #292c34;
      --border: #262931;
      --border-soft: #20222a;
      --rule: #616877;
      --c-hi: #f2f3f6;
      --c-mid: #9aa0ad;
      --c-lo: #6a7080;
      /* the t-scale runs strong -> faint in BOTH themes. It was inverted here, which
     put the darkest slate on control labels sitting on a dark ground: the FAQ and
     seat tabs were legible in light mode and all but invisible in dark. */
      --t-1: #dde2ea;
      --t-2: #96a0b4;
      --t-3: #576174;
      --accent: #ff3a42;
      --accent-fill: #e02a32;
      --accent-ink: #ff6169;
      --accent-wash: rgba(255, 58, 66, .15);
      --ok-ink: #35c76a;
      --ok-wash: rgba(46, 168, 90, .16);
      --warn-ink: #e39a12;
      --warn-wash: rgba(227, 154, 18, .17);
      --info-ink: #3d8bff;
      --info-wash: rgba(61, 139, 255, .16);
      --track: #262931;
      --on-hi: #0d0e12;
      --on-hi-soft: rgba(13, 14, 18, .66);
      --on-mid: #0d0e12;
      --ico-hi: #e02a32;
      --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 38px -18px rgba(0, 0, 0, .72);
      --ink-0: #0d0e12;
      --ink-1: #16171c;
      --ink-2: #1d1f25;
      --ink-line: #292c34;
      --grid-ink: rgba(255, 255, 255, .05);
    }

    * {
      box-sizing: border-box
    }

    html {
      scroll-behavior: smooth;
      scroll-padding-top: calc(var(--hdr-h) + 14px)
    }

    body {
      margin: 0;
      background: var(--s-0);
      color: var(--c-hi);
      font-family: var(--text-f);
      font-size: var(--fs-body);
      line-height: 1.62;
      -webkit-font-smoothing: antialiased;
      /* `clip`, not `hidden` (changed 2026-09-09). `overflow-x: hidden` on body makes body a
         scroll container, and a scroll container kills `position: sticky` for everything
         inside it. That is what left every pinned section on site/pulse/index.html unpinned.
         `clip` contains the same horizontal overflow and creates no scroll container, so
         sticky keeps working. The sticky header relies on this too. */
      overflow-x: clip
    }

    h1,
    h2,
    h3,
    h4,
    h5 {
      font-family: var(--display);
      line-height: 1.06;
      letter-spacing: -.025em;
      margin: 0;
      text-wrap: balance
    }

    /* NO WIDOWED WORDS (added 2026-09-09, and it is a house rule, not a preference).

       A single word alone on the last line is a defect in body text. Which sentences do it
       depends on the container width, so rewriting copy fixes one breakpoint and breaks the
       next: the copy has to be good AND the renderer has to stop orphaning the last word.
       `text-wrap: pretty` is the browser doing the second half at every width. Where it is
       not supported the text simply wraps as before, so nothing is lost.

       This does not retire the rule. `python3 check_lines.py <page>` still measures widows
       and split terms of art in a real browser, and copy that only survives because of this
       line is still copy worth tightening.

       WIDENED 2026-09-09. It used to name p, li, dd, figcaption and blockquote, which meant
       a run of body text set in a span or a div was never covered. check_lines.py found one
       on the PULSE page and the copy fix only moved the orphan to the next width, because
       the element was never in the list. `text-wrap` inherits, so declaring it once on the
       body reaches every run of text; the headings above take `balance` and keep it, since
       a later, more specific rule wins. */
    body {
      text-wrap: pretty
    }

    p {
      margin: 0
    }

    img,
    video {
      display: block;
      max-width: 100%
    }

    a {
      color: inherit;
      text-decoration: none
    }

    button {
      font: inherit;
      color: inherit
    }

    :focus-visible {
      outline: 2px solid var(--info);
      outline-offset: 3px
    }

    .tnum {
      font-variant-numeric: tabular-nums
    }

    /* THE DARK SURFACE (moved here 2026-09-09, when site/pulse/index.html was the first page
       to use it outside the homepage and rendered every dark band white).

       `.dark` is how a section declares which ground it sits on. It carries the surface and
       the ink together, so a heading, a border or an icon written against it is measured
       against the right background. It lived only inside site/index.html, which meant
       the shared layer shipped every `.dark ...` rule below without the surface those rules
       assume. The homepage keeps its own identical copy for now; fold it out when that
       page's remaining CSS is split. */
    .dark {
      background: var(--ink-0);
      color: #ffffff
    }

    .dark h1,
    .dark h2,
    .dark h3,
    .dark h4,
    .dark h5 {
      color: #ffffff
    }

    /* THE DISCLOSURE STRIP (moved here 2026-09-09).

       The OSHA / CSRD band that sits under the header. It is site chrome, not homepage
       decoration: it is the reason the whole category argument holds, and a page without it
       reads as a different site. It lived only inside site/index.html, so the first
       subpage shipped without it. The homepage keeps its own identical copy for now; fold
       it out when that page's CSS is next split.

       `.disc` is positioned absolutely inside the hero on the homepage. `.disc-top` is the
       standalone band a subpage uses, and it resets that positioning. */
    .dark.disc-top {
      background: #0c0d0f;
      border-bottom: 1px solid rgba(255, 255, 255, .18)
    }

    /* On a phone the band stays off, on every page (Gui, 2026-10-19): there it took a third of
       the first screen. A desk keeps it. */
    @media(max-width:760px) {
      .dark.disc-top {
        display: none
      }
    }

    .dark.disc-top .disc {
      position: static;
      background: transparent;
      backdrop-filter: none;
      border-top: 0
    }

    .dark .disc-in {
      max-width: var(--maxw);
      margin: 0 auto;
      padding: 11px var(--gutter);
      display: flex;
      align-items: center;
      gap: clamp(12px, 2vw, 22px)
    }

    .dark .disc .tag {
      flex: none
    }

    .dark .disc p {
      margin: 0;
      min-width: 0;
      font-size: .85rem;
      line-height: 1.4;
      color: rgba(255, 255, 255, .78)
    }

    .dark .disc p b {
      font-family: var(--display);
      font-weight: 700;
      color: #ffffff
    }

    .dark .disc p .sep {
      color: var(--accent);
      margin-inline: 9px
    }

    .dark .dlink {
      margin-left: auto;
      flex: none;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-family: var(--display);
      font-weight: 700;
      font-size: .85rem;
      color: #ffffff;
      border-bottom: 1.5px solid var(--accent);
      padding-bottom: 2px
    }

    .dark .dlink:hover {
      color: var(--accent)
    }

    @media(max-width:820px) {
      .dark .disc-in {
        flex-wrap: wrap;
        gap: 10px
      }

      .dark .dlink {
        margin-left: 0
      }
    }

    .dark .cstep {
      margin-top: 26px;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px 12px;
      font-family: var(--display);
      font-weight: 700;
      font-size: 1.06rem;
      color: #ffffff
    }

    /* each stage is its own chip, so the three read as three and the line reads as a component
       rather than a sentence. Border matches .dark .btn-line, the page's dark outline treatment. */
    .dark .cstep .cs {
      display: inline-flex;
      align-items: center;
      height: 36px;
      padding: 0 18px;
      border-radius: var(--r-full);
      border: 1.5px solid rgba(255, 255, 255, .3);
      background: rgba(255, 255, 255, .06)
    }
    .dark .cstep .csep {
      color: #ffffff
    }

    /* the link sits under the progression, not beside it, and reads as secondary to it */
    .dark .cstep-link {
      margin-top: 14px
    }
    .dark .cstep-link .tlink {
      font-size: .85rem
    }

    .vh {
      position: absolute;
      width: 1px;
      height: 1px;
      margin: -1px;
      padding: 0;
      overflow: hidden;
      clip: rect(0 0 0 0);
      white-space: nowrap;
      border: 0
    }

    .wrap {
      max-width: var(--maxw);
      margin: 0 auto;
      padding-inline: var(--gutter)
    }

    section {
      padding-block: var(--pad-y);
      position: relative
    }

    /* section headers fill the row instead of capping to the left */
    .signal {
      display: inline-block;
      background: var(--accent-fill);
      color: #ffffff;
      font-family: var(--display);
      font-weight: 800;
      font-size: .8rem;
      letter-spacing: .07em;
      text-transform: uppercase;
      padding: 8px 15px 7px;
      line-height: 1;
      border-radius: var(--r-full)
    }

    /* ONE SECTION-HEADER SHAPE (changed 2026-09-03).
       Eyebrow, title, then the subtext underneath, running the full width of the work area.
       It used to be a two-column grid, title left and subtext right at 1.15fr / 1fr, with
       `.solo` as the stacked exception capped at 66ch. Eight sections used the two-column
       form and three used `.solo`, so the page changed shape as you scrolled it. Now every
       section reads the same way down and the subtext is uncapped.
       Trade-off, stated: at the 1600px breakpoint the measure runs to roughly 155 characters,
       well past the 45-85 that is comfortable to read. That is the deliberate ask. */
    .block {
      display: grid;
      grid-template-columns: 1fr
    }

    .block>.signal {
      justify-self: start;
      margin-bottom: var(--sp-eyebrow-title)
    }

    .block>h2 {
      font-size: var(--fs-h2);
      font-weight: 700;
      letter-spacing: -.03em
    }

    .block>p {
      margin-top: var(--sp-title-text);
      color: var(--c-mid);
      font-size: var(--fs-body)
    }

    .dark .block>p {
      color: rgba(255, 255, 255, .8)
    }

    /* `.solo` is now what every block does. The class stays so the existing markup keeps
       working and so a future variant can be reintroduced without a markup sweep. */
    .block.solo {
      grid-template-columns: 1fr
    }

    @media(max-width:900px) {
      .block>p {
        margin-top: 18px
      }
    }

    /* a wash of brand red anchored off one edge, so dark bands are not flat black */
    .dark.wash::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: 0;
      background: radial-gradient(72% 58% at 88% 12%, rgba(255, 58, 66, .13), transparent 70%)
    }

    .dark.wash>* {
      position: relative;
      z-index: 1
    }

    /* decorative plan grid, so light sections are not flat */
    .gridbg::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: 0;
      background-image: linear-gradient(to right, var(--grid-ink) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-ink) 1px, transparent 1px);
      background-size: clamp(48px, 6vw, 88px) clamp(48px, 6vw, 88px);
      -webkit-mask-image: radial-gradient(120% 70% at 50% 0%, #000, transparent 72%);
      mask-image: radial-gradient(120% 70% at 50% 0%, #000, transparent 72%)
    }

    .gridbg>* {
      position: relative;
      z-index: 1
    }

    .rv {
      opacity: 0;
      transform: translateY(18px);
      transition: opacity .7s var(--ease), transform .7s var(--ease)
    }

    .rv.in {
      opacity: 1;
      transform: none
    }

    /* scroll-linked shift: an element drifts, settles level in the middle of the
   viewport, then drifts on. --py is written by the scroll loop. */
    [data-par] {
      will-change: transform
    }

    .pimg {
      transform: scale(1.14) translate3d(0, var(--py, 0px), 0)
    }

    .pfig svg {
      transform: translate3d(0, var(--py, 0px), 0)
    }

    .rv.d1 {
      transition-delay: .08s
    }

    .rv.d2 {
      transition-delay: .16s
    }

    .rv.d3 {
      transition-delay: .24s
    }

    .rv.d4 {
      transition-delay: .32s
    }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      height: 52px;
      padding: 0 26px;
      border-radius: var(--r-full);
      font-family: var(--display);
      font-weight: 600;
      font-size: 1rem;
      border: 0;
      cursor: pointer;
      transition: background .18s var(--ease), transform .18s var(--ease)
    }

    .btn:hover {
      transform: translateY(-1px)
    }

    .btn-primary {
      background: var(--accent-fill);
      color: #ffffff
    }

    .btn-primary:hover {
      background: var(--accent-ink);
      color: #ffffff
    }

    .btn-line {
      background: var(--s-0);
      color: var(--c-hi);
      border: 1.5px solid var(--rule)
    }

    .btn-line:hover {
      background: var(--s-100);
      color: var(--c-hi)
    }

    .dark .btn-line {
      background: transparent;
      color: #ffffff;
      border: 1.5px solid rgba(255, 255, 255, .55)
    }

    .dark .btn-line:hover {
      background: rgba(255, 255, 255, .12);
      color: #ffffff
    }

    .tlink {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      font-family: var(--display);
      font-weight: 600;
      color: var(--accent-ink);
      border-bottom: 2px solid var(--accent-fill);
      padding-bottom: 3px
    }

    .tlink .lgi {
      transition: transform .18s var(--ease)
    }

    .tlink:hover .lgi {
      transform: translateX(3px)
    }

    .dark .tlink {
      color: var(--accent);
      border-bottom-color: var(--accent)
    }

    .pill {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-family: var(--display);
      font-weight: 700;
      font-size: .76rem;
      padding: 4px 10px;
      border-radius: var(--r-full);
      white-space: nowrap
    }

    .pill.up {
      color: var(--ok-ink);
      background: var(--ok-wash)
    }

    .pill.dn {
      color: var(--accent-ink);
      background: var(--accent-wash)
    }

    .pill.nu {
      color: var(--c-mid);
      background: var(--s-100)
    }

    .tag {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      height: 25px;
      padding: 0 11px;
      border-radius: var(--r-full);
      font-family: var(--display);
      font-weight: 700;
      font-size: .71rem;
      letter-spacing: .04em;
      text-transform: uppercase;
      white-space: nowrap
    }

    .tag.al {
      background: var(--accent-fill);
      color: #ffffff
    }

    .tag.nu {
      background: var(--c-mid);
      color: var(--on-mid)
    }

    .tag.out {
      background: var(--s-0);
      color: var(--c-hi);
      border: 1.5px solid var(--rule)
    }

    .iwell {
      width: 44px;
      height: 44px;
      border: 1px solid var(--border);
      background: var(--s-100);
      border-radius: var(--r-md);
      display: grid;
      place-items: center;
      color: var(--accent-ink);
      flex: none
    }

    .iwell .lgi {
      font-size: 21px
    }

    .dark .iwell {
      background: var(--ink-2);
      border-color: var(--ink-line);
      /* The main red, not the pale one. --red-400 (#ff6169) was a tint; --accent is #ff3a42,
         the UI Red the Signal System names for icons, and it measures 4.66:1 on --ink-2.
         The LIGHT .iwell stays on --accent-ink (#cc2d34): #ff3a42 is only 3.54:1 on white,
         which would fail the 4.5:1 floor for icons. Same red, one step darker where it has to be. */
      color: var(--accent)
    }

    /* THE CALLOUT, carried across from design/laserglow-signal-system.html line 427.
       PAGE-STANDARD.md section 6 names .alert as the callout and gives its spec, and
       trap 3 says a component missing from base.css is added HERE from the Signal
       System and never redefined on a page. It was missing until 2026-09-28, so the
       first page to ask for it would have rendered an unstyled paragraph.
       The full border is the point: a rule down one side of a box is not in the system. */

    .alert {
      border: 1.5px solid var(--border);
      border-radius: var(--r-lg);
      background: var(--s-0);
      padding: 18px 20px;
      display: flex;
      gap: 14px;
      align-items: flex-start
    }

    .alert svg {
      width: 20px;
      height: 20px;
      flex: none;
      margin-top: 2px
    }

    .alert b {
      font-family: var(--display);
      font-weight: 700;
      font-size: .96rem;
      display: block;
      margin-bottom: 4px
    }

    .alert p {
      font-size: .9rem;
      color: var(--c-mid)
    }

    /* THE PARAGRAPH OUTSIDE A .block. PAGE-STANDARD.md section 2 names it as the one
       exception to "do not add a lede class", and specifies exactly what it carries:
       --fs-body and --sp-text-action. It was never added here, so every class="note"
       on the site was inert: site/index.html, site/project-builder/index.html,
       site/pulse/on-the-floor/index.html and site/why-it-matters/index.html were all
       relying on it (found 2026-09-28). Two stacked paragraphs ran together with no gap,
       which reads as one long block rather than two thoughts. */

    .note {
      font-size: var(--fs-body);
      margin-top: var(--sp-text-action)
    }

