/* Sample BI2-tree, "From the Building to the Ideas" with a research-tree ending (round 05; a copy of round-04 BI).
   Three ways the tree shows:
   no JavaScript: a nested list of <details> (branch, sub-branch, phrases) that opens in place;
   html.tree-js (plain layout: reduced motion, no WebGL, very tall windows): the same elements placed by bi.js as a
     tree that grows to the right (mode-h, 1,100 px and up) or an indented tree that grows downward (mode-v), with
     the photo's points drawn still along its branches;
   html.pin: the first screen is a pinned stage where the photo becomes points and the points settle along the tree. */
:root {
  --red: #A32638;      /* Stevens Red */
  --ink: #363D45;      /* Dark Gray: text on white, and the ground of the stage */
  --rule: #E4E5E6;     /* Light Gray: hairlines; secondary text on the stage (8.72:1) */
  --white: #FFFFFF;
  --gray: #7F7F7F;     /* Stevens Gray: identifier only */

  --disp: 'Saira Condensed', 'Arial Narrow', Arial, sans-serif;
  --body: 'IBM Plex Sans', Arial, sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --gut: 24px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 17px/1.65 var(--body); font-synthesis: none; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.scene :focus-visible { outline-color: var(--white); }
.wrap { max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding-inline: var(--gut); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--white); color: var(--ink); padding: 10px 14px; border: 2px solid var(--red); }
.skip:focus { top: 16px; }

/* ---------- header (white; on the stage it slides away as the scene starts) ---------- */
.site-head { position: relative; z-index: 6; background: var(--white); height: 120px; }
.head-row { display: flex; align-items: center; height: 120px; }
.mark { flex: none; display: block; }
.mark img { display: block; height: 50px; width: auto; }
.lab { margin-left: 34px; font: 600 24px/1 var(--disp); color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-wide { margin-left: auto; }
.nav-wide ul, .menu ul { list-style: none; margin: 0; padding: 0; }
.nav-wide ul { display: flex; gap: 26px; }
.nav-wide a { font: 500 15px/1 var(--body); color: var(--ink); text-decoration: none; white-space: nowrap; }
.menu { margin-left: auto; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; min-height: 44px;
  font: 600 15px/1 var(--body); color: var(--ink); padding: 0 16px;
  border: 1px solid var(--ink); border-radius: 3px; background: var(--white);
}
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: calc(100% + 8px); min-width: 260px; z-index: 10; background: var(--white); border: 1px solid var(--ink); padding: 8px 0; }
.menu nav a { display: block; padding: 11px 18px; font: 500 16px/1.3 var(--body); color: var(--ink); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .nav-wide a:hover, .menu nav a:hover { color: var(--red); text-decoration: underline; } }
@media (min-width: 1180px) { .menu { display: none; } }
@media (max-width: 1179px) { .nav-wide { display: none; } }
@media (max-width: 560px) { .lab { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px;
  background: var(--red); color: var(--white); border: 1px solid var(--red); border-radius: 3px;
  font: 600 16px/1.2 var(--body); text-decoration: none;
}
.btn-line { background: var(--white); color: var(--red); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); } }

/* ---------- the scene: plain layout ---------- */
.scene { position: relative; background: var(--ink); color: var(--white); }
.hero { padding: 40px 0 56px; overflow: hidden; }
.plate { position: relative; margin: 0 auto; max-width: 1180px; width: calc(100% - 2 * var(--gut)); }
.photo { display: block; width: 100%; height: auto; }
.scan, .gl, .still-cloud, .hero-note { display: none; }
.copy { max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 32px auto 0; padding-inline: var(--gut); }
.copy .lab-m { display: none; margin: 0 0 6px; font: 700 30px/1.05 var(--disp); color: var(--white); }
.kicker { margin: 0 0 12px; font: 600 12px/1.4 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--rule); }
.copy h1 { margin: 0 0 24px; max-width: 20em; font: 700 clamp(2rem, 3.4vw, 2.75rem)/1.08 var(--disp); color: var(--white); }
@media (max-width: 560px) { .copy .lab-m { display: block; } }
@media (max-width: 760px) {
  .kicker { display: none; }
  .copy h1 { font-size: 26px; line-height: 1.12; margin-bottom: 18px; }
  .copy .btn { display: flex; width: 100%; justify-content: center; }
}

/* ---------- the research tree, plain layout (no JavaScript: nested <details> that open in place) ---------- */
.mapsec { padding: 24px 0 48px; }
.map-h { margin: 0 auto 8px; max-width: calc(var(--wrap) + 2 * var(--gut)); padding-inline: var(--gut);
  font: 600 clamp(1.6rem, 2.6vw, 2.1rem)/1.12 var(--disp); color: var(--white); }
