/* /blueprint/ — Linework, architects & builders. Base rules = static fallback (reduced motion): each project as text + photo.
   `html.bp-on` turns on the sticky stage: blueprint sheet, plotted lines, notes, torch and reveal (blueprint.js). */
@font-face { font-family: "Archivo"; src: url(/assets/fonts/archivo-variable.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
.bp-page {
  --pg-bg: #eeebe3; --pg-ink: #0f1b2d; --f-display: "Archivo", system-ui, sans-serif; --h-weight: 700;
  --blue: #173c79; --blue-hi: #2a5aa6; --line: #eaf2ff; --red: #e4513c; --muted: #5c6472;
  --bar-bg: #0f1b2d; --bar-fg: #eeebe3; --tag: #ffb4a6; --btn-bg: #e4513c; --btn-fg: #fff; --order-bg: #173c79; --order-fg: #eaf2ff;
}
.bp-page h1, .bp-page h2 { font-stretch: 78%; letter-spacing: -.02em; text-transform: uppercase; line-height: .92; }
.bp-page .dm-bar__name { font: 800 1.1rem "Archivo", sans-serif; font-stretch: 112%; letter-spacing: .12em; }
.bp-page .dm-eyebrow { color: var(--red); }

/* blueprint paper: deep blue with a fine and a coarse grid */
.bp-hero, .bp-paper {
  background-color: var(--blue);
  background-image:
    linear-gradient(rgba(234, 242, 255, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(234, 242, 255, .12) 1px, transparent 1px),
    linear-gradient(rgba(234, 242, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(234, 242, 255, .05) 1px, transparent 1px),
    radial-gradient(120% 90% at 50% 40%, #1d4a90, #122f61);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px, 100% 100%;
}

/* ---------- Hero ---------- */
.bp-hero { position: relative; min-height: min(86svh, 820px); color: var(--line); display: grid; align-items: center; overflow: hidden;
  padding: 5rem max(24px, (100vw - 1240px) / 2) 6rem; }
.bp-hero__in { position: relative; z-index: 2; max-width: 36rem; }
.bp-hero h1 { font-size: clamp(3.6rem, 9vw, 8rem); margin: 1rem 0 1.2rem; }
.bp-hero .dm-eyebrow { color: #ffb4a6; }
.bp-hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(234, 242, 255, .8); margin: 0; max-width: 30rem; }
.bp-house { position: absolute; right: max(16px, (100vw - 1240px) / 2); bottom: 12%; width: min(52vw, 640px); height: auto; opacity: .95; }
.bp-house path { fill: none; stroke: var(--line); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: bp-plot 3.2s cubic-bezier(.4, 0, .2, 1) forwards; }
.bp-house path:nth-child(2) { animation-delay: .2s; } .bp-house path:nth-child(3) { animation-delay: .5s; } .bp-house path:nth-child(4) { animation-delay: .7s; }
.bp-house path:nth-child(n+5) { animation-delay: 1.1s; stroke-width: 1.2; }
.bp-house .bp-house__dim { stroke: #ffb4a6; stroke-dasharray: 6 5; stroke-dashoffset: 0; opacity: 0; animation: bp-fade .8s 2.4s forwards; }
@keyframes bp-plot { to { stroke-dashoffset: 0; } }
@keyframes bp-fade { to { opacity: .9; } }
.bp-scrollcue { position: absolute; left: max(24px, (100vw - 1240px) / 2); bottom: 2rem; font: 500 .72rem var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(234, 242, 255, .6); }

/* title block (bottom-right of each drawing) */
.bp-block { position: absolute; right: 12px; bottom: 12px; z-index: 5; display: grid; gap: 2px; padding: .45rem .7rem; border: 1px solid rgba(234, 242, 255, .7);
  background: rgba(18, 47, 97, .82); color: var(--line); font: 500 .6rem/1.35 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.bp-block b { font: 800 .8rem "Archivo", sans-serif; font-stretch: 112%; letter-spacing: .14em; }
.bp-block--hero { right: max(16px, (100vw - 1240px) / 2); bottom: 1.6rem; font-size: .66rem; }

/* ---------- Static fallback ---------- */
.bp-story { padding: 4rem 0; }
.bp-proj { width: min(1160px, 100% - 32px); margin: 0 auto 4rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 2.5rem; align-items: center; }
.bp-info h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); margin: .7rem 0 .9rem; }
.bp-blurb { margin: 0 0 1.4rem; color: var(--muted); }
.bp-specs { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1.6rem; margin: 0; }
.bp-specs dt { font: 500 .68rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.bp-specs dd { margin: .2rem 0 0; font: 700 1.25rem "Archivo", sans-serif; }
.bp-steps { display: none; }
.bp-sheet { position: relative; margin: 0; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; box-shadow: 0 30px 60px -36px rgba(15, 27, 45, .6); }
.bp-paper, .bp-lines, .bp-photo, .bp-notes { position: absolute; inset: 0; width: 100%; height: 100%; }
.bp-lines, .bp-notes, .bp-scan, .bp-paper, .bp-ring, .bp-hint { display: none; }
.bp-photo { object-fit: cover; }

/* ---------- Live stage ---------- */
.bp-on .bp-story { height: 840svh; padding: 0; }
.bp-on .bp-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--pg-bg); }
.bp-on .bp-proj {
  position: absolute; inset: 0; width: auto; margin: 0; padding: calc(52px + 2.2rem) max(24px, (100vw - 1320px) / 2) 2.4rem;
  grid-template-columns: minmax(17rem, 28%) minmax(0, 1fr); gap: clamp(1.5rem, 3.5vw, 3.5rem);
  opacity: 0; visibility: hidden; transition: opacity .6s, visibility 0s .6s;
}
.bp-on .bp-proj.is-on { opacity: 1; visibility: visible; transition: opacity .6s; }
.bp-on .bp-info > * { transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .6s; }
.bp-on .bp-proj:not(.is-on) .bp-info > * { transform: translateY(18px); opacity: 0; }
.bp-on .bp-sheet { justify-self: center; width: min(100%, calc((100svh - 52px - 4.6rem) * 1.5)); border-radius: 2px; }
.bp-on .bp-paper { display: block; }
.bp-on .bp-lines { display: block; mix-blend-mode: screen; object-fit: cover;
  -webkit-mask-image: linear-gradient(100deg, #000 calc(var(--d, 0) * 125% - 25%), transparent calc(var(--d, 0) * 125%));
  mask-image: linear-gradient(100deg, #000 calc(var(--d, 0) * 125% - 25%), transparent calc(var(--d, 0) * 125%)); }
.bp-on .bp-photo { -webkit-mask-image: radial-gradient(circle at 0 0, transparent 0, transparent 100%); mask-image: radial-gradient(circle at 0 0, transparent 0, transparent 100%); }
.bp-on .bp-scan { display: block; position: absolute; top: 0; bottom: 0; left: calc(var(--d, 0) * 100%); width: 2px; z-index: 3; opacity: 0; transition: opacity .3s;
  background: #fff; box-shadow: 0 0 18px 4px rgba(170, 205, 255, .8); pointer-events: none; }

/* dimensions + notes */
.bp-on .bp-notes { display: block; z-index: 4; overflow: visible; pointer-events: none; }
.bp-notes path { fill: none; stroke: var(--line); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke .6s; }
.bp-notes .bp-dot { fill: #ffb4a6; opacity: var(--a, 0); }
.bp-notes text { font: 600 2.05px var(--f-mono); letter-spacing: .12px; fill: var(--line); opacity: var(--a, 0); paint-order: stroke; stroke: rgba(18, 47, 97, .95); stroke-width: .9px; stroke-linejoin: round; transition: fill .6s, stroke .6s; }
.bp-proj.is-built .bp-notes path { stroke: #fff; filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, .7)); }
.bp-proj.is-built .bp-notes text { fill: #fff; stroke: rgba(10, 16, 28, .75); }

/* the torch ring + hint */
.bp-on .bp-ring { display: block; position: absolute; left: 0; top: 0; z-index: 6; border-radius: 50%; pointer-events: none; opacity: 0;
  border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(15, 27, 45, .25), 0 10px 40px rgba(0, 0, 0, .25); }
.bp-ring::before, .bp-ring::after { content: ""; position: absolute; left: 50%; top: 50%; background: #fff; translate: -50% -50%; }
.bp-ring::before { width: 18px; height: 1.5px; } .bp-ring::after { width: 1.5px; height: 18px; }
.bp-ring span { position: absolute; left: 50%; top: -1.9rem; translate: -50% 0; padding: .15rem .5rem; border-radius: 4px; background: var(--red); color: #fff;
  font: 600 .62rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.bp-on .bp-hint { display: block; position: absolute; left: 0; top: 0; z-index: 7; margin: 0; translate: -50% -100%; padding: .5rem .9rem; border-radius: 999px;
  background: rgba(15, 27, 45, .82); color: #fff; font: 500 .85rem var(--f-body); white-space: nowrap; opacity: 0; transition: opacity .4s; pointer-events: none; }
.bp-hint.on { opacity: 1; }

/* step tracker */
.bp-on .bp-steps { display: flex; gap: .4rem; list-style: none; margin: 1.8rem 0 0; padding: 0; counter-reset: s; }
.bp-steps li { counter-increment: s; flex: 1; padding: .6rem 0 0; border-top: 3px solid rgba(15, 27, 45, .14); font: 500 .68rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: border-color .4s, color .4s; }
.bp-steps li::before { content: "0" counter(s) " "; }
.bp-steps li.now { border-color: var(--red); color: var(--pg-ink); }
.bp-steps li.done { border-color: var(--pg-ink); color: var(--pg-ink); }

/* ---------- How we work ---------- */
.bp-process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.bp-process li { padding: 1.4rem; border-top: 3px solid var(--blue); background: #fff; border-radius: 0 0 14px 14px; }
.bp-process b { font: 700 1.05rem "Archivo", sans-serif; font-stretch: 90%; text-transform: uppercase; letter-spacing: .02em; }
.bp-process p { margin: .6rem 0 0; color: var(--muted); font-size: .95rem; }
.bp-consult { padding-top: 0; }

@media (max-width: 800px) {
  .bp-house { width: 88vw; right: 6vw; bottom: 16%; opacity: .35; }
  .bp-hero { align-items: start; padding-top: 3.5rem; }
  .bp-block--hero { display: none; }
  .bp-proj { grid-template-columns: minmax(0, 1fr); }
  .bp-process { grid-template-columns: minmax(0, 1fr); }
  .bp-on .bp-proj { padding: calc(52px + .9rem) 12px 1rem; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; align-items: start; gap: 1.4rem; }
  .bp-on .bp-sheet { order: -1; width: 100%; }
  .bp-on .bp-info h2 { font-size: 2rem; margin: .5rem 0 .6rem; }
  .bp-on .bp-blurb { font-size: .95rem; margin-bottom: 1rem; }
  .bp-specs { gap: 1.1rem; } .bp-specs dd { font-size: 1.05rem; }
  .bp-on .bp-steps { margin-top: 1.2rem; }
  .bp-sheet .bp-block { display: none; }                   /* too big for a phone-sized drawing */
  .bp-notes text { font-size: 3.1px; stroke-width: 1.1px; }
  .bp-hint { font-size: .78rem; }
}

/* Own fonts (not the studio's Hanken Grotesk / IBM Plex Mono): body text and labels */
.bp-page { --f-body: "Archivo", system-ui, sans-serif; --f-mono: "Archivo", system-ui, sans-serif; }
