/* LuxeAfford Design Showroom — owner-facing look-and-feel picker. */

@import url("../../css/tokens.css");

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-on-dark);
  font-family: var(--ui);
  font-size: 1rem;
  line-height: 1.55;
  padding-bottom: 5.5rem; /* sticky tray */
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ——— Showroom chrome (meta UI) ——— */
.sr-banner {
  background: var(--ground-elevated);
  color: var(--demo);
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 0.55rem var(--pad);
  border-bottom: 1px solid var(--line-on-dark);
}

.sr-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-on-dark);
  padding: 0.75rem var(--pad);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.sr-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}
a.sr-brand:hover .label { color: var(--blush-soft); }
.sr-brand img { width: 7.5rem; height: auto; }
.sr-brand .label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blush);
}

.sr-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-left: auto;
}
.sr-nav a {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-pill);
  color: var(--ink-muted);
  border: 1px solid transparent;
}
.sr-nav a:hover { color: var(--blush-soft); }

/* Subtle invite pulse — inactive stage tabs read as switchable surfaces */
@keyframes sr-nav-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(196, 152, 158, 0);
    border-color: rgba(196, 152, 158, 0.22);
  }
  50% {
    box-shadow: 0 0 10px 1px rgba(196, 152, 158, 0.28);
    border-color: rgba(196, 152, 158, 0.45);
  }
}
.sr-nav a:not(.is-active):not([aria-current="page"]) {
  border-color: rgba(196, 152, 158, 0.22);
  animation: sr-nav-glow 2.8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .sr-nav a:not(.is-active):not([aria-current="page"]) {
    animation: none;
    border-color: rgba(196, 152, 158, 0.35);
  }
}
.sr-nav a[aria-current="page"],
.sr-nav a.is-active {
  color: var(--blush);
  border-color: var(--line-on-dark);
  background: var(--ground-elevated);
}

.sr-ornament-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  width: 100%;
  padding-top: 0.35rem;
  border-top: 1px solid var(--line-on-dark);
}
.sr-ornament-toggle .kicker {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-right: 0.35rem;
}
.sr-ornament-toggle button {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-on-dark);
  background: transparent;
  color: var(--ink-on-dark);
  cursor: pointer;
}
.sr-ornament-toggle button[aria-pressed="true"] {
  background: var(--blush);
  color: var(--on-blush);
  border-color: var(--blush);
}
.sr-ornament-toggle button.is-guarded {
  border-style: dashed;
  color: var(--hold);
}
.sr-ornament-toggle button.is-lean::after {
  content: " ★";
  color: inherit;
}

.sr-layer { display: none; padding: clamp(2rem, 5vw, 3.5rem) 0 4rem; }
.sr-layer.is-visible { display: block; }

.wrap {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}
.wrap-wide {
  width: min(100% - 2 * var(--pad), 90rem);
  margin-inline: auto;
}

.layer-intro {
  margin-bottom: 2.5rem;
  max-width: 40rem;
}
.layer-intro h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 0.75rem;
}
.layer-intro p { color: var(--ink-muted); margin: 0; }
.layer-intro .eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blush);
  margin: 0 0 0.75rem;
}

/* ——— Shared LuxeAfford visual elements ——— */
.demo-banner {
  background: var(--ground-elevated);
  color: var(--demo);
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--line-on-dark);
}
.demo-tag {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--demo);
  margin-left: 0.35rem;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 1.25rem;
  background: var(--ground);
  border-bottom: 1px solid var(--line-on-dark);
  flex-wrap: wrap;
}
.wordmark img { width: 9.5rem; height: auto; }
.site-nav {
  display: flex;
  gap: 1.35rem;
  margin-left: auto;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.site-nav a[aria-current="page"] {
  color: var(--blush);
  box-shadow: 0 1px 0 var(--blush);
}
.bag {
  margin-left: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blush);
}
.header-quiet {
  margin-left: auto;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  font-family: var(--ui);
  border-radius: var(--radius-pill);
  text-decoration: none;
}
.btn-fill { background: var(--blush); color: var(--on-blush); }
.btn-fill:hover { background: var(--blush-soft); }
.btn-fill:focus-visible { outline: 2px solid var(--blush-soft); outline-offset: 3px; }
.btn-fill:active { transform: translateY(1px); filter: brightness(0.95); }
.btn-ghost {
  background: transparent;
  color: var(--ink-on-dark);
  box-shadow: inset 0 0 0 1px var(--blush);
}
.btn-ghost:hover {
  color: var(--blush-soft);
  box-shadow: inset 0 0 0 1px var(--blush-soft);
}
.btn-ghost:focus-visible { outline: 2px solid var(--blush); outline-offset: 3px; }
.btn-ghost:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
}
.btn.is-selected {
  box-shadow: inset 0 0 0 2px var(--blush-soft), 0 0 0 1px var(--blush);
}

/* Candidate link/text extension (labeled) */
.link-text {
  color: var(--blush);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(212, 160, 168, 0.45);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.link-text:hover { color: var(--blush-soft); text-decoration-color: var(--blush-soft); }
.candidate-label {
  display: inline-block;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hold);
  border: 1px dashed var(--line-on-dark);
  padding: 0.15rem 0.4rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blush);
  margin: 0 0 0.75rem;
}
h1, h2, .display {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.8rem); }
h3 {
  font-family: var(--display);
  font-weight: 500;
  margin: 0.5rem 0 0.2rem;
  font-size: 1.25rem;
}
.lede { max-width: 32rem; color: var(--ink-muted); }
.accent-line { color: var(--blush); }

