/* BI How We Work, v2.1.0. Generated from the design page; edit there and rebuild. */
/* Layout: a pinned stage the reader scrolls through in depth. Each step is a studio photograph set in 3D space;
   scrolling dollies the camera forward from one to the next. Copy sits left over the photograph's dark side.
   One committed dark look in the BI brand reds (single theme by choice). */
.bihw {
  --bi-red: #71160e;
  --bi-red-dark: #51000c;
  --bi-red-deep: #3d090c;
  --bi-red-mid: #680b0b;
  --bi-red-soft: #bf5959;
  --bi-blush: #e9b9b4;
  --bi-ink: #002b2b;
  --bi-charcoal: #424142;
  --bi-paper: #f5f5f5;
  --bi-white: #ffffff;
  --bi-text-dim: rgba(255, 255, 255, .82);
  --bi-text-faint: rgba(255, 255, 255, .74);
  --bi-hair: rgba(255, 255, 255, .22);
  --bi-font-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --bi-font-head: "Oranienbaum", Cambria, Georgia, "Times New Roman", serif;
  --bi-pill: 25px;
  --bi-grid: 1300px;
  --bi-ease: cubic-bezier(.2, .7, .2, 1);
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

/* Neutralise theme typography on the elements this section uses; component rules below set what they need. */
.bihw :where(h2, h3, p, figure, ol, li, article) { margin: 0; padding: 0; border: 0; background: none; letter-spacing: normal; text-transform: none; color: inherit; list-style: none; }
.bihw :where(h2, h3) { font-weight: 400; }
.bihw :where(img) { max-width: none; border-radius: 0; box-shadow: none; }

.bihw { position: relative; width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); background: var(--bi-red-deep); color: var(--bi-white); font-family: var(--bi-font-body); -webkit-font-smoothing: antialiased; text-align: left; }
.bihw *, .bihw *::before, .bihw *::after { box-sizing: border-box; }
.bihw a:focus-visible, .bihw button:focus-visible { outline: 2px solid var(--bi-white); outline-offset: 3px; }

.bihw-wrap { max-width: var(--bi-grid); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

/* ---------------------------------------------------------------- intro */
.bihw-intro, .bihw-outro { color: #ffffff; }
.bihw-intro { background: linear-gradient(45deg, var(--bi-red-deep) 20%, var(--bi-red-mid) 80%); }
.bihw-intro .bihw-wrap { padding-block: 88px 64px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.bihw-eyebrow { display: flex; align-items: center; gap: 16px; margin: 0 0 22px; font-family: Cambria, "Oranienbaum", Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 700; line-height: 1; letter-spacing: .22em; text-transform: uppercase; color: var(--bi-white); }
.bihw-intro h2 { margin: 0; font-family: var(--bi-font-head); font-weight: 400; font-size: clamp(40px, 6vw, 76px); line-height: 1.02; text-wrap: balance; }
.bihw-intro__lede { margin: 0; padding-left: 28px; border-left: 2px solid var(--bi-red-soft); font-size: 19px; line-height: 1.65; color: var(--bi-text-dim); max-width: 46ch; }

/* ---------------------------------------------------------------- depth stage */
.bihw-stage { --n: 9; position: relative; height: calc((var(--n) - 1) * 75vh + 100vh); }
.bihw-stage__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--bi-red-deep); perspective: 1100px; perspective-origin: 64% 48%; }
.bihw-depth { position: absolute; inset: 0; transform-style: preserve-3d; }
.bihw-shot { position: absolute; inset: -2%; margin: 0; opacity: 0; transform-style: preserve-3d; will-change: transform, opacity; box-shadow: 0 50px 120px rgba(20, 2, 4, .65); background: var(--bi-red-deep); overflow: hidden; }
.bihw-shot:first-child { opacity: 1; }
.bihw-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; display: block; transform-origin: 70% 55%; will-change: transform; }
.bihw-shade { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(61, 9, 12, .94) 0%, rgba(61, 9, 12, .84) 30%, rgba(61, 9, 12, .34) 48%, rgba(61, 9, 12, 0) 62%),
    radial-gradient(130% 100% at 70% 50%, rgba(0, 0, 0, 0) 55%, rgba(30, 3, 5, .55) 100%); }
