/* ===== FBA demo: Editorial + Cinematic (inspired by 21st.dev components) ===== */
.demo-hidden { display: none !important; }

/* ---------- 1. Scroll-expanding film hero ---------- */
.xhero { position: relative; height: 270vh; }
.xhero__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.xhero__frame { position: absolute; left: 50%; top: 50%; width: var(--w, 46vw); height: var(--h, 28vw); transform: translate(-50%, -50%);
  border-radius: var(--rad, 18px); overflow: hidden; background: #000; box-shadow: 0 40px 120px -30px rgba(0,0,0,.8); }
.xhero__frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.xhero__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(17,15,17,.85), rgba(17,15,17,0) 55%); opacity: var(--shade, 0); }
.xhero__kicker { position: absolute; top: 96px; left: 0; right: 0; text-align: center; color: rgba(246,242,234,.65); opacity: var(--fadeout, 1); }
.xhero__title { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1em; pointer-events: none;
  font-family: var(--display); font-weight: var(--display-w); font-stretch: var(--display-stretch); letter-spacing: var(--display-track);
  font-size: calc(clamp(2.6rem, 7.2vw, 7.4rem) * var(--display-scale)); line-height: .95; text-align: center; text-shadow: 0 8px 60px rgba(0,0,0,.55); }
.xhero__a { transform: translateX(var(--ax, 0)); opacity: var(--fadeout, 1); }
.xhero__b { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; font-stretch: normal; font-size: 1.06em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .08em .1em;
  transform: translateX(var(--bx, 0)); opacity: var(--fadeout, 1); }
.xhero__end { position: absolute; left: var(--gut); bottom: clamp(60px, 12vh, 110px); max-width: 560px; opacity: var(--endin, 0); transform: translateY(calc((1 - var(--endin, 0)) * 20px));
  pointer-events: none; }
.xhero__end.on { pointer-events: auto; }
.xhero__sub { color: #ece6ec; font-size: clamp(1.05rem, 1.6vw, 1.3rem); margin-bottom: 22px; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.xhero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.xhero__hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; color: rgba(246,242,234,.6); opacity: var(--fadeout, 1); }
.xhero__hint i { font-style: normal; color: var(--red); animation: nudge 1.4s ease-in-out infinite; }

/* ---------- 2. A statement that writes itself ---------- */
.sweep { position: relative; height: 210vh; }
.sweep__sticky { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; padding: 0 var(--gut); }
.sweep__text { max-width: 1100px; text-align: center; font-family: var(--display); font-weight: var(--display-w); font-stretch: var(--display-stretch); letter-spacing: var(--display-track);
  font-size: calc(clamp(2rem, 4.6vw, 4.4rem) * var(--display-scale)); line-height: 1.08; }
.sweep__text .w { display: inline-block; opacity: .12; transform: translateY(.25em); transition: opacity .45s ease, transform .55s cubic-bezier(.2,.7,.2,1); }
.sweep__text .w.on { opacity: 1; transform: none; }
.sweep__text em { font-style: normal; }
.sweep__text em .ch { display: inline-block; transition: color .3s, font-family 0s; }
.sweep__text em .ch.it { font-family: var(--serif); font-style: italic; font-weight: 400; font-stretch: normal; letter-spacing: -.01em; color: var(--orange); }

/* ---------- 3. About with scattered photos ---------- */
.scatter { position: relative; min-height: 130vh; display: grid; place-items: center; padding: clamp(90px, 12vw, 160px) var(--gut); overflow: hidden; }
.scatter__copy { position: relative; z-index: 2; max-width: 560px; text-align: center; }
.scatter__copy h2 { font-size: calc(clamp(2.8rem, 6vw, 5.2rem) * var(--display-scale)); margin: 12px 0 14px; }
.scatter__copy p { color: #d9d2d9; font-size: 1.08rem; margin-top: 12px; }
.steps--row { margin: 28px auto 0; text-align: left; max-width: 460px; }
.steps--row li { padding: 10px 0; }
.scatter__ph { position: absolute; margin: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 70px -25px rgba(0,0,0,.8); will-change: transform; }
.scatter__ph img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.05); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.scatter__ph:hover img { transform: scale(1.06); }
.s1 { width: clamp(170px, 17vw, 270px); aspect-ratio: 4/5; left: 5%;  top: 12%; }
.s2 { width: clamp(150px, 15vw, 240px); aspect-ratio: 3/2; right: 6%; top: 9%; }
.s3 { width: clamp(120px, 11vw, 180px); aspect-ratio: 2/3; left: 13%; bottom: 10%; }
.s4 { width: clamp(150px, 15vw, 240px); aspect-ratio: 3/2; right: 4%; top: 44%; }
.s5 { width: clamp(130px, 13vw, 210px); aspect-ratio: 3/2; left: 2%; top: 52%; }
.s6 { width: clamp(140px, 14vw, 220px); aspect-ratio: 3/2; right: 15%; bottom: 6%; }

/* ---------- 4. Worked with: names + photo peek ---------- */
.names { display: flex; flex-wrap: wrap; justify-content: center; gap: .1em .5em; max-width: 1240px; margin: 10px auto 0;
  font-family: var(--display); font-weight: var(--display-w); font-stretch: var(--display-stretch); letter-spacing: var(--display-track);
  font-size: calc(clamp(1.8rem, 4vw, 3.6rem) * var(--display-scale)); line-height: 1.12; text-align: center; }
.names button { background: none; border: 0; padding: 0; font: inherit; color: rgba(246,242,234,.3); cursor: pointer; transition: color .25s; }
.names button:hover, .names button:focus-visible { color: var(--text); outline: none; }
.names .sep { color: var(--red); opacity: .6; font-family: var(--serif); font-style: italic; font-weight: 400; }
.names__peek { position: fixed; left: 0; top: 0; z-index: 60; width: 240px; aspect-ratio: 4/5; border-radius: 12px; overflow: hidden; pointer-events: none;
  opacity: 0; transform: translate(-50%, -110%) scale(.85) rotate(-3deg); transition: opacity .25s, transform .35s cubic-bezier(.2,.7,.2,1); box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); }