.crumbs { max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto 6px; padding-inline: var(--gut);
  font: 500 14px/1.5 var(--body); color: var(--rule); min-height: 21px; }
.crumbs button { font: inherit; color: var(--white); background: none; border: 0; padding: 4px 0; margin: 0; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.crumbs .sep { padding: 0 8px; }
.crumbs .cur { color: var(--white); }
.tree { position: relative; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 10px auto 0; padding-inline: var(--gut); }
.still-tree { display: none; }
.t-root { margin: 0 0 6px; }
.t-rname { display: block; font: 700 26px/1.1 var(--disp); color: var(--white); }
.t-rn { display: block; margin-top: 2px; font: 400 14px/1.45 var(--body); color: var(--rule); }
.t-list { list-style: none; margin: 0; padding: 0; }
.t-l1 > li { border-top: 1px solid var(--rule); }
.t-lab { display: list-item; cursor: pointer; padding: 12px 0 12px; }
.t-name { font: 600 21px/1.15 var(--disp); color: var(--white); }
.t-count { display: block; margin-top: 3px; font: 600 13px/1.45 var(--body); color: var(--rule); }
/* the computed theme words: quieter than the count (italic, regular weight); "Theme words:" shows on the first branch */
.t-terms { display: block; font: 400 13px/1.45 var(--body); color: var(--rule); }
.t-tw { font-style: italic; }
.t-cue { display: none; }
/* each branch's quote (its medoid phrase): under a closed branch; an open branch shows its sub-branches instead */
.t-med { margin: -4px 0 14px; }
.t-b > details[open] + .t-med { display: none; }
.t-l2, .t-l3 { margin: 0 0 10px 5px; padding-left: 18px; border-left: 1px solid var(--rule); }
.t-l2 .t-name { font-size: 19px; }
.t-leaf { padding: 6px 0; }
.t-ph { display: block; font: 400 15px/1.45 var(--body); color: var(--white); }
.t-who { display: block; font: 600 13px/1.45 var(--body); color: var(--rule); }
.t-who a { color: var(--white); text-underline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .t-lab:hover .t-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; } }
.method { max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 18px auto 0; padding-inline: var(--gut);
  font: 400 13px/1.45 var(--body); color: var(--rule); }

