/* ==========================================================================
   Hipson Benefits — site layer.
   The Industry design system (industry.css) is the source of truth for every
   token, class and component. This file does exactly three things:
     1. re-points the Industry token set to the dark "night plate" ground,
     2. adds the page-level layout primitives the system does not ship,
     3. adds motion, and turns all of it off under prefers-reduced-motion.
   No hex value below is invented — each is the dark counterpart already used
   in the Hipson canvas files.
   ========================================================================== */

:root {
  /* Ground */
  --color-bg: #0e1720;
  --color-bg-2: #16232f;
  --color-bg-3: #1d2f3f;
  --color-surface: #16232f;
  --color-text: #e8edf2;
  --color-paper: #f2f2f3;   /* the Industry light ground, reversed onto plates */
  --color-divider: rgba(232, 237, 242, 0.16);
  --color-divider-2: rgba(232, 237, 242, 0.28);

  /* Neutrals, reversed onto the dark ground */
  --color-neutral-400: rgba(232, 237, 242, 0.40);
  --color-neutral-600: rgba(232, 237, 242, 0.58);
  --color-neutral-700: rgba(232, 237, 242, 0.72);
  --color-neutral-800: rgba(232, 237, 242, 0.86);

  /* Brand guide Rev 2026.2: Signal Orange carries every voice role — kickers,
     labels, numbers in claims, links, the lockup. Steel survives only where
     the guide allows it: hairlines, frames, chart scaffolding. The -300/-700/
     -800 steps are re-pointed to orange because those are the steps the markup
     uses for voice; -500/-600 stay steel because those are the steps the
     markup uses for structure. */
  --color-accent: #94bce3;           /* structural: focus ring, selection */
  --color-accent-100: rgba(237, 164, 95, 0.14);
  --color-accent-200: rgba(232, 237, 242, 0.82);
  --color-accent-300: #eda45f;       /* voice on dark plates */
  --color-accent-500: #5980a6;       /* structural: media frame borders */
  --color-accent-600: #5980a6;
  --color-accent-700: #eda45f;       /* voice: kickers, numbers, lockup, links */
  --color-accent-800: #f5c592;       /* voice: hover step */
  --color-accent-900: #16232f;

  /* Signal Orange, per the guide. --sig-l doubles as the label/number tone. */
  --sig: #c9702f;
  --sig-l: #e2954a;
  --navy-duo: #16324e;               /* the imagery wash */

  --wrap: 1280px;
  --gut: clamp(18px, 4vw, 40px);
}

/* The `hidden` attribute has to beat an inline `display` declaration — the
   intake form's fieldsets carry `display:grid` inline, and an author rule
   always beats the UA stylesheet's `[hidden]{display:none}`. Without this the
   form shows all three steps at once. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--color-accent-700); text-decoration: none; }
a:hover { color: var(--color-accent-800); }
img { display: block; max-width: 100%; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 60;
  background: var(--sig); color: var(--color-bg); padding: 12px 18px;
  font-family: var(--font-heading); letter-spacing: .08em; text-transform: uppercase;
}
.skip:focus { left: 0; color: var(--color-bg); }

/* — layout primitives — */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.sec { padding-block: clamp(40px, 6vw, 76px); }
.sec-line { border-top: 1px solid var(--color-divider); }
.sec-band { background: var(--color-bg-2); border-block: 1px solid var(--color-divider); }
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.kicker {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--color-accent-700);
}
.lede { font-size: 20px; line-height: 1.6; color: var(--color-neutral-800); }
.muted { color: var(--color-neutral-600); }
.h-xl { font-size: clamp(38px, 7vw, 82px); line-height: .95; letter-spacing: -.025em; margin: 0; }
.h-lg { font-size: clamp(34px, 6vw, 70px); line-height: .98; letter-spacing: -.025em; margin: 0; }
.h-md { font-size: clamp(26px, 3.8vw, 44px); letter-spacing: -.02em; margin: 0; }
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 32px;
}
.sec-head p { max-width: 46ch; margin: 0; font-size: 15px; color: var(--color-neutral-600); }

