/* ==========================================================================
   V2 — collection pages (loads after v2.css)
   ========================================================================== */

/* fixed header is solid on subpages */
.hd--page { position: sticky; background: #fff; box-shadow: 0 1px 0 var(--line); }
.hd--page .hd__link, .hd--page .hd__menu { color: var(--ink); }
.hd--page .hd__logo img { filter: none; }

/* page head */
.phead { padding: clamp(2.6rem, 6vw, 4.5rem) 0 clamp(1.6rem, 3vw, 2.4rem); }
.phead__crumbs { font-size: 0.85rem; color: var(--faint); margin-bottom: 18px; }
.phead__crumbs a:hover { color: var(--ink); }
.phead__crumbs span { margin: 0 8px; color: var(--line); }
.phead h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.phead__intro { color: var(--gray); max-width: 640px; margin-top: 16px; }
.phead__meta { margin-top: 14px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); }

/* product grid */
.pgrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: clamp(18px, 2.6vw, 32px) clamp(16px, 2vw, 26px);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.pcard { display: grid; align-content: start; gap: 4px; }
.pcard__trigger {
  display: block; width: 100%; border-radius: 14px; overflow: hidden;
  background: var(--tint); margin-bottom: 10px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.pcard__trigger:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(20,18,16,.1); }
.pcard__trigger img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pcard__name { font-size: 0.98rem; font-weight: 600; line-height: 1.35; }
.pcard__sku { font-size: 0.78rem; color: var(--faint); letter-spacing: 0.04em; }
.pcard__mats { font-size: 0.85rem; color: var(--gray); }
.pcard__cta { margin-top: 8px; font-size: 0.88rem; font-weight: 600; border-bottom: 2px solid var(--gold); width: max-content; padding-bottom: 2px; }
.pcard__cta:hover { border-color: var(--ink); }

/* trade CTA band */
.tband { background: var(--tint); text-align: center; padding: clamp(3rem, 6vw, 5rem) 0; }
.tband p { color: var(--gray); max-width: 560px; margin: 0 auto 22px; }
.tband h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }

/* ---------- lightbox (restyled, same DOM/classes as lightbox.js) ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 18px; }
.lightbox[hidden] { display: none; }
.lightbox__overlay { position: absolute; inset: 0; background: rgba(15,13,11,.6); backdrop-filter: blur(3px); }
.lightbox__dialog {
  position: relative; background: #fff; border-radius: 18px;
  max-width: 920px; width: 100%; max-height: 92vh; overflow: auto;
  padding: clamp(18px, 3vw, 34px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.6vw, 30px);
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}
.lightbox__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; background: var(--tint);
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
}
.lightbox__close:hover { background: var(--line); }
.lightbox__figure { border-radius: 12px; overflow: hidden; background: var(--tint); align-self: start; }
.lightbox__figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.lightbox__meta { display: block; }
.lightbox__fig { font-size: 0.78rem; color: var(--faint); letter-spacing: 0.08em; text-transform: uppercase; }
.lightbox__title { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; margin-top: 6px; line-height: 1.3; }
.lightbox__sku { display: block; font-size: 0.8rem; color: var(--faint); margin-top: 6px; letter-spacing: 0.05em; }
.lightbox__materials { display: none; }
.lightbox__specs { list-style: none; margin-top: 18px; padding: 0; border-top: 1px solid var(--line); }
.lightbox__specs li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.lightbox__specs .lbl { color: var(--faint); font-size: 0.85rem; white-space: nowrap; }
.lightbox__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lightbox__chips .chip { font-size: 0.78rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--tint); color: var(--ink); }
.lightbox__thumbs { grid-column: 1 / -1; display: flex; gap: 10px; }
.lightbox__thumbs button { width: 68px; height: 68px; border-radius: 10px; overflow: hidden; background: var(--tint); }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__ctas { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 720px) {
  .lightbox { padding: 10px; }
  .lightbox__dialog { grid-template-columns: 1fr; max-height: 94vh; }
  .lightbox__figure img { aspect-ratio: 1; }
}

/* customization page: steps + five-liberties captions */
.steps { display: grid; gap: 14px; margin-top: 24px; }
.steps li { display: grid; gap: 2px; padding-left: 16px; border-left: 2px solid var(--gold); }
.steps li span { color: var(--gray); font-size: 0.93rem; }
.libert .mat__ar { font-family: 'Inter', system-ui, sans-serif; direction: ltr; text-align: left; font-size: 0.85rem; }
.libert { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 860px) { .libert { grid-template-columns: repeat(2, 1fr); } }

