/* Employer intro: black hole. Mobile first. Colours and fonts come from style.css. */
.bh-story {
  --bh-space: #030303;
  --bh-type: #EEEAE3;
  --bh-display: "Wise Display Var", var(--font);
  position: relative;
  height: 520vh; height: 520svh;
  background: var(--bh-space);
}
.bh-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: var(--bh-space);
}
.bh-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* keeps the header and the lines readable when the disc rises behind them */
.bh-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(3,3,3,.62) 0%, rgba(3,3,3,.38) 22%, rgba(3,3,3,0) 40%);
}

/* the header over space: light links, light button */
.bh-dark .topbar-link { color: rgba(238, 234, 227, .72); }
.bh-dark .topbar .btn { background: #EEEAE3; color: #171717; }
.topbar-link, .topbar .btn { transition: color .35s ease, background-color .35s ease, transform .2s var(--ease), opacity .3s ease; }

/* one block of text: the line that names the feeling stays, the short lines roll under it */
.bh-text {
  position: absolute; z-index: 2; pointer-events: none;
  left: var(--edge); right: var(--edge-r);
  top: calc(env(safe-area-inset-top, 0px) + 15vh); top: calc(env(safe-area-inset-top, 0px) + 15svh);
  color: var(--bh-type);
  will-change: opacity;
}
.bh-title {
  margin: 0; max-width: 9.5em;
  font-family: var(--font); font-weight: 600;
  font-size: clamp(33px, 9.6vw, 48px); line-height: 1.02; letter-spacing: -0.035em;
  text-wrap: balance;
}
.bh-roll {
  margin-top: 22px;
  font-size: clamp(18px, 5vw, 21px); line-height: 1.3;
}
.bh-lines { margin: 0; padding: 0; list-style: none; }
.bh-lines li { max-width: 17em; margin-bottom: .55em; opacity: 0; will-change: opacity, transform; }

/* a small label over the facts, like the section labels below */
/* after the fall: one statement on the page colour, same type as the statements below */
.bh-land-label {
  position: absolute; z-index: 4; left: var(--edge); right: var(--edge-r);
  top: 38%;
  margin: 0; max-width: 11ch;
  font-family: var(--font); font-size: var(--fs-display); font-weight: 500;
  line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; color: var(--ink);
  opacity: 0; transform: scale(1.22); transform-origin: 0 50%; filter: blur(6px);
  transition: opacity .25s ease, transform .25s ease, filter .25s ease;
}
.bh-land-label.is-in {
  opacity: 1; transform: none; filter: blur(0);
  transition: opacity .18s ease-out .1s, transform .75s cubic-bezier(.16, 1, .3, 1) .1s, filter .4s cubic-bezier(.16, 1, .3, 1) .1s;
}

/* title entrance: words climb in and slow into focus (delays set per word by the script) */
.bh-pre .bh-w { display: inline-block; opacity: 0; transform: translate3d(0, .5em, 0); filter: blur(8px); }
.bh-pre.bh-go .bh-w {
  opacity: 1; transform: none; filter: blur(0);
  transition: opacity .45s cubic-bezier(.16, 1, .3, 1) var(--d), transform .95s cubic-bezier(.16, 1, .3, 1) var(--d), filter .5s cubic-bezier(.16, 1, .3, 1) var(--d);
}
.bh-pre.bh-done .bh-w { filter: none; transition: none; }
.bh-text { transform-origin: 50% 100%; }

/* ---------- the far side: four facts on the page colour ---------- */
.bh-land {
  position: absolute; z-index: 4;
  left: var(--edge); right: var(--edge-r);
  top: calc(env(safe-area-inset-top, 0px) + 104px);
  bottom: max(24px, 4vh);
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-rows: repeat(4, 1fr);
  color: var(--ink);
  visibility: hidden;
  transition: visibility 0s linear .5s;
}
.bh-land.is-in { visibility: visible; transition-delay: 0s; }
.bh-fact {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 0 2px;
  --d: 0s;
}
.bh-fact:nth-child(2) { --d: .11s; }
.bh-fact:nth-child(3) { --d: .22s; }
.bh-fact:nth-child(4) { --d: .33s; }
/* a hairline that draws itself from the left */
.bh-fact::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--line-strong);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.bh-land.is-in .bh-fact::before { transform: scaleX(1); transition: transform 1s cubic-bezier(.16, 1, .3, 1) calc(.1s + var(--d)); }
.bh-fact p { margin: 0; overflow: hidden; }
/* each line rises out of its own mask */
.bh-fact p > span {
  display: block;
  transform: translateY(108%);
  transition: transform .3s ease;
}
.bh-land.is-in .bh-fact p > span { transform: none; transition: transform .95s cubic-bezier(.16, 1, .3, 1) calc(.18s + var(--d)); }
.bh-land.is-in .bh-fact .bh-fact-text > span { transition-delay: calc(.3s + var(--d)); }
.bh-fact-big {
  font-family: var(--bh-display); font-weight: 640;
  font-size: clamp(54px, 17vw, 84px); line-height: .98; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.bh-fact-mid {
  font-family: var(--bh-display); font-weight: 620;
  font-size: clamp(27px, 7.6vw, 38px); line-height: 1.04;
  padding-bottom: .08em;
}
.bh-fact-text { margin-top: 6px !important; font-size: 16px; line-height: 1.35; color: var(--muted); max-width: 22em; }

/* short phones: tighter type so four facts always fit */
@media (max-height: 700px) {
  .bh-fact-big { font-size: clamp(44px, 14vw, 64px); }
  .bh-fact-mid { font-size: clamp(23px, 6.6vw, 30px); }
  .bh-fact-text { font-size: 14px; }
}

/* ---------- desktop: hole on the right, lines on the left, facts in a row ---------- */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  /* title alone at the top, the three lines spread along the bottom on the same grid as the facts */
  .bh-text { top: calc(env(safe-area-inset-top, 0px) + 17vh); }
  .bh-title { max-width: none; white-space: nowrap; font-size: clamp(44px, 5.2vw, 104px); }
  /* title on one line, each phrase one line of its own right under it */
  .bh-roll { margin-top: clamp(28px, 4vh, 48px); font-size: clamp(22px, 2vw, 36px); line-height: 1.15; letter-spacing: -0.015em; }
  .bh-lines li { max-width: none; white-space: nowrap; margin: 0 0 .55em; }
  .bh-veil { background: radial-gradient(ellipse 50vw 40vh at 22vw 30%, rgba(3,3,3,.55) 0%, rgba(3,3,3,.2) 60%, rgba(3,3,3,0) 100%), linear-gradient(0deg, rgba(3,3,3,.72) 0%, rgba(3,3,3,.35) 20%, rgba(3,3,3,0) 38%), linear-gradient(180deg, rgba(3,3,3,.5) 0%, rgba(3,3,3,0) 16%); }
  .bh-land {
    top: 0; bottom: 0;
    grid-template-rows: none; grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: clamp(24px, 3vw, 56px);
    align-content: center;
  }
  .bh-fact { justify-content: flex-start; padding-top: 28px; min-height: 240px; }
  .bh-fact-big { font-size: clamp(64px, 6.4vw, 112px); }
  .bh-fact-mid { font-size: clamp(28px, 2.5vw, 44px); min-height: 2.1em; }
  .bh-fact-big { min-height: 1.05em; }
  .bh-fact-text { margin-top: 14px !important; font-size: 17px; }
}