/* ---------- the lab (white sections) ---------- */
.sec { padding-block: 82px; scroll-margin-top: 16px; }
.sec h2 { margin: 0 0 28px; font: 600 clamp(1.8rem, 3.4vw, 2.5rem)/1.15 var(--disp); color: var(--ink); }
.sec + .sec { border-top: 1px solid var(--rule); }
.mission { max-width: 62ch; margin: 0 0 40px; font-size: 1.2rem; line-height: 1.55; }
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.offer { border-top: 3px solid var(--red); padding-top: 18px; display: flex; flex-direction: column; }
.offer h3 { margin: 0 0 10px; font: 600 1.6rem/1.15 var(--disp); }
.aud { margin: 0; font: 600 .78rem/1.4 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.ex { margin: 10px 0 16px; max-width: 60ch; }
.mail { margin-top: auto; font-weight: 600; text-underline-offset: 3px; }

.ev-list { list-style: none; margin: 0; padding: 0; }
.ev-list li { display: grid; grid-template-columns: 150px 180px 1fr; gap: 6px 24px; padding: 14px 0; border-top: 1px solid var(--rule); }
.ev-d { font: 600 1.05rem/1.5 var(--disp); font-variant-numeric: tabular-nums; }
.ev-k { font: 400 15px/1.6 var(--body); }
.ev-t { font: 500 17px/1.5 var(--body); color: var(--ink); }
a.ev-t { color: var(--red); }
.res-h { margin: 44px 0 12px; font: 600 1.4rem/1.15 var(--disp); }

.plist { list-style: none; margin: 0; padding: 0; }
.person { display: grid; grid-template-columns: 64px minmax(200px, 300px) 1fr; gap: 8px 24px; padding: 22px 0; border-top: 1px solid var(--rule); scroll-margin-top: 16px; }
.person img { width: 64px; height: 64px; object-fit: cover; display: block; }
.pname { font: 600 1.24rem/1.2 var(--body); color: var(--ink); text-decoration: none; }
.pname:hover { color: var(--red); text-decoration: underline; }
.role { margin: 4px 0 0; font-size: 16px; line-height: 1.5; }
.words ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.words li { font-size: 16px; line-height: 1.5; }
.words li.hot { color: var(--red); }
.src { margin: 8px 0 0; font-size: 14px; line-height: 1.5; }

.contact-text { max-width: 65ch; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.card { border: 1px solid var(--rule); border-radius: 6px; padding: 24px; }
.card img { display: block; width: 120px; height: 120px; object-fit: cover; margin-bottom: 14px; }
.card h3 { margin: 0; font: 600 1.24rem/1.2 var(--body); }
.card p { margin: 4px 0 16px; }
.card .label { margin: 0 0 8px; font: 600 .72rem/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.card address { font-style: normal; }

.site-foot { border-top: 1px solid var(--rule); padding-block: 40px; }
.foot-row { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.foot-row img { height: 50px; width: auto; }
.foot-row p { margin: 0; font-size: 15px; line-height: 1.5; }
.motion-switch { margin-left: auto; min-height: 44px; padding: 0 16px; font: 600 15px/1 var(--body); color: var(--ink); background: var(--white); border: 1px solid var(--ink); border-radius: 3px; cursor: pointer; }

@media (max-width: 900px) {
  .offers, .cards { grid-template-columns: 1fr; }
  .ev-list li { grid-template-columns: 1fr; gap: 0; }
  .person { grid-template-columns: 64px 1fr; }
  .person .words { grid-column: 1 / -1; }
  .sec { padding-block: 56px; }
}

/* ---------- JavaScript on: bi.js places the same elements as a tree (plain layout and pinned stage) ---------- */
html.tree-js .tree { max-width: 1440px; padding: 0; }
html.tree-js .tree .t-list, html.tree-js .tree li.t-node, html.tree-js .tree details { display: block; margin: 0; padding: 0; border: 0; }
html.tree-js .t-root, html.tree-js .t-lab, html.tree-js .t-leaf { position: absolute; left: 0; top: 0; z-index: 1; margin: 0; }
html.tree-js .t-lab { display: block; list-style: none; padding: 0; }
html.tree-js .t-lab::-webkit-details-marker { display: none; }
html.tree-js .t-name { display: block; }
html.tree-js .t-leaf { padding: 0; }
html.tree-js .t-root { text-align: right; }
html.tree-js.mode-v .t-root { text-align: left; }
.t-rbtn { display: block; margin: 0 0 0 auto; padding: 0; border: 0; background: none; cursor: pointer; text-align: inherit;
  font: 700 26px/1.1 var(--disp); color: var(--white); }
html.mode-v .t-rbtn { margin: 0; font-size: 22px; }
html.mode-v .t-name { font-size: 19px; }
html.mode-v .t-l2 .t-name { font-size: 18px; }
/* the open path: underlined names; the crumbs above the tree name it too */
.t-node.path > details > .t-lab .t-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
/* the open cue: a small chevron after each branch and sub-branch name; it points the way the node opens (right on
   the tree that grows to the right, down on the indented tree) and turns when the node is open */
html.tree-js .t-cue { display: inline-block; width: 8px; height: 8px; margin: 0 2px 3px 8px; vertical-align: middle;
  border-right: 2px solid var(--rule); border-bottom: 2px solid var(--rule); transform: rotate(-45deg); transition: transform 420ms var(--ease); }
html.tree-js.mode-h .t-node.path > details > .t-lab .t-cue { transform: rotate(135deg); }
html.tree-js.mode-v .t-node.path > details > .t-lab .t-cue { transform: rotate(45deg); }
html.tree-js .t-med { position: absolute; left: 0; top: 0; z-index: 1; margin: 0; }
html.tree-js .t-med:not(.in) { visibility: hidden; }   /* off (an open branch, phones): hidden from screen readers too */
.t-nw { white-space: nowrap; }   /* the open cue never wraps onto a line of its own */
/* labels wipe in (clip-path, no opacity); when the tree makes room, bi.js glides them on the points' own eased value */
html.tree-js .tw { clip-path: inset(-8px 100% -8px -8px); transition: clip-path 420ms var(--ease); }
html.tree-js .tw.in { clip-path: inset(-8px -8px -8px -8px); }
html.tree-js .tw:not(.in) { transition: none; }   /* a label that leaves goes at once (bi.js wipes new ones in once the growth is 90 % done) */
html.measuring .tw { transition: none !important; }   /* ?check=1 reads the final places */
/* the points, still, along the branches (plain layout only; the pinned stage draws them with WebGL) */
html.has-still .still-tree { display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 0; }
html.has-still .still-cloud { display: block; position: absolute; inset: -6% -4%; width: 108%; height: 112%; }
/* the computed still on the first screen carries its own one-line note (the full note sits under the tree) */
html.has-still .hero-note { display: block; position: relative; max-width: 1180px; width: calc(100% - 2 * var(--gut));
  margin: calc(min(100vw - 2 * var(--gut), 1180px) * 0.025 + 10px) auto 0; font: 400 13px/1.45 var(--body); color: var(--rule); }
html.has-still .hero .copy { margin-top: 22px; }
@media (min-width: 1280px) {   /* wide windows: the note sits right of the headline, level with the button, so the first screen keeps the button */
  html.has-still .hero { position: relative; }
  html.has-still .hero-note { position: absolute; margin: 0; width: 340px; right: max(var(--gut), calc((100% - 1180px) / 2)); bottom: 60px; }
  html.has-still .hero .copy { margin-top: 32px; }
}

/* ---------- html.pin: the pinned stage ---------- */
html.pin .scene { height: var(--scene-h, 300vh); }
html.pin .stage { position: sticky; top: 0; height: var(--stage-h, 100vh); overflow: hidden; }
html.pin .site-head { position: absolute; top: 0; left: 0; right: 0; z-index: 0; transform: translateY(var(--head-y, 0px)); }
html.pin .hero { position: absolute; inset: 0; padding: 0; z-index: 2; pointer-events: none; overflow: visible; }
html.pin .hero a, html.pin .hero button { pointer-events: auto; }
html.pin .plate { position: absolute; margin: 0; max-width: none; left: var(--px); top: var(--py); width: var(--pw); height: var(--ph); }
html.pin .photo { width: 100%; height: 100%; clip-path: inset(0 0 0 var(--wipe, 0%)); }
html.pin.scanning .scan { display: block; position: absolute; top: -10px; bottom: -10px; left: var(--wipe, 0%); width: 2px; margin-left: -1px; background: var(--white); }
html.pin .copy { position: absolute; margin: 0; padding: 0; left: var(--cx); top: var(--ct); width: var(--cw);
  transform: translateY(var(--copy-y, 0px)); clip-path: inset(0 0 var(--copy-clip, 0%) 0); }
html.pin .gl { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
html.pin .mapsec { position: absolute; inset: 0; padding: 0; z-index: 3; pointer-events: none; }
/* a tree taller than the window (an open sub-branch on a short window, an open branch on a phone) is panned by the
   scroll once it has settled (bi.js sets --pan); the methods note stays put */
html.pin .map-h, html.pin .crumbs, html.pin .tree { translate: 0 calc(-1 * var(--pan, 0px)); }
html.pin .map-h { position: absolute; margin: 0; padding: 0; max-width: none; left: var(--hx); top: var(--hy); width: var(--hw);
  font-size: var(--hf); clip-path: inset(0 100% 0 0); transition: clip-path 700ms var(--ease); }
html.pin .map-h.on { clip-path: inset(0 0 0 0); }
html.pin .crumbs { position: absolute; margin: 0; padding: 0; max-width: none; left: var(--kx); top: var(--ky); width: var(--kw);
  clip-path: inset(-6px 100% -6px -6px); transition: clip-path 500ms var(--ease); }
html.pin.settled .crumbs { clip-path: inset(-6px -6px -6px -6px); pointer-events: auto; }
html.pin .tree { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; margin: 0; pointer-events: none; }
html.pin.settled .tree .t-lab, html.pin.settled .tree a, html.pin.settled .tree .t-rbtn { pointer-events: auto; }
html.pin .method { position: absolute; z-index: 2; margin: 0; max-width: none; left: var(--nx); top: var(--ny); width: var(--nw); font-size: var(--nf, 13px);
  padding: var(--npt, 0px) var(--npr, 0px) var(--npb, 0px) var(--npl, 0px);
  background: rgba(54, 61, 69, 0.996);    /* Dark Gray #363D45: stays put while the tree pans under it; its ground hides what
  passes under it (bi.js placeBand). Alpha .996: with a fully opaque ground (alpha 1), Chrome's compositor (seen in
  headless Chrome, 2026-10-03) culled the WebGL points in a strip the note's height at the TOP of the stage */
  clip-path: inset(0 100% 0 0); transition: clip-path 700ms var(--ease); }
/* the depth credit is the band while the photo is on screen; the tree credit wipes in over it with the tree's heading,
   its edge and the depth band's edge moving together */
html.pin .hero-note { display: block; position: absolute; z-index: 2; margin: 0; max-width: none; left: var(--bx); top: var(--by); width: var(--bw);
  font: 400 var(--bf, 13px)/1.45 var(--body); color: var(--rule); padding: var(--bpt, 0px) var(--bpr, 0px) var(--bpb, 0px) var(--bpl, 0px);
  background: rgba(54, 61, 69, 0.996); clip-path: inset(0 0 0 0); transition: clip-path 700ms var(--ease); }
html.pin.tree-note .method { clip-path: inset(0 0 0 0); }
html.pin.tree-note .hero-note { clip-path: inset(0 0 0 100%); }

/* motion off or reduced: nothing animates (the pinned layout is never used then; this is the backstop) */
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) *, html:not(.force-motion) *::before, html:not(.force-motion) *::after {
    transition: none !important; animation: none !important; scroll-behavior: auto !important;
  }
}
html[data-motion="still"] * { transition: none !important; }
