/* parallaxkit.com. Tokens first; the page is a painted wall the pieces hang
   on, with paper-coloured sheets for reading. */
:root {
  --wall: #c7cbc1;       /* limewash, sage-grey */
  --wall-lit: #d5d8cf;
  --paper: #efeee8;
  --ink: #1f2420;
  --mut: #59605a;
  --line: #b3b8ad;
  --acc: #c95a26;        /* the kit orange */
  --acc-ink: #fff;
  --peg: #f4f2eb;        /* natural PLA */
  --shadow: 24, 18, 10;
  --display: 'Anybody', 'Arial Black', sans-serif;
  --text: 'Figtree', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --wall: #2a302c; --wall-lit: #343b36; --paper: #212622; --ink: #ecebe4; --mut: #a4aba3;
    --line: #444c46; --acc: #ec7a3f; --acc-ink: #1c1a17; --peg: #e9e6dc; --shadow: 0, 0, 0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --wall: #2a302c; --wall-lit: #343b36; --paper: #212622; --ink: #ecebe4; --mut: #a4aba3;
  --line: #444c46; --acc: #ec7a3f; --acc-ink: #1c1a17; --peg: #e9e6dc; --shadow: 0, 0, 0;
  color-scheme: dark;
}

* { margin: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--wall); color: var(--ink); font: 400 17px/1.6 var(--text);
       -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* type scale: 17 / 21 / 28 / 44 / 72 */
h1, h2, h3, .display { font-family: var(--display); font-weight: 800; letter-spacing: -0.015em; }
h1 { font-size: clamp(42px, 5.4vw, 72px); line-height: 0.98; font-stretch: 112%; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; font-stretch: 112%; text-wrap: balance; }
h3 { font-size: 21px; line-height: 1.2; font-stretch: 106%; }
.lede { font-size: 21px; line-height: 1.5; color: var(--mut); max-width: 34ch; }
.small { font-size: 15px; color: var(--mut); }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; }
.logo { font: 800 22px/1 var(--display); font-stretch: 110%; letter-spacing: -0.02em; text-decoration: none; }
.logo i { font-style: normal; color: var(--acc); }
.nav { display: flex; gap: 28px; align-items: center; font-weight: 600; font-size: 16px; }
.nav a { text-decoration: none; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 5px; }
.nav a { white-space: nowrap; }
@media (max-width: 1240px) { .nav { gap: 20px; } }
@media (max-width: 1120px) { .nav .nav-how, .nav .nav-questions { display: none; } }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* language picker: always top right, flag plus the language's own name */
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--paper);
        border: 1px solid var(--line); }
.lang a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 8px;
          border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; }
.lang a:hover { background: var(--wall); }
.lang a[aria-current] { background: var(--wall); box-shadow: inset 0 0 0 2px var(--acc); }
.lang svg { width: 26px; height: 18px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.18); }
.lang .short { display: none; }
@media (max-width: 560px) {
  .lang a { padding: 0 10px 0 7px; gap: 6px; }
  .lang .full { display: none; }
  .lang .short { display: inline; }
  .top { gap: 12px; }
  .nav { gap: 10px; }
  .nav .btn.sm { padding: 0 14px; }
}
@media (max-width: 560px) { .nav .btn.sm { display: none; } }
.form-msg { font-weight: 600; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px;
       padding: 0 26px; border-radius: 999px; border: 2px solid var(--acc); background: var(--acc);
       color: var(--acc-ink); font: 700 17px/1 var(--text); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.06); }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.sm { height: 42px; padding: 0 18px; font-size: 15px; }

/* layered art component (stack.js) */
.stack { --explode: 1; position: relative; width: calc(var(--w-mm) * var(--mm));
         aspect-ratio: var(--ar); perspective: calc(2200 * var(--mm)); }
.rig { position: absolute; inset: 0; transform-style: preserve-3d;
       transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s ease-out; }
.rig img { position: absolute; inset: 0; width: 100%; height: 100%;
  transform: translateZ(calc(var(--z) * var(--explode) * var(--mm)));
  filter: drop-shadow(calc(var(--gap) * var(--explode) * var(--mm) * .32) calc(var(--gap) * var(--explode) * var(--mm) * .55)
          calc(var(--gap) * var(--mm) * .5 + 1px) rgba(var(--shadow), .38));
  transition: transform 1s cubic-bezier(.2, .75, .15, 1) calc(var(--i) * 110ms + 300ms),
              filter 1s ease calc(var(--i) * 110ms + 300ms); }
