/* design.css — shared by the static pages that do not use the page runtime:
   designs/<slug>.html (generated by _tools/build_design_pages.py) and 404.html.

   These pages keep the site's inline-style markup so mobile.css (which targets
   inline styles) applies to them exactly as it does everywhere else. This file
   holds what the other pages carry in their own <style> block — the page shell —
   plus the pieces that only a design page has. Load order: this file, then
   mobile.css. */

html { scroll-behavior: auto; }
body { margin: 0; background: #FFFFFF; font-family: 'Manrope', Helvetica, sans-serif; color: #000000; -webkit-font-smoothing: antialiased; }
::selection { background: #000000; color: #FFFFFF; }
a { color: #000000; }
img { display: block; }
html, body { max-width: 100%; }
@keyframes heroVeil { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* ---------- page shell, tablet and phone (same rules as the runtime pages) ---------- */
@media (max-width: 1099px) {
  [data-screen-label], [data-nav] { min-width: 0 !important; }
  section, header, footer { padding-left: 20px !important; padding-right: 20px !important; }
  [data-nav] { padding-left: 20px !important; padding-right: 20px !important; }
  [style*="grid-template-columns: repeat(2"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }
  [style*="max-width: 520px"], [style*="max-width: 620px"], [style*="max-width: 720px"] { max-width: 100% !important; }
  [style*="gap: 64px"] { flex-wrap: wrap !important; gap: 24px !important; }
  [data-screen-label] { overflow-x: hidden !important; }
  *, *::before, *::after { min-width: 0 !important; }
  [style*="flex-shrink: 0"] { flex-shrink: 1 !important; }
  [style*="display: flex"]:not([style*="flex-direction: column"]) { flex-wrap: wrap !important; }
  h1, h2, h3, p, span, a { overflow-wrap: break-word; }
}
@media (max-width: 620px) {
  section, header, footer { padding-left: 16px !important; padding-right: 16px !important; }
  h1 { font-size: clamp(30px, 10.5vw, 52px) !important; line-height: 0.95 !important; }
  h2 { font-size: clamp(26px, 8.5vw, 42px) !important; line-height: 1 !important; }
  h3 { font-size: clamp(19px, 6vw, 28px) !important; }
  [style*="padding: 150px"] { padding-top: 104px !important; }
}
@media (min-width: 1101px) {
  [data-screen-label] { min-width: 1100px; }
  nav[data-nav] { min-width: 1100px; }
}

/* ---------- design page ---------- */

/* action buttons under the title */
.dz-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dz-btn {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  min-height: 46px; padding: 0 22px; border: 1px solid rgba(0,0,0,0.3); background: transparent; color: #000000;
  font-family: inherit; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-decoration: none; cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.dz-btn:hover { border-color: #000000; background: rgba(0,0,0,0.05); color: #000000; }
.dz-btn--solid { background: #000000; border-color: #000000; color: #FFFFFF; }
.dz-btn--solid:hover { background: #333333; border-color: #333333; color: #FFFFFF; }

/* the stage: one face, large, on a quiet ground so a white marble still has an edge */
.dz-stage { background: #F4F4F4; padding: 64px 48px 34px; }
.dz-face {
  position: relative; max-width: 1400px; margin: 0 auto; aspect-ratio: 2 / 1; background: #FFFFFF;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.28), 0 2px 6px rgba(0,0,0,0.06);
}
.dz-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.35s ease; }
.dz-face img[data-swapping] { opacity: 0; }
.dz-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; z-index: 2;
  border: 1px solid rgba(0,0,0,0.25); background: rgba(255,255,255,0.92); color: #000000;
  font-family: inherit; font-size: 16px; cursor: pointer; transition: background 0.25s, color 0.25s;
}
.dz-arrow:hover { background: #000000; color: #FFFFFF; }
.dz-arrow[data-dir="-1"] { left: 18px; }
.dz-arrow[data-dir="1"] { right: 18px; }
.dz-stagebar {
  max-width: 1400px; margin: 26px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; color: rgba(0,0,0,0.5);
}
.dz-thumbs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.dz-thumb { width: 84px; height: 42px; padding: 0; border: 1px solid rgba(0,0,0,0.14); background: #FFFFFF; cursor: pointer; overflow: hidden; transition: border-color 0.25s; }
.dz-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dz-thumb:hover { border-color: rgba(0,0,0,0.55); }
.dz-thumb[aria-current="true"] { border-color: #000000; outline: 1px solid #000000; }

/* the laid floor: twelve tiles from this design's faces, hairline joints */
.dz-floor { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: #DADADA; border: 2px solid #DADADA; }
.dz-floor div { aspect-ratio: 2 / 1; overflow: hidden; background: #F4F4F4; }
.dz-floor img { width: 100%; height: 100%; object-fit: cover; }
.dz-floor img[data-turn] { transform: rotate(180deg); }

/* specification rows */
.dz-spec { display: grid; grid-template-columns: 240px 1fr; gap: 0 32px; margin: 0; }
.dz-spec dt, .dz-spec dd { margin: 0; padding: 17px 0; border-bottom: 1px solid rgba(0,0,0,0.12); }
.dz-spec dt { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; color: rgba(0,0,0,0.5); }
.dz-spec dd { font-size: 16px; line-height: 1.5; }

/* related designs */
.dz-card { display: flex; flex-direction: column; text-decoration: none; color: #000000; border: 1px solid rgba(0,0,0,0.12); transition: border-color 0.3s; }
.dz-card:hover { border-color: #000000; color: #000000; }
.dz-card div:first-child { aspect-ratio: 2 / 1; overflow: hidden; background: #F4F4F4; }
.dz-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.dz-card:hover img { transform: scale(1.03); }

/* previous / all / next */
.dz-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; border-top: 1px solid rgba(0,0,0,0.15); border-bottom: 1px solid rgba(0,0,0,0.15); }
.dz-pager a { text-decoration: none; color: #000000; padding: 34px 0; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; transition: color 0.25s; }
.dz-pager a:hover { color: #808080; }
.dz-pager a:last-child { text-align: right; }
.dz-pager small { display: block; margin-bottom: 8px; font-size: 10.5px; letter-spacing: 0.2em; color: rgba(0,0,0,0.45); }
.dz-pager b { font-size: clamp(16px, 1.7vw, 24px); font-weight: 800; letter-spacing: -0.01em; text-transform: uppercase; }

@media (max-width: 1099px) {
  .dz-stage { padding: 34px 20px 26px; }
  .dz-floor { grid-template-columns: repeat(3, 1fr); }
  .dz-spec { grid-template-columns: 180px 1fr; }
}
@media (max-width: 620px) {
  .dz-stage { padding: 20px 16px 22px; }
  .dz-face { box-shadow: 0 22px 40px -22px rgba(0,0,0,0.3), 0 1px 4px rgba(0,0,0,0.06); }
  .dz-arrow { width: 40px; height: 40px; font-size: 14px; }
  .dz-arrow[data-dir="-1"] { left: 8px; }
  .dz-arrow[data-dir="1"] { right: 8px; }
  .dz-stagebar { flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 18px; }
  /* six across in even columns, so no face sits alone on a row */
  .dz-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); width: 100%; }
  /* an aspect-ratio item does not stretch to its column, so the width is set outright */
  .dz-thumb { width: 100%; height: auto; min-width: 0; aspect-ratio: 2 / 1; }
  .dz-thumb img { display: block; }
  .dz-actions .dz-btn { flex: 1 1 calc(50% - 4px); padding: 0 12px; }
  .dz-floor { grid-template-columns: repeat(2, 1fr); }
  .dz-spec { grid-template-columns: 1fr; }
  .dz-spec dt { padding: 15px 0 0; border-bottom: none; }
  .dz-spec dd { padding: 6px 0 15px; }
  .dz-pager { grid-template-columns: 1fr 1fr; }
  .dz-pager a { padding: 22px 0; }
  .dz-pager a.dz-all { grid-column: 1 / -1; grid-row: 2; text-align: center; padding: 18px 0; border-top: 1px solid rgba(0,0,0,0.15); }
}

@media (prefers-reduced-motion: reduce) {
  .dz-face img, .dz-card img { transition: none; }
}