/* no WebGL2, or reduced motion: plain text, nothing moves */
.no-gl .bh-story { height: auto; }
.no-gl .bh-stage { position: relative; height: auto; overflow: visible; padding: 120px var(--edge-r) 64px var(--edge); }
.no-gl .bh-canvas, .no-gl .bh-veil { display: none; }
.no-gl .bh-text { position: static; }
.no-gl .bh-lines li { opacity: 1; }
.no-gl .bh-w { opacity: 1 !important; transform: none !important; filter: none !important; }
.no-gl .bh-land-label { position: static; opacity: 1; transform: none; filter: none; margin-top: 56px; color: rgba(238, 234, 227, .7); }
.no-gl .bh-land { position: static; visibility: visible; color: var(--bh-type); margin-top: 16px; display: block; }
.no-gl .bh-fact { padding: 20px 0; }
.no-gl .bh-fact::before { transform: none; background: rgba(238, 234, 227, .3); }
.no-gl .bh-fact p > span { transform: none; }
.no-gl .bh-fact-text { color: rgba(238, 234, 227, .7); }
.no-gl .topbar-link { color: rgba(238, 234, 227, .72); }
.no-gl .topbar .btn { background: #EEEAE3; color: #171717; }

/* ---------- client list and people: they come in like the facts ----------
   main.js wraps each name in .rise, gives every row --i and adds .is-in once the list reaches the screen.
   Without JS, or with reduced motion, everything is simply there. */
.experience .roles[data-index] { border-top: 0; position: relative; }
.experience .roles[data-index]::before {   /* the top line */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-strong);
  transform-origin: 0 50%;
}
.experience .roles[data-index] .role { position: relative; border-bottom: 0; }
.experience .roles[data-index] .role::after {   /* each row's own line */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line);
  transform-origin: 0 50%;
}
.role-name { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.role-name .rise { display: block; }

/* a lime dot in the gap the name leaves when it moves aside (hover, open) */
.experience .role-head { position: relative; }
.experience .role-head::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 9px; height: 9px; margin-top: -4.5px;
  border-radius: 50%; background: var(--accent);
  transform: scale(0); transition: transform .45s var(--ease);
}
.experience .role.is-open .role-name { transform: translateX(24px); }
.experience .role.is-open .role-head::before { transform: scale(1); }
@media (hover: hover) and (pointer: fine) {
  .experience .role-head:hover .role-name { transform: translateX(24px); }
  .experience .role-head:hover::before { transform: scale(1); }
}
.experience .role-inner { padding-left: 24px; }