.stack.flat .rig img { transform: translateZ(0); filter: drop-shadow(0 0 0 transparent); }
.stack.live .rig img { transition: transform .45s cubic-bezier(.2, .75, .15, 1), filter .45s ease; }
@media (prefers-reduced-motion: reduce) { .rig, .rig img { transition: none !important; } }

/* build loop from photos (build.js): frames stack and cross-fade */
.build { position: relative; width: calc(var(--w-mm) * var(--mm)); aspect-ratio: var(--ar);
         filter: drop-shadow(calc(3 * var(--mm)) calc(6 * var(--mm)) calc(5 * var(--mm)) rgba(var(--shadow), .34)); }
.build img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .26s ease; }
.build img.on { opacity: 1; }

/* real photos are transparent cut-outs: the page gives them a wall and a shadow */
img.cut { filter: drop-shadow(2px 5px 6px rgba(var(--shadow), .32)); }
.ph:has(> img.cut), figure:has(> img.cut) { background: var(--wall); }
.box .ph:has(> img.cut) { background: none; }
.others-row img.cut { background: var(--wall); filter: none; }

/* stand-in marker: every mocked photo/video carries one */
.mock { position: absolute; z-index: 5; left: 12px; top: 12px; max-width: calc(100% - 24px);
        background: #fffbe6; color: #3a2f00; border: 1.5px dashed #b58b00; border-radius: 8px;
        font: 600 12.5px/1.35 var(--text); padding: 6px 10px; }
.mock b { font-weight: 800; }
/* Stand-in labels mark each render still waiting for a real photo or video.
   Hidden unless the URL carries ?standins. */
.mock { display: none; }
body.show-standins .mock { display: block; }

/* hero: the wall, lit from the upper left */
.hero { background: radial-gradient(120% 90% at 18% 10%, var(--wall-lit), var(--wall) 60%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center;
             min-height: min(86vh, 860px); padding-bottom: 56px; }
.hero-copy { display: grid; gap: 26px; align-content: center; }
.hero-copy .lede { color: var(--ink); opacity: .78; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; display: grid; justify-items: center; gap: 18px;
            --mm: min(1.9px, 0.16vw); }
.hero-art figcaption { font-size: 15px; color: var(--mut); text-align: center; max-width: 40ch; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding: 12px 0 48px; gap: 36px; }
  .hero-art { --mm: 0.27vw; order: -1; }
}

/* the collection, hung to scale on one wall */
.collection { padding: 96px 0 104px; }
.section-head { display: grid; gap: 14px; margin-bottom: 56px; max-width: 60ch; }
.section-head p { color: var(--mut); font-size: 19px; }
.gallery { container-type: inline-size; }
/* one eye-line: every piece is centred in a row as tall as the tallest, labels line up beneath */
.hang { --mm: calc(100cqw / 1080); --row: calc(330 * var(--mm)); display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.hang > figure { display: grid; grid-template-rows: var(--row) auto; justify-items: center; align-items: center; gap: 22px; }
.hang > figure > figcaption { align-self: start; }
.switch { width: calc(86 * var(--mm)); aspect-ratio: 1; border-radius: calc(6 * var(--mm)); background: var(--peg);
          box-shadow: calc(1 * var(--mm)) calc(2 * var(--mm)) calc(4 * var(--mm)) rgba(var(--shadow), .3);
          display: grid; place-items: center; }
.switch::after { content: ""; width: 38%; height: 58%; border-radius: calc(3 * var(--mm));
                 background: color-mix(in srgb, var(--peg) 88%, #000); }
.switch-wrap { display: grid; grid-template-rows: var(--row) auto; justify-items: center; align-items: center; gap: 22px; }
.switch-wrap span { align-self: start; }
.switch-wrap span { font-size: 13px; color: var(--mut); text-align: center; max-width: 12ch; line-height: 1.3; }
.label { display: grid; gap: 4px; text-align: center; justify-items: center; }
.label h3 { font-size: 24px; }
.dim { position: relative; width: 100%; height: 14px; margin-bottom: 2px; }
.dim::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; border-top: 1.5px solid var(--mut); }
.dim::after { content: ""; position: absolute; inset: 0; border-left: 1.5px solid var(--mut); border-right: 1.5px solid var(--mut); }
.label .facts { font-size: 15.5px; color: var(--mut); }
.label .links { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 760px) {
  .hang { --mm: calc(100cqw / 370); flex-direction: column; align-items: center; gap: 64px; }
  .hang > figure { grid-template-rows: auto auto; }
  .switch-wrap { display: none; }
}

/* sheets: paper panels for reading */
.sheet { background: var(--paper); }
.how { padding: 104px 0; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
         counter-reset: step; }
.steps li { display: grid; gap: 16px; align-content: start; counter-increment: step; }
.steps .ph { position: relative; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--wall); }
.steps .ph img { width: 100%; height: 100%; object-fit: cover; }
.steps h3 { display: flex; gap: 12px; align-items: baseline; }
.steps h3::before { content: counter(step); font: 800 17px/1 var(--display); color: var(--acc-ink); background: var(--acc);
                    width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
                    transform: translateY(-3px); }
.steps p { color: var(--mut); max-width: 42ch; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 48px; } }