/* — buttons: the system's shapes, this site's colours — */
.btn { color: var(--color-text); border-color: var(--color-divider); }
.btn:hover { background: rgba(232, 237, 242, .07); color: var(--color-text); }
.btn:active { background: rgba(232, 237, 242, .14); }
/* Ink on orange, not white on orange. White gives 3.59:1 against --sig and
   2.43:1 against the hover step — both under AA. The dark ground gives 5.03:1
   and 7.9:1, and keeps the orange exactly as the canvas drew it. */
.btn-sig {
  background: var(--sig); color: var(--color-bg); border-color: var(--sig);
  padding: 13px 24px; font-size: 15px; height: auto; font-weight: 600;
}
.btn-sig:hover { background: var(--sig-l); border-color: var(--sig-l); color: var(--color-bg); }
.btn-sig:active { background: #b45f24; border-color: #b45f24; color: #fff; }
.btn-lg { padding: 13px 24px; font-size: 15px; height: auto; }

/* Form controls need a boundary a sighted user can actually find: the system's
   hairline divider is 1.54:1 on this ground, under the 3:1 WCAG 1.4.11 floor
   for UI components. Decorative .blueprint frames stay at the hairline. */
.input, .radio { border-color: rgba(232, 237, 242, .42); }
.input { border: 1px solid rgba(232, 237, 242, .42); }
.radio .dot { border-color: rgba(232, 237, 242, .42); }
.input[aria-invalid="true"] { border-color: var(--sig-l); }

/* — the wireframe frame, restated for the dark ground — */
.blueprint > .corner { color: rgba(232, 237, 242, .55); }
.plate { background: var(--color-bg-2); }
.plate-2 { background: var(--color-bg-3); }

/* — imagery: the navy duotone, per the guide —
   Recipe (Rev 2026.2, section 04): grayscale → navy #16324e underlay →
   luminosity blend at 92%. This replaces the Industry steel colour-wash:
   Rev 2026.4: the full grayscale + luminosity recipe read as washed-out on
   real photographs, so images now keep most of their own colour and the navy
   ground shows only at the edges. The brand still reads navy; the pictures
   read as pictures. */
.duotone { background: var(--navy-duo); }
.duotone::after { display: none; }
.duotone > img, .duotone img, .duotone > video {
  filter: grayscale(.25) saturate(1.05) contrast(1.06); mix-blend-mode: normal; opacity: 1;
}
/* Michael's portrait is the one image allowed near-neutral: a 10% wash. */
.wash-10 { background: var(--navy-duo); }
.wash-10 > img, .wash-10 img {
  filter: grayscale(.25); mix-blend-mode: normal; opacity: 1;
}
.wash-10::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--navy-duo); opacity: .1;
}

/* — header — */
.hdr {
  position: sticky; top: 0; z-index: 20;
  background: var(--color-bg); border-bottom: 1px solid var(--color-divider);
}
.hdr-in {
  max-width: var(--wrap); margin: 0 auto;
  padding: 14px var(--gut);
  display: flex; align-items: center; gap: 10px;
}
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; color: var(--color-text); }
.brand:hover { color: var(--color-text); }
.brand .mark {
  flex: none; width: 34px; height: 34px; border: 2px solid var(--color-accent-700);
  display: grid; place-items: center;
  font-family: var(--font-heading); font-size: 20px; line-height: 1; color: var(--color-accent-700);
}
.brand .word { font-family: var(--font-heading); font-size: 21px; letter-spacing: .01em; }
.brand .word span { color: var(--color-accent-700); }
.nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-links .btn {
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  border-color: transparent;
}
.nav-links .btn[aria-current="page"] { color: var(--color-accent-700); border-color: var(--color-divider); }
.nav-toggle { display: none; }

/* — footer — */
.ftr { border-top: 1px solid var(--color-divider); margin-top: 40px; }
.ftr-in {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(28px, 4vw, 44px) var(--gut) 56px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 36px;
}
/* Footer column labels. They are labels, not section headings — the <nav>
   around each one carries the accessible name, so nothing here is an <h4>
   dangling under an <h1>. */