.bihw-grain { position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

.bihw-stage__ui { position: absolute; inset: 0; pointer-events: none; }
.bihw-stage__ui .bihw-wrap { height: 100%; display: grid; grid-template-columns: minmax(0, 470px) 1fr; align-items: center; }
.bihw-stage__ui a, .bihw-stage__ui button { pointer-events: auto; }

.bihw-steps { position: relative; }
.bihw-step { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%) translateY(18px); opacity: 0; visibility: hidden; transition: opacity .35s ease, transform .35s ease, visibility 0s .35s; }
.bihw-step.is-active { opacity: 1; visibility: visible; transform: translateY(-50%); transition: opacity .7s var(--bi-ease) .15s, transform .7s var(--bi-ease) .15s, visibility 0s; }
.bihw-stage.is-scrubbed .bihw-step { transition: none; }
.bihw-step__meta { display: flex; align-items: baseline; gap: 14px; margin: 0 0 14px; }
.bihw-step__num { font-family: var(--bi-font-head); font-size: 64px; line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
.bihw-step__name { font-family: Cambria, "Oranienbaum", Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 700; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--bi-blush); }
.bihw-step h3 { margin: 0 0 14px; font-family: var(--bi-font-head); font-weight: 400; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; text-wrap: balance; }
.bihw-step p { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--bi-text-dim); max-width: 44ch; }
.bihw-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.bihw-chip { display: inline-flex; padding: 8px 14px; border-radius: var(--bi-pill); border: 1px solid rgba(255, 255, 255, .35); color: var(--bi-white); font-size: 12.5px; line-height: 1.3; text-decoration: none; background: rgba(61, 9, 12, .55); backdrop-filter: blur(6px); transition: background .25s, border-color .25s; }
.bihw-chip:hover { background: rgba(255, 255, 255, .14); border-color: var(--bi-white); }