.names__peek.on { opacity: 1; transform: translate(-50%, -110%) scale(1) rotate(-3deg); }
.names__peek img { width: 100%; height: 100%; object-fit: cover; }
.demo .trust__head { justify-content: center; text-align: center; flex-direction: column; align-items: center; gap: 6px; }

/* ---------- 5. Highlights: black & white until you look ---------- */
.demo .shot img { filter: grayscale(1) contrast(1.05); transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .6s ease; }
.demo .shot:hover img { filter: none; }
@media (hover: none) { .demo .shot.in img { filter: none; } }

/* ---------- 6. Big wordmark footer ---------- */
.footer--word { padding-top: clamp(40px, 6vw, 80px); overflow: hidden; }
.wordmark { font-family: var(--display); font-weight: var(--display-w); font-stretch: var(--display-stretch); letter-spacing: -.04em; line-height: .78; text-align: center; white-space: nowrap;
  font-size: 13.4vw; margin: 0 calc(-1 * var(--gut)) 28px; user-select: none;
  background: linear-gradient(180deg, rgba(246,242,234,.24), rgba(246,242,234,0) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- phones ---------- */
@media (max-width: 860px) {
  .xhero { height: 230vh; }
  .xhero__title { font-size: calc(clamp(2.3rem, 10vw, 3.4rem) * var(--display-scale)); }
  .xhero__end { right: var(--gut); }
  .scatter { display: block; min-height: 0; padding-top: 90px; padding-bottom: 60px; }
  .scatter__copy { margin: 0 auto; }
  .scatter__ph { position: static; display: inline-block; width: 62vw !important; aspect-ratio: 4/5 !important; transform: none !important; margin: 0 10px 0 0; scroll-snap-align: start; }
  .scatter__strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 30px calc(-1 * var(--gut)) 0; padding: 0 var(--gut) 10px; }
  .names__peek { display: none; }
  .names { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) { .sweep__text .w { opacity: 1; transform: none; } }
@media (max-width: 860px) { .scatter__strip .scatter__ph { flex: 0 0 62vw; margin: 0; } }
.tap-only { display: none; }
@media (hover: none) { .hover-only { display: none; } .tap-only { display: inline; } }

/* opening photos (replaces the video) */
.xhero__slides { position: absolute; inset: 0; }
.xhero__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.6s ease, transform 6s ease-out; }
.xhero__slides img.on { opacity: 1; transform: scale(1); }
.xhero__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,15,17,.25), rgba(17,15,17,.05) 40%, rgba(17,15,17,.35)); }

/* About: only Ariel's photo, larger, beside the copy */
.scatter--solo { display: grid; grid-template-columns: minmax(260px, 420px) minmax(0, 560px); justify-content: center; align-items: center; gap: clamp(40px, 7vw, 110px); min-height: 100vh; }
.scatter--solo .scatter__ph { position: relative; width: 100%; aspect-ratio: 4/5; left: auto; top: auto; bottom: auto; right: auto; border-radius: 18px; transform-origin: center; }
.scatter--solo .scatter__copy { text-align: left; }
.scatter--solo .steps--row { margin-left: 0; }
@media (max-width: 860px) {
  .scatter--solo { display: block; min-height: 0; }
  .scatter--solo .scatter__ph { display: block; width: 100% !important; max-width: 440px; margin: 0 auto 34px; aspect-ratio: 4/5 !important; }
  .scatter--solo .scatter__copy { text-align: left; }
}