.band { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.band.dark { background: var(--ground); }
.band.charcoal { background: var(--ground-elevated); }
.band.soft { background: var(--ground-soft); }

.plate { margin: 0; }
.plate img {
  width: auto;
  max-width: min(100%, 16rem);
  max-height: 18rem;
  object-fit: contain;
  border-radius: var(--radius-card);
}
.plate figcaption {
  margin-top: 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1rem 0; }
.chips button {
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--line-on-dark);
  background: transparent;
  color: var(--ink-on-dark);
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  border-radius: var(--radius-pill);
}
.chips button[aria-pressed="true"] {
  background: var(--blush);
  color: var(--on-blush);
  border-color: var(--blush);
}
.chips button:focus-visible { outline: 2px solid var(--blush); outline-offset: 2px; }
.chips button:disabled { opacity: 0.35; cursor: not-allowed; }

.shelf-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
  margin-top: 1.5rem;
}
.shelf-row .shelf-card,
.shelf-row .decision-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}
.shelf-row .decision-card img,
.shelf-row .shelf-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: none;
  height: auto;
  object-fit: cover;
}
.shelf-row .decision-card h3,
.shelf-row .shelf-card h3 {
  flex: 1 1 auto;
  margin: 0.35rem 0 0.25rem;
  font-size: 1.05rem;
}
.shelf-card a:hover h3 { color: var(--blush); }
.price { font-size: 0.85rem; color: var(--ink-muted); margin-top: auto; }
@media (max-width: 1100px) {
  .shelf-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .shelf-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.branch {
  display: grid;
  grid-template-columns: auto 3.2rem 1fr auto;
  gap: 0.85rem;
  align-items: center;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line-on-dark);
  padding: 1.05rem 0.2rem;
  font: inherit;
  cursor: pointer;
  color: inherit;
}
.branch[aria-pressed="true"] { box-shadow: inset 0 -2px 0 var(--blush); }
.branch .n { font-size: 0.68rem; letter-spacing: 0.12em; color: var(--ink-muted); }
.branch img {
  width: 3.2rem; height: 3.2rem;
  object-fit: cover;
  border-radius: var(--radius-card);
}
.branch:focus-visible { outline: 2px solid var(--blush); outline-offset: 2px; }

.fields label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blush);
  margin: 1rem 0 0.35rem;
}
.fields input,
.fields textarea,
.fields select {
  width: min(100%, 28rem);
  font: inherit;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line-on-dark);
  background: var(--ground-elevated);
  color: var(--ink-on-dark);
  border-radius: var(--radius-card);
}
.fields input:focus,
.fields textarea:focus,
.fields select:focus {
  outline: 1px solid var(--blush);
  border-color: var(--blush);
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem 1.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--ground);
  border-top: 1px solid var(--line-on-dark);
}
.site-footer nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-tag {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--ink-muted);
  margin: 0.35rem 0 0;
}

.path-chips { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.path-chip {
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-align: left;
}
.path-chip:hover,
.path-chip[aria-pressed="true"] {
  border-color: var(--blush);
  box-shadow: inset 0 -2px 0 var(--blush);
  color: var(--blush-soft);
}

.checkout-steps {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.checkout-steps span { color: var(--ink-muted); }
.checkout-steps span[aria-current="step"] {
  color: var(--blush);
  box-shadow: 0 1px 0 var(--blush);
}

/* ——— Inventory panel ——— */
.inv-grid {
  display: grid;
  gap: 2rem;
}
.inv-block {
  background: var(--ground-elevated);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}
.inv-block h2 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}
.inv-meta {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hold);
  margin: 0 0 1.25rem;
}
.state-row {
  display: grid;
  grid-template-columns: 7.75rem max-content max-content;
  column-gap: 0.85rem;
  row-gap: 0.5rem;
  align-items: center;
  margin: 0.5rem 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid transparent; /* reserve space so Live border doesn't shift columns */
  border-radius: var(--radius-card);
  box-sizing: border-box;
}
.state-row .btn {
  justify-self: start;
  min-width: 13.5rem; /* equal button widths → shared left edge across rows */
  box-sizing: border-box;
}
.state-cap {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  min-width: 0;
}
.state-hint {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin: 0 0 0.85rem;
  line-height: 1.45;
}
.state-hint code {
  font-size: 0.72rem;
  color: var(--blush-soft);
}
.state-row-live {
  border-color: rgba(212, 160, 168, 0.35);
  border-style: dashed;
}
.token-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.swatch {
  width: 4.5rem;
  text-align: center;
  font-size: 0.62rem;
  color: var(--ink-muted);
}
.swatch i {
  display: block;
  width: 4.5rem;
  height: 2.5rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--line-on-dark);
  margin-bottom: 0.35rem;
}

/* ——— Design element collection ——— */
.collection-cat {
  margin-bottom: 3rem;
}
.collection-cat > h2 {
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
}
.collection-cat > .lede { margin-bottom: 1.25rem; }
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.25rem;
}
.option-card {
  background: var(--ground-elevated);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-card);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
}
.option-card .opt-preview {
  background: var(--ground);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-card);
  padding: 1rem;
  min-height: 6.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.option-card h3 { font-size: 1.05rem; margin: 0; }
.option-card .opt-desc {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin: 0;
  flex: 1;
}
.judge-row {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.judge-row button {
  flex: 1;
  min-width: 4.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-on-dark);
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
}
.judge-row button[aria-pressed="true"][data-judge="keep"] {
  background: var(--blush); color: var(--on-blush); border-color: var(--blush);
}
.judge-row button[aria-pressed="true"][data-judge="maybe"] {
  color: var(--blush-soft); border-color: var(--blush);
}
.judge-row button[aria-pressed="true"][data-judge="reject"] {
  color: var(--hold); border-color: var(--hold); opacity: 0.85;
}