/* waiting state (only when main.js will play it) */
.index-wait.roles::before, .index-wait .role::after { transform: scaleX(0); }
.index-wait .role-name .rise { transform: translateY(105%); }
.index-wait .role-icon { transform: scale(0) rotate(-90deg); }
/* playing */
.index-wait.is-in.roles::before { transform: scaleX(1); transition: transform 1.1s cubic-bezier(.16, 1, .3, 1); }
.index-wait.is-in .role::after { transform: scaleX(1); transition: transform 1.1s cubic-bezier(.16, 1, .3, 1) calc(.12s + var(--i) * .09s); }
.index-wait.is-in .role-name .rise { transform: none; transition: transform 1s cubic-bezier(.16, 1, .3, 1) calc(.08s + var(--i) * .09s); }
.index-wait.is-in .role-icon { transform: none; transition: transform .8s cubic-bezier(.16, 1, .3, 1) calc(.4s + var(--i) * .09s); }

/* people: each photo opens from the bottom, then the three lines rise */
.person-name, .person-role, .person-meta { overflow: hidden; }
.person .rise { display: block; }
.people-grid.index-wait .person-photo { clip-path: inset(100% 0 0 0 round 14px); }
.people-grid.index-wait .person .rise { transform: translateY(110%); }
.people-grid.index-wait.is-in .person-photo { clip-path: inset(0 0 0 0 round 14px); transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1) calc(var(--i) * .08s); }
.people-grid.index-wait.is-in .person .rise { transform: none; transition: transform .9s cubic-bezier(.16, 1, .3, 1) calc(.55s + var(--i) * .08s); }
.people-grid.index-wait.is-in .person-role .rise { transition-delay: calc(.62s + var(--i) * .08s); }
.people-grid.index-wait.is-in .person-meta .rise { transition-delay: calc(.69s + var(--i) * .08s); }

/* ---------- facts, below About: four in one style ---------- */
.emp-facts-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(16px, 3vw, 48px);
}
.emp-facts-list li { border-top: 1px solid var(--line-strong); padding: 18px 0 32px; }
.emp-fact-head { font-size: clamp(40px, 11vw, 88px); font-weight: 700; line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.emp-fact-text { margin-top: 12px; font-size: 15px; line-height: 1.4; color: var(--muted); max-width: 22em; }
@media (min-width: 900px) { .emp-facts-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } .emp-fact-text { font-size: 16px; } }

/* beyond hiring */
.emp-beyond-text { margin-top: 24px; max-width: 34em; font-size: var(--fs-lead); line-height: 1.4; color: var(--muted); }

/* the statement after the fall: one bold line, sized by the script to fill the width (capped) */
.bh-land-label { max-width: none; white-space: nowrap; font-weight: 700; letter-spacing: -0.045em; }
.no-gl .bh-land-label { white-space: normal; }

/* a quiet note under a client name that doesn't explain itself */
.role-note { grid-column: 1; margin-top: -10px; font-size: 14px; line-height: 1.3; color: var(--muted); letter-spacing: 0; }

