/* Three layouts for Build with us (js/build-options.js). Nothing here applies without ?build=. */

/* Ten weeks: the section holds, the scroll is the build */
.bo-track { position: relative; height: 300vh; margin-top: clamp(20px, 3vw, 40px); }
.bo-stage { position: sticky; top: 0; height: 100vh; height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding: 84px 0 26px; box-sizing: border-box; }
.bo-main { display: flex; flex-direction: column; gap: 22px; }
.bx-timeline .xb-view { aspect-ratio: auto; height: 56vh; }
.bx-timeline .xb-sched { display: none; }
.bo-line { position: relative; height: 104px; --p: 0; }
.bo-weeks { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--rule); }
.bo-weeks span { position: absolute; top: 8px; transform: translateX(-50%); font-family: var(--caps); font-size: 10.5px; letter-spacing: .12em; color: var(--ink2); }
.bo-weeks span::before { content: ""; position: absolute; left: 50%; top: -12px; width: 1px; height: 7px; background: var(--ink2); }
.bo-fill { position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--red); transform: scaleX(var(--p)); transform-origin: left; }
.bo-ms { position: absolute; top: 30px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; opacity: .45; transition: opacity .3s; white-space: nowrap; }
.bo-ms.m0 { transform: none; align-items: flex-start; }
.bo-ms.m3 { transform: translateX(-100%); align-items: flex-end; }
.bo-ms b { font-family: var(--caps); color: var(--red); font-size: 11px; letter-spacing: .14em; }
.bo-ms span { font-size: 14px; }
.bo-ms.on { opacity: 1; }
/* the four milestones on two rows, so neighbours never run into each other (01 and 02 are a week apart, 03 and 04 meet
   on the phone); 02 and 04 sit lower, each on a short tick down from the line */