/* Collection candidate ornament previews */
.preview-header-a {
  width: 100%;
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.55rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.preview-header-a img { width: 4.5rem; }
.preview-header-b {
  width: 100%; text-align: center;
  font-size: 0.55rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-muted);
}
.preview-header-b img { width: 5rem; margin: 0 auto 0.5rem; }
.preview-header-c {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.55rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.preview-header-c img { width: 4rem; }

.preview-flourish-rule {
  width: 3rem; height: 1px; background: var(--blush);
}
.preview-flourish-diamond {
  width: 0.45rem; height: 0.45rem;
  background: var(--blush);
  transform: rotate(45deg);
}
.preview-flourish-motif {
  width: 1.1rem; height: 1.1rem;
  border: 1px solid var(--blush);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  opacity: 0.7;
}

.preview-card-flat {
  width: 100%; padding: 0.75rem;
  border: 1px solid var(--line-on-dark);
  font-size: 0.75rem; color: var(--ink-muted);
}
.preview-card-row {
  width: 100%;
  display: grid; grid-template-columns: 2.5rem 1fr;
  gap: 0.5rem; align-items: center;
  border-top: 1px solid var(--line-on-dark);
  padding: 0.5rem 0;
  font-size: 0.7rem;
}
.preview-card-row img { width: 2.5rem; height: 2.5rem; object-fit: cover; border-radius: 0.2rem; }

.preview-frame-demo {
  position: relative;
  width: 100%;
  padding: 0.85rem;
  font-size: 0.75rem;
  color: var(--ink-muted);
}
.preview-frame-demo::before,
.preview-frame-demo::after {
  content: "";
  position: absolute;
  width: 0.85rem; height: 0.85rem;
  border-color: var(--blush);
  border-style: solid;
}
.preview-frame-demo::before {
  top: 0; left: 0;
  border-width: 1px 0 0 1px;
}
.preview-frame-demo::after {
  bottom: 0; right: 0;
  border-width: 0 1px 1px 0;
}

.hold-badge {
  display: inline-block;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hold);
  border: 1px dashed var(--hold);
  padding: 0.15rem 0.4rem;
}

/* ——— Directions ——— */
.dir-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  width: 100%;
}
.dir-tabs button {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-on-dark);
  background: transparent;
  color: var(--ink-on-dark);
  cursor: pointer;
  width: 100%;
  min-width: 0;
  text-align: center;
}
.dir-tabs button[aria-pressed="true"] {
  background: var(--blush);
  color: var(--on-blush);
  border-color: var(--blush);
}
.dir-tabs button .sub {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  opacity: 0.8;
  margin-top: 0.15rem;
  text-transform: none;
}

.direction-panel { display: none; }
.direction-panel.is-active { display: block; }

.direction-shell {
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--ground);
}
.dir-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: var(--ground-elevated);
  border-bottom: 1px solid var(--line-on-dark);
  font-size: 0.72rem;
  color: var(--ink-muted);
}
.dir-meta-bar strong { color: var(--ink-on-dark); font-weight: 600; }
.dir-judge { margin-left: auto; }

/* Shared content blocks inside directions */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: stretch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.decision-card {
  position: relative;
  background: var(--ground-elevated);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-card);
  padding: 1rem;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  width: 100%;
}
.decision-card img {
  width: 100%;
  max-height: 7rem;
  object-fit: cover;
  border-radius: var(--radius-card);
  margin-bottom: 0.65rem;
}
.decision-card[aria-pressed="true"] {
  border-color: var(--blush);
}
.gallery-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.gallery-row .plate img { max-width: 100%; width: 100%; max-height: 14rem; object-fit: cover; }

.form-fragment {
  margin-top: 1.5rem;
  max-width: 28rem;
}
.cta-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

/* ——— Ornament density system (Art lock SHOWROOM-ORNAMENT-DENSITY) ——— */
.ornament,
.band-rule,
.stage-dot,
.band-motif { display: none; }

/* B accent — Art lean DEFAULT */
[data-ornament="accent"] .band-rule {
  display: block;
  width: 2.75rem;
  height: 1px;
  background: var(--blush);
  margin: 0.65rem 0 1.1rem;
  border: 0;
}
[data-ornament="accent"] .stage-dot {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.75rem 0;
  gap: 0;
}
[data-ornament="accent"] .stage-dot::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  background: var(--blush);
  transform: rotate(45deg);
  opacity: 0.85;
}
[data-ornament="accent"] .decision-card[aria-pressed="true"],
[data-ornament="accent"] .path-chip[aria-pressed="true"] {
  box-shadow: inset 3px 0 0 var(--blush);
}

/* C frame — L-brackets on active decision cards */
[data-ornament="frame"] .band-rule {
  display: block;
  width: 2.75rem;
  height: 1px;
  background: var(--blush);
  margin: 0.65rem 0 1.1rem;
}
[data-ornament="frame"] .decision-card {
  border-color: transparent;
  background: var(--ground-elevated);
}
[data-ornament="frame"] .decision-card::before,
[data-ornament="frame"] .decision-card::after {
  content: "";
  position: absolute;
  width: 0.9rem;
  height: 0.9rem;
  border-color: rgba(212, 160, 168, 0.55);
  border-style: solid;
  pointer-events: none;
  transition: border-color 0.15s, width 0.15s, height 0.15s;
}
[data-ornament="frame"] .decision-card::before {
  top: 0.35rem; left: 0.35rem;
  border-width: 1px 0 0 1px;
}
[data-ornament="frame"] .decision-card::after {
  bottom: 0.35rem; right: 0.35rem;
  border-width: 0 1px 1px 0;
}
[data-ornament="frame"] .decision-card:hover::before,
[data-ornament="frame"] .decision-card:hover::after,
[data-ornament="frame"] .decision-card[aria-pressed="true"]::before,
[data-ornament="frame"] .decision-card[aria-pressed="true"]::after {
  border-color: var(--blush-soft);
  width: 1.1rem;
  height: 1.1rem;
}
[data-ornament="frame"] .decision-card[aria-pressed="true"] {
  box-shadow: none;
  border-color: transparent;
}

