/* ==========================================================================================================
   WARP VAULT: Black Friday page only (black-friday.html). Shared pieces live in store.css; everything here is
   prefixed .bf-. The page has three faces, picked by bf.js from WV.sale().phase:
     before  ink hero, countdown to the start, every qualifying piece with its Black Friday price
     during  sale-red hero, countdown to the end, the sale floor
     after   concrete hero, "The sale has ended", newest pieces
   ========================================================================================================== */

/* ---------- hero ---------- */
.bf-hero { overflow: hidden; border-bottom: var(--bw) solid var(--ink); padding-block: clamp(22px, 3.2vw, 40px) clamp(40px, 5.5vw, 72px); }
.bf-hero.sale { --fg2: #3a130a; }
.bf-shout { container-type: inline-size; margin: 0 0 0 -0.035em; font-size: clamp(3rem, 20.4vw, 9rem); white-space: nowrap; }
.bf-shout-in { display: inline-block; }
.bf-ln { display: block; overflow: hidden; padding-block: 0.03em; margin-block: -0.03em; }
.bf-ln > span { display: block; }
@media (min-width: 640px) {
  .bf-shout { font-size: 10.6vw; }
  .bf-ln { display: inline-block; vertical-align: top; }
  .bf-ln + .bf-ln { margin-left: 0.2em; }
}
.bf-shell .bf-shout { opacity: 0.16; }
.bf-shell.wv-section { padding-block: 40px; }

.bf-hero-grid { display: grid; gap: clamp(28px, 4vw, 56px); margin-top: clamp(18px, 2.2vw, 28px); padding-top: clamp(18px, 2.2vw, 28px); border-top: var(--bw) solid var(--fg); }
.bf-hero.sale .bf-hero-grid, .bf-hero.concrete .bf-hero-grid { border-top-color: var(--ink); }
.bf-hero-copy { display: grid; gap: clamp(22px, 2.6vw, 34px); align-content: start; min-width: 0; }
.bf-clock { display: grid; gap: 12px; justify-items: start; }
.bf-clock .wv-count-u b { font-size: clamp(3.4rem, 15.5vw, 7.4rem); }
.bf-clock .wv-count-u { padding-inline: clamp(10px, 2.6vw, 30px); }
.bf-when { font-size: 0.9375rem; font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; }
.bf-when span { color: var(--fg2); font-weight: 500; }
.bf-pitch { display: grid; gap: 16px; justify-items: start; }
.bf-pitch .wv-title { font-size: clamp(2.5rem, 5vw, 4.4rem); }
.bf-hero.ink .bf-pitch .wv-title em { color: var(--lime); }
.bf-pitch .wv-lede { max-width: 31em; }
.bf-pitch .wv-lede b { font-weight: 700; }
.bf-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.bf-savedbtn b { min-width: 1.6em; padding: 3px 7px; border-radius: 999px; background: var(--fg); color: var(--ground); font-size: 0.75rem; font-weight: 800; font-variant-numeric: tabular-nums; text-align: center; line-height: 1.3; transition: background-color 160ms ease, color 160ms ease; }
.bf-hero.ink .bf-savedbtn.has b { background: var(--lime); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .bf-savedbtn:hover b { background: var(--lime); color: var(--ink); } }

/* three prints off the rack, each with its price ticket */
.bf-fan { position: relative; width: min(100%, 520px); aspect-ratio: 1 / 0.86; margin-inline: auto; }
.bf-slot { position: absolute; width: 47%; transform: rotate(var(--rot, 0deg)); transition: transform 420ms var(--ease-out); }
.bf-slot.a { left: 0; top: 2%; --rot: -7deg; }
.bf-slot.b { right: 0; top: 12%; --rot: 6deg; }
.bf-slot.c { left: 19%; bottom: 0; width: 62%; --rot: -1.5deg; z-index: 2; }
.bf-print { display: block; border: 6px solid var(--paper-hi); outline: var(--bw) solid var(--ink); background: var(--paper-hi); color: var(--ink); text-decoration: none; box-shadow: 0 18px 30px -16px rgba(0, 0, 0, 0.7), 0 3px 8px -3px rgba(0, 0, 0, 0.35); }
.bf-print.tc-body { overflow: visible; }
.bf-print-ph { display: block; aspect-ratio: 1; overflow: hidden; background: var(--concrete-deep); }
.bf-print img { width: 100%; height: 100%; object-fit: contain; }
.bf-ticket { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; padding: 7px 4px 3px; background: var(--paper-hi); font-variant-numeric: tabular-nums; line-height: 1.15; }
.bf-ticket s { font-size: 0.8125rem; font-weight: 500; color: var(--muted); text-decoration-thickness: 1.5px; }
.bf-ticket b { font-size: 1rem; font-weight: 800; }
.bf-ticket b i { font-style: normal; background: var(--sale); padding: 1px 6px; }
.bf-ticket small { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.bf-slot.c .bf-ticket { padding: 9px 6px 5px; }
.bf-slot.c .bf-ticket b { font-size: 1.25rem; }
.bf-slot.c .bf-ticket em { flex-basis: 100%; font-style: normal; font-weight: 700; font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-fan .wv-badge { position: absolute; z-index: 4; right: -2%; bottom: 4%; --badge: clamp(104px, 27vw, 148px); }
@media (hover: hover) and (pointer: fine) {
  .bf-slot.a:hover { transform: rotate(-9deg) translate(-8px, -8px); }
  .bf-slot.b:hover { transform: rotate(8deg) translate(8px, -8px); }
}
.bf-clock .wv-count-u:nth-child(2) { border-left: 0; padding-left: 0; }

@media (min-width: 900px) {
  .bf-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
  .bf-clock .wv-count-u b { font-size: clamp(5rem, 8.2vw, 8.6rem); }
  .bf-fan { width: min(100%, 560px); margin-right: 0; }
}

/* hero entrance: the shout rises line by line, then the clock, the pitch, the prints, the badge */
.js .bf-hero .bf-ln > span { transform: translate3d(0, 104%, 0); transition: transform 900ms var(--ease-out); transition-delay: calc(var(--l, 0) * 110ms); }
.js .bf-hero.is-in .bf-ln > span { transform: none; }
.js .bf-hero .bf-rise { opacity: 0; transform: translate3d(0, 20px, 0); transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(var(--i, 0) * 85ms + 260ms); }
.js .bf-hero.is-in .bf-rise { opacity: 1; transform: none; }
.js .bf-hero .bf-hero-grid { border-top-color: transparent; transition: border-color 600ms ease 300ms; }
.js .bf-hero.ink.is-in .bf-hero-grid { border-top-color: var(--fg); }
.js .bf-hero.sale.is-in .bf-hero-grid, .js .bf-hero.concrete.is-in .bf-hero-grid { border-top-color: var(--ink); }
.js .bf-hero .bf-slot { opacity: 0; transform: translate3d(0, 40px, 0) rotate(0deg) scale(0.96); transition: opacity 500ms var(--ease-out), transform 1000ms var(--ease-out); transition-delay: calc(var(--p, 0) * 110ms + 420ms); }
.js .bf-hero.is-in .bf-slot { opacity: 1; transform: rotate(var(--rot, 0deg)); }
.js .bf-hero.is-settled .bf-slot { transition: transform 420ms var(--ease-out); transition-delay: 0s; }
.js .bf-hero .wv-badge { opacity: 0; transform: scale(0.82) rotate(-24deg); transition: opacity 400ms ease, transform 900ms var(--ease-out); transition-delay: 900ms; }
.js .bf-hero.is-in .wv-badge { opacity: 1; transform: none; }
.js .bf-shell .bf-ln > span { transform: none; transition: none; }

/* after: the plain hero */
.bf-hero.concrete .bf-over { font-size: clamp(3.3rem, 12vw, 9rem); }
.bf-hero.concrete .bf-hero-grid { margin-top: clamp(22px, 3vw, 36px); }

/* ---------- the floor (grid + controls) ---------- */
.bf-floor { scroll-margin-top: var(--nav-h); }
.bf-floor .wv-head { margin-bottom: clamp(18px, 2.4vw, 28px); }
.bf-floor-meta { display: grid; gap: 4px; }
@media (min-width: 720px) { .bf-floor-meta { text-align: right; } }
.bf-bar { display: grid; gap: 14px; padding-block: 14px; border-block: var(--bw) solid var(--ink); margin-bottom: clamp(16px, 2vw, 24px); }
.bf-sort { display: flex; align-items: center; gap: 10px; }
.bf-sort .wv-field-label { margin: 0; white-space: nowrap; }
.bf-sort .wv-select { min-height: 44px; padding-block: 6px; font-weight: 600; font-size: 0.9375rem; }
@media (min-width: 1000px) {
  .bf-bar { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .bf-sort { padding-top: 0; }
  .bf-sort .wv-select { width: 220px; }
}
.bf-status { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: clamp(14px, 1.8vw, 20px); }
.bf-status p:last-child { color: var(--muted); font-size: 0.9375rem; max-width: 46em; }
.bf-status .wv-ico { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.bf-grid { transition: opacity 160ms ease; }
.bf-grid.is-swap { opacity: 0; transition: none; }
.bf-grid .bf-new { animation: bf-card-in 480ms var(--ease-out) backwards; animation-delay: calc(var(--n, 0) * 45ms); }
@keyframes bf-card-in { from { opacity: 0; translate: 0 16px; } }
.bf-more { display: grid; justify-items: center; gap: 12px; margin-top: clamp(28px, 4vw, 48px); }
.bf-more-bar { width: min(280px, 70vw); height: 3px; background: #dcd7cc; overflow: hidden; }
.bf-more-bar i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--part, 0)); transition: transform 500ms var(--ease-out); }

/* ---------- saved list band ---------- */
.bf-saved { border-block: var(--bw) solid var(--ink); }
.bf-saved-copy { display: grid; gap: 18px; justify-items: start; }
.bf-slip {
  position: relative; width: min(100%, 460px); margin-inline: auto; padding: 22px 22px 26px; background: var(--paper-hi); color: var(--ink);
  box-shadow: 0 22px 36px -22px rgba(20, 20, 18, 0.55), 0 3px 8px -4px rgba(20, 20, 18, 0.3); transform: rotate(1.2deg);
  --zig: conic-gradient(from -45deg at 50% 100%, #0000 0 25%, #000 0 75%, #0000 0) 0 100% / 14px 8px repeat-x;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, var(--zig); mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, var(--zig);
}
.bf-slip h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: var(--bw) dashed var(--ink); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.bf-slip h3 span { color: var(--muted); font-weight: 600; }
.bf-slip-pics { display: flex; gap: 6px; padding-block: 14px 4px; }
.bf-slip-pics a, .bf-slip-pics span { display: block; width: calc((100% - 24px) / 5); aspect-ratio: 1; border: var(--bw) solid var(--ink); background: var(--concrete); }
.bf-slip-pics span { display: grid; place-items: center; background: transparent; border-style: dashed; font-size: 0.8125rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.bf-slip-pics img { width: 100%; height: 100%; object-fit: contain; }
.bf-slip dl { margin: 0; }
.bf-slip dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: var(--bw) dashed #cfc9bd; font-variant-numeric: tabular-nums; }
.bf-slip dt { font-weight: 500; }
.bf-slip dd { margin: 0; font-weight: 700; }
.bf-slip dl > .tot { border-bottom: 0; padding-top: 14px; align-items: center; }
.bf-slip .tot dt { font-weight: 700; }
.bf-slip .tot dd { font-stretch: 70%; font-weight: 800; font-size: 2.6rem; line-height: 0.9; letter-spacing: -0.02em; }
.bf-slip .tot dd i { font-style: normal; background: var(--sale); padding: 0 8px; }
.bf-slip-empty { padding: 18px 0 2px; color: var(--muted); }
.bf-slip-empty b { display: block; color: var(--ink); font-stretch: 70%; font-weight: 800; font-size: 2rem; line-height: 1; letter-spacing: -0.015em; margin-bottom: 8px; }

/* ---------- rules ---------- */
.bf-rules-wrap { align-items: start; }
@media (min-width: 860px) { .bf-rules-wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .bf-rules-head { position: sticky; top: calc(var(--nav-h) + 28px); } }
.bf-rules-head { display: grid; gap: 18px; justify-items: start; }
.bf-rules { margin: 0; }
.bf-rules > div { display: grid; gap: 6px 28px; padding: clamp(16px, 2vw, 24px) 0; border-top: var(--bw) solid var(--ink); }
.bf-rules > div:last-child { border-bottom: var(--bw) solid var(--ink); }
.bf-rules dt { font-stretch: 70%; font-weight: 800; font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 0.95; letter-spacing: -0.015em; }
.bf-rules dd { margin: 0; max-width: 34em; color: var(--fg2); font-size: 1.0625rem; line-height: 1.5; text-wrap: pretty; }
.bf-rules dd b { color: var(--ink); font-weight: 700; }
@media (min-width: 620px) { .bf-rules > div { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: baseline; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .bf-hero .bf-ln > span, .js .bf-hero .bf-rise, .js .bf-hero .bf-slot, .js .bf-hero .wv-badge { transform: none; transition: opacity 240ms ease; transition-delay: 0s; }
  .js .bf-hero .bf-slot { transform: rotate(var(--rot, 0deg)); }
  .js .bf-hero:not(.is-in) .bf-ln > span { opacity: 0; }
  .bf-grid .bf-new { animation: bf-fade 240ms ease backwards; animation-delay: 0s; }
  .bf-more-bar i { transition: none; }
  .bf-slip { transform: none; }
}
@keyframes bf-fade { from { opacity: 0; } }

@media (min-width: 900px) { .bf-hero.concrete .bf-hero-grid { align-items: start; } .bf-hero.concrete .bf-hero-copy { padding-top: 24px; } }
