/* ============================================================
   BOARD SERVICES — the handoff to EMA STAIR.

   This is not another capability panel, and it should not look like one.
   EMA STAIR Board Services is a separate venture with EMA Partners India
   and lives at its own domain, so the band reads as a door to somewhere
   else rather than as another section of this site: a darker ground, its
   own lockup, and a drawing that belongs to it.

   The drawing is a board table seen from above with nine seats. Eight fill
   in on entry; the ninth stays open and amber, because an empty seat
   correctly found is the thing the venture sells.

   Every animation here is an ENTRANCE, not a loop. Nothing on this band
   runs forever - the site had a problem with exactly that - and the only
   properties animated are transform and opacity, so the compositor owns
   all of it.
   ============================================================ */

.bsv{background:var(--ivory);padding:clamp(40px,6vh,76px) 0 clamp(52px,8vh,104px)}
.bsv .wrap{max-width:var(--maxw);margin:0 auto;padding:0 6vw}

/* ---- the panel itself is the link ---- */
.bsv-card{position:relative;display:grid;grid-template-columns:1.15fr .85fr;
  align-items:center;gap:clamp(28px,4vw,64px);
  /* Light, like the rest of the page. The first version was a dark slab,
     which stood out as a foreign block dropped onto an ivory page rather
     than as part of it. Same panel language as the closing call below it:
     surface gradient, hairline border, ink type. */
  background:linear-gradient(170deg,var(--surface),var(--surface-2));
  border:1px solid var(--line);border-radius:22px;
  padding:clamp(32px,4.4vw,60px) clamp(26px,4vw,58px);
  color:var(--ink);overflow:hidden;isolation:isolate;
  box-shadow:0 50px 64px -64px var(--shadow);
  transition:transform .6s var(--ease),border-color .5s var(--ease),
             box-shadow .6s var(--ease);
  will-change:transform}
.bsv-card::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(120% 90% at 86% 8%,rgba(14,156,147,.14),transparent 64%),
    radial-gradient(90% 80% at 4% 98%,rgba(240,133,75,.09),transparent 66%)}
.bsv-card:hover,.bsv-card:focus-visible{border-color:rgba(14,156,147,.4);
  box-shadow:0 46px 62px -50px var(--shadow)}
.bsv-card:focus-visible{outline:2px solid var(--amber);outline-offset:4px}

/* ---- left: the words ---- */
.bsv-k{font-family:var(--disp);font-size:clamp(9.5px,.78vw,11px);letter-spacing:.2em;
  text-transform:uppercase;color:var(--teal-deep);display:flex;align-items:center;gap:10px;
  flex-wrap:wrap;line-height:1.5}
.bsv-k i{font-style:normal;color:var(--ink-mut)}
.bsv-card h2{font-family:var(--serif);font-weight:800;letter-spacing:-.03em;line-height:1.06;
  font-size:clamp(27px,3.3vw,46px);margin:16px 0 0;color:var(--ink)}
.bsv-card h2 em{font-style:italic;color:var(--teal-deep)}
.bsv-lead{font-size:clamp(14px,1.08vw,16.5px);line-height:1.62;margin-top:14px;
  color:var(--ink-soft);max-width:46ch}

/* the two mandates, as a rule-separated list rather than boxes */
.bsv-m{list-style:none;margin:clamp(20px,2.6vw,30px) 0 0;padding:0;
  border-top:1px solid var(--line)}
.bsv-m li{display:flex;gap:14px;align-items:baseline;
  padding:13px 0;border-bottom:1px solid var(--line)}
.bsv-m b{font-family:var(--disp);font-size:clamp(8.5px,.72vw,10px);letter-spacing:.18em;
  color:var(--ink-mut);flex:0 0 auto;padding-top:3px}
.bsv-m span{display:block}
.bsv-m strong{display:block;font-weight:650;font-size:clamp(14px,1.1vw,16.5px);color:var(--ink);
  letter-spacing:-.01em}
.bsv-m em{display:block;font-style:normal;font-size:clamp(12.5px,.95vw,14px);
  color:var(--ink-soft);line-height:1.5;margin-top:3px}