/* D motif — GUARDED sparse band headers only */
[data-ornament="motif"] .band-rule {
  display: block;
  width: 2.75rem;
  height: 1px;
  background: var(--blush);
  margin: 0.65rem 0 1.1rem;
}
[data-ornament="motif"] .band-motif {
  display: inline-block;
  width: 0.95rem;
  height: 0.95rem;
  margin-right: 0.55rem;
  vertical-align: -0.1rem;
  opacity: 0.75;
}
[data-ornament="motif"] .band-motif svg {
  display: block;
  width: 100%;
  height: 100%;
}
[data-ornament="motif"] .stage-dot {
  display: flex;
  justify-content: center;
  margin: 1.75rem 0;
}
[data-ornament="motif"] .stage-dot::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  background: var(--blush);
  transform: rotate(45deg);
  opacity: 0.7;
}
[data-ornament="motif"] .confirm-strip .band-motif { display: inline-block; }

/* Direction composition variants (beyond ornament) */
.dir-a .hero-split { /* baseline DNA — developed */ }
.dir-b .band { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.dir-b .hero-split {
  grid-template-columns: 1fr;
  max-width: 36rem;
}
.dir-b .hero-split .plate { display: none; }
.dir-b .lede { max-width: 28rem; font-size: 1.05rem; }
.dir-b .choice-grid { grid-template-columns: 1fr 1fr; max-width: 32rem; }
.dir-b .site-nav { gap: 1.75rem; }
.dir-b .gallery-row { grid-template-columns: 1fr 1fr; max-width: 28rem; }
.dir-b .gallery-row .plate:last-child { display: none; }

.dir-c .site-header {
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 0.85rem;
}
.dir-c .site-nav { margin-left: 0; justify-content: center; }
.dir-c .bag, .dir-c .header-cta { margin-left: 0; }
.dir-c .hero-split {
  grid-template-columns: minmax(10rem, 5fr) minmax(0, 6fr);
}
.dir-c .choice-grid { gap: 1.35rem; }
.dir-c .band.charcoal { background: var(--ground-soft); }

.dir-d .process-rail {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.dir-d .process-rail span {
  color: var(--ink-muted);
  padding-bottom: 0.2rem;
}
.dir-d .process-rail span[aria-current="step"] {
  color: var(--blush);
  box-shadow: 0 1px 0 var(--blush);
}
.dir-d .hero-split { grid-template-columns: 1fr; }
.dir-d .guided-stack { max-width: 36rem; }
.dir-d .choice-grid { grid-template-columns: 1fr; max-width: 28rem; }
.dir-d .decision-card {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  align-items: center;
  text-align: left;
}
.dir-d .decision-card img {
  margin: 0;
  max-height: 4.5rem;
  width: 4.5rem;
  height: 4.5rem;
}

/* ——— Workbench ——— */
.mode-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.mode-toggle button {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-on-dark);
  background: transparent;
  color: var(--ink-on-dark);
  cursor: pointer;
}
.mode-toggle button[aria-pressed="true"] {
  background: var(--blush);
  color: var(--on-blush);
  border-color: var(--blush);
}

.wb-systems {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}
.wb-system {
  border: 1px solid var(--line-on-dark);
  background: var(--ground-elevated);
  padding: 1.15rem;
  border-radius: var(--radius-card);
}
.wb-system h3 { margin-top: 0; font-size: 1.2rem; }
.wb-system p { font-size: 0.85rem; color: var(--ink-muted); margin: 0.5rem 0 1rem; }

.wb-family-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}
.wb-family-label {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.wb-family-select {
  font-family: var(--ui);
  font-size: 0.85rem;
  color: var(--ink-on-dark);
  background: var(--ground-elevated);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-card);
  padding: 0.45rem 0.75rem;
  min-width: 12rem;
}
.wb-family-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex: 1 1 100%;
}
.wb-family-tabs button {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-on-dark);
  background: transparent;
  color: var(--ink-on-dark);
  cursor: pointer;
}
.wb-family-tabs button[aria-selected="true"],
.wb-family-tabs button[aria-pressed="true"] {
  background: var(--blush);
  color: var(--on-blush);
  border-color: var(--blush);
}
.wb-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}
.wb-compare-card {
  margin: 0;
  height: 100%;
}
.wb-compare-grid .empty-hint {
  grid-column: 1 / -1;
  color: var(--ink-muted);
  font-size: 0.9rem;
}
@media (max-width: 900px) {
  .wb-compare-grid {
    grid-template-columns: 1fr;
  }
}

.composite-preview {
  margin-top: 2rem;
  border: 1px solid var(--line-on-dark);
  background: var(--ground-elevated);
  padding: 1.5rem;
  border-radius: var(--radius-card);
}
.composite-preview h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.composite-preview .empty-hint { color: var(--ink-muted); font-size: 0.9rem; }
.composite-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.composite-slot {
  border: 1px dashed var(--line-on-dark);
  padding: 0.85rem;
  min-height: 5rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
}
.composite-slot.has-keep {
  border-style: solid;
  border-color: var(--blush);
  color: var(--ink-on-dark);
}
.composite-slot strong {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--blush);
  margin-bottom: 0.35rem;
}

/* Sticky selection tray */
.sel-tray {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(20, 20, 20, 0.96);
  border-top: 1px solid var(--line-on-dark);
  padding: 0.65rem var(--pad);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  font-size: 0.72rem;
}
.sel-tray .counts span { margin-right: 0.85rem; color: var(--ink-muted); }
.sel-tray .counts .k { color: var(--blush); }
.sel-tray .counts .m { color: var(--blush-soft); }
.sel-tray .counts .r { color: var(--hold); }
.sel-tray-actions { margin-left: auto; display: flex; gap: 0.5rem; }
.sel-tray-actions button {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-on-dark);
  background: transparent;
  color: var(--ink-on-dark);
  cursor: pointer;
}
.sel-tray-actions button.primary {
  background: var(--blush);
  color: var(--on-blush);
  border-color: var(--blush);
}

