/* Ethan's original animated wireframe, in the Build features section. */
.build { width: 100%; max-width: 640px; }
}
@media (max-width: 760px) { .hero-in { gap: 36px; padding: 48px 0 52px; } }

.build { position: relative; display: grid; gap: 14px; }
.build::before { content: ""; position: absolute; z-index: -1; inset: -14% -12%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(169, 184, 236, .2), rgba(169, 184, 236, 0)); }
.build-win { overflow: hidden; border: 1px solid rgba(169, 184, 236, .26); border-radius: 14px; background: var(--navy-2);
  box-shadow: 0 32px 64px -28px rgba(0, 0, 0, .8); }
.build-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-bottom: 1px solid rgba(169, 184, 236, .16); }
.build-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(169, 184, 236, .3); }
.build-bar span { flex: 0 1 46%; min-width: 0; margin-left: 10px; padding: 3px 12px; border-radius: 999px; background: rgba(169, 184, 236, .1);
  font: 500 11.5px/1.4 var(--mono); color: var(--on-navy-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.build-view { position: relative; aspect-ratio: 100 / 64; overflow: hidden; container-type: inline-size;
  background: radial-gradient(rgba(169, 184, 236, .1) 1px, transparent 1.2px) 0 0 / 2.5cqw 2.5cqw; }   /* a faint dot grid, like a design canvas */
.build-meta { display: flex; align-items: center; gap: 12px; min-height: 36px; }
.build-steps { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; font: 500 12.5px/1.3 var(--mono); color: var(--on-navy-mute); }
.build-steps li { position: relative; padding: 4px 0; opacity: .55; transition: opacity .3s, color .3s; }
.build-steps li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--peri);
  transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.build-steps li.is-on { opacity: 1; color: var(--on-navy); }
.build-steps li.is-on::after { transform: scaleX(1); }
.build-pause { position: relative; flex: none; width: 36px; height: 36px; margin-left: auto; padding: 0; border: 1px solid rgba(169, 184, 236, .4);
  border-radius: 50%; background: transparent; color: var(--peri); cursor: pointer; }
.build-pause:hover { border-color: var(--peri); background: rgba(169, 184, 236, .1); }
.build-pause::before { content: ""; position: absolute; inset: 0; width: 10px; height: 12px; margin: auto;
  background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65%); }
