/* Site Nil: the page's palette, type and the few rules that sit inside its visuals.
   Palette: the app's Theme.swift (void #000, concrete #141416, dossier #ECE6DA, ink #111, containment red
   #C8102E), through start.mjs brand. Type: Archivo at its narrowest width and heavy weight stands for the app's
   SF Pro Compressed Heavy; running text is the system face, SF Pro on Apple devices as in the app. */
:root {
  --p-bg: #000000; --p-surface: #141416; --p-ink: #ece6da; --p-muted: #a29e94;
  --p-accent: #c8102e; --p-accent-ink: #ffffff;
  /* the app's primary button: a dossier slab with ink text and the red edge stripe */
  --p-action: #ece6da; --p-action-ink: #111111;
  --p-inv-bg: #ece6da; --p-inv-surface: #d6d1c6; --p-inv-ink: #000000; --p-inv-muted: #3d3b37;
  --p-inv-accent: #c8102e; --p-inv-accent-ink: #ffffff; --p-inv-action: #111111; --p-inv-action-ink: #ece6da;
  --font-display: "Archivo", system-ui, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 800;
  --display-tracking: -0.005em;
  --display-tracking-xl: -0.01em;
  --display-stretch: 62.5%;
  --ly-scale: 1.08;
  --stripe: #c8102e;
}
html { background: var(--p-bg); }

/* the app's display face: compressed and heavy, sentence case */
h1, h2, .mo-lt__type, .footer__lede { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); letter-spacing: var(--display-tracking); }

/* the red edge stripe of the app's primary button (Theme.swift EdgeStripe) */
.btn--primary { box-shadow: inset -4px 0 0 var(--stripe); padding-right: calc(var(--s-5) + 4px); }

/* the logo: the wordmark band of the app's launch logo */
.nav__logo img { display: block; height: 36px; width: auto; }
@media (max-width: 639px) { .nav__logo img { height: 30px; } }
/* under 380px the bar keeps the logo and the menu; the download button waits in the hero and the sheet */
@media (max-width: 379px) { .nav__actions .btn--primary { display: none; } }
.nav__lang { font-size: 15px; }
@media (max-width: 1023px) { .nav__actions .nav__lang { display: none; } }

/* #cards: three cards in one row at every width, linked to their articles; as wide as the row allows, never taller
   than the screen leaves them */
.cardrow { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gutter); justify-content: space-between;
  grid-template-columns: repeat(3, minmax(0, min(calc((100% - 2 * var(--gutter)) / 3), calc((100svh - 470px) * 2 / 3)))); }