.token-note {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 0.75rem;
}
.token-note code {
  font-size: 0.75rem;
  color: var(--blush-soft);
}

@media (max-width: 900px) {
  .sr-nav { margin-left: 0; width: 100%; }
  .hero-split,
  .gallery-row,
  .site-footer,
  .dir-c .hero-split,
  .dir-b .choice-grid {
    grid-template-columns: 1fr;
  }
  .dir-d .decision-card {
    grid-template-columns: 3.5rem 1fr;
  }
  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-left: 0;
  }
  .dir-c .site-header { align-items: stretch; }
  .option-grid { grid-template-columns: 1fr; }
  .sel-tray { font-size: 0.65rem; }
  .sel-tray-actions { width: 100%; margin-left: 0; }
}

@media (max-width: 560px) {
  .wordmark img { width: 7rem; }
  .state-row { grid-template-columns: 7.75rem 1fr; }
  .state-row .btn:nth-of-type(2) { grid-column: 2; }
  .dir-tabs button { flex: 1 1 calc(50% - 0.5rem); }
}

/* ——— Assembled directions (SHOWROOM-ASSEMBLED-DIRECTIONS.md) ———
   data-direction=baseline|editorial|framed|guided
   Ornament mapped per Art lock; do not average. */

[data-direction="baseline"] { /* Piece-forward + ornament B */ }
[data-direction="editorial"] .band { padding: clamp(3.25rem, 7vw, 5.5rem) 0; }
[data-direction="editorial"] .site-header {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}
[data-direction="editorial"] .site-nav {
  margin-left: 0;
  gap: 1.5rem;
}
[data-direction="editorial"] .header-cta,
[data-direction="editorial"] .bag { margin-left: 0; }

.hero-editorial {
  position: relative;
  min-height: 22rem;
  display: grid;
  align-items: end;
  background: var(--ground-soft) center/cover no-repeat;
  border-radius: 0;
}
.hero-editorial::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.55) 55%, rgba(10,10,10,0.35) 100%);
  pointer-events: none;
}
.hero-editorial .hero-copy {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 5vw, 3.5rem);
  max-width: 32rem;
}
.hero-editorial .hero-actions { margin-top: 1.25rem; }

.shelf-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
  margin-top: 1.5rem;
}
.shelf-featured {
  background: var(--ground);
  border: 1px solid var(--line-on-dark);
  padding: 1rem;
  border-radius: var(--radius-card);
}
.shelf-featured img {
  width: 100%;
  max-height: 18rem;
  object-fit: cover;
  border-radius: var(--radius-card);
}
.shelf-featured h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0.85rem 0 0.35rem;
}
.shelf-rail {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.shelf-rail-item {
  display: grid;
  grid-template-columns: 3.25rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line-on-dark);
  color: inherit;
  text-decoration: none;
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.shelf-rail-item:last-child { border-bottom: 1px solid var(--line-on-dark); }
.shelf-rail-item img {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: cover;
  border-radius: var(--radius-card);
}
.shelf-rail-item:hover h3,
.shelf-rail-item[aria-pressed="true"] h3 { color: var(--blush); }
.shelf-rail-item h3 { font-size: 1.05rem; margin: 0; }

[data-direction="framed"] .band-title-frame {
  position: relative;
  display: inline-block;
  padding: 0.35rem 0.65rem 0.35rem 0;
}
[data-direction="framed"] .band-title-frame::before,
[data-direction="framed"] .band-title-frame::after {
  content: "";
  position: absolute;
  width: 0.75rem;
  height: 0.75rem;
  border-color: var(--blush);
  border-style: solid;
  opacity: 0.7;
}
[data-direction="framed"] .band-title-frame::before {
  top: 0; left: -0.35rem;
  border-width: 1px 0 0 1px;
}
[data-direction="framed"] .band-title-frame::after {
  bottom: 0; right: -0.55rem;
  border-width: 0 1px 1px 0;
}

.climate-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
  max-width: 28rem;
}

.progress-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  padding: 0.85rem 0;
  margin: 0 0 1.5rem;
  border-bottom: 1px solid var(--line-on-dark);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.progress-ribbon .step { color: var(--ink-muted); }
.progress-ribbon .step[aria-current="step"] {
  color: var(--blush);
  box-shadow: 0 1px 0 var(--blush);
}
.progress-ribbon .step-sep {
  color: var(--line-on-dark);
  letter-spacing: 0;
}

.guided-shelf[hidden] { display: none; }