/* station rail */
.bihw-rail { position: absolute; right: var(--gutter-r); top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bihw-rail::before { content: ""; position: absolute; right: 7px; top: 14px; bottom: 14px; width: 1px; background: var(--bi-hair); }
.bihw-rail__fill { position: absolute; right: 7px; top: 14px; width: 1px; height: 0; background: var(--bi-white); }
.bihw-rail button { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 6px 0; background: none; border: 0; cursor: pointer; color: var(--bi-text-faint); font: 500 11.5px/1 var(--bi-font-body); letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.bihw-rail button span { opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s var(--bi-ease), color .3s; }
.bihw-rail button i { width: 15px; height: 15px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6); background: var(--bi-red-deep); transition: background .35s, transform .35s var(--bi-ease), border-color .35s; }
.bihw-rail button:hover span, .bihw-rail button:focus-visible span, .bihw-rail li.is-active span { opacity: 1; transform: none; }
.bihw-rail li.is-done i { background: rgba(255, 255, 255, .45); border-color: var(--bi-white); }
.bihw-rail li.is-active i { background: var(--bi-white); border-color: var(--bi-white); transform: scale(1.25); box-shadow: 0 0 0 5px rgba(255, 255, 255, .12); }
.bihw-rail li.is-active button { color: var(--bi-white); }

.bihw-hint { position: absolute; left: var(--gutter-l); bottom: max(28px, env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--bi-text-faint); transition: opacity .5s; }
.bihw-hint i { position: relative; width: 1px; height: 34px; background: var(--bi-hair); overflow: hidden; }
.bihw-hint i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--bi-white); animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { to { top: 100%; } }
.bihw-hint.is-gone { opacity: 0; }
.bihw-counter { position: absolute; right: var(--gutter-r); bottom: max(28px, env(safe-area-inset-bottom, 0px)); font-size: 12px; letter-spacing: .14em; color: var(--bi-text-faint); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- outro */
.bihw-outro { background: linear-gradient(45deg, var(--bi-red-deep) 20%, var(--bi-red-mid) 80%); border-top: 1px solid rgba(255, 255, 255, .08); }
.bihw-outro .bihw-wrap { padding-block: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.bihw-outro h2 { margin: 0; font-family: var(--bi-font-head); font-weight: 400; font-size: clamp(28px, 3vw, 38px); line-height: 1.15; max-width: 22ch; text-wrap: balance; }
.bihw-btn { display: inline-block; font: 500 15px/1.2 var(--bi-font-body); padding: 14px 40px; border-radius: var(--bi-pill); border: 1px solid var(--bi-white); background: var(--bi-white); color: var(--bi-red); text-decoration: none; transition: background .3s, transform .3s var(--bi-ease), box-shadow .3s; }
.bihw-btn:hover { background: #f7eceb; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, .25); }

/* ---------------------------------------------------------------- phone */
@media (max-width: 760px) {
  .bihw-intro .bihw-wrap { grid-template-columns: 1fr; gap: 26px; padding-block: 64px 44px; }
  .bihw-eyebrow { font-size: 16px; }
  .bihw-intro__lede { font-size: 17px; padding-left: 20px; }
  .bihw-stage__pin { perspective-origin: 50% 30%; }
  .bihw-shot { inset: 0 0 38% 0; }
  .bihw-shot img { object-position: 78% 50%; }
  .bihw-shade { background: linear-gradient(to top, rgba(61, 9, 12, 1) 0%, rgba(61, 9, 12, .97) 40%, rgba(61, 9, 12, .4) 60%, rgba(61, 9, 12, 0) 72%); }
  .bihw-stage__ui .bihw-wrap { grid-template-columns: 1fr; align-items: end; }
  .bihw-steps { align-self: end; margin-bottom: 72px; }
  .bihw-step { top: auto; bottom: 0; transform: translateY(18px); }
  .bihw-step.is-active { transform: none; }
  .bihw-step__num { font-size: 46px; }
  .bihw-step__name { font-size: 17px; }
  .bihw-step h3 { font-size: 28px; }
  .bihw-step p { font-size: 15px; }
  .bihw-chip:nth-child(n+4) { display: none; }
  .bihw-rail { top: max(18px, env(safe-area-inset-top, 0px)); right: auto; left: var(--gutter-l); transform: none; grid-auto-flow: column; gap: 10px; }
  .bihw-rail::before, .bihw-rail__fill { display: none; }
  .bihw-rail button span { display: none; }
  .bihw-hint { left: auto; right: var(--gutter-r); bottom: 24px; }
  .bihw-counter { top: max(22px, env(safe-area-inset-top, 0px)); bottom: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .bihw-step, .bihw-step.is-active { transition: opacity .2s linear, visibility 0s; }
  .bihw-hint i::after { animation: none; }
}

/* Theme link and button styles must not leak in. */
.bihw a.bihw-chip, .bihw a.bihw-chip:hover, .bihw a.bihw-chip:focus, .bihw a.bihw-chip:visited { color: var(--bi-white); text-decoration: none; }
.bihw a.bihw-btn, .bihw a.bihw-btn:hover, .bihw a.bihw-btn:focus, .bihw a.bihw-btn:visited { color: var(--bi-red); text-decoration: none; }
.bihw .bihw-rail button, .bihw .bihw-rail button:hover, .bihw .bihw-rail button:focus { background: none; border: 0; box-shadow: none; min-height: 0; width: auto; height: auto; margin: 0; padding: 6px 0; border-radius: 0; line-height: 1; }
.bihw .bihw-rail li { margin: 0; padding: 0; }
.bihw .bihw-rail li::before, .bihw .bihw-rail li::marker { content: none; }
/* Fallback when a theme wrapper stops position: sticky from working: the script moves the pin itself. */
.bihw-stage.is-jspin .bihw-stage__pin { position: absolute; top: 0; left: 0; right: 0; will-change: transform; }

/* Improvements */
.bihw .bihw-rail li { display: flex; justify-content: flex-end; }
.bihw-hint { left: max(var(--gutter-l), calc(50% - 630px)); }
.bihw-counter { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .75); }
.bihw-rail:hover button span { opacity: .9; transform: none; }
.bihw-cta-mini { position: absolute; left: max(var(--gutter-l), calc(50% - 630px)); bottom: max(26px, env(safe-area-inset-bottom, 0px)); padding: 10px 20px; border: 1px solid rgba(255, 255, 255, .55); border-radius: var(--bi-pill); background: rgba(61, 9, 12, .6); backdrop-filter: blur(6px); font-size: 13.5px; line-height: 1.2; opacity: 0; visibility: hidden; transition: opacity .45s, visibility 0s .45s, background .25s, border-color .25s; }
.bihw-cta-mini.is-on { opacity: 1; visibility: visible; transition: opacity .45s .45s, visibility 0s, background .25s, border-color .25s; }
.bihw-cta-mini:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.bihw a.bihw-cta-mini, .bihw a.bihw-cta-mini:hover, .bihw a.bihw-cta-mini:focus, .bihw a.bihw-cta-mini:visited { color: var(--bi-white); text-decoration: none; }
@media (max-width: 760px) {
  .bihw-cta-mini { bottom: 16px; padding: 9px 16px; font-size: 13px; }
  .bihw-hint { left: auto; }
}