.bsv-go{display:inline-flex;align-items:center;gap:11px;margin-top:clamp(22px,2.8vw,32px);
  font-family:var(--disp);font-size:clamp(12px,.95vw,14px);font-weight:600;letter-spacing:.02em;
  color:#fff;padding:13px 22px;border-radius:999px;
  background:linear-gradient(120deg,var(--teal),var(--teal-deep));
  transition:transform .45s var(--ease),box-shadow .45s var(--ease)}
.bsv-go svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round;
  transition:transform .45s var(--ease)}
.bsv-card:hover .bsv-go{box-shadow:0 14px 30px -14px rgba(14,156,147,.9)}
.bsv-card:hover .bsv-go svg{transform:translateX(4px)}

/* ---- right: the table ---- */
.bsv-art{position:relative;display:grid;place-items:center}
.bsv-art svg{width:100%;height:auto;max-width:360px;display:block;overflow:visible}
.bsv-table{fill:rgba(14,156,147,.05);stroke:rgba(14,156,147,.32);stroke-width:1.2}
.bsv-grain{fill:none;stroke:rgba(28,59,56,.10);stroke-width:1}

/* Seats bloom in once, staggered, on the reveal the rest of the site uses.
   Styled to look right AT REST, so if the reveal never fires - no JS, a
   backgrounded tab - the board simply reads as fully seated. */
.bsv-seat{fill:var(--teal-deep);stroke:none;transform-origin:center;transform-box:fill-box}
.bsv-seat-open{fill:none;stroke:var(--amber);stroke-width:2;stroke-dasharray:3.4 3.4}
/* Delays are hung off explicit classes, not :nth-of-type. The seats and the
   table are all <circle>, so nth-of-type would count the table too and every
   seat would fire one step late. */
.bsv .rv.in .bsv-seat,.bsv .rv.in .bsv-seat-open{animation:bsvSeat .62s var(--ease) backwards}
.bsv .rv.in .s1{animation-delay:.10s}
.bsv .rv.in .s2{animation-delay:.17s}
.bsv .rv.in .s3{animation-delay:.24s}
.bsv .rv.in .s4{animation-delay:.31s}
.bsv .rv.in .s5{animation-delay:.38s}
.bsv .rv.in .s6{animation-delay:.45s}
.bsv .rv.in .s7{animation-delay:.52s}
.bsv .rv.in .s8{animation-delay:.59s}
.bsv .rv.in .bsv-seat-open{animation-delay:.80s;animation-duration:.8s}
@keyframes bsvSeat{from{opacity:0;transform:scale(.3)}to{opacity:1;transform:scale(1)}}

.bsv-cap{font-family:var(--disp);font-size:clamp(8.5px,.7vw,10px);letter-spacing:.18em;
  text-transform:uppercase;fill:var(--ink-mut)}
.bsv-seatnote{font-family:var(--disp);font-size:clamp(8.5px,.7vw,10px);letter-spacing:.14em;
  text-transform:uppercase;fill:var(--amber-deep)}

/* ---- the pointer tilt ----
   Driven by board.js writing --rx/--ry. Pointer only, and only on devices
   with a real cursor: a phone has nothing to hover with, and tilting under
   a thumb reads as a glitch rather than as depth. */
@media(hover:hover) and (pointer:fine){
  .bsv-card{transform:perspective(1100px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg))}
}

@media(prefers-reduced-motion:reduce){
  .bsv .rv.in .bsv-seat,.bsv .rv.in .bsv-seat-open{animation:none}
  .bsv-card{transition:none}
  .bsv-card:hover .bsv-go svg{transform:none}
}

/* ---- narrow ---- */
@media(max-width:900px){
  .bsv-card{grid-template-columns:1fr;gap:clamp(24px,5vw,36px)}
  /* The table goes first on a phone: it says "board" before a word is read,
     and it stops the panel opening on a wall of type. */
  .bsv-art{order:-1}
  .bsv-art svg{max-width:220px}
  .bsv-go{width:100%;justify-content:center}
  /* The kicker wraps to two lines here, which left the separator stranded
     at the end of the first. Drop it and let the line break do that job. */
  .bsv-k{display:block}
  .bsv-k i{display:none}
}