.bo-ms.r2 { top: 64px; }
.bo-ms.r2::before { content: ""; position: absolute; top: -34px; width: 1px; height: 28px; background: var(--rule); left: 50%; }
.bo-ms.m1 { transform: none; align-items: flex-start; }               /* starts at its week, so it never runs off the left on a phone */
.bo-ms.m1::before { left: 0; }
.bo-ms.m3::before { left: auto; right: 0; }
/* the time lapse film in the Timeline (?lapse=) */
.bo-lapse { position: absolute; z-index: 3; overflow: hidden; background: #1b1a19; opacity: 0; pointer-events: none; }
.bo-lapse video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bo-lapse-film { inset: 0; }
.bo-lapse-inset { left: 18px; top: 18px; width: 34%; aspect-ratio: 16 / 9; box-shadow: 0 18px 40px rgba(20, 18, 16, .28); outline: 1px solid rgba(244, 241, 233, .7); outline-offset: -1px; }
.bo-ltag { position: absolute; z-index: 2; left: 14px; top: 14px; margin: 0; display: flex; flex-direction: column; gap: 3px; max-width: 360px; padding: 7px 10px; background: rgba(27, 26, 25, .62); color: var(--paper); font-size: 11.5px; line-height: 1.35; }
.bo-ltag b { font-family: var(--caps); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: #f0b7a8; font-weight: 500; }
.bo-lapse-inset .bo-ltag { left: 8px; top: 8px; padding: 4px 7px; }
.bo-lapse-inset .bo-ltag span { display: none; }

/* Round fifteen (?bview=): the head and the materials join the pinned Timeline screen */
.bv-opt .bo-track { margin-top: 0; }
.bv-opt .bv-head { margin: 0; }
.bv-opt .bv-head h2 { font-size: clamp(30px, 2.6vw, 46px); margin: 14px 0 0; max-width: none; }
.bv-opt .bv-mats { margin: 0; }
.bv-opt .bv-mats .kick { margin: 0; }
.bv-opt .bv-mats .chips .n { display: none; }
/* Column: head and materials left, builder and price right, across the whole screen */
.bv-column .bo-track { width: 100vw; margin-left: calc(50% - 50vw); }
.bv-column .bo-stage { grid-template-columns: minmax(0, .72fr) minmax(0, 1.62fr) minmax(0, .92fr); gap: clamp(24px, 2.6vw, 48px); padding: 84px var(--pad) 26px; }
.bv-side { display: flex; flex-direction: column; gap: clamp(26px, 4vh, 46px); align-self: center; }
.bv-column .bv-mats .chips { grid-template-columns: repeat(3, 1fr); gap: 16px 12px; margin-top: 14px; }
.bv-column .bv-mats .chips .sw { aspect-ratio: 1; }
.bv-column .bv-mats .chips .w { margin: 7px 0 2px; font-size: 9.5px; letter-spacing: .12em; }
.bv-column .bv-mats .chips h3 { font-size: 14px; }
.bv-column .xb-tiers strong { font-size: clamp(18px, 1.4vw, 24px); }
.bv-column .xb-tiers button { padding: 10px 9px 12px; }
.bv-column .xb-adds button { padding: 12px 0; }
.bv-column .xb-adds b { font-size: 16px; }
.bv-column .xb-total strong { font-size: clamp(34px, 2.8vw, 50px); }
/* Strip: head on top, builder in the middle, the materials along the bottom, lit as the build reaches them */
.bv-strip .bo-stage { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "head head" "main panel" "mats mats"; align-items: center; row-gap: 16px; padding: 106px 0 18px; }
.bv-strip .bv-head { grid-area: head; display: flex; align-items: baseline; gap: 28px; }
.bv-strip .bv-head h2 { margin: 0; font-size: clamp(28px, 2.2vw, 40px); }
.bv-strip .bo-main { grid-area: main; gap: 14px; }
.bv-strip .xb-panel { grid-area: panel; }
.bv-strip .xb-tiers + .xb-lab { margin-top: 18px; }
.bv-strip .xb-adds button { padding: 11px 0; }
.bv-strip .xb-adds b { font-size: 16px; }
.bv-strip .xb-total { margin: 16px 0 14px; }
.bv-strip .xb-total strong { font-size: clamp(34px, 2.9vw, 50px); }
.bv-strip.bx-timeline .xb-view { height: 44vh; }
.bv-strip .bv-mats { grid-area: mats; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 28px; border-top: 1px solid var(--rule); padding-top: 12px; }
.bv-strip .bv-mats .kick { max-width: 9em; line-height: 1.5; }
.bv-strip .bv-mats .chips { margin: 0; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bv-strip .bv-mats .chips li { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; opacity: calc(.32 + .68 * var(--k, 0)); position: relative; }
.bv-strip .bv-mats .chips li::after { content: ""; position: absolute; left: 0; right: 0; top: -13px; height: 2px; background: var(--red); transform: scaleX(var(--k, 0)); transform-origin: left; }
.bv-strip .bv-mats .chips .sw { grid-row: 1 / 3; width: 40px; aspect-ratio: 1; }
.bv-strip .bv-mats .chips .w { margin: 0; font-size: 9.5px; letter-spacing: .12em; align-self: end; }
.bv-strip .bv-mats .chips h3 { font-size: 15px; align-self: start; }
/* Under: the head over the price, the materials as small swatches under it */
.bv-under .xb-panel { display: flex; flex-direction: column; }
.bv-under .xb-panel .bv-head { margin-bottom: 22px; }
.bv-under .xb-panel .bv-head h2 { font-size: clamp(28px, 2.2vw, 40px); }
.bv-under .xb-tiers + .xb-lab { margin-top: 18px; }
.bv-under .xb-adds button { padding: 11px 0; }
.bv-under .xb-adds b { font-size: 16px; }
.bv-under .xb-total { margin: 16px 0 14px; }
.bv-under .xb-total strong { font-size: clamp(34px, 2.9vw, 50px); }
.bv-under .bv-mats { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--rule); }
.bv-under .bv-mats .chips { margin-top: 12px; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.bv-under .bv-mats .chips .sw { aspect-ratio: 1; }
.bv-under .bv-mats .chips .w { display: none; }
.bv-under .bv-mats .chips h3 { font-size: 11.5px; line-height: 1.25; margin-top: 6px; }

/* Studio: a dark full-width stage, the cabin large, 30 50 80 as big numbers */
.bo-studio { position: relative; width: 100vw; margin: clamp(30px, 4vw, 56px) 0 0 calc(50% - 50vw); height: 92vh; background: #1b1a19; color: var(--paper); overflow: hidden; }
.bo-studio .xb-view { position: absolute; inset: 0; aspect-ratio: auto; box-shadow: none; background: #1b1a19; }
.bo-studio .xb-panel { position: absolute; right: var(--pad); top: 110px; width: min(360px, 30vw); padding: 20px 22px; background: rgba(27, 26, 25, .55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(244, 241, 233, .14); }
.bo-studio .xb-panel .xb-tiers { display: none; }
.bo-studio .xb-panel, .bo-studio .xb-panel * { color: var(--paper); }
.bo-studio .xb-adds button { border-color: rgba(244, 241, 233, .2) !important; }
.bo-studio .xb-sched { left: var(--pad); right: auto; width: min(420px, 40vw); top: 110px; color: rgba(244, 241, 233, .7); }
.bo-studio .xb-sched .xb-week { color: var(--paper); }
.bo-studio .xb-sched li::before { background: rgba(244, 241, 233, .2); }
.bo-studio .xb-note, .bo-studio .xb-hint { color: rgba(244, 241, 233, .7); background: none; }
.bo-nums { position: absolute; left: var(--pad); bottom: calc(var(--pad) + 6px); display: flex; gap: clamp(22px, 3vw, 54px); }
.bo-nums button { all: unset; cursor: pointer; position: relative; font-weight: 200; font-size: clamp(64px, 7vw, 120px); line-height: .85; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px rgba(244, 241, 233, .55); transition: color .4s, -webkit-text-stroke-color .4s; }
.bo-nums button small { position: absolute; left: 4px; top: -16px; font-family: var(--caps); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(244, 241, 233, .55); -webkit-text-stroke: 0; }
.bo-nums button.on { color: var(--paper); -webkit-text-stroke-color: var(--paper); }
.bo-nums button.on small { color: #ef8a7d; }

/* Commission: the time-lapse film left, a short numbered brief right */
.bo-comm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 90px); align-items: start; margin-top: clamp(30px, 4vw, 56px); }
.bo-film { position: sticky; top: 100px; }
.bo-comm .xb-view { aspect-ratio: 3 / 3.7; }
.bo-tag { position: absolute; left: 18px; top: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; z-index: 2; }
.bo-tag b { font-family: var(--caps); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: 11px; color: #fff; background: var(--red); padding: 5px 8px 4px; }
.bo-tag span { max-width: 24em; font-size: 14px; line-height: 1.38; color: #fbf8f1; background: rgba(23, 22, 21, .66); padding: 7px 10px 8px; }
.bo-comm .xb-sched { top: auto; bottom: 46px; }
.bo-comm .xb-lab b { color: var(--red); margin-right: 8px; font-weight: 600; }
.bo-comm .xb-lab { font-size: 13px; margin-top: 26px; }
.bo-regions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.bo-regions button { all: unset; cursor: pointer; padding: 12px 14px; border: 1px solid var(--rule); font-size: 15px; transition: border-color .3s, background .3s; }
.bo-regions button.on { border-color: var(--ink); background: rgba(23, 22, 21, .04); }

@media (max-width: 760px) {
  .bo-track { height: auto; }
  .bo-stage { position: relative; height: auto; grid-template-columns: 1fr; padding: 0; }
  .bx-timeline .xb-view { height: 44vh; }
  .bo-lapse-inset { width: 46%; left: 10px; top: 10px; }
  .bo-studio { height: auto; padding-bottom: 20px; }
  .bo-studio .xb-view { position: relative; height: 60vh; }
  .bo-studio .xb-panel { position: relative; right: auto; top: auto; width: auto; margin: 16px var(--pad) 0; }
  .bo-nums { position: relative; left: auto; bottom: auto; margin: 16px var(--pad) 0; }
  .bo-comm { grid-template-columns: 1fr; }
  .bv-column .bo-track { width: auto; margin-left: 0; }
  .bv-column .bo-stage, .bv-strip .bo-stage { grid-template-columns: 1fr; grid-template-areas: none; grid-template-rows: none; padding: 0; row-gap: 22px; }
  .bv-side { display: contents; }
  .bv-opt .bv-head { order: -1; }
  .bv-opt .bv-mats { order: 5; }
  .bv-strip .bv-head, .bv-strip .bo-main, .bv-strip .xb-panel, .bv-strip .bv-mats { grid-area: auto; }
  .bv-strip .bv-head { display: block; }
  .bv-strip .bv-head h2 { margin-top: 12px; }
  .bv-strip.bx-timeline .xb-view { height: 44vh; }
  .bv-strip .bv-mats { grid-template-columns: 1fr; gap: 12px; }
  .bv-opt .bv-mats .chips { grid-template-columns: repeat(3, 1fr); gap: 16px 10px; }
  .bv-strip .bv-mats .chips li { display: block; }
  .bv-strip .bv-mats .chips .sw { width: 100%; }
  .bo-film { position: relative; top: 0; }
}