/* ---------- morph: clicked photo grows into the album ---------- */
.morph { position: fixed; z-index: 95; background-size: cover; background-position: center; border-radius: 12px; pointer-events: none;
  transition: left .6s cubic-bezier(.77,0,.18,1), top .6s cubic-bezier(.77,0,.18,1), width .6s cubic-bezier(.77,0,.18,1), height .6s cubic-bezier(.77,0,.18,1), border-radius .6s, opacity .45s; }
.morph.out { opacity: 0; }

/* ---------- Highlights as a deck of prints ---------- */
/* highlights grid stays (gray until you look), deck sits below it */
.deck { display: grid; justify-items: center; gap: 30px; padding: 10px 0 20px; outline: none; }
.deck__stack { position: relative; width: min(560px, 86vw); aspect-ratio: 4/3; }
.deck__card { position: absolute; inset: 0; margin: 0; background: #fff; padding: 14px 14px 54px; border-radius: 6px; box-shadow: 0 30px 70px -25px rgba(0,0,0,.9);
  transform: translateY(calc(var(--d) * -14px)) scale(calc(1 - var(--d) * .04)) rotate(var(--t)); transition: transform .45s cubic-bezier(.2,.7,.2,1); touch-action: pan-y; user-select: none; }
.deck__card img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.deck__card.top { cursor: grab; transform: rotate(var(--t)); }
.deck__card.top:active { cursor: grabbing; }
.deck__ui { display: flex; align-items: center; gap: 28px; }
.deck__btn { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--text); font-size: 1.2rem; cursor: pointer; transition: .25s; }
.deck__btn:hover { background: var(--red); border-color: var(--red); }
.deck__info { display: grid; justify-items: center; gap: 4px; min-width: 220px; text-align: center; }
.deck__count { color: var(--red); }
.deck__title { font-family: var(--serif); font-style: italic; font-size: 1.8rem; line-height: 1.1; }
.deck__hint { color: var(--muted); font-size: .62rem; }
@media (max-width: 560px) { .deck__card { padding: 10px 10px 40px; } .deck__ui { gap: 14px; } .deck__info { min-width: 0; } .deck__title { font-size: 1.4rem; } }

/* ---------- deck as real polaroids: small FBA logo on the white strip ---------- */
.deck { margin-top: clamp(50px, 7vw, 90px); }
.deck__head { text-align: center; }
.deck__eyebrow { color: var(--red); }
.deck__lead { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.4rem); margin-top: 4px; }
.deck__stack { width: min(460px, 82vw); aspect-ratio: 4/4.9; }
.deck__card { background: #fbf8f2; padding: 16px 16px 0; border-radius: 4px; display: flex; flex-direction: column; }
.deck__card > img { height: auto; flex: 1; min-height: 0; aspect-ratio: auto; object-fit: cover; }
.deck__card figcaption { height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.deck__logo { width: 74px !important; height: auto !important; flex: none; object-fit: contain !important; }
.deck__cap { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: #2a262a; }
.deck__ui .deck__title { display: none; }
@media (max-width: 560px) { .deck__card { padding: 10px 10px 0; } .deck__card figcaption { height: 60px; } .deck__logo { width: 60px !important; } .deck__cap { font-size: 1.05rem; } }

/* ---------- ambient light behind the page ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; --tint: #ff6a3d; --sy: 0; }
.ambient i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .17; transition: background 2.5s ease; will-change: transform; }
.ambient .b1 { width: 62vmax; height: 62vmax; left: -18vmax; top: -10vmax; background: radial-gradient(circle, var(--tint), transparent 65%);
  transform: translateY(calc(var(--sy) * -0.06px)); animation: amb1 28s ease-in-out infinite alternate; }
.ambient .b2 { width: 54vmax; height: 54vmax; right: -16vmax; top: 30vh; background: radial-gradient(circle, #ff3333, transparent 65%); opacity: .12;
  transform: translateY(calc(var(--sy) * -0.1px)); animation: amb2 34s ease-in-out infinite alternate; }
.ambient .b3 { width: 46vmax; height: 46vmax; left: 20vw; bottom: -22vmax; background: radial-gradient(circle, var(--tint), transparent 65%); opacity: .1;
  transform: translateY(calc(var(--sy) * -0.04px)); animation: amb3 40s ease-in-out infinite alternate; }
@keyframes amb1 { to { translate: 14vw 10vh; scale: 1.15; } }
@keyframes amb2 { to { translate: -12vw -14vh; scale: .9; } }
@keyframes amb3 { to { translate: -10vw -8vh; scale: 1.2; } }
/* sections with their own solid bands let the light through a little */
.demo .section--band { background: rgba(26,23,26,.72); }
@media (max-width: 860px) { .ambient i { filter: blur(60px); } }