.inline-ask {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}
.inline-ask span {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* Deprecate old dir-* aliases — keep for safety if any remain */
.dir-a, .dir-b, .dir-c, .dir-d { /* superseded by data-direction */ }

@media (max-width: 900px) {
  .shelf-editorial {
    grid-template-columns: 1fr;
  }
  .climate-pick {
    grid-template-columns: 1fr;
  }
  .hero-editorial { min-height: 18rem; }
}


/* Baseline column symmetry — equal portfolio glance */
[data-direction="baseline"] .gallery-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
[data-direction="baseline"] .gallery-row .plate {
  display: flex;
  flex-direction: column;
  height: 100%;
}
[data-direction="baseline"] .gallery-row .plate img {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: none;
  object-fit: cover;
}
[data-direction="baseline"] .hero-split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(1.5rem, 4vw, 2.75rem);
}
[data-direction="baseline"] .hero-plate {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
[data-direction="baseline"] .hero-plate img {
  width: 100%;
  max-width: none;
  max-height: min(28rem, 70vw);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
@media (max-width: 900px) {
  .dir-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .dir-tabs { grid-template-columns: 1fr; }
}


/* Owner orientation strip */
/* howto aside removed — language contract opening lives in .sr-banner */
.sr-howto {
  margin: 0;
  padding: 0.85rem var(--pad);
  background: var(--ground-elevated);
  border-bottom: 1px solid var(--line-on-dark);
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-muted);
}
.sr-howto strong { color: var(--ink-on-dark); font-weight: 600; }
.sr-howto a { color: var(--blush); text-decoration: underline; text-underline-offset: 0.15em; }
.sr-howto em { font-style: normal; color: var(--blush-soft); }

/* Early-preview chrome: return to dual-door home */
.preview-home-bar {
  display: flex;
  justify-content: flex-end;
  width: min(100% - 2 * var(--pad), var(--max));
  margin: 2.5rem auto 0;
  padding: 0 var(--pad) 1.25rem;
}
.sr-chrome-foot {
  border-top: 1px solid var(--line-on-dark);
  margin-top: 2rem;
  padding-bottom: 5.5rem; /* clear sticky selection tray */
}
.sr-chrome-foot .preview-home-bar {
  margin-top: 1.25rem;
  padding-bottom: 0.5rem;
}
.btn-return-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--ui);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-on-dark);
  box-shadow: inset 0 0 0 1px var(--blush);
  text-decoration: none;
}
.btn-return-home:hover {
  color: var(--blush-soft);
  box-shadow: inset 0 0 0 1px var(--blush-soft);
}

/* More styles — ideas archive (not a folder browser) */
.preview-more-styles {
  display: flex;
  justify-content: center;
  width: min(100% - 2 * var(--pad), var(--max));
  margin: 0 auto;
  padding: 1.5rem var(--pad) 0.35rem;
}
.btn-more-styles {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--ui);
  border-radius: var(--radius-pill);
  background: var(--blush);
  color: var(--on-blush);
  text-decoration: none;
}
.btn-more-styles:hover { background: var(--blush-soft); }

.ideas-page {
  padding: clamp(2rem, 5vw, 3.5rem) 0 1rem;
}
.ideas-page h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.02em;
  margin: 0.35rem 0 0;
  line-height: 1.1;
}
.ideas-page .lede {
  max-width: 38rem;
  color: var(--ink-muted);
  margin: 1rem 0 0;
}
.ideas-note {
  max-width: 40rem;
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 2px solid var(--blush);
  color: var(--ink-muted);
  font-size: 0.92rem;
  background: rgba(196, 152, 158, 0.06);
}
.ideas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.idea-card {
  background: var(--ground-elevated);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.idea-card figure { margin: 0; }
.idea-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
}
.idea-card h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 1rem 1.1rem 0.35rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.idea-card p {
  margin: 0 1.1rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.idea-card .idea-tag {
  margin: 0.75rem 1.1rem 1.15rem;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blush);
}

.ideas-section-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.02em;
  margin: 2.5rem 0 0.4rem;
}
.ideas-section-lede {
  max-width: 40rem;
  color: var(--ink-muted);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}
.swing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}
.swing-card {
  background: var(--ground-elevated);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 0.25rem;
}
.swing-where {
  margin: 0.85rem 1.1rem 0.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.swing-fragment {
  margin: 0 1.1rem;
  border-radius: calc(var(--radius-card) - 2px);
  overflow: hidden;
  border: 1px solid var(--line-on-dark);
}
.swing-fragment img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}
.swing-card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.25rem;
  margin: 1rem 1.1rem 0.35rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.swing-card > p {
  margin: 0 1.1rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.swing-card .idea-tag {
  margin: 0.75rem 1.1rem 1.15rem;
}

/* Live-type showcase plates (More styles only — not page voice) */
.type-plate {
  margin: 0 1.1rem;
  border-radius: calc(var(--radius-card) - 2px);
  border: 1px solid var(--line-on-dark);
  min-height: 10.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1.25rem;
  text-align: center;
}
.type-plate--dark {
  background: #0e0e0e;
  color: #c8989e;
}
.type-plate--ivory {
  background: #f4ebe3;
  color: #b87a82;
  border-color: rgba(90, 60, 50, 0.12);
}
.type-sample {
  margin: 0;
  line-height: 1.15;
  max-width: 100%;
}
.type-sample--luxurious {
  font-family: "Luxurious Script", cursive;
  font-size: clamp(2.75rem, 7vw, 4rem);
  font-weight: 400;
}
.type-sample--greatvibes {
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.1rem, 5.5vw, 3.15rem);
  font-weight: 400;
}
.paid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.paid-card {
  background: var(--ground-elevated);
  border: 1px dashed var(--line-on-dark);
  border-radius: var(--radius-card);
  padding: 1rem 1.1rem 0.85rem;
}
.paid-card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}
.paid-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.paid-card .idea-tag {
  margin: 0.75rem 0 0.25rem;
}


