/* "Blueprint to built" after the landing: hold to see the blueprint, and sections
   that build as they enter (js/blueprint.js). Homepage only. Linked as
   media="print" so it never blocks the first paint; js/blueprint.js switches it on
   before it makes any of these elements. The wireframe boxes, the paper, and the
   reduced motion and print rules are in css/blueprint.css. */

/* Paper with the 24px grid, and the section's own edge. Over a finished paper tile
   the blueprint has to read as a different sheet, so the grid is firmer than the tile's. */
.bp-paper { background-color:var(--v-paper); background-image:linear-gradient(90deg, rgba(11,11,12,0.15) 1px, transparent 1px), linear-gradient(rgba(11,11,12,0.15) 1px, transparent 1px); background-size:24px 24px; box-shadow:inset 0 0 0 1px var(--v-ink); }

/* ---------- Wireframe boxes (js/blueprint-draw.js) ---------- */
.bp-box { position:absolute; display:block; box-sizing:border-box; margin:0; }
.bp-o { border:1px solid var(--v-ink); }
.bp-m { background-image:linear-gradient(to top right, transparent calc(50% - 0.5px), rgba(11,11,12,0.3) calc(50% - 0.5px), rgba(11,11,12,0.3) calc(50% + 0.5px), transparent calc(50% + 0.5px)), linear-gradient(to bottom right, transparent calc(50% - 0.5px), rgba(11,11,12,0.3) calc(50% - 0.5px), rgba(11,11,12,0.3) calc(50% + 0.5px), transparent calc(50% + 0.5px)); }
.bp-bar { background:rgba(11,11,12,0.17); border-radius:2px; }
.bp-h, .bp-t { white-space:nowrap; color:var(--v-ink); }
.bp-h { color:transparent; -webkit-text-stroke:1px var(--v-ink); }
@supports not (-webkit-text-stroke: 1px black) { .bp-h { color:rgba(11,11,12,0.45); } }
.bp-u { border-bottom:1px solid var(--v-ink); }
.bp-l { font-family:var(--font-body); font-weight:600; font-variant-numeric:tabular-nums; color:var(--v-ink); background:var(--v-paper); white-space:nowrap; font-size:10px; line-height:1; letter-spacing:0.08em; text-transform:uppercase; padding:2px 4px; }
.bp-dim { background:var(--v-ink); }
.bp-dim::before, .bp-dim::after { content:''; position:absolute; top:-4px; width:1px; height:9px; background:var(--v-ink); }
.bp-dim::before { left:0; } .bp-dim::after { right:0; }
/* The same hand as the landing's sheet: an architect's oblique tick at each end. */
.bp-dim::before, .bp-dim::after { transform:rotate(45deg); }
.bp-v svg { display:block; width:100%; height:100%; overflow:visible; fill:none; stroke:var(--v-ink); stroke-width:1.5; }
.bp-v polygon { vector-effect:non-scaling-stroke; }

/* ---------- Hold to see the blueprint ---------- */
.bp-xray { position:fixed; left:0; top:0; z-index:2147482400; pointer-events:none; will-change:transform; }
.bp-lens { position:relative; width:100%; height:100%; border-radius:50%; overflow:hidden; visibility:hidden; opacity:0; transform:scale(0.55);
  -webkit-mask-image:radial-gradient(closest-side, #000 72%, transparent 100%); mask-image:radial-gradient(closest-side, #000 72%, transparent 100%);
  transition:opacity 0.09s linear, transform 0.09s ease-in, visibility 0s 0.09s; }
.bp-xray.is-on .bp-lens { visibility:visible; opacity:1; transform:none; transition:opacity 0.12s linear, transform 0.24s cubic-bezier(0.2, 0.7, 0.1, 1); }
.bp-stage { position:absolute; left:0; top:0; width:100vw; height:100vh; background:var(--v-paper); will-change:transform; }
.bp-page { position:absolute; inset:0; will-change:transform; }
.bp-group { position:absolute; overflow:hidden; }
/* While holding, a press must not select text or open the long-press menu. */
html.bp-holding, html.bp-holding * { -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
.home-hero .bp-hint { position:absolute; left:0; top:calc(100% + 16px); display:flex; align-items:center; gap:8px; margin:0; font-size:13px; font-weight:600; line-height:1.2; color:var(--v-ink); white-space:nowrap; pointer-events:none; opacity:0; transition:opacity 0.5s ease; }
.home-hero .bp-hint.is-on { opacity:0.78; }
.bp-hint::before { content:''; flex:none; width:15px; height:15px; border:1.5px solid currentColor; border-radius:50%; background:radial-gradient(currentColor 2px, transparent 2.5px); }

/* ---------- Sections build as they enter ---------- */
/* The build replaces the fade and the v-cut on homepage tiles; both stay as they
   are without JavaScript. Each tile's skin is its own wireframe, cut away along
   the V angle as the tile enters: scroll-linked where view timelines exist, a
   0.9s cut when the tile is in view elsewhere. */
html.bp-build .tile-grid > .tile { position:relative; animation:none; view-timeline:--bp-tile block; }
html.bp-build .tile-grid > .tile.reveal, html.bp-build .tile-grid > .tile.reveal :is(.device-laptop, .device-phone) { opacity:1; transform:none; transition:none; }
.bp-skin { position:absolute; inset:0; z-index:6; overflow:hidden; pointer-events:none; }
.bp-skin-sheet { position:absolute; inset:0; clip-path:polygon(-12px 0, 200% 0, 200% 100%, calc(-12px - var(--lean)) 100%); }
.bp-skin-blade { position:absolute; left:0; top:0; bottom:0; width:12px; background:var(--v-amber); transform-origin:0 100%; transform:translateX(calc(-12px - var(--lean))) skewX(-24.4deg); }
@keyframes bp-fill { to { clip-path:polygon(calc(100% + var(--lean)) 0, 200% 0, 200% 100%, 100% 100%); } }
@keyframes bp-ride { to { transform:translateX(var(--w)) skewX(-24.4deg); } }
.bp-skin.is-built .bp-skin-sheet { animation:bp-fill 0.9s cubic-bezier(0.6, 0, 0.2, 1) both; }
.bp-skin.is-built .bp-skin-blade { animation:bp-ride 0.9s cubic-bezier(0.6, 0, 0.2, 1) both; }
@supports (animation-timeline: view()) {
  .bp-skin .bp-skin-sheet { animation:bp-fill linear both; animation-timeline:--bp-tile; animation-range:entry 12vh entry 72vh; }
  .bp-skin .bp-skin-blade { animation:bp-ride linear both; animation-timeline:--bp-tile; animation-range:entry 12vh entry 72vh; }
}