.ftr .ftr-h {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-neutral-600); margin: 0 0 10px; font-weight: 500;
}
.ftr ul { list-style: none; margin: 0; padding: 0; font-size: 13.5px; line-height: 2.1; }
.ftr .legal {
  grid-column: 1 / -1; border-top: 1px solid var(--color-divider); padding-top: 20px;
  font-size: 11.5px; line-height: 1.7; color: var(--color-neutral-600);
}

/* — figures — */
.fig { position: relative; }
.fig img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* The pause control for the one video. It sits over the clip's bottom-left
   corner, inside the frame, so it is findable without floating loose. */
.media-toggle {
  position: absolute; z-index: 3; left: 12px; bottom: 12px;
  background: rgba(14, 23, 32, .82); border-color: var(--color-divider-2);
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
}
.media-toggle:hover { background: rgba(14, 23, 32, .95); }

/* — motion: reveal on scroll. Nothing moves that isn't earning attention. — */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.rv.in { opacity: 1; transform: none; }

/* — responsive — */
@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-flex; font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  }
  .nav-links {
    display: none; order: 3; width: 100%; flex-direction: column; align-items: stretch;
    gap: 2px; padding-top: 10px; border-top: 1px solid var(--color-divider); margin-top: 12px;
  }
  .nav-links.open { display: flex; }
  .nav-links .btn { justify-content: flex-start; padding: 12px 4px; }
  .hdr-in { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .sec-head { margin-bottom: 24px; }
  .lede { font-size: 18px; }
  .grid { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Media layer — added so the pages stop being walls of type.
   Everything here still obeys Industry: square corners, hairline frames,
   registration marks, and every photograph washed through the steel duotone.
   ========================================================================== */

/* A figure that survives a failed image: the blueprint plate is drawn in CSS
   underneath, so a 404 shows a drawing rather than a broken-image icon. */
.media {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(0deg, #16232f 0 39px, #263a4d 39px 40px),
    repeating-linear-gradient(90deg, #16232f 0 39px, #263a4d 39px 40px);
  background-blend-mode: lighten;
}
.media > img, .media > video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.media-3x2  { aspect-ratio: 3 / 2; }
.media-band { height: clamp(200px, 26vw, 340px); }
.media-thumb { height: 156px; }

/* — hero — */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--color-divider); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img, .hero-bg video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Two washes: the navy duotone every brand photograph gets (same recipe as
   .duotone), then a ground-coloured gradient so 82px type stays readable. */
.hero-bg { background: var(--navy-duo); }
.hero-bg img, .hero-bg video { filter: grayscale(.18) saturate(1.05) contrast(1.12) brightness(1.05); mix-blend-mode: normal; opacity: 1; }
.hero-bg::after { display: none; }
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  /* Spotlight: a clear ellipse over the subject, heavy shade over the text
     column, vignette at the edges. Each hero can move the light with
     --spot-x / --spot-y (defaults suit a subject right of centre). */
  background:
    radial-gradient(ellipse 52% 72% at var(--spot-x, 72%) var(--spot-y, 50%),
      rgba(14,23,32,0) 0%, rgba(14,23,32,.10) 42%, rgba(14,23,32,.52) 78%, rgba(14,23,32,.74) 100%),
    linear-gradient(100deg,
      var(--color-bg) 0%, rgba(14,23,32,.88) 24%, rgba(14,23,32,.46) 48%, rgba(14,23,32,0) 76%),
    linear-gradient(0deg, var(--color-bg) 0%, transparent 26%);
}
.hero-in { position: relative; z-index: 2; padding-block: clamp(54px, 9vw, 112px) clamp(26px, 4vw, 42px); }
.hero-in .h-xl { max-width: 17ch; }

/* — the three outcomes under the hero: what the client actually gets — */
.outcomes {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  border-top: 1px solid var(--color-divider);
}
.outcome { padding: 26px 26px 30px 0; }
.outcome + .outcome { padding-left: 26px; border-left: 1px solid var(--color-divider); }
.outcome .fig-num {
  font-family: var(--font-heading); font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1; color: var(--sig-l);
}
.outcome h2 { font-size: 21px; margin: 10px 0 6px; letter-spacing: 0; }
.outcome p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--color-neutral-700); }

/* — a media + copy split — */
.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
.split-media { max-width: 560px; width: 100%; }

