/* =============================================================
   GRISCH 6 — pages.css
   Extra pages: /limited/ (Limited Edition + pre-order) and
   /archivio/ (photo archive). Loaded after style.css; same tokens.
   ============================================================= */

:root {
  --tape: rgba(255, 255, 255, 0.62);
  --tape-edge: rgba(17, 17, 17, 0.08);
  --lightbox-bg: #0b0b0b;
  --lightbox-ink: #f2f1ee;
}
:root[data-theme="dark"] {
  --tape: rgba(255, 255, 255, 0.16);
  --tape-edge: rgba(255, 255, 255, 0.06);
}

/* Header on these pages: solid by default, transparent only over a hero photo */
.page .header { position: fixed; }
.page main { padding-top: var(--header-h); }
.page--hero main { padding-top: 0; }

.kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.page-title { font-family: var(--font-display); font-size: clamp(56px, 11vw, 168px); line-height: 0.9; letter-spacing: -0.01em; }
.section-title { font-family: var(--font-display); font-size: clamp(36px, 5vw, 64px); line-height: 1; }
.lede { max-width: 52ch; font-size: 17px; line-height: 1.55; color: var(--text-muted); }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { opacity: 0.6; }

/* Fade-up when a block enters the screen (only with JS) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }


/* =============================================================
   LIMITED EDITION
   ============================================================= */
.lt-hero { position: relative; display: grid; align-items: end; min-height: 100svh; overflow: hidden; color: var(--on-media); }
.lt-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; animation: heroZoom 14s var(--ease-out) forwards; }
.lt-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 10, 16, 0.25) 0%, transparent 22%, rgba(8, 10, 16, 0.5) 45%, rgba(8, 10, 16, 0.86) 75%, rgba(8, 10, 16, 0.92) 100%); }
.lt-hero__content { position: relative; z-index: 1; display: grid; gap: 18px; padding: 0 var(--gutter) clamp(40px, 8vh, 88px); }
.lt-hero__content > * { opacity: 0; animation: rise 1.1s var(--ease-out) forwards; }
.lt-hero__content > :nth-child(2) { animation-delay: 0.12s; }
.lt-hero__content > :nth-child(3) { animation-delay: 0.24s; }
.lt-hero__content > :nth-child(4) { animation-delay: 0.36s; }
.lt-hero .lede { color: var(--on-media); opacity: 0.9; }
.lt-hero__actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.lt-hero .text-link { color: var(--on-media); }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* The piece: photos left, sticky info right */
.lt-piece { display: grid; gap: 40px; padding: 96px var(--gutter); }
@media (min-width: 900px) { .lt-piece { grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: start; } }
.lt-piece__media { display: grid; gap: 4px; }
.lt-piece__media figure { overflow: hidden; background: var(--surface); }
.lt-piece__media img { width: 100%; height: auto; transition: transform 1.2s var(--ease-out); }
.lt-piece__media figure:hover img { transform: scale(1.03); }
.lt-piece__info { display: grid; gap: 22px; }
@media (min-width: 900px) { .lt-piece__info { position: sticky; top: calc(var(--header-h) + 32px); } }
.lt-piece__num { display: flex; align-items: center; gap: 12px; color: var(--text-muted); }
.status { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.lt-piece__name { font-family: var(--font-display); font-size: clamp(44px, 5.2vw, 80px); line-height: 0.95; }
.spec { border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec dt { color: var(--text-muted); }

/* How the pre-order works */
.lt-steps { padding: 96px var(--gutter); background: var(--surface); }
.lt-steps__head { display: grid; gap: 14px; margin-bottom: 48px; }
.lt-steps__list { display: grid; gap: 32px; padding: 0; list-style: none; counter-reset: step; }
@media (min-width: 900px) { .lt-steps__list { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.lt-steps__list li { display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line-strong); }
.lt-steps__list li::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-display); font-size: 56px; line-height: 1; }
.lt-steps__list h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.lt-steps__list p { color: var(--text-muted); }

/* Pre-order form */
.preorder { display: grid; gap: 40px; padding: 112px var(--gutter); }
@media (min-width: 900px) { .preorder { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.preorder__intro { display: grid; gap: 16px; }
.form { display: grid; gap: 20px; width: 100%; max-width: 560px; }
.form__fields { display: grid; gap: 20px; }
.form__field { display: grid; gap: 8px; }
.form__label { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.form__input, .form__select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.form__select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.form__input:focus-visible, .form__select:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.form__sizes { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; }
.form__sizes legend { margin-bottom: 8px; }
.size-opt { position: relative; }
.size-opt input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.size-opt span { display: grid; place-items: center; min-width: 56px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 13px; font-weight: 500; transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s; }
.size-opt input:checked + span { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.size-opt input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__consent { display: flex; gap: 10px; align-items: flex-start; color: var(--text-muted); font-size: 14px; line-height: 1.5; cursor: pointer; }
.form__consent input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--accent); }
.form__consent a { text-decoration: underline; text-underline-offset: 3px; }
.form__msg { min-height: 1.5em; font-size: 15px; }
.form__msg.is-error { color: var(--danger); }
.form.is-done .form__fields { display: none; }
.form__done { display: none; gap: 14px; padding: 28px; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.form.is-done .form__done { display: grid; animation: rise 0.7s var(--ease-out); }
.form__done h3 { font-family: var(--font-display); font-size: 36px; line-height: 1; }
.form__done p { color: var(--text-muted); }

/* Full-bleed closing photo linking to the archive */
.lt-outro { position: relative; display: grid; place-items: end start; min-height: 80svh; overflow: hidden; color: var(--on-media); }
.lt-outro img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-out); }
.lt-outro:hover img { transform: scale(1.03); }
.lt-outro::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8, 10, 16, 0.65)); }
.lt-outro__content { position: relative; z-index: 1; display: grid; gap: 10px; padding: 0 var(--gutter) 48px; }
.lt-outro .text-link { color: var(--on-media); }


