/* Greeting card, collapse pill, scrim, welcome bar, modal and the personalised page blocks.
   Rules of the house:
   - Text elements (headings, paragraphs, labels, buttons, links) carry no margin or padding for
     spacing. Space comes from spacer blocks, wrapper padding or a parent grid/flex gap.
   - Utilities are hyphenated (spacer-small), components use underscores (reveal_card),
     states use is- (is-open, is-compact, is-on).
   - One class per selector where possible, so a generic rule cannot recolour a component.
   - Motion uses transform and opacity only, eases out, and has a static reduced-motion state. */

/* ==========================================================================
   1. Tokens: the Client-First spacing scale, scoped to the card family
   ========================================================================== */
.reveal_card,
.reveal_pill,
.reveal_modal,
.welcome_bar,
.help_banner {
  --space-tiny: .125rem;
  --space-xxsmall: .25rem;
  --space-xsmall: .5rem;
  --space-small: 1rem;
  --space-medium: 2rem;
  --space-large: 3rem;
  --card-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --card-pad: 1.5rem;
  --card-radius: 18px;
  --card-z: 100;
  --card-ink: #142853;
  --card-muted: #475467;
  --card-hint: #667085;
}

/* ==========================================================================
   2. Spacer utilities (empty blocks, aria-hidden, spacing only)
   ========================================================================== */
.spacer-tiny { width: 100%; padding-top: var(--space-tiny, .125rem); }
.spacer-xxsmall { width: 100%; padding-top: var(--space-xxsmall, .25rem); }
.spacer-xsmall { width: 100%; padding-top: var(--space-xsmall, .5rem); }
.spacer-small { width: 100%; padding-top: var(--space-small, 1rem); }
.spacer-medium { width: 100%; padding-top: var(--space-medium, 2rem); }
.spacer-large { width: 100%; padding-top: var(--space-large, 3rem); }
@media (max-width: 600px) {
  .spacer-medium.is-mobile-small { padding-top: var(--space-small, 1rem); }
  .spacer-small.is-mobile-xsmall { padding-top: var(--space-xsmall, .5rem); }
}

/* Screen-reader-only copy (used by the decode effect). */
.sr_only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ==========================================================================
   3. Card shell: floating card on desktop (>= 992px wide and >= 720px tall)
   ========================================================================== */
.reveal_card {
  position: fixed; right: 24px; bottom: 24px; z-index: var(--card-z);
  display: flex; flex-direction: column;
  width: min(400px, calc(100vw - 48px)); max-height: calc(100vh - var(--card-top-gap, 0px) - 48px); max-height: calc(100dvh - var(--card-top-gap, 0px) - 48px);
  box-sizing: border-box;
  color: var(--card-ink);
  border: 1px solid rgba(20, 40, 83, .14); border-radius: var(--card-radius);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  /* spotlight glow: a blue ring, a wide blue blur and a deep navy drop */
  box-shadow:
    0 0 0 1px rgba(51, 96, 255, .18),
    0 0 0 6px rgba(51, 96, 255, .06),
    0 0 56px rgba(51, 96, 255, .35),
    0 30px 70px -20px rgba(20, 40, 83, .55);
}
.reveal_card[hidden] { display: none; }
/* Keep the floating card clear of the welcome bar while it is showing. */
html.has-welcome .reveal_card { --card-top-gap: var(--welcome-h, 0px); }

/* The white surface lives on ::after so the bloom (::before) can sit behind it. A fixed element
   is always its own stacking context, so a negative z-index child paints above its background. */
.reveal_card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; background: #fff;
}
.reveal_card::before {
  content: ""; position: absolute; inset: -48px; z-index: -2;
  border-radius: 48px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(51, 96, 255, .22), rgba(51, 96, 255, .08) 60%, transparent);
  opacity: .55;
}
/* One-shot bloom on open (JS adds is-bloom once). Ends calm and static. */
.reveal_card.is-bloom::before { animation: reveal-bloom 900ms var(--card-ease) both; }
@keyframes reveal-bloom {
  0% { opacity: 0; transform: scale(.92); }
  45% { opacity: 1; transform: scale(1.04); }
  100% { opacity: .55; transform: scale(1); }
}