/* — cards with a picture on top — */
.tile { display: flex; flex-direction: column; color: var(--color-text); padding: 0; }
.tile:hover { color: var(--color-text); }
.tile .media { flex: none; }
.tile-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tile-body h2 { font-size: 25px; line-height: 1.08; margin: 0; }
.tile-body p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--color-neutral-700); }
.tile-list {
  margin: auto 0 0; padding: 12px 0 0; border-top: 1px solid var(--color-divider);
  font-size: 13px; line-height: 2; color: var(--color-neutral-700); list-style: none;
}
.tile:hover .media > img { transform: scale(1.03); }

/* — caption under a figure — */
.cap {
  margin: 12px 0 0; font-size: 11.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--color-neutral-600);
}

@media (max-width: 700px) {
  .outcome, .outcome + .outcome {
    padding: 20px 0; border-left: 0; border-top: 1px solid var(--color-divider);
  }
  .outcomes { border-top: 0; }
  .hero-veil {
    background:
      radial-gradient(ellipse 78% 42% at 62% 26%,
        rgba(14,23,32,0) 0%, rgba(14,23,32,.18) 55%, rgba(14,23,32,.55) 100%),
      linear-gradient(0deg, var(--color-bg) 14%, rgba(14,23,32,.82) 52%, rgba(14,23,32,.30) 100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .media > img { transition: none; }
  .tile:hover .media > img { transform: none; }
}


/* ==========================================================================
   Rev 2026.3 polish layer — mobile hardening + surface interest.
   ========================================================================== */

/* No horizontal scroll, ever. Guards the few fixed-min grids that remain. */
html, body { overflow-x: clip; }
img { height: auto; }

/* Primary CTA earns a glow; hover steps brighter. One loud thing per screen. */
.btn-sig {
  box-shadow: 0 0 18px rgba(201, 112, 47, .35), 0 4px 24px rgba(201, 112, 47, .18);
  transition: box-shadow .2s ease, transform .15s ease;
}
.btn-sig:hover { box-shadow: 0 0 26px rgba(226, 149, 74, .55), 0 6px 30px rgba(201, 112, 47, .3); transform: translateY(-1px); }

/* Hero gets the blueprint grid the brand draws everywhere else. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 188, 227, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 188, 227, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 70%);
}

/* Tiles: the frame answers on hover. */
.tile { transition: transform .2s ease, box-shadow .2s ease; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, .35), 0 0 0 1px var(--sig) inset; }
.tile .card-kicker { position: relative; padding-bottom: 8px; }
.tile .card-kicker::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--sig); }

/* Testimonials: give the quote its mark. */
figure.blueprint blockquote { position: relative; padding-top: 26px; }
figure.blueprint blockquote::before {
  content: "\201C"; position: absolute; top: -8px; left: -4px;
  font-family: var(--font-heading); font-size: 64px; line-height: 1;
  color: var(--sig); opacity: .85;
}

/* Full-bleed face band — a human break between sections. */
.faceband { position: relative; min-height: 340px; display: flex; align-items: flex-end; border-block: 1px solid var(--color-divider); overflow: hidden; }
.faceband > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.faceband .fb-veil { position: absolute; inset: 0; background: linear-gradient(90deg, var(--color-bg) 2%, rgba(14,23,32,.62) 34%, rgba(14,23,32,.10) 100%); }
.faceband .wrap { position: relative; padding-block: 40px; }
@media (max-width: 700px) {
  .faceband { min-height: 420px; }
  .faceband .fb-veil { background: linear-gradient(0deg, var(--color-bg) 14%, rgba(14,23,32,.66) 54%, rgba(14,23,32,.12) 100%); }
}

/* Small-phone hardening. */
@media (max-width: 420px) {
  :root { --gut: 16px; }
  .h-xl { font-size: clamp(32px, 10vw, 40px); }
  .hdr-in .brand .word { font-size: 18px; }
  .media-thumb { height: 180px; }
  .aca-line { grid-template-columns: 1fr; gap: 4px; }
  .aca-line strong { white-space: normal; }
  .outcomes .fig-num { font-size: 30px; }
  iframe { max-width: 100%; }
}

