/* ============================================================
   Diona — imported sections (final site)
   Dual alignment · finishes bank · provenance · floorplate.
   Drawn in the PLATE visual language: same tokens, type and
   hairlines as site.css. Loaded after site.css on pages that
   carry the imported sections.
   ============================================================ */

/* ---------- cover: hero fits above the fold (14" laptop) ---------- */
.sec--cover {
  min-height: calc(100vh - var(--head-h) - 37px);
  min-height: calc(100svh - var(--head-h) - 37px);
  display: flex;
  align-items: center;
  padding-top: var(--s-4);
  padding-bottom: var(--s-4);
}
.sec--cover .folio { font-size: clamp(48px, 7.4vw, 104px); }
.sec--cover .plate {
  max-height: calc(100vh - var(--head-h) - 120px);
  max-height: calc(100svh - var(--head-h) - 120px);
}
/* Short viewports (e.g. 1366×768): tighten to hold the fold. */
@media (max-height: 820px) and (min-width: 901px) {
  .sec--cover { padding-top: var(--s-3); padding-bottom: var(--s-3); }
  .sec--cover .folio { font-size: clamp(44px, 6vw, 84px); }
  .sec--cover .mt-4 { margin-top: var(--s-3); }
}
@media (max-width: 900px) {
  .sec--cover { min-height: 0; }
  .sec--cover .plate { max-height: none; }
}

/* ---------- dual alignment (two protocols) ---------- */
.dual { max-width: 40rem; margin-bottom: var(--s-4); }
.dual__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-2);
  background: var(--paper);
}
.dual__cell {
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-4);
  min-width: 0;
}
.dual__cell + .dual__cell { border-left: 1px solid var(--line-2); background: var(--bone); }
.dual__row { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-3); }
.ptag {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 10px;
  background: var(--ink);
  color: var(--paper);
}
.ptag--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.dual__title { font-family: var(--font-display); font-size: var(--t-h3); font-weight: 400; line-height: 1.12; }
.dual__body { margin-top: var(--s-2); font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.dual__cta { align-self: flex-start; }
@media (max-width: 900px) {
  .dual__grid { grid-template-columns: 1fr; }
  .dual__cell + .dual__cell { border-left: 0; border-top: 1px solid var(--line-2); }
}

/* ---------- finishes bank (sample box = specification board) ---------- */
.matbank__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-2);
}
.matbank__card {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  transition: border-color 0.25s var(--ease);
}
.matbank__card:hover { border-color: var(--ink); }
.matbank__img { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bone); margin-bottom: 12px; }
.matbank__img img { width: 100%; height: 100%; object-fit: cover; }
.matbank__hex {
  position: absolute;
  right: 6px; bottom: 6px;
  width: 16px; height: 16px;
  box-shadow: inset 0 0 0 1px rgba(22, 19, 14, 0.25);
}
.matbank__fam {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bronze-text);
}
.matbank__name {
  font-size: 13px;
  font-weight: 600;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.matbank__code {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--smoke);
  margin-top: 4px;
}
.matbank__foot { border-top: 1px solid var(--line); padding-top: 10px; }
.matbank__btn {
  width: 100%;
  padding: 8px 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--bone);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.matbank__btn:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.matbank__btn[aria-pressed="true"] { background: var(--bronze); color: var(--paper); box-shadow: inset 0 0 0 1px var(--bronze); }