/* Gradient accent along the top edge. */
.reveal_bar {
  position: absolute; left: 0; right: 0; top: 0; z-index: 1; height: 5px;
  border-radius: var(--card-radius) var(--card-radius) 0 0;
  background: linear-gradient(90deg, var(--admiral-amber), var(--admiral-blue));
}

/* Minimise button, always a 44px target in the top-right corner. */
.reveal_close {
  position: absolute; right: .5rem; top: .6rem; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 10px; background: transparent;
  color: var(--card-muted); font: 400 1.7rem/1 'IBM Plex Sans', sans-serif; cursor: pointer;
}
.reveal_close:hover,
.reveal_close:focus-visible { background: var(--primary-50); color: var(--card-ink); }

/* ==========================================================================
   4. Card layout: each step is a scroll area plus a footer holding the CTA row
   ========================================================================== */
.reveal_step { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.reveal_step[hidden] { display: none; }
.reveal_body {
  flex: 1 1 auto; min-height: 0;
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  padding: var(--card-pad) var(--card-pad) 1.25rem;
}
.reveal_footer {
  flex: none;
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem;
  padding: 1rem var(--card-pad) 1.25rem;
  border-top: 1px solid rgba(20, 40, 83, .08);
}

/* ==========================================================================
   5. Card content: header, scene, story, form
   ========================================================================== */
.reveal_header { display: grid; gap: var(--space-xsmall); padding-right: 2.75rem; }
.reveal_eyebrow {
  position: relative; display: flex; align-items: center; gap: .4rem; margin: 0;
  font: 500 .72rem/1.2 'IBM Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase;
  color: var(--admiral-blue);
}
.reveal_word {
  margin: 0; overflow: hidden;
  font: 800 clamp(2.1rem, 7vw, 2.75rem)/1.12 'Plus Jakarta Sans', sans-serif; letter-spacing: -.02em;
  color: var(--card-ink);
}
.reveal_word span { display: inline-block; }

/* Illustration frame. The SVG itself is untouched. */
.reveal_skyline {
  display: grid; gap: var(--space-xsmall);
  padding: .75rem .75rem .65rem;
  border: 1px solid var(--primary-100); border-radius: 12px;
  background: linear-gradient(110deg, #f7f9ff, #fff);
}
.reveal_context {
  margin: 0; text-align: center; overflow-wrap: anywhere;
  font: 500 .7rem/1.6 'IBM Plex Mono', monospace; color: var(--card-muted);
}

/* Story sentence: the box is the wrapper, the paragraph carries no spacing. */
.reveal_story_box { padding: .9rem 1rem; border-radius: 12px; background: var(--primary-50); }
.reveal_story { margin: 0; font-size: .93rem; line-height: 1.7; color: var(--card-ink); }

/* Form: field to field 1rem, label to its field .5rem. */
.reveal_form { display: grid; gap: var(--space-small); }
.reveal_field { position: relative; display: grid; gap: var(--space-xsmall); }
/* Block, so a wrapped label keeps its help dot inline after the last word. */
.reveal_label {
  display: block;
  font: 500 .75rem/1.35 'IBM Plex Mono', monospace; letter-spacing: .04em; color: var(--card-muted);
}
.reveal_input {
  width: 100%; box-sizing: border-box; min-height: 44px; margin: 0; padding: .6rem .8rem;
  border: 1px solid var(--neutral-400); border-radius: 10px; background-color: #fff;
  font: 400 1rem/1.3 'IBM Plex Sans', sans-serif; color: var(--card-ink);
}
.reveal_input::placeholder { color: var(--card-hint); opacity: 1; }
.reveal_input:focus-visible { outline: 3px solid rgba(51, 96, 255, .35); outline-offset: 0; border-color: var(--admiral-blue); }
.reveal_input[aria-invalid="true"] { border-color: #B42318; }
.reveal_input.is-select {
  padding-right: 2.2rem; appearance: none; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23142853' stroke-width='1.6'/%3E%3C/svg%3E") right .85rem center no-repeat;
}
.reveal_input.is-select:has(option[value=""]:checked) { color: var(--card-hint); }

/* Footer buttons. The primary uses the site .button; these are the quiet partners. */
.reveal_go { min-height: 44px; }
.reveal_skip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: transparent;
  color: var(--card-muted); font: 500 .9rem/1.2 'IBM Plex Sans', sans-serif;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.reveal_skip:hover,
.reveal_skip:focus-visible { color: var(--card-ink); }
.reveal_how {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: transparent;
  color: var(--admiral-blue); font: 500 .85rem/1.3 'IBM Plex Sans', sans-serif;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.reveal_how:hover,
.reveal_how:focus-visible { color: var(--card-ink); }

/* Spotlight sweep across the primary button label. */
.spot { display: inline-block; }
.spot.is-spot {
  background: radial-gradient(circle var(--sr, 46px) at var(--sx, -25%) 50%, #fff 0, rgba(255, 255, 255, .32) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   6. Done step: logo match, thanks, guided tour
   ========================================================================== */
.reveal_match { display: flex; align-items: center; gap: .75rem; }
.reveal_mark,
.reveal_logo { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 14px; }
.reveal_mark { background: var(--admiral-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpolygon points='20,6 34,14 20,22 6,14' fill='%23fff'/%3E%3Cpolygon points='6,14 20,22 20,36 6,28' fill='%23D6E3FF'/%3E%3Cpolygon points='34,14 20,22 20,36 34,28' fill='%233360FF'/%3E%3C/svg%3E") center / 30px no-repeat; }
.reveal_plus { font: 700 1.4rem/1 'IBM Plex Mono', monospace; color: var(--card-muted); }
.reveal_logo {
  overflow: hidden; background: var(--primary-50); border: 1px solid var(--primary-100);
  font: 800 1.4rem/1 'Plus Jakarta Sans', sans-serif; color: var(--admiral-blue);
}
.reveal_logo img { width: 32px; height: 32px; object-fit: contain; }
.reveal_thanks { margin: 0; font: 800 1.6rem/1.2 'Plus Jakarta Sans', sans-serif; letter-spacing: -.01em; color: var(--card-ink); }
.reveal_lead { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--neutral-700); }

.reveal_tour { display: grid; gap: var(--space-xsmall); }
.reveal_tour_item {
  display: flex; align-items: center; width: 100%; min-height: 44px; box-sizing: border-box;
  padding: .5rem .85rem; border: 1px solid var(--primary-100); border-radius: 10px; background: #fff;
  color: var(--card-ink); font: 600 .86rem/1.35 'IBM Plex Sans', sans-serif;
  text-align: left; text-decoration: none; cursor: pointer;
}
.reveal_tour_item:hover,
.reveal_tour_item:focus-visible { border-color: var(--admiral-blue); outline: 2px solid rgba(51, 96, 255, .25); }

/* ==========================================================================
   7. Fine-print accordion ("Why am I seeing this?")
   ========================================================================== */
.reveal_more { border-top: 1px solid rgba(20, 40, 83, .08); }
.reveal_more_btn {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; min-height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;
  color: var(--card-ink); font: 600 .85rem/1.3 'IBM Plex Sans', sans-serif; text-align: left;
}
.reveal_more_btn:hover,
.reveal_more_btn:focus-visible { color: var(--admiral-blue); }
.reveal_more_btn:focus-visible { outline: 2px solid rgba(51, 96, 255, .45); outline-offset: 2px; border-radius: 6px; }
.reveal_more_icon { flex: none; width: 14px; height: 14px; transition: transform 300ms var(--card-ease); }
.reveal_more_btn[aria-expanded="true"] .reveal_more_icon { transform: rotate(180deg); }

/* Closed: zero height, faded, and hidden from focus and screen readers (visibility flips after the fade). */
.reveal_more_panel {
  display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden;
  transition: grid-template-rows 320ms var(--card-ease), opacity 260ms var(--card-ease), visibility 0s linear 320ms;
}
.reveal_more_panel.is-open {
  grid-template-rows: 1fr; opacity: 1; visibility: visible;
  transition: grid-template-rows 320ms var(--card-ease), opacity 260ms var(--card-ease), visibility 0s;
}
.reveal_more_inner { min-height: 0; overflow: hidden; }
.reveal_more_content { display: grid; justify-items: start; gap: var(--space-xxsmall); padding-bottom: var(--space-xxsmall); }
.reveal_fine { margin: 0; font-size: .8rem; line-height: 1.6; color: var(--card-muted); }

/* ==========================================================================
   8. Dynamic-data chips: place, network and local time
   ========================================================================== */
.reveal_data {
  position: relative; display: inline-block;
  padding: 0 .3rem; border-radius: .25rem;
  background: var(--primary-100);
  box-shadow: inset 0 -2px 0 var(--admiral-amber);
  color: var(--card-ink); font-weight: 700; line-height: 1.45;
}
.reveal_context .reveal_data { padding: 0 .25rem; font-weight: 600; }
/* Keeps a chip and the punctuation after it on one line; the chip itself may still wrap. */
.reveal_nobr { white-space: nowrap; }
.reveal_nobr .reveal_data { white-space: normal; }
/* One-shot attention pop (JS adds is-popped). */
.reveal_data.is-popped { animation: reveal-pop 700ms var(--card-ease) both; }
@keyframes reveal-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
/* Source tooltip on hover or keyboard focus. Generated only while shown, so a hidden tooltip
   never widens the scroll area. */
.reveal_data[data-source]:hover::after,
.reveal_data[data-source]:focus-visible::after {
  content: attr(data-source);
  position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 3;
  width: max-content; max-width: min(14rem, 60vw); padding: .35rem .55rem; border-radius: 8px;
  background: var(--admiral-navy); color: #fff;
  font: 400 .72rem/1.35 'IBM Plex Sans', sans-serif; letter-spacing: 0; text-transform: none; white-space: normal;
  pointer-events: none;
}
.reveal_data[data-kind="time"]:hover::after,
.reveal_data[data-kind="time"]:focus-visible::after { left: auto; right: 0; }

/* ==========================================================================
   9. Help tooltips (white on navy). Single-class selectors so no label rule can recolour them.
   ========================================================================== */
.tip_wrap { position: static; display: inline-flex; vertical-align: middle; }
.tip {
  display: inline-grid; place-items: center; flex: none;
  width: 20px; height: 20px; padding: 0; border-radius: 50%;
  border: 1px solid var(--neutral-400); background: #fff; color: var(--card-muted);
  font: 600 .7rem/1 'IBM Plex Mono', monospace; letter-spacing: 0; cursor: help;
  position: relative;
}
/* Invisible 44px hit area around the small dot. */
.tip::before { content: ""; position: absolute; inset: -12px; }
.tip:hover,
.tip:focus-visible,
.tip[aria-expanded="true"] { background: var(--admiral-blue); border-color: var(--admiral-blue); color: #fff; outline: none; }
.tip_body {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5;
  padding: .7rem .85rem; border-radius: 10px;
  background: var(--admiral-navy); color: #fff;
  font: 400 .84rem/1.5 'IBM Plex Sans', sans-serif; letter-spacing: 0; text-transform: none;
  box-shadow: 0 10px 24px -10px rgba(20, 40, 83, .6);
  opacity: 0; visibility: hidden; transform: translateY(-4px); pointer-events: none;
  transition: opacity 200ms var(--card-ease), transform 200ms var(--card-ease), visibility 0s linear 200ms;
}
.tip_body.is-above { top: auto; bottom: calc(100% + 6px); transform: translateY(4px); }
.tip:hover + .tip_body,
.tip:focus-visible + .tip_body,
.tip[aria-expanded="true"] + .tip_body {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 200ms var(--card-ease), transform 200ms var(--card-ease), visibility 0s;
}

/* Binary decode effect (story and welcome bar). */
.dec_w { display: inline-block; white-space: nowrap; }
.dec_c { display: inline-block; text-align: center; }
.dec_c.is-bit { font-family: 'IBM Plex Mono', monospace; color: var(--admiral-blue); }

/* ==========================================================================
   10. Compact mode: right drawer (default) below 992px wide or 720px tall
   ========================================================================== */
.reveal_card.is-compact {
  --card-pad: 1.25rem;
  top: 0; right: 0; bottom: 0; left: auto;
  width: min(420px, 92vw); height: 100vh; height: 100dvh; max-height: none;
  border-width: 0 0 0 1px; border-radius: 20px 0 0 20px;
  box-shadow:
    0 0 0 1px rgba(51, 96, 255, .18),
    0 0 56px rgba(51, 96, 255, .35),
    -24px 0 60px -20px rgba(20, 40, 83, .55);
  animation: reveal-drawer-in 480ms var(--card-ease) both;
}
.reveal_card.is-compact .reveal_bar { right: 0; border-radius: 20px 0 0 0; }
.reveal_card.is-compact .reveal_body {
  padding-top: max(var(--card-pad), env(safe-area-inset-top));
  padding-right: calc(var(--card-pad) + env(safe-area-inset-right));
}
.reveal_card.is-compact .reveal_footer {
  padding-right: calc(var(--card-pad) + env(safe-area-inset-right));
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  background: #fff; border-radius: 0 0 0 20px;
  box-shadow: 0 -10px 20px -16px rgba(20, 40, 83, .35);
}
.reveal_card.is-compact .reveal_close {
  top: max(.6rem, env(safe-area-inset-top));
  right: calc(.5rem + env(safe-area-inset-right));
}
@keyframes reveal-drawer-in {
  from { transform: translateX(100%); }
  to { transform: none; }
}

/* Compact mode, sheet variant: bottom sheet at 600px and below (wider screens keep the drawer). */
@media (max-width: 600px) {
  [data-card-mode="sheet"] .reveal_card.is-compact {
    top: auto; left: 0; right: 0; bottom: 0;
    width: 100%; height: auto; max-height: 88vh; max-height: 88dvh;
    border-width: 1px 0 0; border-radius: 20px 20px 0 0;
    box-shadow:
      0 0 0 1px rgba(51, 96, 255, .18),
      0 0 56px rgba(51, 96, 255, .35),
      0 -24px 60px -20px rgba(20, 40, 83, .55);
    animation-name: reveal-sheet-in;
  }
  /* The accent bar becomes the grab handle. */
  [data-card-mode="sheet"] .reveal_card.is-compact .reveal_bar {
    left: 50%; right: auto; top: 8px; width: 44px; height: 5px; border-radius: 999px;
    transform: translateX(-50%);
  }
  [data-card-mode="sheet"] .reveal_card.is-compact .reveal_body { padding-top: 1.75rem; }
  [data-card-mode="sheet"] .reveal_card.is-compact .reveal_close { top: 1rem; }
  [data-card-mode="sheet"] .reveal_card.is-compact .reveal_footer { border-radius: 0; }
}
@keyframes reveal-sheet-in {
  from { transform: translateY(100%); }
  to { transform: none; }
}

/* ==========================================================================
   11. Collapsed pill (bottom-right in every mode, clear of safe areas)
   ========================================================================== */
.reveal_pill {
  position: fixed; z-index: var(--card-z);
  right: calc(24px + env(safe-area-inset-right)); bottom: calc(24px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 48px; padding: 0 1.1rem 0 .55rem; border: 0; border-radius: 999px;
  background: var(--admiral-navy); color: #fff; font: 600 .9rem/1 'IBM Plex Sans', sans-serif; cursor: pointer;
  box-shadow: 0 0 0 4px rgba(51, 96, 255, .12), 0 14px 34px -12px rgba(20, 40, 83, .6);
}
.reveal_pill[hidden] { display: none; }
.reveal_pill:hover,
.reveal_pill:focus-visible { background: var(--admiral-blue); outline: none; }
.reveal_pill_mark { width: 34px; height: 34px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpolygon points='20,6 34,14 20,22 6,14' fill='%23142853'/%3E%3Cpolygon points='6,14 20,22 20,36 6,28' fill='%23A8C1FF'/%3E%3Cpolygon points='34,14 20,22 20,36 34,28' fill='%233360FF'/%3E%3C/svg%3E") center / 22px no-repeat; }
@media (max-width: 991px), (max-height: 719px) {
  .reveal_pill { right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* ==========================================================================
   12. Scrim behind the card (JS creates .reveal_scrim and toggles is-on)
   ========================================================================== */
.reveal_scrim {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(20, 40, 83, .10);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 300ms var(--ease-out, ease-out), visibility 0s linear 300ms;
}
.reveal_scrim.is-on {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 300ms var(--ease-out, ease-out), visibility 0s;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .reveal_scrim { background: rgba(20, 40, 83, .22); }
}
@media (prefers-reduced-transparency: reduce) {
  .reveal_scrim { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(20, 40, 83, .22); }
}

/* ==========================================================================
   13. Welcome bar for outreach visitors
   ========================================================================== */
.welcome_bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 95;
  display: grid; gap: var(--space-tiny);
  padding: .6rem 3.5rem .6rem 1.25rem; text-align: center;
  background: var(--admiral-navy); color: #fff; border-bottom: 2px solid var(--admiral-amber);
}
.welcome_main { margin: 0; font: 800 .95rem/1.3 'Plus Jakarta Sans', sans-serif; }
.welcome_sub { margin: 0; font: 400 .78rem/1.35 'IBM Plex Sans', sans-serif; color: rgba(255, 255, 255, .78); }
.welcome_close {
  position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px;
  background: transparent; color: #fff; font-size: 1.5rem; cursor: pointer;
}
.welcome_close:hover,
.welcome_close:focus-visible { background: rgba(255, 255, 255, .14); }
.welcome_bar .dec_c.is-bit { color: var(--admiral-amber); }
html.has-welcome .nav_component { top: var(--welcome-h, 0px); }

/* ==========================================================================
   14. "How I built it" modal
   ========================================================================== */
dialog.reveal_modal {
  width: min(460px, calc(100vw - 32px)); padding: 0;
  border: 1px solid rgba(20, 40, 83, .14); border-radius: 18px;
  color: var(--card-ink); background: #fff; box-shadow: 0 30px 80px -20px rgba(20, 40, 83, .55);
}
dialog.reveal_modal::backdrop { background: rgba(20, 40, 83, .55); }
.modal_inner {
  display: grid; gap: var(--space-small); margin: 0;
  padding: 1.75rem 1.6rem 1.4rem; border-top: 5px solid var(--admiral-amber); border-radius: 18px 18px 0 0;
}
.modal_title { margin: 0; font: 800 1.6rem/1.15 'Plus Jakarta Sans', sans-serif; letter-spacing: -.01em; }
.modal_text { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--neutral-700); }
.modal_inner .reveal_actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }

/* ==========================================================================
   15. Personalised page blocks: help banner, plan call to action, "Updated for you" tags
   ========================================================================== */
.help_banner {
  position: relative; overflow: hidden; display: grid; gap: .75rem;
  margin: 0 0 var(--space-xlarge, 4rem); padding: 1.75rem 2rem; border-radius: 20px;
  background: var(--admiral-navy); color: #fff; border: 1px solid rgba(255, 255, 255, .08);
}
.help_banner::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(closest-side, rgba(254, 200, 75, .35), transparent); pointer-events: none; }
.help_banner[hidden] { display: none; }
.help_eyebrow { margin: 0; font: 500 .75rem/1.2 'IBM Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--admiral-amber); }
.help_title { margin: 0; font: 800 clamp(1.5rem, 3.4vw, 2.1rem)/1.15 'Plus Jakarta Sans', sans-serif; letter-spacing: -.015em; }
.help_lead { margin: 0; max-width: 60ch; color: rgba(255, 255, 255, .82); line-height: 1.6; }
.help_actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; padding-top: var(--space-xsmall, .5rem); }
.help_forget { color: rgba(255, 255, 255, .78); }
.help_forget:hover,
.help_forget:focus-visible { color: #fff; }

.plan_cta {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between;
  margin: 0 0 var(--space-xlarge, 4rem); padding: 1.5rem 2rem; border-radius: 20px;
  background: var(--primary-50); border: 1px solid var(--primary-100);
}
.plan_cta-copy { display: grid; gap: var(--space-xsmall, .5rem); max-width: 56ch; }
.plan_cta-copy h3 { margin: 0; font: 800 1.35rem/1.2 'Plus Jakarta Sans', sans-serif; color: var(--admiral-navy); }
.plan_cta-copy p { margin: 0; color: var(--neutral-700); line-height: 1.55; }

.daz_focal_target { position: relative; }
.daz_ink_word { display: inline-block; }
.daz_updated_tag {
  position: absolute; z-index: 3; top: .5rem; right: .5rem;
  display: inline-flex; align-items: center; gap: .3rem; max-width: calc(100% - 1rem);
  padding: .18rem .2rem .18rem .55rem; border-radius: 999px;
  background: #142853; color: #fec84b; font: 600 .68rem/1.25 'IBM Plex Sans', sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.daz_updated_text { color: #fec84b; font: 600 .68rem/1.25 'IBM Plex Sans', sans-serif; letter-spacing: 0; text-transform: none; }
.daz_updated_tip {
  position: absolute; right: 0; top: calc(100% + 5px);
  width: max-content; max-width: min(250px, calc(100vw - 48px)); padding: .45rem .6rem; border-radius: 8px;
  background: #142853; color: #fff; font: 400 .72rem/1.4 'IBM Plex Sans', sans-serif; letter-spacing: 0; text-transform: none;
  opacity: 0; visibility: hidden;
}
.daz_updated_tag:hover .daz_updated_tip,
.daz_updated_tag:focus-within .daz_updated_tip { opacity: 1; visibility: visible; }
/* 28px visible button with a 44px hit area from ::before, so no negative margins are needed. */
.daz_updated_close {
  position: relative; flex: none; display: grid; place-items: center;
  width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #fff; font: 400 1.1rem/1 'IBM Plex Sans', sans-serif; cursor: pointer;
}
.daz_updated_close::before { content: ""; position: absolute; inset: -8px; }
.daz_updated_close:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.daz_spotlight { position: absolute; z-index: 58; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at center, transparent 20%, rgba(20, 40, 83, .24) 100%); }

/* ==========================================================================
   16. Small screens: page blocks only (the card handles itself through is-compact)
   ========================================================================== */
@media (max-width: 600px) {
  .help_banner,
  .plan_cta { padding: 1.25rem; }
  .welcome_main { font-size: .88rem; }
  .reveal_context { font-size: .66rem; }
  .daz_updated_tag { top: .25rem; right: .25rem; }
}

/* ==========================================================================
   17. Reduced motion: every card motion has a static end state
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .reveal_card.is-compact,
  .reveal_card.is-bloom::before,
  .reveal_data.is-popped { animation: none; }
  .reveal_more_panel,
  .reveal_more_panel.is-open,
  .reveal_more_icon,
  .tip_body,
  .tip:hover + .tip_body,
  .tip:focus-visible + .tip_body,
  .tip[aria-expanded="true"] + .tip_body,
  .reveal_scrim,
  .reveal_scrim.is-on { transition: none; }
}

/* ==========================================================================
   18. Illustration (Opus, round 8)
   ========================================================================== */
/* Greeting card scene: isometric city tile, location pin, route and local clock.
   Colours live on the SVG attributes; this file only sizes the picture and runs the motion. */
.skyline_scene {
  --scene-ease: cubic-bezier(0.22, 1, 0.36, 1);
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 320 / 110;
  overflow: visible;
}

/* Clock hands rotate around the dial centre: the dial group is translated to the centre,
   so the local origin (0 0) is the pivot for both CSS and the SVG transform attribute. */
.skyline_hour,
.skyline_minute {
  transform-box: view-box;
  transform-origin: 0 0;
  transition: transform 1400ms var(--scene-ease);
}
.skyline_minute { transition-duration: 1600ms; }

/* Ring pulse under the pin, one slow loop. */
.skyline_pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: skyline-pulse 2400ms var(--scene-ease) infinite;
}
@keyframes skyline-pulse {
  0% { transform: scale(0.45); opacity: 0.95; }
  70% { opacity: 0.25; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* Route dots drift from the city towards the clock. One dash period is 6 units. */
.skyline_route { animation: skyline-route 3200ms linear infinite; }
@keyframes skyline-route {
  to { stroke-dashoffset: -12; }
}

/* Paused when off screen (scene.js adds the class through IntersectionObserver). */
.skyline_scene.is-offscreen .skyline_pulse,
.skyline_scene.is-offscreen .skyline_route { animation-play-state: paused; }

/* Static final state: ring held as a soft halo, dots still, hands placed without easing. */
@media (prefers-reduced-motion: reduce) {
  .skyline_pulse,
  .skyline_route { animation: none; }
  .skyline_pulse { transform: none; opacity: 0.55; }
  .skyline_hour,
  .skyline_minute { transition: none; }
}
/* Same static state on demand, used by the preview page toggle. */
.skyline_scene[data-motion="off"] .skyline_pulse,
.skyline_scene[data-motion="off"] .skyline_route { animation: none; }
.skyline_scene[data-motion="off"] .skyline_pulse { transform: none; opacity: 0.55; }
.skyline_scene[data-motion="off"] .skyline_hour,
.skyline_scene[data-motion="off"] .skyline_minute { transition: none; }


/* ---------- client logo row, directly under the hero ---------- */
.section_clients { background: var(--bg-canvas); border-bottom: 1px solid var(--border-default); padding: var(--space-md) 0 var(--space-lg); overflow: clip; }
.clients_marquee { position: relative; display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.clients_track { list-style: none; margin: 0; padding: 0 var(--space-xl) 0 0; display: flex; align-items: center; gap: var(--space-xl); flex-shrink: 0; animation: logos-run 70s linear infinite; }
.clients_marquee:hover .clients_track { animation-play-state: paused; }
/* each slot is as wide as its logo, so the track gap is the only space between logos */
.clients_item { display: flex; align-items: center; justify-content: center; height: 2.5rem; flex: none; }
/* --h is each logo's own height in px, set in the markup from its measured ink so all sit at equal weight */
.clients_img { height: calc(var(--h, 32) * 1px); width: auto; max-width: 10.75rem; object-fit: contain; filter: grayscale(1) contrast(1.15); opacity: .8; transition: filter .2s ease, opacity .2s ease; }
.clients_item:hover .clients_img { filter: none; opacity: 1; }
@media (max-width: 640px) { .clients_item { height: 2rem; } .clients_img { height: calc(var(--h, 32) * .8px); } .clients_track { gap: var(--space-lg); animation-duration: 52s; } }
@media (prefers-reduced-motion: reduce) { .clients_track { animation: none; } .clients_track[aria-hidden="true"] { display: none; } .clients_marquee { overflow-x: auto; mask-image: none; } }

/* ---------- a longer, quieter headline ---------- */
.hero_split .hero_headline { font-size: clamp(2rem, 3.5vw, 3.25rem); line-height: 1.1; letter-spacing: -0.015em; max-width: 24ch; }
@media (max-width: 640px) { .hero_split .hero_headline { font-size: clamp(1.75rem, 8vw, 2.25rem); } }

/* the client row sits inside the first screen, so the hero leaves room for it */
@media (min-width: 641px) { .section_hero { min-height: calc(100svh - 190px); } .section_clients { padding: 1rem 0 1.25rem; } }


/* ==========================================================================
   First screen, rebuilt on a type scale and a spacing scale.
   Body 17px. Scale steps x1.618: 17, 27.5, 44.5. Spacing steps: 8, 13, 21, 34, 55.
   Two weights only: the headline is bold, everything else is regular.
   ========================================================================== */
@media (min-width: 992px) { .hero_split { grid-template-columns: minmax(0, 55%) minmax(0, 45%); gap: 55px; } }
@media (max-width: 991px) { .hero_split { grid-template-columns: 1fr; gap: 34px; } .hero_split .hero_content { text-align: left; } .hero_split .hero_headline { max-width: none; } .hero_split .hero_actions { justify-content: flex-start; } .hero_visual-label { text-align: left; } }
.hero_split .hero_headline { font-size: clamp(1.75rem, 3.1vw, 2.78rem); line-height: 1.08; letter-spacing: -0.02em; max-width: 22ch; margin: 13px 0 0; }
.hero_split .hero_tag { font-family: var(--font-body); font-weight: 400; font-size: clamp(1.0625rem, 1.45vw, 1.3125rem); line-height: 1.45; color: var(--admiral-navy); max-width: 44ch; margin: 21px 0 0; }
.hero_split .hero_sub { font-size: 1rem; line-height: 1.5; color: var(--fg-muted); max-width: 52ch; margin: 13px 0 0; }
.hero_split .hero_actions { margin-top: 34px; gap: 13px; }
.hero.has-fit .hero_actions { display: none; }

/* tap targets reach 44px */
.button.is-nav-cta { min-height: 44px; padding: 0 16px; }
.nav_brand { min-height: 44px; display: inline-flex; align-items: center; }

/* phone: more air, smaller steps */
@media (max-width: 640px) {
  .hero_center-wrap { padding-top: 21px; }
  .hero_split .hero_headline { font-size: clamp(1.625rem, 7.4vw, 2rem); max-width: none; }
  .hero_split .hero_tag { font-size: 1.0625rem; margin-top: 13px; }
  .hero_split .hero_sub { font-size: .9375rem; }
}

/* on a phone or tablet, the picture always comes before the words that explain it */
@media (max-width: 991px) {
  .hero_split .hero_visual { order: -1; }
  .story_cell-grid .story_visual-col { order: -1; }
}