/* ——— Direction 5: Script Over Serif (hero + closing only) ——— */
[data-direction="script"] .sos-hero-split {
  align-items: center;
  gap: clamp(1.5rem, 4vw, 2.75rem);
}
[data-direction="script"] .sos-stack {
  position: relative;
  margin: 0.35rem 0 0.25rem;
  max-width: 22rem;
}
[data-direction="script"] .sos-serif {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.35rem, 5.5vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink-on-dark);
  margin: 0;
}
[data-direction="script"] .sos-closing-serif {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  text-align: center;
}
[data-direction="script"] .sos-script {
  position: relative;
  z-index: 2;
  pointer-events: none;
  margin: -0.55rem 0 -0.35rem;
  overflow: hidden;
}
[data-direction="script"] .sos-script--events {
  width: min(100%, 16.5rem);
  height: 3.6rem;
  margin-left: 0.15rem;
}
[data-direction="script"] .sos-script--events img {
  width: 140%;
  max-width: none;
  height: auto;
  margin-top: -28%;
  margin-left: -18%;
  filter: saturate(1.05) contrast(1.05);
}
[data-direction="script"] .sos-script--unforgettable {
  width: min(100%, 28rem);
  height: 4.25rem;
  margin: -0.15rem auto 0.15rem;
}
[data-direction="script"] .sos-script--unforgettable img {
  width: 118%;
  max-width: none;
  height: auto;
  margin-top: -22%;
  margin-left: -9%;
  /* Swing B is blush on ivory — invert plate to pink-on-black */
  filter: invert(1) hue-rotate(330deg) saturate(1.35) brightness(1.05);
  mix-blend-mode: screen;
}
[data-direction="script"] .sos-trial-tag {
  margin: 0.35rem 0 0;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--demo, var(--ink-muted));
}
[data-direction="script"] .sos-closing {
  text-align: center;
  padding-block: clamp(2.75rem, 7vw, 4.5rem);
  background:
    linear-gradient(180deg, rgba(10,10,10,0.92), rgba(10,10,10,0.88)),
    url("../assets/c5-bouquet.jpg") center/cover no-repeat;
}
[data-direction="script"] .sos-closing-inner {
  max-width: 40rem;
  margin-inline: auto;
}
[data-direction="script"] .sos-closing-stack {
  margin: 0.5rem auto 0.25rem;
}
[data-direction="script"] .sos-closing .cta-pair {
  justify-content: center;
}
[data-direction="script"] .sos-script-live {
  margin: 0.15rem 0 0.35rem;
  color: var(--blush);
  line-height: 1.1;
  text-align: center;
}
[data-direction="script"] .sos-script-live--gv {
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.35rem, 6vw, 3.5rem);
  font-weight: 400;
}

[data-direction="script"] .hero-plate img {
  width: 100%;
  max-width: none;
  max-height: min(28rem, 70vw);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
@media (max-width: 900px) {
  [data-direction="script"] .sos-hero-split {
    grid-template-columns: 1fr;
  }
  [data-direction="script"] .sos-script--events {
    height: 3.1rem;
  }
  [data-direction="script"] .sos-script--unforgettable {
    height: 3.6rem;
  }
}

/* Variant B — opacity / behind-serif (live type under Cormorant) */
[data-direction="script"] .sos-variant-label {
  margin: 1.35rem 0 0.35rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blush);
}
[data-direction="script"] .sos-stack--opacity {
  position: relative;
  margin-top: 0.15rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Gap between frame words is owned by the script slot — not fixed line metrics */
  gap: 0;
}
[data-direction="script"] .sos-stack--opacity .sos-serif--frame {
  position: relative;
  z-index: 2;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}
/* Middle slot opens/closes to whatever height the soft script needs */
[data-direction="script"] .sos-script-slot {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* Vertical room for flourishes; slight negative pull kisses the frame words */
  min-height: clamp(3.6rem, 9vw, 5.4rem);
  margin: -0.35rem 0;
  pointer-events: none;
}
[data-direction="script"] .sos-script-behind {
  position: relative;
  margin: 0;
  line-height: 0.85;
  color: var(--blush);
  opacity: 0.52;
  white-space: nowrap;
}
[data-direction="script"] .sos-script-behind--lux {
  font-family: "Luxurious Script", cursive;
  font-weight: 400;
  /* Bigger decorative script in back — tacitly framed by smaller Cormorant */
  font-size: clamp(3.6rem, 10vw, 5.75rem);
  letter-spacing: 0.01em;
}

/* More styles — media gallery of usable plates */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
  margin: 0 0 2rem;
}
.gallery-card {
  background: var(--ground-elevated);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.gallery-card figure { margin: 0; }
.gallery-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  background: #0e0e0e;
}
.gallery-card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.25rem;
  margin: 1rem 1.1rem 0.35rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.gallery-card p {
  margin: 0 1.1rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.gallery-card .idea-tag {
  margin: 0.75rem 1.1rem 1.15rem;
}
.ideas-subhead {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin: 1.75rem 0 0.75rem;
  color: var(--ink-on-dark);
}
.her-work-grid .gallery-card .idea-tag { color: var(--blush); }
.mood-comps-grid .gallery-card .idea-tag { color: #c4a484; }

/* ——— Best of (curated landing) ——— */
body.best-page {
  padding-bottom: 2rem;
}

.best-jump {
  position: sticky;
  top: 3.6rem;
  z-index: 35;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  justify-content: center;
  padding: 0.55rem var(--pad);
  background: rgba(14, 14, 14, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-on-dark);
}
.best-jump a {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-pill);
  color: var(--ink-muted);
  border: 1px solid rgba(196, 152, 158, 0.28);
}
.best-jump a:hover {
  color: var(--blush-soft);
  border-color: var(--blush);
}

.best-main {
  padding: clamp(1.75rem, 4vw, 2.75rem) 0 2rem;
}
.best-main .wrap {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}

.best-hero {
  margin-bottom: 2.75rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-on-dark);
}
.best-hero h1 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  font-size: clamp(2.1rem, 4.8vw, 3.25rem);
}
.best-howto {
  margin: 1rem 0 0;
  max-width: 40rem;
  color: var(--ink-muted);
}