@media (max-width: 1180px) { .matbank__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .matbank__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- provenance (architectural substances) ---------- */
.provenance__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-2);
  background: var(--paper);
}
.provenance__card {
  padding: var(--s-3);
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
}
.provenance__card + .provenance__card { border-left: 1px solid var(--line-2); }
.provenance__card .plate { aspect-ratio: 1; margin-bottom: var(--s-3); }
.provenance__name { font-family: var(--font-display); font-size: 22px; font-weight: 400; line-height: 1.15; margin-top: 6px; }
.provenance__card:hover .provenance__name { color: var(--oxide); }
.provenance__desc { font-size: 13px; color: var(--smoke); margin-top: 6px; flex: 1; }
.provenance__foot {
  margin-top: var(--s-3);
  padding-top: var(--s-2);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--smoke);
}
.provenance__foot b { color: var(--ink); font-weight: 400; }
.provenance__trunk {
  margin-top: var(--s-4);
  border: 1px solid var(--line-2);
  background: var(--paper);
  padding: var(--s-4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
@media (max-width: 1080px) {
  .provenance__grid { grid-template-columns: 1fr 1fr; }
  .provenance__card:nth-child(3) { border-left: 0; border-top: 1px solid var(--line-2); }
  .provenance__card:nth-child(4) { border-top: 1px solid var(--line-2); }
}
@media (max-width: 620px) {
  .provenance__grid { grid-template-columns: 1fr; }
  .provenance__card + .provenance__card { border-left: 0; border-top: 1px solid var(--line-2); }
}

/* ---------- floorplate (coordinated scene + hotspots) ---------- */
.floorplate__box { border: 1px solid var(--line-2); background: var(--bone); padding: var(--s-4); }
.floorplate__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-3);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: var(--s-3);
  margin-bottom: var(--s-4);
}
.floorplate__panel {
  min-width: 280px;
  max-width: 340px;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: var(--s-2) var(--s-3);
}
.floorplate__panel .kicker { color: var(--bronze-text); font-size: 10px; }
.floorplate__name { font-family: var(--font-display); font-size: 19px; margin-top: 6px; }
.floorplate__spec { font-size: 12px; color: var(--smoke); margin-top: 2px; }
.floorplate__link {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.floorplate__link:hover { color: var(--oxide); }
.floorplate__scene {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--line-2);
}
.floorplate__scene > img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(22, 19, 14, 0.92);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.25s var(--ease);
}
.hotspot:hover { background: var(--bronze); }
.hotspot[aria-current="true"] { background: var(--bronze); box-shadow: 0 0 0 4px rgba(245, 242, 235, 0.5); }
.hotspot__n { font-family: var(--font-mono); font-size: 11px; position: relative; z-index: 2; }
.hotspot__ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(245, 242, 235, 0.55);
  animation: hotspot-ping 2.2s var(--ease-io) infinite;
  pointer-events: none;
}
@keyframes hotspot-ping {
  0% { transform: scale(0.45); opacity: 0.9; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}
@media (max-width: 900px) {
  .floorplate__panel { max-width: none; width: 100%; }
  .floorplate__scene { aspect-ratio: 4 / 3; }
}

/* ---------- advisory desks directory ---------- */
.desks { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.desk {
  border: 1px solid var(--line-2);
  background: var(--paper);
  padding: var(--s-3);
}
.desk h3 { font-family: var(--font-display); font-size: 21px; font-weight: 400; }
.desk address { font-style: normal; font-size: 13px; color: var(--smoke); line-height: 1.65; margin-top: 8px; }
.desk address a { color: var(--oxide); text-decoration: none; }
.desk address a:hover { text-decoration: underline; }
.desk .code { display: block; margin-top: 8px; color: var(--ink); }
@media (max-width: 900px) { .desks { grid-template-columns: 1fr; } }

/* ---------- swatch library (specified contract swatches) ---------- */
.swlib { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.swlib__row {
  border: 1px solid var(--line-2);
  background: var(--paper);
  padding: var(--s-3);
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: var(--s-3);
  min-width: 0;
}
.swlib__img { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bone); align-self: start; }
.swlib__img img { width: 100%; height: 100%; object-fit: cover; }
.swlib__name { font-size: 16px; font-weight: 600; margin-top: 3px; }
.swlib__desc { font-size: 13px; color: var(--smoke); margin-top: 6px; }
.swlib__specs { margin-top: 10px; border-top: 1px solid var(--line); }
.swlib__specs div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.swlib__specs dt { color: var(--smoke); }
.swlib__specs dd { margin: 0; color: var(--ink); text-align: right; }
.swlib__foot { margin-top: 12px; max-width: 220px; }
@media (max-width: 1080px) { .swlib { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .swlib__row { grid-template-columns: 1fr; } .swlib__img { max-width: 220px; } }

/* ---------- raw substances ---------- */
.substance__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.substance {
  border: 1px solid var(--line-2);
  background: var(--paper);
  padding: var(--s-2);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.substance .plate { aspect-ratio: 4 / 3; margin-bottom: var(--s-2); }
.substance__name { font-family: var(--font-display); font-size: 20px; font-weight: 400; line-height: 1.15; margin-top: 4px; }
.substance__desc { font-size: 12px; color: var(--smoke); margin-top: 6px; flex: 1; }
.substance__specs { margin-top: 10px; border-top: 1px solid var(--line); }
.substance__specs div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.substance__specs dt { color: var(--smoke); }
.substance__specs dd { margin: 0; color: var(--ink); text-align: right; }
.substance__foot {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smoke);
}
@media (max-width: 1180px) { .substance__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .substance__grid { grid-template-columns: 1fr; } }

/* ---------- specified product pages ---------- */
.prodspec { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--s-2); margin-top: var(--s-3); }
.prodspec div { border-top: 1px solid var(--line-2); padding-top: 6px; }
.prodspec dt { font-family: var(--font-mono); font-size: var(--t-micro); letter-spacing: 0.18em; text-transform: uppercase; color: var(--smoke); }
.prodspec dd { margin: 2px 0 0; font-size: 13px; }
.pricetiers { width: 100%; border-collapse: collapse; margin-top: var(--s-3); font-size: 13px; }
.pricetiers th, .pricetiers td { text-align: left; padding: 8px 10px 8px 0; border-top: 1px solid var(--line); }
.pricetiers th { font-family: var(--font-mono); font-size: var(--t-micro); letter-spacing: 0.18em; text-transform: uppercase; color: var(--smoke); font-weight: 400; }
.pricetiers tr:last-child td { border-bottom: 1px solid var(--line); }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--oxide); }