/* one glint runs across the statement as it lands */
:root:not(.no-gl) .bh-land-label {
  background: linear-gradient(100deg, var(--ink) 44%, #a3a29c 50%, var(--ink) 56%) 100% 0 / 300% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
:root:not(.no-gl) .bh-land-label.is-in { background-position: 0% 0; transition: opacity .18s ease-out .1s, transform .75s cubic-bezier(.16, 1, .3, 1) .1s, filter .4s cubic-bezier(.16, 1, .3, 1) .1s, background-position 1s cubic-bezier(.45, 0, .2, 1) .6s; }

/* one quiet line under the landing statement */
.bh-land-sub {
  position: absolute; z-index: 4; left: var(--edge); right: var(--edge-r); top: 52%;
  margin: 0; max-width: 24em;
  font-size: clamp(15px, 4vw, 17px); line-height: 1.4; color: var(--muted);
  opacity: 0; transform: translate3d(0, .6em, 0);
  transition: opacity .25s ease, transform .25s ease;
}
.bh-land-sub.is-in { opacity: 1; transform: none; transition: opacity .5s ease-out .5s, transform .9s cubic-bezier(.16, 1, .3, 1) .5s; }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) { .bh-land-sub { max-width: none; text-align: center; font-size: clamp(18px, 1.55vw, 28px); } }
@media (min-width: 1200px) and (min-aspect-ratio: 1/1) { .bh-land-sub { white-space: nowrap; } }
.no-gl .bh-land-sub { position: static; opacity: 1; transform: none; margin-top: 16px; color: rgba(238, 234, 227, .6); }

/* a quiet hint that the page goes on: small "Scroll down" with a lime dot drifting under it, shown with the landing, gone once you scroll past */
.bh-scroll-cue {
  position: absolute; z-index: 4; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
  transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font); font-size: 12px; font-weight: 500; letter-spacing: .01em; line-height: 1;
  color: rgb(238, 234, 227); white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .25s ease;
}
.bh-scroll-cue > span { opacity: .5; }
.bh-scroll-cue::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: bh-cue 2.4s ease-in-out infinite;
}
.bh-scroll-cue.is-in { opacity: 1; transition: opacity .8s ease-out 1.5s; }
.bh-scroll-cue.is-gone { opacity: 0; transition: opacity .2s ease-out; }
@keyframes bh-cue { 0%, 100% { transform: none; } 50% { transform: translate3d(0, 5px, 0); } }
@media (prefers-reduced-motion: reduce) { .bh-scroll-cue::after { animation: none; } }
.no-gl .bh-scroll-cue { display: none; }

/* desktop: the landing statement sits in the middle, like the line under it */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  :root:not(.no-gl) .bh-land-label { text-align: center; transform-origin: 50% 50%; }
}


/* Footer (same as the candidate page, copied from candidate-story.css): inverted (ink ground, paper type), with room above. The two links one under the other (their arrows
   slide on hover), the small print on one line, and right under it the name in caps, edge to edge, its bottom cut off by the page. */
.footer-big { padding-bottom: 0; overflow: hidden; background: var(--ink); color: var(--bg); margin-top: clamp(48px, 8vw, 120px); }
.footer-row { display: flex; flex-direction: column; gap: clamp(56px, 9vw, 120px); padding-top: clamp(72px, 11vw, 160px); }
.footer-social { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }   /* one under the other */
.footer-a { display: inline-flex; align-items: center; gap: .18em; font-size: clamp(30px, 3vw, 44px); font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; color: var(--bg); text-decoration: none; }
.arr { position: relative; display: inline-block; width: .62em; height: .62em; overflow: hidden; flex: none; }
.arr svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: square; transition: transform .45s var(--ease); }
.arr svg + svg { transform: translate(-110%, 110%); }
@media (hover: hover) {
  .footer-a:hover .arr svg:first-child, .footer-a:focus-visible .arr svg:first-child { transform: translate(110%, -110%); }
  .footer-a:hover .arr svg + svg, .footer-a:focus-visible .arr svg + svg { transform: none; }
}
.footer-small { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }   /* one line: the copyright left, the two links right, one size and colour */
.footer-small .copyright, .footer-small .footer-links a { font-size: clamp(12px, 3.2vw, 14px); line-height: 1.3; color: rgba(245, 245, 242, .6); white-space: nowrap; }
.footer-small .copyright { margin: 0; width: auto; }
.footer-small .footer-links { margin: 0; gap: 6px clamp(14px, 4vw, 28px); flex-wrap: nowrap; }
@media (max-width: 640px) { .footer-small .lg { display: none; } }   /* phones: short link names keep the small print on one line */
.footer-word { display: block; width: 100%; height: auto; aspect-ratio: 660.4 / 67; margin-top: 12px; overflow: visible; fill: var(--bg); }   /* glued to the small print; the page cuts its bottom */
/* during the pull the footer box rides up with the page: its ink runs on below it (a shadow, which never adds scroll), and the name's bottom may hang out of the box */
html.cs-pull .footer-big { overflow: visible; box-shadow: 0 160px 0 0 var(--ink); }
html.cs-end { overscroll-behavior-y: none; }   /* at the end of the page the pull goes into the stems, not the bounce */