.build-pause.is-paused::before { width: 11px; translate: 1px 0; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
@media (max-width: 380px) { .build-steps { gap: 4px 12px; font-size: 11.5px; } }

/* the mock page: periwinkle lines and light text on the window's navy */
.mk { position: absolute; inset: 0; overflow: hidden; color: var(--on-navy); font: 400 1.5cqw/1.45 var(--sans); text-align: left; --ln: rgba(169, 184, 236, .4); }
.mk-grid { position: absolute; inset: 0 5.5cqw; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.6cqw; pointer-events: none; }
.mk-grid i { background: rgba(169, 184, 236, .045); box-shadow: inset 1px 0 rgba(169, 184, 236, .08), inset -1px 0 rgba(169, 184, 236, .08); transform-origin: top; }
.mk-head { position: relative; display: flex; align-items: center; gap: 3cqw; height: 9cqw; padding: 0 5.5cqw; border-bottom: 1px solid rgba(169, 184, 236, .2); }
.mk-logo { font: 400 2.2cqw/1.2 var(--display); color: var(--peri); white-space: nowrap; }
.mk-nav { display: flex; gap: 2.4cqw; margin-left: auto; font-size: 1.45cqw; color: var(--on-navy-mute); white-space: nowrap; }
.mk-btn { position: relative; display: inline-block; padding: .95cqw 1.8cqw; border: 1px solid var(--peri); border-radius: 999px; background-color: var(--peri); color: var(--navy);
  font-size: 1.35cqw; font-weight: 650; line-height: 1.2; white-space: nowrap; }
.mk-btn-o { border-color: var(--ln); background-color: transparent; color: var(--peri); }
.mk-btn-s { padding: .7cqw 1.5cqw; font-size: 1.25cqw; }
.mk-hero { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.6cqw; align-items: start; padding: 5.4cqw 5.5cqw 4.8cqw; }
.mk-copy { grid-column: 1 / span 6; }
.mk-h1 { position: relative; font: 400 4cqw/1.06 var(--display); text-wrap: balance; }
.mk-p { margin-top: 2cqw; font-size: 1.5cqw; line-height: 1.5; color: var(--on-navy-mute); }
.mk-btns { display: flex; flex-wrap: wrap; gap: 1cqw; margin-top: 2.6cqw; }
.mk-ill { position: relative; grid-column: 8 / span 5; aspect-ratio: 560 / 400; border: 1px solid rgba(169, 184, 236, .22); border-radius: 1cqw; }
.mk-ill svg { display: block; width: 100%; height: 100%; }
.mk-cards { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 1.6cqw; padding: 0 5.5cqw; }
.mk-card { display: grid; gap: 1cqw; align-content: start; padding: 2.2cqw; border: 1px solid rgba(169, 184, 236, .26); border-radius: 1cqw; background-color: rgba(169, 184, 236, .04); }
.mk-ico { display: block; width: 4cqw; height: 4cqw; border-radius: 50%; }
.mk-ico svg { display: block; width: 100%; height: 100%; }
.mk-card b { font: 400 1.7cqw/1.15 var(--display); }
.mk-card p { font-size: 1.2cqw; line-height: 1.45; color: var(--on-navy-mute); }
.mk-logo span, .mk-nav span, .mk-h1 > span, .mk-p span, .mk-card b span, .mk-card p span {
  border-radius: .3em; background-color: rgba(169, 184, 236, 0); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.mk svg path { fill: none; stroke: var(--peri); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mk-ico svg path { stroke-width: 2.2; }
.mk svg .hi { fill: rgba(169, 184, 236, .22); }
.mk-ill::after { content: ""; position: absolute; inset: -1px; opacity: 0; border: 1px dashed rgba(169, 184, 236, .55); border-radius: inherit;
  background: linear-gradient(to top right, transparent calc(50% - 1px), rgba(169, 184, 236, .4) 50%, transparent calc(50% + 1px)),
              linear-gradient(to bottom right, transparent calc(50% - 1px), rgba(169, 184, 236, .4) 50%, transparent calc(50% + 1px)); }
/* spec notes: dimension lines with end ticks and a cobalt label */
.mk-note { position: absolute; left: 0; right: 0; top: -2.4cqw; display: flex; justify-content: center; height: 0; border-top: 1px solid rgba(169, 184, 236, .85);
  font: 500 1.35cqw/1 var(--mono); font-style: normal; color: #fff; pointer-events: none; }
.mk-note::before, .mk-note::after { content: ""; position: absolute; top: -.7cqw; width: 1px; height: 1.4cqw; background: rgba(169, 184, 236, .85); }
.mk-note::before { left: 0; }
.mk-note::after { right: 0; }
.mk-note span { padding: .45cqw .9cqw; border-radius: 99px; background: var(--cobalt); white-space: nowrap; translate: 0 -50%; }
.mk-cards .mk-note { left: 5.5cqw; right: 5.5cqw; }
.mk-cursor { position: absolute; z-index: 3; left: 58%; top: 46%; width: 2.8cqw; height: 2.8cqw; opacity: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l14 8.5-6.2 1.3L16 20l-3 1.4-3.2-7.2L5 18z' fill='%23fff' stroke='%230b1020' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }

/* before the details: bars where the words go, dashed boxes for buttons and cards, an X for the picture */
.mk:is([data-stage="blank"], [data-stage="grid"], [data-stage="wire"]) :is(.mk-logo, .mk-nav, .mk-h1, .mk-p, .mk-card b, .mk-card p) span:not(.mk-note span) {
  color: transparent; background-color: rgba(169, 184, 236, .2); }
.mk:is([data-stage="blank"], [data-stage="grid"], [data-stage="wire"]) .mk-btn { border-style: dashed; border-color: rgba(169, 184, 236, .55); background-color: rgba(169, 184, 236, 0); color: transparent; }
.mk:is([data-stage="blank"], [data-stage="grid"], [data-stage="wire"]) .mk-ill { border-color: transparent; }
.mk:is([data-stage="blank"], [data-stage="grid"], [data-stage="wire"]) .mk-ill::after { opacity: 1; }
.mk:is([data-stage="blank"], [data-stage="grid"], [data-stage="wire"]) svg { opacity: 0; }
.mk:is([data-stage="blank"], [data-stage="grid"], [data-stage="wire"]) .mk-card { border-style: dashed; border-color: rgba(169, 184, 236, .4); background-color: rgba(169, 184, 236, 0); }
.mk:is([data-stage="blank"], [data-stage="grid"], [data-stage="wire"]) .mk-ico { background-color: rgba(169, 184, 236, .2); }
.mk:is([data-stage="blank"], [data-stage="grid"], [data-stage="wire"]) .mk-head { border-bottom-style: dashed; }
.mk:is([data-stage="blank"], [data-stage="grid"], [data-stage="wire"], [data-stage="detail"]) .mk-note { opacity: 0; translate: 0 .6cqw; }
.mk:is([data-stage="blank"], [data-stage="grid"]) .mk-x { clip-path: inset(0 100% 0 0); }
.mk:is([data-stage="blank"], [data-stage="grid"]) .mk-head { border-bottom-color: transparent; }
.mk[data-stage="wire"] .mk-x { clip-path: inset(0 0 0 0); }   /* the notes sit outside their pieces, so later stages don't clip */
.mk[data-stage="blank"] .mk-grid i { transform: scaleY(0); }

/* timing */
.mk[data-stage="grid"] .mk-grid i { transition: transform .8s cubic-bezier(.3, .7, .2, 1) calc(var(--c) * 45ms); }
.mk[data-stage="wire"] .mk-x { transition: clip-path .6s cubic-bezier(.3, .7, .2, 1) calc(var(--i) * 150ms); }
.mk[data-stage="wire"] .mk-head { transition: border-color .4s; }
.mk[data-stage="detail"] :is(.mk-x, .mk-x *, .mk-x::after) { transition: color .5s, background-color .5s, border-color .5s, opacity .5s, fill .6s;
  transition-delay: calc(.2s + var(--i, 0) * 110ms); }
.mk[data-stage="detail"] svg .hi { transition-delay: calc(1.4s + var(--i, 0) * 110ms); }
.mk[data-stage="detail"] svg path { animation: mk-draw 1.3s cubic-bezier(.4, 0, .2, 1) calc(.3s + var(--i, 0) * 110ms) backwards; }
@keyframes mk-draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
.mk[data-stage="specs"] .mk-note { transition: opacity .5s, translate .5s cubic-bezier(.3, .7, .2, 1); transition-delay: calc(.2s + var(--n) * 260ms); }
.is-live .mk[data-stage="specs"] .mk-cursor { animation: mk-cursor 2.4s 1.3s both; }
.is-live .mk[data-stage="specs"] .mk-btns .mk-btn:first-child { animation: mk-press .8s ease-out 2.8s both; }
@keyframes mk-cursor {
  0% { opacity: 0; transform: translate(30cqw, 13cqw); animation-timing-function: cubic-bezier(.3, .7, .2, 1); }
  12% { opacity: 1; }
  60% { transform: translate(0, 0) scale(1); }
  66% { transform: translate(0, 0) scale(.8); }
  74%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
}
@keyframes mk-press { from { box-shadow: 0 0 0 0 rgba(169, 184, 236, .75); } to { box-shadow: 0 0 0 1.8cqw rgba(169, 184, 236, 0); } }
.mk[data-stage="out"] { opacity: 0; transition: opacity .6s ease; }   /* end of the loop: fade out, then blank at once */
.mk[data-stage="out"] .mk-cursor { opacity: 1; }


.build { --navy: var(--night); --navy-2: var(--night-2); --on-navy: var(--flare); --on-navy-mute: var(--mist); min-width: 0; position: relative; z-index: 4; }
.build-meta[hidden] { display: none; }
.build-pause { width: 44px; height: 44px; }
.build-steps { padding: 0; margin: 0; }
@media (max-width: 700px) {
  .build { gap: 8px; }
  .build-bar { height: 28px; }
  .build-bar i { width: 6px; height: 6px; }
  .build-steps { gap: 4px 12px; font-size: 12px; }
}

/* Controls sit on the light section; the animated sample keeps its original navy colors. */
.build-features .build-steps { color: var(--slate); }
.build-features .build-steps li { opacity: 1; }
.build-features .build-steps li.is-on { color: var(--cobalt); }
.build-features .build-steps li::after { background: var(--cobalt); }
.build-features .build-pause { color: var(--cobalt); border-color: var(--cobalt); background: #fff; }
.build-features .build-pause:hover { background: var(--paper); }