/* =============================================================
   ARCHIVIO — prints laid out on a table, taped, slightly tilted
   ============================================================= */
.page--archive { background: var(--surface); }
.ar-intro { display: grid; gap: 22px; padding: 72px var(--gutter) 40px; }
@media (min-width: 900px) { .ar-intro { grid-template-columns: 1fr auto; align-items: end; padding-top: 96px; } }
.ar-intro__count { display: grid; gap: 4px; justify-items: start; }
@media (min-width: 900px) { .ar-intro__count { justify-items: end; text-align: right; } }
.ar-intro__num { font-family: var(--font-display); font-size: clamp(64px, 8vw, 120px); line-height: 0.85; }

.ar-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--gutter) 24px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

.ar-board { display: grid; gap: 40px 28px; padding: 32px var(--gutter) 120px; }
@media (min-width: 700px) { .ar-board { grid-template-columns: repeat(12, 1fr); gap: 56px 32px; } }

.print {
  --tilt: 0deg;
  --y: 0px;
  position: relative;
  display: block;
  width: 100%;
  padding: 10px 10px 0;
  background: var(--bg);
  text-align: left;
  box-shadow: 0 1px 0 var(--line), 0 22px 44px -22px var(--shadow);
  transform: translateY(var(--y)) rotate(calc(var(--tilt) * 0.5));
  transition: transform 0.7s var(--ease-spring), box-shadow 0.7s var(--ease-out), opacity 0.9s var(--ease-out);
  cursor: zoom-in;
}
@media (min-width: 700px) { .print { transform: translateY(var(--y)) rotate(var(--tilt)); } }
.print:hover, .print:focus-visible { transform: translateY(calc(var(--y) - 6px)) rotate(0deg) scale(1.015); box-shadow: 0 1px 0 var(--line), 0 34px 60px -26px var(--shadow); z-index: 2; }
.print:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
/* tape strip */
.print::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  z-index: 1;
  width: 84px;
  height: 24px;
  background: var(--tape);
  border: 1px solid var(--tape-edge);
  transform: translateX(-50%) rotate(calc(var(--tilt) * -2.2));
  backdrop-filter: blur(1px);
}
.print__img { width: 100%; height: auto; background: var(--surface-2); }
.print__cap { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 2px 14px; }
.print__title { font-family: var(--font-display); font-style: italic; font-size: 22px; line-height: 1.1; }
.print__meta { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); white-space: nowrap; }
.js .print.reveal { opacity: 0; transform: translateY(calc(var(--y) + 32px)) rotate(calc(var(--tilt) * 2)); }
.js .print.reveal.is-in { opacity: 1; transform: translateY(var(--y)) rotate(calc(var(--tilt) * 0.5)); }
@media (min-width: 700px) { .js .print.reveal.is-in { transform: translateY(var(--y)) rotate(var(--tilt)); } }
.js .print.reveal.is-in:hover, .js .print.reveal.is-in:focus-visible { transform: translateY(calc(var(--y) - 6px)) rotate(0deg) scale(1.015); }
.print.is-hidden { display: none; }

/* Positions on the 12-column table (desktop only) */
@media (min-width: 700px) {
  .print--a { grid-column: 1 / 8;  --tilt: -1.4deg; }
  .print--b { grid-column: 8 / 13; grid-row: span 2; --tilt: 1.8deg; --y: 48px; }
  .print--c { grid-column: 2 / 8;  --tilt: 1deg; --y: -8px; }
  .print--d { grid-column: 1 / 7;  --tilt: -2deg; --y: 24px; }
  .print--e { grid-column: 7 / 13; --tilt: 1.3deg; --y: 72px; }
  .print--blank { grid-column: 4 / 10; --tilt: -0.8deg; --y: 40px; }
}
@media (max-width: 699px) {
  .print--a, .print--c, .print--e { --tilt: -1.6deg; }
  .print--b, .print--d, .print--blank { --tilt: 1.6deg; }
}

/* The empty print: an invitation to tag the brand */
.print--blank { cursor: pointer; }
.print__empty { display: grid; place-items: center; gap: 12px; aspect-ratio: 4 / 3; padding: 24px; border: 1px dashed var(--line-strong); text-align: center; }
.print__empty strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; }
.print__empty span { color: var(--text-muted); font-size: 15px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--lightbox-bg); color: var(--lightbox-ink); }
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fadeIn 0.35s var(--ease-out); }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; padding: 12px var(--gutter); }
.lightbox__count { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); }
.lightbox__img { max-width: 100%; max-height: calc(100svh - 170px); width: auto; height: auto; object-fit: contain; animation: fadeIn 0.45s var(--ease-out); }
.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.22); opacity: 1; }
.lightbox__nav--prev { left: var(--gutter); }
.lightbox__nav--next { right: var(--gutter); }
.lightbox__cap { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 14px; padding: 16px var(--gutter) max(20px, env(safe-area-inset-bottom)); text-align: center; }
.lightbox__title { font-family: var(--font-display); font-style: italic; font-size: 26px; line-height: 1.1; }
.lightbox__meta { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 699px) { .lightbox__nav { top: auto; bottom: -4px; translate: none; } .lightbox__stage { padding-bottom: 56px; } }
