/* Content creation demo: formats that morph on a paper stage + a camera that takes a shot (Builder S). Prefix: fd- */
.fd__body { display: grid; grid-template-columns: 224px minmax(0, 1fr) 300px; gap: clamp(18px, 2.4vw, 36px); align-items: start; }
.fd__left .mono-l, .fd__cam > .mono-l { margin-bottom: 12px; }
.fd__pick { display: grid; gap: 4px; }
.fd__opt { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 8px; align-items: baseline; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: none; cursor: pointer; text-align: left; transition: border-color .3s, background .3s, color .3s; }
.fd__opt:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .025); }
.fd__opt-n { grid-row: 1 / span 2; align-self: start; padding-top: .35em; font: 400 10.5px/1 var(--mono); letter-spacing: .06em; color: var(--muted); }
.fd__opt b { font: 500 15px/1.2 var(--sans); letter-spacing: -.02em; color: rgba(245, 245, 244, .72); transition: color .3s; }
.fd__opt small { font: 400 10.5px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.fd__opt.is-on { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .05); }
.fd__opt.is-on b { color: #fff; }
.fd__opt.is-on .fd__opt-n { color: var(--lime); }
.fd__cap { min-height: 4.2em; margin-top: 18px; font-size: 14px; line-height: 1.5; color: rgba(245, 245, 244, .72); }

/* the paper stage: a fixed 560 x 400 design that scales to fit (--fz is set by the script) */
.fd__stage { position: relative; aspect-ratio: 560 / 430; min-width: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background-color: #0b0b0b; background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1.3px); background-size: 22px 22px; background-position: 11px 11px; }
.fd__tag { position: absolute; left: 16px; bottom: 14px; }
.fd__paper { position: absolute; left: 50%; top: 47%; width: 560px; height: 400px; transform: translate(-50%, -50%) scale(var(--fz, 1)); perspective: 1100px; }
.fd__mock { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: scale(.9) translateY(14px); filter: blur(5px); transition: opacity .55s var(--ease), transform .7s var(--ease), filter .55s var(--ease), visibility 0s .7s; }
.fd[data-fmt="brochure"] [data-m="brochure"], .fd[data-fmt="flyer"] [data-m="flyer"], .fd[data-fmt="poster"] [data-m="poster"], .fd[data-fmt="capability"] [data-m="capability"], .fd[data-fmt="price"] [data-m="price"] { opacity: 1; visibility: visible; transform: none; filter: none; transition-delay: 0s; }
html[data-motion="off"] .fd__mock { transition: none; }

/* paper skeleton parts */
.pp { position: relative; display: flex; flex-direction: column; gap: 7px; height: 100%; padding: 14px 13px; background: #efefeb; color: #111; overflow: hidden; }
.pp .ln { display: block; flex: none; height: 5px; border-radius: 3px; background: #cfcfc8; }
.pp .ln.s { width: 62%; }
.pp .hl { display: block; flex: none; height: 12px; border-radius: 3px; background: #111; }
.pp .hl.s { width: 66%; }
.pp .hl.xl { height: 22px; border-radius: 4px; }
.pp .sp { display: block; flex: none; height: 6px; }
.pp .lg { display: block; flex: none; width: 22px; height: 22px; border-radius: 6px; background: #111; margin-bottom: 8px; }
.pp .img { display: block; flex: none; height: 78px; border-radius: 6px; background: radial-gradient(circle at 74% 30%, #c6f432 0 7%, transparent 7.5%), linear-gradient(160deg, #cbcdc3, #e4e5dd); }
.pp .img--wide { height: 94px; }
.pp .img--half { height: 124px; }
.pp .lm { display: block; flex: none; width: 46px; height: 6px; border-radius: 3px; background: #c6f432; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.pp .box { display: block; flex: none; height: 38px; border: 1.5px solid #c9c9c2; border-radius: 6px; }
.pp .qr { display: block; flex: none; width: 34px; height: 34px; border-radius: 3px; background: conic-gradient(#111 25%, transparent 0 50%, #111 0 75%, transparent 0) 0 0 / 11px 11px, #efefeb; border: 2px solid #111; }
.pp .cta { display: block; flex: none; width: 70px; height: 20px; border-radius: 10px; background: #111; }
.pp .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.pp .foot .ln { flex: 1; }

/* brochure: tri-fold that opens (the side panels swing out from the centre panel) */
.fd__tri { display: flex; width: 438px; height: 308px; transform-style: preserve-3d; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); }
.fd__pn { flex: 1 1 0; min-width: 0; backface-visibility: hidden; transition: transform .9s var(--ease) .15s; }
.fd__pn--l { transform-origin: 100% 50%; border-right: 1px solid rgba(0, 0, 0, .12); }
.fd__pn--r { transform-origin: 0 50%; border-left: 1px solid rgba(0, 0, 0, .12); }
.fd[data-fmt="brochure"] .fd__pn { transform: none; }
.fd:not([data-fmt="brochure"]) .fd__pn--l { transform: rotateY(-82deg); }
.fd:not([data-fmt="brochure"]) .fd__pn--r { transform: rotateY(82deg); }
.fd__pn .pp { padding-top: 18px; }
.fd__pn--c .pp { background: #e9e9e4; }
html[data-motion="off"] .fd__pn { transition: none; }

/* sheets */
.fd__sheet { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); border-radius: 3px; overflow: hidden; }
.fd__sheet--a5 { width: 214px; height: 303px; }
.fd__sheet--a3 { width: 262px; height: 370px; }
.fd__sheet--wide { width: 420px; height: 296px; }
.fd__sheet .pp { padding: 16px 16px 14px; }
.fd__sheet--a3 .pp { padding: 20px 18px 16px; gap: 9px; }
.fd__row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.pp--grid .gd { position: absolute; inset: 12px; z-index: 0; pointer-events: none; background-image: linear-gradient(to right, rgba(198, 130, 0, 0) 0, rgba(0, 0, 0, .09) 0), repeating-linear-gradient(to right, rgba(0, 0, 0, .09) 0 1px, transparent 1px calc(100% / 4)), repeating-linear-gradient(to bottom, rgba(0, 0, 0, .09) 0 1px, transparent 1px calc(100% / 6)); border: 1px dashed rgba(0, 0, 0, .25); }
.pp--grid > :not(.gd) { position: relative; z-index: 1; }
.fd[data-fmt="poster"] .pp--grid .gd { animation: fd-grid 1.2s var(--ease) both; }
@keyframes fd-grid { from { opacity: 0; } to { opacity: 1; } }
.pl-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid #111; margin-bottom: 4px; }
.pl-h .hl { flex: 1; max-width: 140px; height: 16px; }
.pl-r { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 6px; border-bottom: 1px solid #d7d7d0; }
.pl-r .ln { flex: 1; }
.pl-r .ln.s { flex: none; width: 64px; background: #b8b8b1; }
.pl-r:nth-child(even) { background: rgba(0, 0, 0, .035); }

/* capability statement: pages that fan out */
.fd__fan { position: relative; width: 190px; height: 268px; margin-top: 18px; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); }
.fd__pg { position: absolute; inset: 0; transform-origin: 50% 118%; transform: rotate(0deg); transition: transform .95s cubic-bezier(.2, .9, .25, 1.05) .12s; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); }
.fd[data-fmt="capability"] .fd__pg { transform: rotate(calc(var(--r) * 1deg)); }
html[data-motion="off"] .fd__pg { transition: none; }
.fd__pg .pp { padding: 16px 14px; }

/* camera */
.fd__vf { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 1px solid var(--line-2); border-radius: 14px; background: #060606; overflow: hidden; cursor: pointer; }
.fd__scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.fd__br { position: absolute; width: 18px; height: 18px; border: 0 solid rgba(255, 255, 255, .85); pointer-events: none; }
.fd__br--tl { left: 12px; top: 12px; border-width: 1.5px 0 0 1.5px; } .fd__br--tr { right: 12px; top: 12px; border-width: 1.5px 1.5px 0 0; }
.fd__br--bl { left: 12px; bottom: 12px; border-width: 0 0 1.5px 1.5px; } .fd__br--br { right: 12px; bottom: 12px; border-width: 0 1.5px 1.5px 0; }
.fd__thirds { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, transparent calc(33.3% - .5px), rgba(255, 255, 255, .13) calc(33.3% - .5px) calc(33.3% + .5px), transparent calc(33.3% + .5px) calc(66.6% - .5px), rgba(255, 255, 255, .13) calc(66.6% - .5px) calc(66.6% + .5px), transparent calc(66.6% + .5px)), linear-gradient(to bottom, transparent calc(33.3% - .5px), rgba(255, 255, 255, .13) calc(33.3% - .5px) calc(33.3% + .5px), transparent calc(33.3% + .5px) calc(66.6% - .5px), rgba(255, 255, 255, .13) calc(66.6% - .5px) calc(66.6% + .5px), transparent calc(66.6% + .5px)); }
.fd__focus { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border: 1.5px solid var(--lime); border-radius: 4px; pointer-events: none; box-shadow: 0 0 14px rgba(198, 244, 50, .4); }
.fd__focus::before, .fd__focus::after { content: ""; position: absolute; background: var(--lime); }
.fd__focus::before { left: 50%; top: -6px; width: 1.5px; height: 6px; } .fd__focus::after { top: 50%; left: -6px; height: 1.5px; width: 6px; }
.fd.is-shot .fd__focus { animation: fd-focus .5s var(--ease); }
@keyframes fd-focus { 0% { transform: scale(1.7); opacity: 0; } 60% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1); } }
.fd__hud { position: absolute; left: 40px; top: 15px; display: flex; align-items: center; gap: 8px; color: #fff; pointer-events: none; }
.fd__hud i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.fd__hud em { margin-left: 8px; font-style: normal; color: rgba(255, 255, 255, .7); }
.fd__flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
html[data-motion="on"] .fd.is-shot .fd__flash { animation: fd-flash .45s ease-out; }
@keyframes fd-flash { 0% { opacity: 0; } 12% { opacity: .85; } 100% { opacity: 0; } }
html[data-motion="on"] .fd__sun { animation: fd-sun 7s ease-in-out infinite alternate; }
@keyframes fd-sun { from { transform: translateY(0); } to { transform: translateY(-4px); } }
.fd__shutter-row { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.fd__shutter { flex: none; display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 2px solid rgba(255, 255, 255, .85); border-radius: 50%; background: none; cursor: pointer; transition: transform .3s var(--ease), border-color .3s; }
.fd__shutter i { width: 38px; height: 38px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease), box-shadow .3s; }
.fd__shutter:hover i { box-shadow: 0 0 22px rgba(198, 244, 50, .55); }
.fd__shutter:active i { transform: scale(.82); }
.fd__clear { margin-left: auto; padding: 0 0 3px; border: 0; border-bottom: 1px solid var(--line-2); background: none; cursor: pointer; font: 400 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fd__clear:hover { color: #fff; border-color: var(--lime); }
.fd__clear[hidden] { display: none; }
.fd__strip { display: flex; gap: 8px; min-height: 92px; margin-top: 16px; }
.fd__strip li { position: relative; flex: 1 1 0; max-width: 70px; padding: 4px 4px 14px; border-radius: 3px; background: #efefeb; transform: rotate(var(--tr, 0deg)); box-shadow: 0 10px 24px rgba(0, 0, 0, .5); }
.fd__strip li svg { display: block; width: 100%; aspect-ratio: 1; border-radius: 1px; }
html[data-motion="on"] .fd__strip li.is-new { animation: fd-print .8s cubic-bezier(.2, 1.1, .3, 1); }
@keyframes fd-print { from { opacity: 0; transform: translateY(-34px) rotate(calc(var(--tr, 0deg) * -2)) scale(1.3); } to { opacity: 1; transform: rotate(var(--tr, 0deg)); } }
.fd__strip:empty::before { content: "Your photos land here."; align-self: center; font: 400 11px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 1180px) {
  .fd__body { grid-template-columns: 200px minmax(0, 1fr); }
  .fd__cam { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); column-gap: 24px; }
  .fd__cam > .mono-l { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  .fd__body { grid-template-columns: 1fr; }
  .fd__pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fd__cap { min-height: 0; }
  .fd__cam { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .fd__pick { grid-template-columns: 1fr; } }
