/* Kit: blueprint — Avidan Engineering. Engineering sheets instead of a river line:
   blueprint grids, dimension lines that extend, a building elevation that draws itself,
   and a building pulled apart into its layers. */

[data-kit="blueprint"] .t-deep, [data-kit="blueprint"] .t-ink, [data-kit="blueprint"] .t-navy {
  background-color: #0E2A47;
  background-image:
    linear-gradient(rgba(140,190,255,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(140,190,255,.10) 1px, transparent 1px),
    linear-gradient(rgba(140,190,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(140,190,255,.05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
[data-kit="blueprint"] .t-sand, [data-kit="blueprint"] .t-white {
  background-color: #F4F7FB;
  background-image: linear-gradient(rgba(29,79,145,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(29,79,145,.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Dimension line above each heading: |<—— ——>| that extends to full width */
[data-kit="blueprint"] .section-head::before {
  content: ""; display: block; height: 14px; margin-bottom: 18px; width: min(520px, 80%);
  border-left: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat; opacity: .55;
  transform-origin: left; transform: scaleX(var(--dim, 1)); transition: transform 1.1s var(--ease-out);
}
.motion[data-kit="blueprint"] .section-head:not(.is-in)::before { --dim: .06; }
[data-kit="blueprint"] .section-head h2 { font-stretch: 100%; font-weight: 700; letter-spacing: -.01em; }

/* Pictures are drawing sheets with a title block */
[data-kit="blueprint"] .split-media { border-radius: 4px; border: 1.5px solid currentColor; padding: 10px 10px 46px; background: rgba(255,255,255,.03); aspect-ratio: auto; }
[data-kit="blueprint"] .split-media > img, [data-kit="blueprint"] .split-media > video { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
[data-kit="blueprint"] .split-media .media-tag { top: 20px; left: 20px; }
.sheet-tb {
  position: absolute; left: 10px; right: 10px; bottom: 8px; display: grid; grid-template-columns: auto 1fr auto; gap: 0;
  border: 1px solid currentColor; font: 600 .72rem/28px var(--body); letter-spacing: .03em; opacity: .8;
}
.sheet-tb span { padding: 0 10px; border-right: 1px solid currentColor; }
.sheet-tb span:last-child { border-right: 0; }
.motion[data-kit="blueprint"] .split-media { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease-out); }
.motion[data-kit="blueprint"] .split-media.is-in { clip-path: inset(0 0 0 0); }

/* Trio: sheet cards with sheet numbers */
[data-kit="blueprint"] .trio { counter-reset: sheet; }
[data-kit="blueprint"] .trio-item { border: 1.5px solid currentColor; border-radius: 4px; padding: 22px 22px 48px; border-top-width: 1.5px; position: relative; }
[data-kit="blueprint"] .trio-item::before { display: none; }
[data-kit="blueprint"] .trio-item::after {
  counter-increment: sheet; content: "S-10" counter(sheet); position: absolute; right: 0; bottom: 0; padding: 6px 12px;
  border-left: 1.5px solid currentColor; border-top: 1.5px solid currentColor; font: 700 .78rem/1 var(--body); letter-spacing: .05em;
}

/* Rows: spec sheet with leader lines */
[data-kit="blueprint"] .row::before { background: none; border-top: 1px dashed var(--line); height: 0; }
[data-kit="blueprint"] .row h3::before { content: "— "; color: #3E8CE0; }

/* ---------- The drawing that draws itself ---------- */
.dw-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.dw-blocks { list-style: none; margin: 0; padding: 2vh 0 10vh; }
.dw-block { min-height: 58vh; display: flex; flex-direction: column; justify-content: center; padding-left: 22px; border-left: 1.5px dashed rgba(140,190,255,.35); transition: opacity .5s, border-color .5s; }
.dw-block.is-on { border-left: 3px solid var(--amber); }
.motion .dw-block:not(.is-on) { opacity: .32; }
.dw-code { font: 700 .78rem/1 var(--body); letter-spacing: .06em; color: #8CBEFF; margin-bottom: 12px; }
.dw-block h3 { font: 700 clamp(1.5rem, 2.6vw, 2.3rem)/1.05 var(--display); margin-bottom: .4em; }
.dw-block p { color: var(--fg-soft); max-width: 42ch; }
.dw-fig { position: sticky; top: 14vh; margin-top: 6vh; border: 1.5px solid rgba(140,190,255,.5); border-radius: 4px; padding: 14px; background: rgba(7,22,40,.5); }
.drawing { display: block; width: 100%; height: auto; }
.drawing path, .drawing circle { fill: none; stroke: #CFE3FF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.drawing text { fill: #CFE3FF; font: 700 13px var(--body); stroke: none; }
.drawing .dw-dim path { stroke: #8CBEFF; stroke-width: 1.4; }
.dw-l path, .dw-l circle { stroke-dasharray: 1; stroke-dashoffset: var(--draw, 0); transition: stroke-dashoffset 1.6s var(--ease-out), stroke .4s; }
.motion .dw-l { --draw: 1; }
.motion .dw-l.is-drawn { --draw: 0; }
.dw-l.is-hot path, .dw-l.is-hot circle { stroke: var(--amber); }
.dw-title { display: grid; grid-template-columns: auto 1fr auto; margin-top: 12px; border: 1px solid rgba(140,190,255,.5); font: 600 .72rem/28px var(--body); color: #CFE3FF; letter-spacing: .03em; }
.dw-title span { padding: 0 10px; border-right: 1px solid rgba(140,190,255,.5); }
.dw-title span:last-child { border-right: 0; }

/* ---------- The building pulled apart into layers ---------- */
.ly-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.ly-fig { position: relative; }
.layers-svg { display: block; width: 100%; height: auto; overflow: visible; }
.ly-slab path { fill: rgba(62,140,224,.18); stroke: #CFE3FF; stroke-width: 1.6; }
.ly-slab .ly-edge { fill: rgba(62,140,224,.35); }
.ly-slab { transform: translateY(calc(var(--i) * -22px - var(--gap, 0px) * var(--i))); transition: transform .2s linear; }
.ly-slab.is-hot path { stroke: var(--amber); fill: rgba(242,163,58,.22); }
.ly-labels { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: ly; }
.ly-label { border-left: 3px solid rgba(140,190,255,.4); padding: 6px 0 6px 16px; transition: border-color .3s, opacity .3s; }
.ly-label b { display: block; font: 700 1.15rem/1.2 var(--display); }
.ly-label span { color: var(--fg-soft); font-size: .98rem; }
.ly-label.is-hot { border-left-color: var(--amber); }

@media (max-width: 980px) {
  .dw-grid, .ly-grid { grid-template-columns: 1fr; }
  .dw-fig { top: 80px; margin-top: 0; z-index: 3; max-width: 520px; }
  .dw-block { min-height: 48vh; }
}
