/* Bureau St. James, v3: the volumes. Every world is a black room with white linework.
   Flat #000, hairlines, figures, tables, specifications. No gradients, no glows, no shadows, no simulated light. */

/* ===== the room ===== */
html.is-world{background:#000}
body.world{--paper:#000;--ink:#fff;--ink2:#a8a8a8;--dim:#6e6e6e;--rule:#2b2b2b;--rule2:#1a1a1a;background:#000;color:#fff}
body.world ::selection{background:#fff;color:#000}
body.world .bar.solid{background:#000;box-shadow:0 1px 0 var(--rule)}
body.world .navl a.cta:hover,body.world .btn:not(.ghost):hover{background:#cfcfcf}

/* ===== the volume head: one claim ===== */
body.world .wh{min-height:84vh;min-height:84svh;display:flex;align-items:flex-end;padding:clamp(130px,18vh,200px) 0 clamp(50px,8vh,90px)}
body.world .wh .wrap{width:100%}
body.world .wh h1{font-size:clamp(46px,7.2vw,120px);line-height:.96;letter-spacing:-.045em;max-width:14ch;margin-top:22px}
body.world .wmeta{margin-top:34px;gap:28px;align-items:center;padding-top:16px;border-top:1px solid #fff}

/* ===== the dossier: a code column, then the content on the grid ===== */
.blk-g{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,9fr);gap:24px;border-top:1px solid var(--rule);padding:clamp(48px,6vw,84px) 0}
.blk .code,.stx .code{font-size:11px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--ink2)}
.blk .code{padding-top:.5em}
.blk-c{min-width:0}
.blk-c>*+*{margin-top:28px}
@media(max-width:760px){.blk-g{grid-template-columns:1fr;gap:14px}}
.blk.full .blk-g{grid-template-columns:1fr;gap:18px}
.lead{font-size:clamp(26px,2.8vw,42px);line-height:1.14;font-weight:500;letter-spacing:-.03em;max-width:24ch}
.lead.xl{font-size:clamp(36px,4.6vw,72px);line-height:1.02;letter-spacing:-.04em;max-width:18ch}
.body{font-size:clamp(19px,1.5vw,22px);line-height:1.55;color:#d9d9d9;max-width:36em}
.note{font-size:14px;line-height:1.6;color:var(--ink2);max-width:52em}

/* principles: a ruled grid */
.pg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #fff}
.pg>div{display:flex;flex-direction:column;gap:14px;padding:22px 24px 30px 0;border-bottom:1px solid var(--rule)}
.pg>div:not(:nth-child(3n+1)){padding-left:24px;border-left:1px solid var(--rule)}
.pg .n{font-size:11px;font-weight:500;letter-spacing:.14em;color:var(--ink2)}
.pg b{font-size:clamp(22px,2vw,30px);font-weight:500;line-height:1.1;letter-spacing:-.03em}
.pg .d{font-size:16px;line-height:1.5;color:var(--ink2)}
@media(max-width:900px){.pg{grid-template-columns:1fr}.pg>div:not(:nth-child(3n+1)){padding-left:0;border-left:0}}

/* tables */
.tblw{overflow-x:auto;-webkit-overflow-scrolling:touch}
.tbl{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;min-width:560px}
.tbl th{font-size:11px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--ink2);text-align:left;padding:0 20px 12px 0;border-bottom:1px solid #fff}
.tbl td{font-size:17px;line-height:1.45;padding:16px 20px 16px 0;border-bottom:1px solid var(--rule);vertical-align:baseline}
.tbl td.k{font-size:12px;font-weight:500;letter-spacing:.1em;color:var(--ink2);white-space:nowrap;width:1%}
.tbl td:nth-child(2){font-weight:500}
.tbl.num td:nth-child(2),.tbl.num td:nth-child(3),.tbl.num td:nth-child(4){white-space:nowrap;font-weight:400}

/* ===== figures: drawn, framed, captioned ===== */
.fig{margin:0}
.fig-f{border:1px solid var(--rule);padding:clamp(14px,2vw,28px)}
.fig svg{width:100%;height:auto;display:block;overflow:visible}
.fig figcaption{display:flex;justify-content:space-between;gap:8px 20px;flex-wrap:wrap;margin-top:12px;font-size:11px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--ink2)}
.fig.sm .fig-f{max-width:680px}
.fig text{font-family:var(--sans);font-size:14px;font-weight:500;fill:#fff}
.ln{fill:none;stroke:#fff;stroke-width:1.25}
.ln2{fill:none;stroke:#7a7a7a;stroke-width:1}
.dsh{fill:none;stroke:#8a8a8a;stroke-width:1;stroke-dasharray:4 5}
.nd{fill:#fff}
.hv{fill:none;stroke:#fff;stroke-width:5}
.ar{fill:none;stroke:#fff;stroke-width:1.25}
.hp{stroke:#fff;stroke-width:1;opacity:.28}
@media(max-width:760px){.fig-f{overflow-x:auto;-webkit-overflow-scrolling:touch}.fig-f svg{min-width:720px}.fig.sm .fig-f svg{min-width:500px}}

/* 04 · the wheel */
.whl .rm{font-size:15px}
.whl .rn{fill:#8a8a8a;font-size:11px;letter-spacing:.08em}
.whl .rb{font-size:12.5px;font-weight:400;fill:#a8a8a8}
.whl .c1{font-size:11px;letter-spacing:.16em;fill:#a8a8a8}

/* 05 · plan; 07 · elevation study. One route is plotted when the figure arrives. */
.dg text{font-size:15px}
.dg-w path{fill:none;stroke:#fff;stroke-width:5;stroke-linecap:square}
.dg-g path,.dg-sun path{fill:none;stroke:#fff;stroke-width:1.2}
.dg-f rect{fill:none;stroke:#a8a8a8;stroke-width:1.2}
.dg-l rect{fill:#fff}.dg-l path{fill:none;stroke:#a8a8a8;stroke-width:1.2;stroke-dasharray:3 4}
.dg-c path{fill:none;stroke:#a8a8a8;stroke-width:1.2}.dg-c .c{stroke:#fff;stroke-width:5}
.dg-r{fill:none;stroke:#fff;stroke-width:2;stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset .9s linear}
.fig.in .dg-r{stroke-dashoffset:0}
.dg-d path{fill:none;stroke:#6e6e6e;stroke-width:1}
.dg-t text{fill:#a8a8a8}
.dg-k text{font-size:26px;letter-spacing:-.02em}
.ty rect{fill:none;stroke:#8a8a8a;stroke-width:1.2}
.ty rect.f{fill:#333}
.ty .one path{fill:none;stroke:#fff;stroke-width:2.6}

/* ===== scroll-driven figures: the stage holds, the data changes ===== */
.steps{position:relative}
#st3{height:420vh}
#st6{height:600vh}
.steps-st{position:sticky;top:0;height:100vh;height:100svh;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,.7fr);gap:clamp(24px,4vw,64px);align-items:center;padding-top:76px;padding-bottom:24px}
.steps-st>*{min-width:0}
.steps-tx{position:relative;min-height:12em}
.stx{position:absolute;inset:0 0 auto 0;opacity:0;transition:opacity .12s linear}
.stx.on{opacity:1}
.stx b{display:block;margin-top:12px;font-size:clamp(34px,3.6vw,56px);font-weight:500;letter-spacing:-.04em;line-height:1}
.stx>span:last-child{display:block;margin-top:12px;font-size:18px;line-height:1.5;color:#d9d9d9}

/* 03 · the section */
.sec3 .ray path{fill:none;stroke:#fff;stroke-width:1;stroke-dasharray:6 6}
.sec3 .stp circle{fill:#fff}
.sec3 .stn path,.sec3 .grn path{fill:none;stroke:#8a8a8a;stroke-width:1}
.sec3 .dim,.sec3 .ld{fill:none;stroke:#a8a8a8;stroke-width:1}
.sec3 .bn{fill:none;stroke:#fff;stroke-width:2}
.lyr{opacity:0;transition:opacity .12s linear}
.lyr.on{opacity:1}

/* 06 · the solar study */
.sol-st{grid-template-columns:minmax(0,1.75fr) minmax(0,.75fr)}
.sol-side{display:grid;gap:22px;align-content:center}
.shp-f .fig-f{padding:12px}
.shp-f svg{max-width:220px;margin:0 auto}
.sol .g{fill:none;stroke:#242424;stroke-width:1}
.sol .ax,.shp .ax{font-size:14px;font-weight:500;fill:#8a8a8a}
.sol .hz{fill:none;stroke:#fff;stroke-width:1.25}
.sol .cv{fill:none;stroke:#fff;stroke-width:2.4}
.sol .cv2{fill:none;stroke:#8a8a8a;stroke-width:1}
.sol .cv3{fill:none;stroke:#8a8a8a;stroke-width:1;stroke-dasharray:4 4}
.sol .tk{stroke:#fff;stroke-width:1}
.sol .cu{fill:none;stroke:#fff;stroke-width:1;opacity:0}
.sol .pt{fill:#000;stroke:#fff;stroke-width:2.4;opacity:0}
.sol .cu.on,.sol .pt.on,.shp .sh.on{opacity:1}
.shp .sh{opacity:0}
.shp .shd{fill:none;stroke:#fff;stroke-width:3}
.shp .su,.shp .post{fill:#fff}
.ros{position:relative;min-height:16em}
.ro{position:absolute;inset:0 0 auto 0;opacity:0;transition:opacity .12s linear}
.ro.on{opacity:1}
.ro-t{font-size:clamp(40px,4vw,64px);font-weight:300;letter-spacing:-.05em;line-height:1;font-variant-numeric:tabular-nums}
.ro-t span{display:block;font-size:12px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;margin-top:12px}
.ro dl{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;margin-top:16px;padding-top:12px;border-top:1px solid #fff;font-variant-numeric:tabular-nums}
.ro dt{font-size:11px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--ink2);padding-top:3px}
.ro dd{font-size:16px}
.ro-b{margin-top:14px;font-size:16px;line-height:1.5;color:#d9d9d9;max-width:26em}

@media(max-width:900px){
  .steps{height:auto!important}
  .steps-st{position:static;height:auto;grid-template-columns:1fr;padding-top:40px;padding-bottom:40px}
  .lyr{opacity:1}
  .steps-tx{min-height:0}.stx{position:static;opacity:1;margin-top:24px}
  .sol-side{display:none}
}

/* ===== 08 · specifications ===== */
.spec{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid #fff}
.sp{border-bottom:1px solid var(--rule);padding:18px 0 34px}
.sp:nth-child(odd){padding-right:24px;border-right:1px solid var(--rule)}
.sp:nth-child(even){padding-left:24px}
.sp-h{display:flex;justify-content:space-between;font-size:11px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;padding-bottom:18px}
.sp-h span:last-child{color:var(--ink2)}
.sp-b{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:26px;align-items:start}
.sp-img{margin:8px 8px 26px;position:relative;border:1px solid #fff;outline:1px dashed #5a5a5a;outline-offset:7px}
.sp-img img{display:block;width:100%;height:auto}
.sp-img figcaption{position:absolute;left:-8px;right:-8px;top:calc(100% + 13px);font-size:10px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:var(--dim);text-align:center}
.sp-dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 14px;align-content:start;font-variant-numeric:tabular-nums}
.sp-dl dt{font-size:10.5px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--ink2);padding-top:3px;white-space:nowrap}
.sp-dl dd{font-size:15px;line-height:1.4}
.chip{display:inline-block;width:12px;height:12px;margin-right:8px;vertical-align:-1px;outline:1px solid #fff}
@media(max-width:1100px){.spec{grid-template-columns:1fr}.sp:nth-child(odd){padding-right:0;border-right:0}.sp:nth-child(even){padding-left:0}}
@media(max-width:560px){.sp-b{grid-template-columns:1fr}.sp-img{max-width:240px}}

/* ===== 09 · blueprint, specimen viewer, specification ===== */
.bp .gp{fill:none;stroke:#fff;stroke-opacity:.06}
.bp text{font-family:var(--sans)}
.bp-k text{font-size:12px;font-weight:500;letter-spacing:.16em;fill:#8a8a8a}
.bp-b rect{fill:none;stroke:#fff;stroke-width:2}
.bp-r path{stroke:#fff;stroke-opacity:.3;stroke-width:1}
.bp-t text{font-size:20px;font-weight:500;fill:#fff}
.bp-s text{font-size:14px;font-weight:400;fill:#d0d0d0}
.bp-l{fill:none;stroke:#fff;stroke-width:1.25;stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 1s linear}
.fig.in .bp-l{stroke-dashoffset:0}
.bp-n text{font-size:12px;font-weight:500;letter-spacing:.06em;fill:#8a8a8a}

.pd{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,9fr);border-top:1px solid #fff}
.pd dt,.pd dd{padding:14px 0;border-bottom:1px solid var(--rule)}
.pd dt{font-size:11px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--ink2);padding-top:19px}
.pd dd{font-size:clamp(18px,1.5vw,22px);line-height:1.4}

/* the specimen viewer: an inspection tool, not an animation */
.vw{border:1px solid var(--rule);outline:none}
.vw:focus-visible{border-color:#fff}
.vw-st{position:relative;height:clamp(440px,52vw,560px);display:grid;place-items:center;overflow:hidden;cursor:grab;touch-action:pan-y;user-select:none;-webkit-user-select:none;
  background-image:linear-gradient(#161616 1px,transparent 1px),linear-gradient(90deg,#161616 1px,transparent 1px);background-size:40px 40px;background-position:center}
.vw-st.drag{cursor:grabbing}
.vw-dial{position:absolute;left:50%;top:50%;width:min(460px,86%);transform:translate(-50%,-6%) perspective(900px) rotateX(72deg);pointer-events:none}
.vw-dial circle{fill:none;stroke:#3a3a3a;stroke-width:1.5}
.vw-dial .tk path{stroke:#6e6e6e;stroke-width:1.5}
.vw-dial .lb text{font-family:var(--sans);font-size:15px;font-weight:500;fill:#6e6e6e}
.vw-ptr{stroke:#fff;stroke-width:2.5}
.vw-hub{fill:#fff}
.vw-o{position:relative;z-index:1;perspective:1400px;margin-top:-6%}
.vw-b{position:relative;width:min(280px,58vw);aspect-ratio:3/4;transform-style:preserve-3d;transform:rotateX(-8deg) rotateY(0deg)}
.vw-b.ease{transition:transform .22s cubic-bezier(.2,.7,.1,1)}
.vw-f,.vw-k{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;background:#fff;color:#000;padding:22px;display:flex;flex-direction:column;gap:14px}
.vw-f{transform:translateZ(8px)}
.vw-k{transform:rotateY(180deg) translateZ(8px)}
.vw-l{font-size:10px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:#555}
.vw-f b,.vw-k b{font-size:clamp(24px,2.3vw,30px);font-weight:500;letter-spacing:-.03em;line-height:1.05}
.vw-x{font-size:14px;line-height:1.45}
.vw-m{margin-top:auto;font-size:11px;font-weight:500;letter-spacing:.06em;border-top:1px solid #000;padding-top:10px}
.vw-e{position:absolute;top:0;bottom:0;width:16px;background:#cfcfcf;display:flex;align-items:center;justify-content:center;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.vw-e span{writing-mode:vertical-rl;font-size:7.5px;font-weight:600;letter-spacing:.2em;color:#000;white-space:nowrap}
.vw-e1{left:-8px;transform:rotateY(-90deg)}
.vw-e2{left:calc(100% - 8px);transform:rotateY(90deg)}
.vw-c{display:flex;flex-wrap:wrap;border-top:1px solid var(--rule)}
.vw-c button{background:none;border:0;border-right:1px solid var(--rule);color:#fff;font:500 11px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;padding:16px 18px;cursor:pointer}
.vw-c button:hover,.vw-c button[aria-pressed="true"]{background:#fff;color:#000}
.vw-r{margin-left:auto;padding:16px 18px;font:500 12px/1 var(--sans);letter-spacing:.1em;font-variant-numeric:tabular-nums;color:var(--ink2)}
@media(max-width:560px){.vw-r{margin-left:0;width:100%;border-top:1px solid var(--rule)}}

/* ===== 01 · the CRT closes on flat black ===== */
.is-world .hw-land{background:#000}
.is-world .hw-land>img,.is-world .hw-land::after{display:none}

/* ===== leaving: previous, index, next ===== */
body.world .wfoot{padding:clamp(56px,8vh,96px) 0}
body.world .wnext{display:grid;grid-template-columns:1fr auto 1fr;gap:20px;align-items:end;border-top:1px solid #fff;padding-top:28px}
body.world .wnext .ix{text-align:center}
body.world .wnext .nx{text-align:right}
body.world .wnext .kh{grid-column:1/-1;margin-top:22px;font-size:11px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--dim);text-align:center}
@media(max-width:640px){body.world .wnext{grid-template-columns:1fr 1fr}body.world .wnext .ix{grid-column:1/-1;grid-row:2;text-align:left}body.world .wnext .kh{display:none}}