.box { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; align-items: center; margin-top: 112px; }
.box .ph { position: relative; border-radius: 6px; overflow: hidden; }
.box ul { list-style: none; padding: 0; display: grid; gap: 0; margin-top: 22px; }
.box li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.box li span:last-child { color: var(--mut); text-align: right; }
@media (max-width: 900px) { .box { grid-template-columns: 1fr; margin-top: 72px; } }

/* questions */
.faq { padding: 104px 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px;
          padding: 20px 0; font-weight: 700; font-size: 19px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 700 24px/1 var(--display); color: var(--acc); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 22px; color: var(--mut); max-width: 62ch; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 24px; } }

/* notify */
.notify { padding: 104px 0 96px; }
.notify-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: start; }
form.signup { display: grid; gap: 18px; }
fieldset { border: 0; padding: 0; display: grid; gap: 10px; }
legend { font-weight: 700; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px;
             border: 1.5px solid var(--line); background: var(--paper); font-weight: 600; }
.chip span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--mut); }
.chip input:checked + span { border-color: var(--acc); }
.chip input:checked + span::before { background: var(--acc); border-color: var(--acc); }
.chip input:focus-visible + span { outline: 3px solid var(--acc); outline-offset: 2px; }
.field { display: flex; gap: 10px; flex-wrap: wrap; }
.field input { flex: 1 1 240px; height: 52px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line);
               background: var(--paper); color: var(--ink); font: 17px var(--text); }
.field input:focus-visible { outline: 3px solid var(--acc); outline-offset: 1px; }
.done { font-weight: 700; color: var(--acc); }
@media (max-width: 900px) { .notify-card { grid-template-columns: 1fr; gap: 28px; } }

footer { padding: 40px 0 48px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 15px; color: var(--mut); }
footer nav { display: flex; gap: 22px; }

/* piece page */
.piece-hero { background: radial-gradient(110% 80% at 30% 15%, var(--wall-lit), var(--wall) 65%); padding-bottom: 72px; }
.piece-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.piece-art { --mm: min(1.7px, 0.13vw); display: grid; justify-items: center; gap: 22px; padding: 24px 0; }
.controls { display: grid; gap: 14px; width: min(100%, 420px); }
.controls label { display: grid; grid-template-columns: 7.5em 1fr; align-items: center; gap: 14px; font-weight: 600; font-size: 15px; }
input[type=range] { accent-color: var(--acc); width: 100%; }
.crumb { font-size: 15px; color: var(--mut); text-decoration: none; }
.crumb:hover { text-decoration: underline; }
dl.specs { display: grid; grid-template-columns: auto 1fr; margin-top: 8px; }
dl.specs dt, dl.specs dd { padding: 11px 0; border-top: 1px solid var(--line); }
dl.specs dt { color: var(--mut); padding-right: 24px; }
dl.specs dd { font-weight: 600; text-align: right; }
.swatches { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.swatches i { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.photos { padding: 96px 0; }
.photo-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.photo-grid figure { position: relative; border-radius: 6px; overflow: hidden; }
.photo-grid figure:first-child { grid-row: span 2; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.others { padding: 88px 0; }
.others-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.others-row a { position: relative; display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: center;
            text-decoration: none; padding: 16px; border-radius: 8px; background: var(--wall); }
.others-row a:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
.others-row img { border-radius: 4px; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 900px) {
  .piece-grid, .photo-grid, .others-row { grid-template-columns: 1fr; }
  .photo-grid figure:first-child { grid-row: auto; }
  .piece-art { --mm: 0.26vw; }
  .others-row a { grid-template-columns: 96px 1fr; }
}
.top-right { display: flex; align-items: center; gap: 22px; }
@media (max-width: 560px) { .top-right { gap: 10px; } }

/* build-guide finder and 404 */
.finder { display: grid; gap: 22px; max-width: 640px; padding: 56px 0 24px; }
.finder h1 { font-size: clamp(36px, 4.6vw, 60px); }
.finder form { display: grid; gap: 8px; }
.finder .field input { text-transform: lowercase; letter-spacing: .08em; }
.others-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .others-row.three { grid-template-columns: 1fr; } }
