/* Concept B4: The Private Collection. B's type, seal and colours, in a cinematic frame.
   The night ground is RaawArt's ink #1d3347 taken down. Spec in Boostpad/RaawArt/design-notes.md */
:root {
  --night: #0d1a26;
  --night-2: #13243a;
  --night-3: #1b3046;
  --text: #f3f2ec;
  --quiet: #a3b2bf;
  --line: rgba(243, 242, 236, .14);
  --blue: #315b7b;
  --blue-lite: #7fa3c4;
  --ink: #1d3347;
  --grey: #697177;
  --paper: #ffffff;
  --page: #fafcf8;
  --rule: #d9dfe3;
  --yellow: #dfd300;
  --sans: "Familjen Grotesk", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --hh: 93px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html.has-dialog { overflow: hidden; }
body { margin: 0; background: var(--night); color: var(--text); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
body.on-home { height: 100svh; overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--ink); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
.ybar { display: inline-block; width: 26px; height: 5px; background: var(--yellow); }

/* Header: over the doors on the home screen, a bar on a collection */
.top { position: relative; z-index: 20; background: var(--night); border-bottom: 1px solid var(--line); }
.on-home .top { position: absolute; inset: 0 0 auto; background: linear-gradient(rgba(8, 16, 24, .72), rgba(8, 16, 24, 0)); border-bottom: 0; }
.strip { display: flex; align-items: center; gap: 10px; height: 28px; padding: 0 32px; font: 400 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--quiet); border-bottom: 1px solid var(--line); }
.strip .slash { opacity: .4; }
.bar { display: flex; align-items: center; gap: 24px; height: 64px; padding: 0 32px; }
.brand img { width: 120px; height: auto; }
.tabs { display: flex; gap: 2px; margin-right: auto; }
.tabs a { text-decoration: none; font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--quiet); padding: 10px 12px; position: relative; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; background: var(--yellow); }
.on-home .tabs { visibility: hidden; }
.top-actions { display: flex; gap: 10px; margin-left: auto; }
.btn { background: var(--yellow); color: var(--ink); border: 0; padding: 12px 18px; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.btn:hover { background: var(--text); }
.btn.ghost { background: none; color: var(--blue); border: 1px solid var(--blue); }
.btn-seal { display: inline-flex; align-items: center; gap: 10px; background: rgba(13, 26, 38, .4); border: 1px solid var(--line); padding: 11px 14px; font-weight: 600; font-size: 14px; color: var(--text); cursor: pointer; white-space: nowrap; backdrop-filter: blur(6px); }
.btn-seal:hover { border-color: var(--text); }
.mini-seal { width: 18px; height: 11px; background: var(--yellow); transform: rotate(-6deg); transition: transform .4s var(--ease), opacity .4s; }
.is-open .mini-seal { transform: rotate(-24deg) translate(-3px, -5px); opacity: .35; }
.btn-line { background: none; border: 1px solid var(--line); color: var(--text); padding: 9px 12px; font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.btn-line:hover { border-color: var(--yellow); }

/* Home: one screen, four doors */
.home { position: relative; height: 100svh; }
.doors { display: flex; height: 100%; margin: 0; padding: 0; list-style: none; }
.door { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; transition: flex-grow .8s var(--ease); container-type: inline-size; }
.door + .door { border-left: 1px solid rgba(243, 242, 236, .18); }
.doors:hover .door:hover, .door:focus-within { flex-grow: 2.1; }
.door a { position: absolute; inset: 0; text-decoration: none; color: var(--text); }
.door img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transform: scale(1.02); transition: transform 7s cubic-bezier(.2, .6, .2, 1), filter .8s; filter: saturate(.85) brightness(.82); }
.door:hover img, .door:focus-within img { transform: scale(1.1); filter: saturate(1) brightness(.95); }
.shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 16, 24, .92) 0%, rgba(8, 16, 24, .55) 34%, rgba(8, 16, 24, 0) 60%); }
.door::after { content: ""; position: absolute; left: 0; right: 0; bottom: 44px; height: 5px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); z-index: 2; }
.door:hover::after, .door:focus-within::after { transform: scaleX(1); }
.d-in { position: absolute; left: clamp(20px, 2.4vw, 36px); right: clamp(20px, 2.4vw, 36px); bottom: 84px; display: flex; flex-direction: column; gap: 10px; }
.d-no { font: 500 12px/1 var(--mono); color: var(--yellow); }
.d-name { font: 700 clamp(26px, 3.5vw, 60px)/.92 var(--sans); letter-spacing: .02em; text-transform: uppercase; }
@supports (font-size: 1cqi) { .d-name { font-size: clamp(26px, min(10cqi, 3.5vw), 60px); } }
.doors .d-name { min-height: 1.84em; display: flex; align-items: flex-end; }
.d-meta { font: 400 11px/1.4 var(--mono); color: var(--quiet); }
.d-more { display: grid; gap: 14px; max-width: 46ch; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .7s var(--ease), opacity .5s .1s; }
.door:hover .d-more, .door:focus-within .d-more { max-height: 220px; opacity: 1; }
.d-blurb { font-size: 15px; line-height: 1.5; color: #d9dde0; }
.d-go { font: 700 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.d-credit { position: absolute; right: 16px; bottom: 58px; font: 400 10px/1.3 var(--mono); color: rgba(243, 242, 236, .55); text-align: right; max-width: 60%; opacity: 0; transition: opacity .5s; }
.door:hover .d-credit, .door:focus-within .d-credit { opacity: 1; }
.home-foot { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 32px; background: var(--night); border-top: 1px solid var(--line); font: 400 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--quiet); }
.home-foot p { margin: 0; }
.home-foot .links { display: flex; gap: 18px; }
.home-foot a { text-decoration: none; }
.home-foot a:hover { color: var(--text); }

/* Collection: stage, side card, filmstrip */
.coll { display: flex; flex-direction: column; height: calc(100svh - var(--hh)); min-height: 560px; }
.stage-wrap { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 27vw, 400px); }
.stage { position: relative; margin: 0; min-height: 0; background: radial-gradient(ellipse 70% 70% at 50% 46%, var(--night-3), var(--night) 72%); touch-action: pan-y; }
.frame { position: absolute; inset: 32px 84px; }
.frame img { width: 100%; height: 100%; max-width: none; object-fit: contain; filter: drop-shadow(0 26px 34px rgba(0, 0, 0, .55)); user-select: none; -webkit-user-drag: none; }
.frame.in img { animation: stageIn .6s var(--ease) both; }
@keyframes stageIn { from { opacity: 0; transform: scale(.985); } }
.nav { position: absolute; top: 50%; z-index: 2; width: 48px; height: 64px; transform: translateY(-50%); background: rgba(13, 26, 38, .5); border: 1px solid var(--line); color: var(--text); font: 400 20px/1 var(--mono); cursor: pointer; }
.nav:hover { border-color: var(--yellow); color: var(--yellow); }
.prev { left: 20px; }
.next { right: 20px; }
.card-side { overflow-y: auto; background: var(--night-2); border-left: 1px solid var(--line); padding: 26px 28px 32px; }
.s-reg { display: flex; justify-content: space-between; margin: 0 0 22px; font: 400 11px/1 var(--mono); color: var(--quiet); }
.s-reg span:first-child { color: var(--yellow); }
.s-who { margin: 0 0 8px; font: 700 13px/1.25 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-lite); }
.s-title { margin: 0 0 18px; font: 600 clamp(24px, 2vw, 32px)/1.1 var(--sans); }
.s-title .y { color: var(--quiet); font-weight: 400; }
.s-cap { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--line); }
.s-cap li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: #d3d9de; }
.s-price { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
.s-price .k { font: 400 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--quiet); }
.card-side > .btn { width: 100%; }
.s-views { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.s-views button { padding: 0; border: 1px solid var(--line); background: none; cursor: pointer; opacity: .55; }
.s-views button[aria-pressed="true"] { opacity: 1; border-color: var(--yellow); }
.s-views img { height: 52px; width: auto; }
.s-more { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.s-more summary { cursor: pointer; font: 400 10px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--quiet); }
.s-more summary:hover { color: var(--text); }
.s-more .txt p { margin: 12px 0 0; font-size: 14px; line-height: 1.6; color: #cfd6dc; }

.strip-bar { flex: none; display: grid; grid-template-columns: clamp(240px, 22vw, 320px) minmax(0, 1fr); border-top: 1px solid var(--line); background: var(--night); }
.strip-tools { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 12px 24px 12px 32px; border-right: 1px solid var(--line); }
.strip-tools h1 { margin: 0; font: 700 22px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.strip-tools .sel select { width: 100%; background: var(--night-2); border: 1px solid var(--line); padding: 8px 10px; font-size: 14px; }
.strip-tools .btn-line { align-self: flex-start; }
.film { display: flex; gap: 8px; margin: 0; padding: 14px 20px; list-style: none; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--night-3) transparent; }
.film li { flex: none; }
.film button { position: relative; display: block; height: 100px; padding: 0; border: 0; background: var(--night-2); cursor: pointer; opacity: .5; transition: opacity .25s; }
.film button:hover { opacity: .85; }
.film button[aria-current="true"] { opacity: 1; }
.film button[aria-current="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 4px; background: var(--yellow); }
.film img { height: 100%; width: auto; max-width: 180px; object-fit: cover; }

/* View all */
.sheet-all { position: fixed; inset: 0; z-index: 50; background: rgba(8, 16, 24, .96); overflow-y: auto; }
.all-panel { max-width: 1400px; margin: 0 auto; padding: 0 32px 48px; animation: stageIn .4s var(--ease); }
.all-top { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 22px 0; background: rgba(8, 16, 24, .96); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.all-top h2 { margin: 0; font: 700 22px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.all-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 32px 22px; }
.all-grid li { display: flex; flex-direction: column; gap: 8px; }
.all-grid button { display: grid; gap: 4px; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
.g-img { height: 200px; display: block; margin-bottom: 8px; }
.g-img img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; transition: transform .4s var(--ease); }
.all-grid button:hover img { transform: translateY(-3px); }
.g-no { font: 400 10px/1 var(--mono); color: var(--yellow); }
.g-who { font: 700 11px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--blue-lite); }
.g-tt { font-size: 14px; }
.all-grid .pc { justify-content: flex-start; width: 100%; border-top: 1px solid var(--line); height: 36px; }
.all-grid .pc .seal { left: 0; right: auto; }

/* Price cell and the seal (B's signature) */
.pc { position: relative; width: 150px; height: 40px; display: flex; align-items: center; justify-content: flex-end; }
.pc .val { font: 500 15px/1 var(--mono); color: var(--text); }
.pc .ghost { font: 400 13px/1 var(--mono); color: rgba(243, 242, 236, .28); letter-spacing: .1em; }
.pc .note { font: 400 10px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--quiet); text-align: right; }
.all-grid .pc .note { text-align: left; }
.s-status { margin: -8px 0 18px; font: 400 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); }
.pc .sold { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #f08b7c; border: 1px solid currentColor; padding: 6px 8px; }
.seal { position: absolute; right: 0; top: 50%; display: inline-block; background: var(--yellow); color: var(--blue); font: 700 9px/1.15 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-align: center; padding: 7px 10px; width: 132px; transform: translateY(-50%) rotate(-2.5deg); box-shadow: 0 2px 6px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(49, 91, 123, .25); transform-origin: 90% 50%; }
.seal::after { content: ""; position: absolute; inset: 3px; border: 1px dashed rgba(49, 91, 123, .45); pointer-events: none; }
.seal.peel { animation: peel .7s var(--ease) forwards; }
@keyframes peel {
  0% { transform: translateY(-50%) rotate(-2.5deg); opacity: 1; }
  40% { transform: translateY(-62%) rotate(-9deg) scale(1.03); opacity: 1; }
  100% { transform: translateY(-140%) rotate(-18deg) translateX(14px); opacity: 0; }
}
.seal.big { position: static; transform: rotate(-3deg); width: auto; font-size: 11px; padding: 12px 18px; margin-bottom: 22px; }
.val.in { animation: valIn .5s var(--ease) both; }
@keyframes valIn { from { opacity: 0; transform: translateY(6px); } }

/* Dialogs: B's light cards over the night */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(8, 16, 24, .7); overflow-y: auto; }
.card { position: relative; background: var(--paper); color: var(--ink); padding: clamp(28px, 4vw, 44px); width: min(460px, 100%); border-top: 5px solid var(--yellow); color-scheme: light; }
.card.wide { width: min(720px, 100%); }
.card h2 { font: 700 clamp(26px, 3vw, 34px)/1.05 var(--sans); text-transform: uppercase; letter-spacing: .03em; color: var(--blue); margin: 0 0 12px; padding-right: 70px; }
.card > p { color: var(--grey); margin: 0 0 18px; }
.card .btn { background: var(--blue); color: #fff; }
.card .btn:hover { background: var(--ink); }
.card .btn.ghost { background: none; color: var(--blue); }
.eyebrow { font: 400 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--grey); margin: 0 0 16px; }
.tf { display: grid; gap: 6px; margin-bottom: 14px; font: 400 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.tf input, .tf select, .tf textarea { font: 400 15px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); padding: 10px 12px; width: 100%; }
.tf input:focus, .tf select:focus, .tf textarea:focus { border-color: var(--blue); outline: none; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
.fgrid .full { grid-column: 1 / -1; }
.x { position: absolute; top: 16px; right: 16px; background: none; border: 1px solid var(--rule); padding: 7px 12px; font: 400 11px/1 var(--mono); text-transform: uppercase; cursor: pointer; color: var(--grey); }
.x:hover { color: var(--blue); border-color: var(--blue); }
.all-top .x { position: static; border-color: var(--line); color: var(--quiet); }
.all-top .x:hover { color: var(--text); border-color: var(--text); }
.msg { min-height: 1.4em; color: #a33a2c; font-size: 14px; margin: 0 0 10px; }
.is-wrong { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.fine { font-size: 12px; color: var(--grey); margin: 16px 0 0; }
.sent { margin: 18px 0 0; padding: 14px; background: var(--page); border-left: 5px solid var(--yellow); font-size: 14px; }

@media (max-width: 1100px) {
  .tabs a { padding: 10px 8px; letter-spacing: .08em; }
  .frame { inset: 24px 72px; }
}
@media (max-width: 900px) {
  :root { --hh: 83px; }
  .strip { padding: 0 16px; height: 24px; }
  .bar { padding: 0 16px; height: 58px; gap: 10px; }
  .tabs { display: none; }
  .coll { display: flex; height: auto; min-height: 0; }
  .stage-wrap { display: contents; }
  .stage { order: 1; height: 58svh; }
  .frame { inset: 16px 52px; }
  .nav { width: 38px; height: 52px; }
  .prev { left: 8px; }
  .next { right: 8px; }
  .strip-bar { order: 2; grid-template-columns: 1fr; position: sticky; top: 0; z-index: 5; }
  .strip-tools { flex-direction: row; align-items: center; flex-wrap: wrap; padding: 12px 16px 0; border-right: 0; gap: 10px; }
  .strip-tools h1 { font-size: 18px; flex-basis: 100%; }
  .strip-tools .sel { flex: 1; }
  .film { padding: 12px 16px 16px; }
  .film button { height: 70px; }
  .card-side { order: 3; border-left: 0; overflow: visible; padding: 24px 16px 40px; }
  .s-price { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .doors { flex-direction: column; }
  .door + .door { border-left: 0; border-top: 1px solid rgba(243, 242, 236, .18); }
  .doors:hover .door:hover, .door:focus-within { flex-grow: 1; }
  .door::after { bottom: 0; }
  .door:first-child .shade { background: linear-gradient(to top, rgba(8, 16, 24, .9) 0%, rgba(8, 16, 24, .3) 60%, rgba(8, 16, 24, .55) 100%); }
  .d-in { bottom: 14px; left: 16px; right: 16px; gap: 6px; flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 12px; }
  .doors .d-name { font-size: clamp(24px, 7vw, 32px); flex-basis: 100%; order: 2; min-height: 0; }
  .d-no { order: 1; }
  .d-meta { order: 1; }
  .d-more, .d-credit { display: none; }
  .home-foot { position: static; height: 40px; padding: 0 16px; }
  .home-foot .links a:not(:last-child) { display: none; }
  .home { display: flex; flex-direction: column; }
  .doors { flex: 1; min-height: 0; }
  .fgrid { grid-template-columns: 1fr; }
  .all-panel { padding: 0 16px 40px; }
  .all-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .g-img { height: 140px; }
}
@media (max-width: 560px) {
  .brand img { width: 92px; }
  .btn-seal .t { display: none; }
  .btn { padding: 10px 12px; font-size: 13px; }
  .home-foot p:first-child { display: none; }
  .home-foot { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .seal.peel { display: none; }
  .door:hover img, .door:focus-within img { transform: scale(1.02); }
}

.home-foot .links a:not(:last-child) { display: inline; }