/* contact page: visit cards */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.6vw, 28px); }
.visit { display: grid; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 22px rgba(20,18,16,.07); transition: transform .25s ease, box-shadow .25s ease; }
.visit:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(20,18,16,.11); }
.visit__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.visit__body { padding: 20px 22px 24px; }
.visit__body h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.visit__body p { color: var(--gray); font-size: 0.95rem; margin-top: 4px; }
.visit__note { color: var(--gold-deep) !important; font-weight: 600; }
.visit .tlink { margin-top: 12px; }
@media (max-width: 720px) { .visit-grid { grid-template-columns: 1fr; } }

/* customization: drawing board section */
.draw-grid { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: clamp(20px, 3.5vw, 48px); align-items: start; }
.draw-reel video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 16px; background: #000; box-shadow: 0 6px 26px rgba(20,18,16,.12); }
.draw-reel figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--gray); }
.draw-pairs { display: grid; gap: clamp(18px, 3vw, 30px); }
.draw-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
.draw-pair img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: var(--tint); }
.draw-pair figcaption { margin-top: 8px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); text-align: center; }
.draw-arrow { font-size: 1.5rem; color: var(--gold-deep); font-weight: 700; }
@media (max-width: 860px) {
  .draw-grid { grid-template-columns: 1fr; }
  .draw-reel { max-width: 320px; margin: 0 auto; }
}

/* visit cards: compact, pin + flag instead of photos */
.visit { grid-template-columns: auto 1fr; align-items: center; gap: 4px 18px; padding: 22px 24px; }
.visit__pin { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--gold-deep); }
.visit__pin svg { width: 34px; height: 34px; }
.visit__pin img { border-radius: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.visit__body { padding: 0; }

/* subpage header: never invert the logo (beats .hd:not(.is-solid) rule) */
.hd.hd--page .hd__logo img { filter: none !important; }
.draw-note { grid-column: 1 / -1; font-size: 0.88rem; color: var(--faint); }
.draw-note em { font-style: normal; opacity: .8; }

/* ---------- collection HUB pages ---------- */
.subpills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.subpill { padding: 9px 16px; border-radius: 999px; background: var(--tint); font-size: 0.9rem; font-weight: 500; transition: background-color .2s ease, color .2s ease; }
.subpill:hover { background: var(--ink); color: #fff; }
.hubsub { padding: clamp(1.6rem, 3.5vw, 2.8rem) 0; }
.hubsub__head { margin-bottom: 14px; }
.hubsub__title { font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 800; letter-spacing: -0.02em; }
.hubsub__count { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.hubcard {
  flex: 0 0 min(270px, 70vw); scroll-snap-align: start;
  display: flex; flex-direction: column; min-width: 0;
}
.hubcard__media {
  display: block; border-radius: 14px; overflow: hidden; background: var(--tint);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hubcard__media:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(20,18,16,.1); }
.hubcard__media img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.hubcard__name { font-size: 0.95rem; font-weight: 600; line-height: 1.35; margin-top: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hubcard__name a:hover { color: var(--gold-deep); }
.hubcard__sku { font-size: 0.78rem; color: var(--faint); margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hubcard__links { display: flex; gap: 8px; margin-top: 10px; }
.hubcard__view, .hubcard__quote {
  font-size: 0.8rem; font-weight: 600; padding: 7px 12px; border-radius: 999px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.hubcard__view { background: var(--ink); color: #fff; }
.hubcard__view:hover { background: #000; }
.hubcard__quote { border: 1px solid var(--line); color: var(--ink); }
.hubcard__quote:hover { border-color: var(--wa); color: var(--wa); }
.hubsub .rooms { padding-top: 2px; }
.vargrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.6vw, 28px); }
.varcell { background: #fff; border-radius: 14px; padding: 22px 24px; box-shadow: 0 3px 18px rgba(20,18,16,.06); }
.varcell h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 12px; }
.varnote { color: var(--gray); font-size: 0.92rem; margin-top: 10px; }
.varcell .fchip { cursor: default; }
.varmats { justify-content: flex-start; margin: 0; }
@media (max-width: 860px) { .vargrid { grid-template-columns: 1fr; } }

/* customization: drawing board case-study layout */
.draw-board { display: grid; gap: clamp(18px, 2.6vw, 28px); min-width: 0; }
.draw-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.draw-strip figure img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #F5F1E8; }
.draw-strip figcaption, .draw-hero figcaption {
  margin-top: 6px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--faint); text-align: center;
}
.draw-hero { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
.draw-hero figure img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: #F5F1E8; box-shadow: 0 4px 20px rgba(20,18,16,.08); }
@media (max-width: 640px) {
  .draw-strip { grid-template-columns: repeat(2, 1fr); }
  .draw-hero { grid-template-columns: 1fr; }
  .draw-hero .draw-arrow { transform: rotate(90deg); justify-self: center; }
}
/* hero pair: show sheets/photos uncropped and larger */
.draw-hero figure img { aspect-ratio: auto; }