@media (min-width: 1280px) { #cards .section-head { max-width: none; } }
@media (max-width: 639px) {
  .cardrow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}
.cardrow li { min-width: 0; }
.cardrow__card { --ratio: 150%; display: flex; border-radius: var(--r-md); overflow: clip; background: var(--p-surface); }
@media (hover: hover) and (pointer: fine) {
  html:not([data-motion="off"]) .cardrow__card { transition: transform 280ms var(--ease); }
  html:not([data-motion="off"]) .cardrow__card:hover { transform: translateY(-2px); transition-duration: 180ms; }
}
@media (prefers-reduced-motion: reduce) { .cardrow__card:hover { transform: none !important; } }

/* the app's own screens: a phone screen standing in a concrete panel, cut by its bottom */
#modes .panel { background: var(--p-surface); }
.shot { left: 50%; top: var(--s-7); width: min(340px, 60%); translate: -50% 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 28px; outline: 1px solid rgb(255 255 255 / .1); outline-offset: -1px; }
#modes .panel { --p-h: 340px; }
#modes .shot { width: min(230px, 76%); top: var(--s-6); }
#modes .shot img { border-radius: 22px; }
@media (max-width: 639px) {
  #modes { --hm: 2; }
  #modes .panel { --p-h: 300px; }
  #modes .stage > .shot { left: 50%; right: auto; width: 230px; top: var(--s-5); }
}

/* #packs: the pack wheel of the app's Packs screen (src/pack3d.js) on black, the red glow behind the front pack,
   the red ring under the wheel and the crop marks round the front pack; the poster is the front pack with its
   imprint, shown until WebGL draws and whenever it cannot */
.pack-stage { min-width: 0; display: block; padding: 0; border: 0; background: none; }
.pack-stage::before { content: none; }
.pack-stage > .pack3d { width: 100%; }
.pack3d { position: relative; aspect-ratio: 628 / 560; border-radius: var(--r-md); overflow: hidden; cursor: grab; touch-action: pan-y;
  background: radial-gradient(ellipse 46% 44% at 50% 47%, rgb(200 16 46 / .34), rgb(200 16 46 / .08) 55%, transparent 75%), #000; }
.pack3d:active { cursor: grabbing; }
.pack3d__poster { position: absolute; left: 50%; top: 49%; height: 66%; aspect-ratio: 908 / 1431; translate: -50% -50%; container-type: inline-size;
  transition: opacity 400ms var(--ease); }
.pack3d__poster img { display: block; width: 100%; height: 100%; }
/* the canvas carries the stage's own ground and ring, so once it draws it covers the poster under it; no canvas: the poster shows */
.pack3d__canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: block;
  background: radial-gradient(ellipse 42% 5% at 50% 84%, transparent 92%, rgb(200 16 46 / .8) 95%, rgb(200 16 46 / .2) 99%, transparent),
    radial-gradient(ellipse 46% 44% at 50% 47%, rgb(200 16 46 / .34), rgb(200 16 46 / .08) 55%, transparent 75%), #000; }
.pack3d__ring { position: absolute; left: 50%; top: 84%; width: 84%; height: 10%; translate: -50% -50%; border-radius: 50%;
  border: 1.5px solid rgb(200 16 46 / .8); box-shadow: 0 0 18px rgb(200 16 46 / .25); pointer-events: none; }
.pack3d__ticks { position: absolute; left: 50%; top: 49%; height: 74%; aspect-ratio: .64; translate: -50% -50%; pointer-events: none; z-index: 2; }
.pack3d__ticks i { position: absolute; width: 20px; height: 20px; border: 0 solid var(--stripe); }
.pack3d__ticks i:nth-child(1) { left: 0; top: 0; border-width: 1.5px 0 0 1.5px; }
.pack3d__ticks i:nth-child(2) { right: 0; top: 0; border-width: 1.5px 1.5px 0 0; }
.pack3d__ticks i:nth-child(3) { right: 0; bottom: 0; border-width: 0 1.5px 1.5px 0; }
.pack3d__ticks i:nth-child(4) { left: 0; bottom: 0; border-width: 0 0 1.5px 1.5px; }
@media (min-width: 1024px) and (max-width: 1279px) { .pack3d, .badge-stage { aspect-ratio: 1 / 1; } }
@media (min-width: 640px) and (max-width: 1023px) { .pack3d { aspect-ratio: 16 / 10; } }
@media (max-width: 639px) { .pack3d { aspect-ratio: 1 / 1.02; } }

/* #packs: the two facts as plain lines closed by a rule */
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.plain li:first-child { border-top: 1px solid var(--line); }

/* #breach: the statement, the red stripe under it like the card's rules line */
.breach { max-width: none; }
.breach .mo-lt__type { max-width: 10ch; font-size: clamp(64px, 12.5vw, 196px); line-height: .9; }
@media (max-width: 639px) { .breach .mo-lt__type { font-size: 26vw; max-width: 6ch; } }
.breach .t-lead { max-width: 40ch; margin-top: var(--s-6); }
.breach .t-lead::before { content: ""; display: block; width: 48px; height: 3px; margin-bottom: var(--s-5); background: var(--stripe); }
@media (min-width: 640px) and (max-width: 1023px) { .breach .mo-lt__type { font-size: 20vw; max-width: 6ch; } }

/* the footer: the close's head row and the links, as tall as they are (asked by the client: no full screen,
   no name set across the page) */
footer.closing { height: auto; min-height: 0; padding-top: var(--s-9); padding-bottom: var(--s-7); }
footer.closing > .wrap { height: auto; display: grid; gap: var(--s-8); }
footer.closing .closing__links { margin-top: 0; }

/* the credits list in the legal row, in the page's language */
html[lang="it"] .credits > summary::after { content: "Crediti"; }
html[lang="it"] .credits[open] > summary::after { content: "Nascondi"; }
.credits__body ul { margin: var(--s-2) 0 0; padding-left: 1.2em; }
.credits__body p + p { margin-top: var(--s-2); }

/* #modes on a tablet: the three cards in a row on one screen */
@media (min-width: 640px) and (max-width: 1023px) {
  #modes .modes > .card { grid-column: span 4; }
  #modes .panel { --p-h: min(420px, 34svh); }
  #modes .shot { width: 78%; top: var(--s-5); }
}
@media (min-width: 1024px) and (max-width: 1279px) { #modes .panel { --p-h: 270px; } #modes .shot { width: min(200px, 76%); } }

/* #faq from 640 to 1279: the heading and the stores on one row, the answers in two columns under them */
@media (min-width: 640px) and (max-width: 1279px) {
  #faq .grid > .span-5 { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gutter); align-items: start; }
  #faq .faq { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; column-gap: var(--gutter); display: grid; }
  #faq .faq > .faq__item:nth-child(2) { padding-top: 0; }
}
@media (min-width: 800px) and (max-width: 1023px) { #faq .faq { grid-template-columns: 1fr; } #faq .faq > .faq__item:nth-child(2) { padding-top: var(--s-5); } }
@media (max-width: 639px) { #faq { --hm: 2; } }

/* #faq: the two stores, each with its real mark, as rows closed by a rule */
.stores { list-style: none; margin: 0; padding: 0; }
.store { display: flex; align-items: center; gap: var(--s-4); min-height: 64px; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.stores li:first-child .store { border-top: 1px solid var(--line); }
.store img { flex: none; width: 32px; height: 32px; object-fit: contain; }
.store > span { display: grid; gap: 2px; }
.store__name { font: 500 var(--t-lead)/1.2 var(--font-text); }
.store__for { font-size: var(--t-small); color: var(--muted); }

/* privacy/: a document page on the site's ground, one column at reading width */
.doc main { padding: calc(var(--nav) + var(--s-8)) 0 var(--s-9); }
.policy { max-width: min(100% - 2 * var(--gut), 720px); margin-inline: auto; }
.policy h1 { font-size: var(--t-h1); line-height: 1; margin: 0 0 var(--s-3); }
.policy h2 { font-size: var(--t-h3); line-height: 1.15; margin: var(--s-8) 0 var(--s-4); }
.policy p, .policy li { font-size: 17px; line-height: 1.65; }
.policy p { margin: 0 0 var(--s-4); }
.policy ul { margin: 0 0 var(--s-4); padding-left: 1.2em; list-style: disc; }
.policy li::marker { color: var(--stripe); }
.doc .nav__actions { margin-left: auto; display: flex; }
.policy li + li { margin-top: var(--s-2); }
.policy a { text-decoration: underline; text-decoration-color: var(--stripe); text-underline-offset: 3px; }
.policy code { font-family: var(--font-mono); font-size: .9em; }
.doc__footer { border-top: 1px solid var(--line); padding: var(--s-6) 0 var(--s-8); }
.doc__footer .footer__legal { border: 0; padding: 0; margin: 0 auto; }

/* #modes: every capture on one line, whatever the length of the words above it: the cards share three rows
   (title, line, capture) through a subgrid */
#modes .modes { row-gap: 0; grid-auto-rows: auto; }
#modes .modes > .card { grid-row: span 3; display: grid; grid-template-rows: subgrid; row-gap: 0; }
#modes .modes > .card > h3 { margin: 0 0 var(--s-2); }
#modes .modes > .card > p { margin: 0 0 var(--s-5); }
@media (max-width: 639px) { #modes .modes > .card + .card { margin-top: var(--s-6); } }

/* #clearance: the Profile's personnel badge (PersonnelBadge.swift) as live HTML on a dark stage: dossier paper
   under a black band with the logo, the red edge stripe, the researcher code, the clearance on a black plate */
.badge-stage { display: grid; place-items: center; aspect-ratio: 628 / 520; border-radius: var(--r-md); padding: var(--s-6);
  background: radial-gradient(ellipse 60% 55% at 50% 48%, #1b1b1e, #08080a 78%); }
.pbadge { --paper: #ece6da; --ink2: #111111; position: relative; width: min(100%, 460px); aspect-ratio: 1.586; display: flex; flex-direction: column;
  border-radius: 14px; overflow: hidden; background: var(--paper); color: var(--ink2);
  box-shadow: inset -6px 0 0 var(--stripe), 0 0 0 1px rgb(255 255 255 / .3), 0 30px 60px -30px rgb(0 0 0 / .9); }
.pbadge__band { display: flex; align-items: center; gap: 10px; padding: 8px 24px 8px 12px; background: var(--ink2); color: var(--paper); }
.pbadge__band img { height: 30px; width: auto; }
.pbadge__band span { font: 600 15px/1.2 var(--font-text); }
.pbadge__body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 14px 30px 18px 18px; }
.pbadge__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.pbadge__cap, .pbadge__fields dt { display: block; font: 400 13px/1.3 var(--font-text); color: rgb(17 17 17 / .6); }
.pbadge__id { display: block; font: var(--display-weight) 40px/1 var(--font-display); font-stretch: var(--display-stretch); margin-top: 1px; }
.pbadge__plate { display: grid; justify-items: center; min-width: 76px; padding: 4px 12px 8px; border-radius: 4px; background: var(--ink2); color: var(--paper); }
.pbadge__level { font: var(--display-weight) 40px/1 var(--font-display); font-stretch: var(--display-stretch); font-variant-numeric: tabular-nums; }
.pbadge__plate span:last-child { font: 500 13px/1.2 var(--font-text); opacity: .7; }
.pbadge__fields { display: flex; gap: 22px; margin: 0; }
.pbadge__fields dd { margin: 1px 0 0; font: 600 17px/1.2 var(--font-display); font-stretch: 75%; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* the laminate catches the light as the pointer passes over it, as the badge does when the phone tilts */
.pbadge::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg, transparent 35%, rgb(255 255 255 / .45) 48%, transparent 60%); background-size: 250% 100%; background-position: 100% 0; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .badge-stage:hover .pbadge::after { opacity: 1; background-position: 0 0; transition: background-position 900ms var(--ease), opacity 200ms; }
}
@media (min-width: 640px) and (max-width: 1023px) { .badge-stage { aspect-ratio: 16 / 9; } }
@media (max-width: 639px) {
  .badge-stage { aspect-ratio: auto; padding: var(--s-5) var(--s-4); }
  .pbadge__id, .pbadge__level { font-size: 32px; }
  .pbadge__body { padding: 10px 24px 14px 14px; }
  .pbadge__fields { gap: 14px; }
  .pbadge__fields dd { font-size: 15px; }
  .pbadge__fields dt { font-size: 12px; }
}

/* #cards: the anomalies' row (the marquee moment): the SCP number in the page's ink, its name muted */
.anomalies { margin-top: var(--s-6); }
.anomalies .mo-mq__track { font: 500 var(--t-lead)/1 var(--font-text); }
.anomalies__scp { font: var(--display-weight) 1.15em/1 var(--font-display); font-stretch: var(--display-stretch); color: var(--ink); }
.anomalies__name { color: var(--muted); }
/* a tablet and a phone: the kit's row holds still there, so the anomalies run in two rows of their own, in opposite
   directions, each two copies of its list sliding one copy's width; a pause button, and still under reduced motion */
.anomalies-run { display: none; position: relative; margin-top: var(--s-6); padding-bottom: 44px; }
.anomalies-run__rail { display: flex; overflow: hidden; gap: var(--s-6); padding-block: var(--s-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.anomalies-run__track { display: flex; flex: none; gap: var(--s-6); margin: 0; padding: 0; list-style: none; white-space: nowrap; font: 500 19px/1.25 var(--font-text);
  animation: anomalies-run 30s linear infinite; }
.anomalies-run__rail:nth-of-type(3) .anomalies-run__track { animation-duration: 36s; }
.anomalies-run .anomalies__scp { font-size: 1.2em; }
.anomalies-run__rail--back .anomalies-run__track { animation-direction: reverse; animation-duration: 40s; }
.anomalies-run.is-paused .anomalies-run__track, .anomalies-run.is-off .anomalies-run__track { animation-play-state: paused; }
@keyframes anomalies-run { to { transform: translateX(calc(-100% - var(--s-6))); } }
.anomalies-run__pause { position: absolute; right: 0; bottom: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-strong, rgb(236 230 218 / .2)); background: var(--p-surface); color: var(--p-ink); cursor: pointer; }
.anomalies-run__pause svg { width: 14px; height: 14px; fill: currentColor; }
.anomalies-run.is-paused .anomalies-run__pause svg rect { display: none; }
.anomalies-run.is-paused .anomalies-run__pause svg { background: none; }
.anomalies-run.is-paused .anomalies-run__pause::after { content: ""; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; margin-left: 2px; position: absolute; }
@media (prefers-reduced-motion: reduce) {
  .anomalies-run__rail { flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; }
  .anomalies-run__track { animation: none; flex-wrap: wrap; white-space: normal; row-gap: var(--s-2); }
  .anomalies-run__track[aria-hidden] { display: none; }
  .anomalies-run__pause { display: none; }
}
@media (max-width: 1023px) { .anomalies { display: none; } .anomalies-run { display: block; } }


/* #collection: a common, a foil rare and a legendary as the pack reveal shows them (RevealStackView.swift): the
   foil with its rainbow rim turning and the cardFoil shader (src/foil.js), the legendary in its red and gold
   glow; all upright, side by side */
.collect-stage { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; aspect-ratio: 628 / 560; padding: var(--s-6) var(--s-5); border: 0; border-radius: var(--r-md);
  background: radial-gradient(ellipse 70% 60% at 50% 50%, #17171a, #050506 80%); }
.collect-stage::before { content: none; }
.collect { --m-cycle: 4s; --m-still: 0.3; list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 3.4cqw, 34px); align-items: center; container-type: inline-size; }
.ccard { position: relative; aspect-ratio: 2 / 3; isolation: isolate; }
.ccard > img, .ccard__foil { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border-radius: 1.4cqw; }   /* cardCornerFraction 0.045 of a card about 31cqw wide */
.ccard > img { outline: .5px solid rgb(255 255 255 / .1); outline-offset: -.5px; }
.ccard__foil { z-index: 1; }
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.ccard--foil::before, .ccard--foil::after, .ccard--legendary::before, .ccard--legendary::after { content: ""; position: absolute; z-index: -1; border-radius: 2cqw; pointer-events: none; }
/* FoilRim: the rainbow turning around the edge, a wide soft stroke and a thin one */
.ccard--foil::before, .ccard--foil::after { background: conic-gradient(from var(--spin), hsl(0 75% 60%), hsl(60 75% 60%), hsl(120 75% 60%), hsl(180 75% 60%), hsl(240 75% 60%), hsl(300 75% 60%), hsl(360 75% 60%)); mix-blend-mode: plus-lighter; }
.ccard--foil::before { inset: -7px; filter: blur(12px); opacity: .85; }
.ccard--foil::after { inset: -3.5px; filter: blur(2.5px); }
/* RarityAura legendary: the red and gold glow turning round the card, and the gold rim, pulsing */
.ccard--legendary::before { inset: -2%; background: conic-gradient(from var(--spin), #c8102e, #edb54a, #c8102e, #edb54a, #c8102e); filter: blur(32px); opacity: .9; scale: 1.08; }
.ccard--legendary::after { inset: -1.5px; border: 3px solid #edb54a; filter: blur(4px); opacity: .8; }
@media (prefers-reduced-motion: no-preference) {
  /* one 4 s cycle each (the loop's --m-cycle): the rims turn once, the legendary's glow breathes twice */
  html:not([data-motion="off"]) .ccard--foil::before, html:not([data-motion="off"]) .ccard--foil::after { animation: spin 4s linear infinite; }
  html:not([data-motion="off"]) .ccard--legendary::before { animation: spin-aura 4s linear infinite; }
  html:not([data-motion="off"]) .ccard--legendary::after { animation: rim 4s ease-in-out infinite; }
}
@keyframes spin { to { --spin: 360deg; } }
@keyframes spin-aura { 0%, 50%, 100% { scale: 1.05; opacity: .75; } 25%, 75% { scale: 1.11; opacity: 1; } to { --spin: 360deg; } }
@keyframes rim { 0%, 50%, 100% { opacity: .6; } 25%, 75% { opacity: 1; } }
@media (hover: hover) and (pointer: fine) {
  html:not([data-motion="off"]) .ccard { transition: transform 280ms var(--ease); }
  html:not([data-motion="off"]) .ccard:hover { transform: translateY(-2px); transition-duration: 180ms; }
}
@media (min-width: 1024px) and (max-width: 1279px) { .collect-stage { aspect-ratio: 1 / 1; } }
@media (min-width: 640px) and (max-width: 1023px) { .collect-stage { aspect-ratio: 16 / 9; } .collect { width: 74%; } }
@media (max-width: 639px) { .collect-stage { aspect-ratio: auto; padding: var(--s-8) var(--s-4); } .collect { gap: 12px; } }
.badge-stage { border: 0; }
.badge-stage::before { content: none; }

/* the hero: the sealed Breach pack standing at the foot of the containment door (src/hero-pack.js); it leans under
   a finger or the mouse, as the app's pack does.
   The plate is the key art's own box under object-fit: cover (3:2, centred; on a tablet and a phone the band under
   the header, held at 78% like the picture), so the pack keeps its spot on the floor at every size. The button
   holds the pack (1 tall) with 0.1 of air over it and its reflection under it: 1.6 packs tall */
.hero__scene { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; container-type: size; --px: .5; }
/* the scene sits in the hero's .wrap but measures the hero itself: the wrap gives up its own box here, the words
   keep theirs above the pack */
main > section.hero > .wrap { position: static; }
.hero > .wrap > .hero-text { position: relative; z-index: 2; }
.hero__plate { position: absolute; width: max(100cqw, 150cqh); height: max(100cqh, 66.6667cqw);
  left: calc((100cqw - max(100cqw, 150cqh)) * var(--px)); top: calc((100cqh - max(100cqh, 66.6667cqw)) * .5); }
.hero__pack { --ph: 36%; position: absolute; left: 72%; top: calc(73.5% - 1.1 * var(--ph)); height: calc(1.6 * var(--ph)); aspect-ratio: .5155;
  translate: -50% 0; pointer-events: auto; touch-action: none; -webkit-tap-highlight-color: transparent; }
.hero__pack-poster { position: absolute; left: 50%; top: 6.25%; height: 62.5%; width: auto; translate: -50% 0; filter: brightness(1.7); }
.hero__pack-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  filter: drop-shadow(0 0 28px rgb(200 16 46 / .45)); }
.hero__pack.is-live:has(> .hero__pack-canvas) .hero__pack-poster { visibility: hidden; }
@media (max-width: 1023px) { .hero__scene { inset: auto; top: var(--nav); left: 0; right: 0; height: var(--photo); --px: .78; } }
/* a phone: the pack in the middle of the band, still on the floor, and the picture held to its right edge so the
   door stands as close behind it as the crop allows */
@media (max-width: 639px) {
  .hero--photo > .hero__bg { --ly-pos-phone: 100% 50%; object-position: 100% 50%; }
  .hero__scene { --px: 1; }
  .hero__pack { --ph: 60%; left: calc(50cqw - (100cqw - max(100cqw, 150cqh)) * var(--px)); }
}

/* #modes: a capture opens large on a click (src/lightbox.js) */
.shot__open { display: block; border-radius: inherit; cursor: zoom-in; }
.shot__open:focus-visible { outline: 2px solid var(--p-ink); outline-offset: 3px; border-radius: 24px; }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  border: 0; background: none; display: none; place-items: center; cursor: zoom-out; overscroll-behavior: contain; }
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: rgb(0 0 0 / .88); }
.lightbox__img { display: block; max-width: 100%; max-height: calc(100dvh - 160px); margin-top: 40px; width: auto; height: auto; border-radius: 28px;
  outline: 1px solid rgb(255 255 255 / .12); outline-offset: -1px; }
.lightbox__close { position: fixed; top: max(16px, env(safe-area-inset-top)); right: 16px; width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgb(236 230 218 / .25); background: rgb(20 20 22 / .9); color: var(--p-ink); cursor: pointer; }
.lightbox__close:hover { background: #26262a; }
.lightbox__close:focus-visible { outline: 2px solid var(--p-ink); outline-offset: 3px; }
html:has(.lightbox[open]) { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] .lightbox__img { animation: lightbox-in 220ms var(--ease) both; }
  .lightbox[open]::backdrop { animation: lightbox-fade 220ms ease both; }
}
@keyframes lightbox-in { from { opacity: 0; scale: .96; } }
@keyframes lightbox-fade { from { opacity: 0; } }

/* desktop: the three cards close together in the middle of the row */
@media (min-width: 1024px) { .cardrow { justify-content: center; } }

/* the cards' illustrations, shown on request (src/ai_art.js): a quiet text button, and the question in a small box */
.ai-toggle { margin-top: var(--s-4); padding: 6px 0; border: 0; background: none; color: var(--p-muted); font: 500 var(--t-small)/1.3 var(--font-text); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--stripe); text-underline-offset: 4px; }
.ai-toggle:hover { color: var(--p-ink); }
.ai-toggle:focus-visible { outline: 2px solid var(--p-ink); outline-offset: 3px; border-radius: 4px; }
.ai-toggle__hide { display: none; }
.ai-toggle[aria-pressed="true"] .ai-toggle__show { display: none; }
.ai-toggle[aria-pressed="true"] .ai-toggle__hide { display: inline; }
#cards .section-head .ai-toggle { display: inline; margin: 0 0 0 .25em; padding: 0; font: inherit; }
#collection .ai-toggle { justify-self: start; }
.ai-ask { width: min(100% - 32px, 420px); padding: 0; border: 1px solid rgb(236 230 218 / .14); border-radius: var(--r-md); background: var(--p-surface); color: var(--p-ink); }
.ai-ask::backdrop { background: rgb(0 0 0 / .7); }
.ai-ask__box { display: grid; gap: var(--s-5); padding: var(--s-6); margin: 0; }
.ai-ask__text { margin: 0; font: 500 var(--t-lead)/1.4 var(--font-text); }
.ai-ask__actions { display: flex; justify-content: flex-end; gap: var(--s-3); flex-wrap: wrap; }
