/* page-level layouts */

/* ---- home hero -------------------------------------------------------------------------- */
.hero { padding-block: var(--s-7) var(--s-8); }
.hero__grid { display: grid; gap: var(--s-7); align-items: center; }
.hero h1 { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -.025em; margin-bottom: var(--s-5); font-weight: 350; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-bottom: var(--s-6); }
.hero__facts { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: var(--s-6) 0 0; padding: 0; list-style: none; color: var(--mute); font-size: var(--fs-sm); }
.hero__facts li::before { content: "✓"; margin-right: .4rem; color: var(--accent); font-weight: 700; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1fr 1.05fr; gap: var(--s-8); } .hero { padding-block: var(--s-8) var(--s-9); } }

.wall { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1 / .92; min-height: 300px;
  background: radial-gradient(120% 90% at 50% 0%, #efe9dc 0%, var(--wall) 55%, #d6cfbf 100%); }
.wall::after { content: ""; position: absolute; inset: auto 0 0 0; height: 14%; background: linear-gradient(#0000, rgb(34 32 30 / .07)); }
.wall__item { position: absolute; margin: 0; }
.wall__item .poster { height: auto; }
.wall__item--a { width: 31%; left: 6%; top: 24%; transform: rotate(-2.5deg); z-index: 1; }
.wall__item--b { width: 38%; left: 31%; top: 9%; z-index: 3; }
.wall__item--c { width: 31%; right: 6%; top: 20%; transform: rotate(2.5deg); z-index: 2; }
.wall__tag { position: absolute; left: 5%; bottom: 5%; z-index: 4; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2); background: rgb(251 249 244 / .85); padding: .35rem .75rem; border-radius: var(--r-pill); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (prefers-reduced-motion: no-preference) {
  .wall__item { animation: rise .9s var(--ease) both; }
  .wall__item--a { animation-delay: .15s; } .wall__item--c { animation-delay: .3s; }
  @keyframes rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
}

/* ---- steps ------------------------------------------------------------------------------ */
.steps { display: grid; gap: var(--s-6); counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-7); } }
.step { counter-increment: step; border-top: 1px solid var(--ink); padding-top: var(--s-4); }
.step::before { content: "0" counter(step); display: block; font-family: var(--font-serif); font-size: var(--fs-xl); color: var(--accent); margin-bottom: var(--s-4); }
.step h3 { margin-bottom: var(--s-2); }
.step p { color: var(--ink-2); margin: 0; }

/* ---- designs strip ---------------------------------------------------------------------- */
.strip { display: flex; gap: var(--s-5); overflow-x: auto; scroll-snap-type: x mandatory; padding: var(--s-2) var(--gutter) var(--s-5);
  margin-inline: calc(-1 * var(--gutter)); scrollbar-width: thin; scroll-padding-inline: var(--gutter); }
.strip > * { flex: 0 0 min(62vw, 240px); scroll-snap-align: start; }
@media (min-width: 1100px) { .strip { display: grid; grid-template-columns: repeat(6, 1fr); overflow: visible; padding-inline: 0; margin-inline: 0; } }
.design-card .poster-card__wall { padding: 11% 12%; }
.design-card__kind { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: .2rem; }

/* ---- occasions -------------------------------------------------------------------------- */
.occasions { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.occasion { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-5) var(--s-5);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none;
  font-family: var(--font-serif); font-size: var(--fs-xl); transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.occasion::after { content: "→"; font-family: var(--font-sans); color: var(--accent); transition: transform .2s var(--ease); }
.occasion:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.occasion:hover::after { transform: translateX(4px); }

/* ---- usp -------------------------------------------------------------------------------- */
.usp { display: grid; gap: var(--s-6) var(--s-7); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.usp__icon { width: 44px; height: 44px; margin-bottom: var(--s-4); color: var(--accent); }
.usp h3 { font-size: var(--fs-lg); margin-bottom: var(--s-2); }
.usp p { color: var(--ink-2); margin: 0; font-size: var(--fs-sm); }

/* ---- CTA band --------------------------------------------------------------------------- */
.cta-band { background: var(--ink); color: var(--bg); border-radius: var(--r-lg); overflow: hidden; position: relative; }
.cta-band__inner { padding: clamp(2rem, 6vw, 5rem) clamp(1.5rem, 6vw, 5rem); display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 800px) { .cta-band__inner { grid-template-columns: 1.4fr 1fr; } .cta-band__action { justify-self: end; } }
.cta-band h2 { color: var(--bg); font-size: var(--fs-3xl); margin: 0 0 var(--s-3); }
.cta-band p { color: #d5cfc3; margin: 0; max-width: 46ch; }
.cta-band .stripes-rule { height: 8px; }
.cta-band :focus-visible { outline-color: var(--bg); }

/* ---- designs page ----------------------------------------------------------------------- */
.design-row { display: grid; gap: var(--s-6); align-items: center; padding-block: var(--s-7); border-top: 1px solid var(--line); }
@media (min-width: 800px) {
  .design-row { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-8); }
  .design-row:nth-child(even) .design-row__art { order: 2; }
}
.design-row__art .poster-card__wall { padding: 12% 22%; border-radius: var(--r-lg); }
.design-row h2 { margin-bottom: var(--s-3); }
.design-row p { color: var(--ink-2); max-width: 46ch; }

/* ---- how it works page ------------------------------------------------------------------ */
.feature-row { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 800px) { .feature-row { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }

/* ---- prose (about, legal) --------------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--fs-xl); margin: var(--s-7) 0 var(--s-3); }
.prose h3 { font-size: var(--fs-lg); margin: var(--s-5) 0 var(--s-2); }
.prose p, .prose li { color: var(--ink-2); }
.prose a { color: var(--accent); }
.swatches { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); padding: 0; list-style: none; }
.swatches li { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); }
.swatches__chip { width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 1px solid var(--line-strong); flex: none; }

/* ---- 404 / stub ------------------------------------------------------------------------- */
.empty { padding-block: var(--s-9); text-align: center; }
.empty .big { font-family: var(--font-serif); font-size: clamp(5rem, 18vw, 11rem); line-height: 1; margin: 0 0 var(--s-4); letter-spacing: -.04em;
  background: linear-gradient(90deg, var(--stripe-1) 0 14%, var(--stripe-4) 14% 24%, var(--stripe-3) 24% 44%, var(--stripe-2) 44% 55%, var(--stripe-5) 55% 78%, var(--stripe-1) 78% 86%, var(--stripe-4) 86% 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.empty .lead { margin-inline: auto; margin-bottom: var(--s-6); }

/* ---- catalogue: filters, scenes, facts, tables ---------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin-bottom: var(--s-5); }
.filter-bar input[type="search"] { flex: 1 1 260px; max-width: 420px; }
.filters { display: grid; gap: var(--s-4); }
.filters__group { display: grid; gap: var(--s-2); }
a.chip { text-decoration: none; display: inline-flex; gap: .4rem; align-items: baseline; }
.chip--on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip__n { font-size: var(--fs-xs); opacity: .65; font-weight: 500; }
.pagination { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; justify-content: center; margin-top: var(--s-7); }
.pagination__info { color: var(--mute); font-size: var(--fs-sm); }

.scene { display: block; width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow); background: var(--wall); object-fit: cover; }  /* size from width/height attributes (scene_dims) */
.scene-wrap { min-width: 0; }
.scene-stack { display: grid; gap: var(--s-5); min-width: 0; }
.scene-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); min-width: 0; }
.scene-pair figure { margin: 0; min-width: 0; }
.scene-pair figcaption { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--mute); text-align: center; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: var(--s-4); margin: var(--s-6) 0 0; padding-top: var(--s-5); border-top: 1px solid var(--line); }
.facts dt { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.facts dd { margin: .2rem 0 0; font-weight: 600; }
.grid--6 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .grid--6 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid--6 { grid-template-columns: repeat(6, 1fr); } }
.price-table { width: 100%; border-collapse: collapse; margin-bottom: var(--s-4); }
.price-table th, .price-table td { text-align: left; padding: .8rem .6rem; border-bottom: 1px solid var(--line); }
.price-table th { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.cta-card { display: grid; gap: var(--s-6); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); }
.cta-card .poster { max-width: 220px; }
@media (min-width: 700px) { .cta-card { grid-template-columns: 220px 1fr; } }
.faq-group { font-size: var(--fs-xl); margin: var(--s-7) 0 var(--s-4); }
.steps--4 { grid-template-columns: 1fr; }
@media (min-width: 800px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } }
.steps--list { grid-template-columns: 1fr !important; gap: var(--s-4); margin-block: var(--s-5); }
.steps--list .step::before { display: none; }
.price-table td:first-child, .price-table th:first-child { white-space: nowrap; }

/* ---- data story (guide with "data": "colour_story"): decade stripes + tables ------------------------- */
.story-fig { margin: var(--s-5) 0; }
.story-stripes { display: grid; gap: 6px; }
.story-stripes__row { display: grid; grid-template-columns: 5.5rem 1fr; align-items: center; gap: var(--s-3); }
.story-stripes__label { font-size: var(--fs-xs); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.story-stripes__band { display: block; height: 30px; border-radius: 4px; }
.story-fig figcaption { margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--mute); }
.story-table-wrap { overflow-x: auto; margin: var(--s-4) 0 var(--s-5); }
.story-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.story-table caption { text-align: left; font-size: var(--fs-xs); color: var(--mute); padding-bottom: var(--s-2); }
.story-table th, .story-table td { text-align: left; padding: .5rem .5rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.story-table thead th { font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.story-table tbody th { font-weight: 600; }
.story-table .num { text-align: right; }
.story-bar { display: inline-block; vertical-align: middle; height: 8px; width: calc(var(--v) * .8px);
  margin-right: .5rem; border-radius: 0 4px 4px 0; }
.story-bar--warm { background: var(--stripe-1); }
.story-bar--cool { background: #2f5f8f; }
.story-bar--grey { background: var(--stripe-3); }
@media (max-width: 520px) { .story-bar { display: none; } .story-stripes__row { grid-template-columns: 4.2rem 1fr; } }