/* ============================================================
   SLIM VARIANT — the seventh line on Capabilities.

   Deliberately NOT a .cap-item: that list is an accordion, and its script
   assumes every item owns a .cap-summary button to toggle. More honestly,
   this one does not open. It leaves the site, and should say so by looking
   like a door rather than a drawer.

   Light, like the band on the home page and for the same reason: a dark
   slab sitting under six light accordion rows reads as something that
   wandered in from another site. It earns its distinction from the teal
   edge down its left side and the ring mark, not from inverting.
   ============================================================ */
.bsv-slim{position:relative;display:flex;align-items:center;gap:clamp(16px,2.4vw,30px);
  margin-top:clamp(18px,2.6vw,30px);
  padding:clamp(20px,2.6vw,30px) clamp(20px,3vw,34px);
  border-radius:16px;color:var(--ink);overflow:hidden;
  background:linear-gradient(170deg,var(--surface),var(--surface-2));
  border:1px solid var(--line);
  transition:border-color .45s var(--ease),transform .45s var(--ease),
             box-shadow .45s var(--ease)}
/* the teal edge: what marks this row as the one that leaves */
.bsv-slim::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;
  background:linear-gradient(180deg,var(--teal),var(--amber));
  transform:scaleY(.55);transform-origin:50% 50%;
  transition:transform .5s var(--ease)}
.bsv-slim:hover::before,.bsv-slim:focus-visible::before{transform:scaleY(1)}
.bsv-slim:hover,.bsv-slim:focus-visible{border-color:rgba(14,156,147,.42);
  transform:translateY(-2px);box-shadow:0 26px 44px -40px var(--shadow)}
.bsv-slim:focus-visible{outline:2px solid var(--amber);outline-offset:3px}

.bsv-slim-ic{flex:0 0 auto;display:grid;place-items:center;
  width:clamp(44px,4.2vw,56px);aspect-ratio:1;border-radius:13px;
  background:rgba(14,156,147,.09);border:1px solid rgba(14,156,147,.22)}
.bsv-slim-ic svg{width:58%;height:58%;fill:none;stroke:var(--teal-deep);stroke-width:1.6;
  stroke-linecap:round;stroke-linejoin:round}
/* the one open seat, echoing the band on the home page */
.bsv-slim-ic svg .open-seat{stroke:var(--amber-deep);stroke-dasharray:2.6 2.6}

.bsv-slim-tx{flex:1 1 auto;min-width:0}
.bsv-slim-tx b{display:block;font-family:var(--serif);font-weight:700;
  font-size:clamp(16px,1.4vw,21px);letter-spacing:-.015em;color:var(--ink)}
.bsv-slim-tx span{display:block;font-size:clamp(12.5px,1vw,14.5px);line-height:1.55;
  color:var(--ink-soft);margin-top:5px;max-width:62ch}
.bsv-slim-tx i{font-style:normal;font-family:var(--disp);font-size:clamp(8.5px,.72vw,10px);
  letter-spacing:.18em;text-transform:uppercase;color:var(--teal-deep);
  display:block;margin-bottom:7px}

.bsv-slim-go{flex:0 0 auto;display:inline-flex;align-items:center;gap:9px;
  font-family:var(--disp);font-size:clamp(11px,.9vw,13px);font-weight:600;
  color:#fff;padding:11px 18px;border-radius:999px;white-space:nowrap;
  background:linear-gradient(120deg,var(--teal),var(--teal-deep));
  transition:box-shadow .45s var(--ease),transform .45s var(--ease)}
.bsv-slim-go svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round;transition:transform .45s var(--ease)}
.bsv-slim:hover .bsv-slim-go{box-shadow:0 12px 26px -12px rgba(14,156,147,.85)}
.bsv-slim:hover .bsv-slim-go svg{transform:translate(2px,-2px)}

@media(max-width:760px){
  .bsv-slim{flex-wrap:wrap;gap:16px}
  .bsv-slim-tx{flex:1 1 100%;order:3}
  .bsv-slim-go{order:2;margin-left:auto}
}
@media(prefers-reduced-motion:reduce){
  .bsv-slim,.bsv-slim-go,.bsv-slim::before{transition:none}
  .bsv-slim:hover{transform:none}
}