.best-sos {
  margin: 1.75rem 0 0;
  max-width: 28rem;
}
.best-sos-serif {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  color: var(--ink-on-dark);
}
.best-sos-script {
  margin: -0.15rem 0;
  line-height: 0;
  max-width: 16rem;
}
.best-sos-script img {
  width: 100%;
  height: auto;
  display: block;
}
.best-sos-tag {
  margin: 0.65rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.best-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.best-band {
  margin: 0 0 2.75rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-on-dark);
}
.best-band:last-of-type { border-bottom: 0; }
.best-band-head { margin-bottom: 1.25rem; max-width: 40rem; }
.best-band-head h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  letter-spacing: -0.02em;
  margin: 0.15rem 0 0.5rem;
  line-height: 1.12;
}
.best-band-lede {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.best-lettering-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}
.best-card {
  background: var(--ground-elevated);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.best-card-fig { margin: 0; }
.best-card-fig img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #0e0e0e;
}
.best-card-fig--dark { background: #0e0e0e; }
.best-card-fig--ivory { background: #f3ece4; }
.best-card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.25rem;
  margin: 1rem 1.1rem 0.35rem;
  letter-spacing: -0.02em;
}
.best-card > p { margin: 0 1.1rem; color: var(--ink-muted); font-size: 0.9rem; }
.best-card .idea-tag { margin: 0.75rem 1.1rem 1.15rem; }

.best-live-type { margin: 1.25rem 0 0; }
.best-type-plate {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.25rem;
  padding: 1rem 1.2rem;
  background: var(--ground-elevated);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-card);
  max-width: 28rem;
}
.best-type-plate:hover { border-color: var(--blush); }
.best-type-lux {
  font-family: "Luxurious Script", cursive;
  font-size: 2.1rem;
  color: var(--blush);
  line-height: 1;
}
.best-type-gv {
  font-family: "Great Vibes", cursive;
  font-size: 1.75rem;
  color: var(--blush-soft);
  line-height: 1;
}
.best-type-cap {
  flex: 1 1 100%;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.best-shelf-link {
  margin: 1.15rem 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.best-shelf-link a { color: var(--blush); }
.best-shelf-link a:hover { color: var(--blush-soft); }

.best-dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  gap: 0.85rem;
}
.best-dir-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1rem;
  background: var(--ground-elevated);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-card);
  transition: border-color 0.15s ease;
}
.best-dir-card:hover { border-color: var(--blush); }
.best-dir-num {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blush);
}
.best-dir-card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.best-dir-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.82rem;
  flex: 1;
}

.best-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 0.85rem;
}
.best-thumb {
  background: var(--ground-elevated);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.best-thumb figure { margin: 0; }
.best-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #0e0e0e;
}
.best-thumb h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.05rem;
  margin: 0.7rem 0.85rem 0.2rem;
  letter-spacing: -0.01em;
}
.best-thumb .idea-tag {
  margin: 0 0.85rem 0.85rem;
  font-size: 0.68rem;
}
.best-thumb-grid--her .idea-tag { color: var(--blush); }
.best-thumb-grid--comps .idea-tag { color: #c4a484; }
.best-thumb-grid--gallery .idea-tag { color: var(--ink-muted); }

.best-planning { border-bottom: 0; padding-bottom: 0; }
.best-door {
  padding: 1.75rem 1.5rem;
  background: var(--ground-elevated);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-card);
  max-width: 36rem;
}
.best-door h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.65rem, 3vw, 2rem);
  margin: 0.2rem 0 0.65rem;
  letter-spacing: -0.02em;
}
.best-door p { margin: 0 0 1.15rem; color: var(--ink-muted); max-width: 32rem; }

.best-foot { padding-bottom: 2rem; }
.best-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  width: min(100% - 2 * var(--pad), var(--max));
  margin: 0 auto;
  padding: 1.5rem var(--pad) 0.5rem;
}
.best-foot .btn-more-styles,
.best-foot .btn-return-home {
  margin: 0;
}

@media (max-width: 640px) {
  .best-jump { top: auto; position: relative; }
  .best-hero-actions .btn { width: 100%; }
}


/* ——— Preview chrome tranche (nav / sample / scroll) ——— */
.sr-banner-detail {
  display: inline;
  margin-left: 0.35rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.9em;
  opacity: 0.92;
}

.sr-steps {
  position: sticky;
  top: 3.55rem;
  z-index: 35;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  padding: 0.5rem var(--pad);
  background: rgba(12, 12, 12, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-on-dark);
}
.sr-steps a {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-pill);
  color: var(--ink-muted);
  border: 1px solid transparent;
}
.sr-steps a:hover { color: var(--blush-soft); }
.sr-steps a.is-active,
.sr-steps a[aria-current="page"] {
  color: var(--blush);
  border-color: rgba(196, 152, 158, 0.45);
}

.mock-inert {
  pointer-events: none;
  cursor: default;
  text-decoration: none;
}
.site-nav .mock-inert {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
}
.site-nav .mock-inert[aria-current="page"] {
  color: var(--blush);
  box-shadow: 0 1px 0 var(--blush);
}

.preview-chip {
  display: inline-block;
  margin: 0.35rem 0 0.65rem;
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(196, 152, 158, 0.4);
  background: rgba(196, 152, 158, 0.12);
  color: var(--demo, var(--blush-soft));
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.direction-shell > .preview-chip {
  display: block;
  width: fit-content;
  margin: 0.65rem 1rem 0;
}

.sel-tray-kicker {
  flex: 0 0 100%;
  margin: 0;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--demo, var(--blush-soft));
}

.ideas-toc {
  position: sticky;
  top: 3.55rem;
  z-index: 35;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  justify-content: center;
  padding: 0.55rem var(--pad);
  background: rgba(14, 14, 14, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-on-dark);
}
.ideas-toc a {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-pill);
  color: var(--ink-muted);
  border: 1px solid rgba(196, 152, 158, 0.28);
}
.ideas-toc a:hover {
  color: var(--blush-soft);
  border-color: var(--blush);
}

/* Keep sticky .sr-top from covering jump targets */
.ideas-section-title,
#lettering,
#her-work,
#mood-comps,
#media-gallery,
#type-trials,
#paid-path,
#earlier-directions {
  scroll-margin-top: 6.5rem;
}
.best-band,
#best-hero,
#best-lettering,
#best-directions,
#best-her-craft,
#best-mood-comps,
#best-backgrounds,
#best-planning {
  scroll-margin-top: 7.25rem;
}

@media (max-width: 720px) {
  .sr-steps { top: auto; position: relative; }
  .ideas-toc { top: auto; position: relative; }
}
