/* Showcase in the V6 public-site design (spec 37 Wave G; mockup
   kuickr/mockup/showcase-v3.html). Tokens come from .v6-public-site in
   public-site-v6.css (Graphite ink, rust italic on light, cyan on dark).
   Phone first: one column at 375px, no page-level horizontal scroll, every
   control at least 44px. */

.v6-showcase h1,
.v6-showcase h2,
.v6-showcase h3 { margin: 0; font-family: var(--v6-display); font-weight: 500; text-wrap: balance; }
.v6-showcase h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: .95; letter-spacing: -.045em; font-variation-settings: "wdth" 85; }
.v6-showcase em { font: italic 400 1.06em var(--v6-serif); letter-spacing: -.02em; color: var(--v6-accent-text); }
.v6-showcase canvas.fx { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
.v6s-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--kk-current-accent, var(--v6-stone)); }
.v6s-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.v6s-btn-ring { box-shadow: inset 0 0 0 1px var(--v6-rule); color: var(--v6-ink); }
.v6s-btn-ring:hover { box-shadow: inset 0 0 0 1px var(--v6-ink); color: var(--v6-ink); }
.v6s-heading { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(1.25rem, 5vw, 5rem); align-items: end; }
.v6s-heading .v6-eyebrow { margin-bottom: 16px; }

/* Hero */
.v6s-hero { position: relative; overflow: hidden; background: var(--v6-sky); }
.v6s-hero-in { position: relative; display: flex; flex-direction: column; gap: 22px; padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem); }
.v6s-hero h1 { max-width: 11ch; font-size: clamp(3rem, 7.4vw, 7rem); font-weight: 400; line-height: .88; letter-spacing: -.055em; }
.v6s-folder-hero { display: block; width: 100%; max-width: 640px; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; background: var(--v6-bone); box-shadow: 0 0 0 1px var(--v6-hair); }
.v6s-hl { align-self: flex-start; padding: 5px 9px; border-radius: 4px; background: var(--v6-lime); color: var(--v6-ink); }
.v6s-space { display: flex; align-items: center; gap: 8px; color: var(--v6-ink); }

/* Picks hero — design D (docs/architecture/showcase/picks.md) */
.v6s-picks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.v6s-picks-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.v6s-pick-list { margin: 6px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--v6-rule); }
.v6s-pick-list li { border-bottom: 1px solid var(--v6-rule); }
.v6s-pick-item { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 6px 0; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.v6s-pick-item b { flex: 1; min-width: 0; font: 500 1.1rem/1.15 var(--v6-display); letter-spacing: -.03em; }
.v6s-pick-item[aria-current="true"] b { color: var(--v6-accent-text); }
.v6s-pick-kind { flex: none; min-width: 7.5em; font: .6875rem var(--v6-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--v6-stone); }
.v6s-pick-space { font: .75rem var(--v6-mono); color: var(--v6-stone); }
.v6s-pick-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-bottom: 10px; }
.v6s-pick-ctl form { display: inline; }
.v6s-ctl, .v6s-feature { min-height: 44px; min-width: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--v6-paper); box-shadow: inset 0 0 0 1px var(--v6-rule); cursor: pointer; font: 500 .875rem var(--v6-sans); color: var(--v6-ink); }
.v6s-hidden-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.v6s-hidden-pick form { display: inline; }
.v6s-ctl:disabled, .v6s-feature:disabled { opacity: .4; cursor: not-allowed; }
.v6s-fan { position: relative; height: clamp(300px, 32vw, 420px); }
.v6s-fan-frame { position: absolute; left: 50%; top: 6%; width: min(100%, 420px); display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; background: var(--v6-paper); box-shadow: 0 0 0 1px var(--v6-hair); color: inherit; transition: transform .7s cubic-bezier(.16,1,.3,1); }
.v6s-fan-frame .v6s-thumb { border-bottom: 0; }
.v6s-fan-frame.is-p0 { z-index: 3; transform: translateX(-50%) translateY(30px); box-shadow: 0 0 0 1px var(--v6-hair), 0 30px 70px rgba(17,18,20,.12); }
.v6s-fan-frame.is-p1 { z-index: 2; transform: translateX(-62%) rotate(-7deg); }
.v6s-fan-frame.is-p2 { z-index: 1; transform: translateX(-38%) rotate(6deg); }
.v6s-fan-bar { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--v6-hair); font: .71875rem var(--v6-mono); color: var(--v6-stone); }
.v6s-fan-bar span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.v6s-fan-bar b { padding: 2px 6px; border-radius: 4px; background: var(--v6-ink); color: var(--v6-bone); font: 400 .6875rem var(--v6-mono); white-space: nowrap; }
.v6s-card { position: relative; }
.v6s-feature-form { position: absolute; top: 10px; right: 10px; z-index: 2; }
.v6s-feature { box-shadow: 0 0 0 1px var(--v6-rule), 0 6px 20px rgba(17,18,20,.08); }
@media (max-width: 900px) { .v6s-picks { grid-template-columns: minmax(0, 1fr); } .v6s-fan { height: 300px; } .v6s-fan-frame { width: min(100%, 340px); } }
@media (prefers-reduced-motion: reduce) { .v6s-fan-frame { transition: none; } }

/* Browse */
.v6s-browse > .v6-shell { display: flex; flex-direction: column; gap: 28px; padding-block: clamp(3.5rem, 7vw, 6rem); }
.v6s-topics { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--v6-page-padding) * -1); padding: 2px var(--v6-page-padding); }
.v6s-topics::-webkit-scrollbar { display: none; }
.v6s-topics a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--v6-rule); font-size: .875rem; white-space: nowrap; }
.v6s-topics a span { font: .75rem var(--v6-mono); opacity: .65; }
.v6s-topics a[aria-current="page"] { background: var(--v6-ink); color: var(--v6-bone); box-shadow: none; }
@media (min-width: 901px) { .v6s-topics { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; } .v6s-topics a { min-height: 40px; } }
/* Kind tabs: one segmented row; scrolls sideways on phones */
.v6s-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--v6-page-padding) * -1) 14px; padding: 2px var(--v6-page-padding); }
.v6s-tabs::-webkit-scrollbar { display: none; }
.v6s-tabs a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px; font-size: .9375rem; font-weight: 500; white-space: nowrap; color: var(--v6-stone); }
.v6s-tabs a[aria-current="page"] { background: var(--v6-paper); color: var(--v6-ink); box-shadow: 0 0 0 1px var(--v6-rule); }
@media (min-width: 901px) { .v6s-tabs { margin: 0 0 14px; padding: 0; } .v6s-tabs a { min-height: 40px; } }
.v6s-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 18px; }
.v6s-note { margin: 0; font: .75rem var(--v6-mono); color: var(--v6-stone); }
.v6s-empty { padding: 56px 24px; border-radius: 14px; background: var(--v6-paper); box-shadow: 0 0 0 1px var(--v6-hair); text-align: center; }
.v6s-empty h3 { font-size: 2rem; letter-spacing: -.04em; }
.v6s-empty p { max-width: 46ch; margin: 10px auto 0; color: var(--v6-stone); }

/* Card: a paper panel with a constructed Page preview on top */
.v6s-card { display: flex; border-radius: 14px; background: var(--v6-paper); box-shadow: 0 0 0 1px var(--v6-hair); overflow: hidden; transition: box-shadow .4s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.v6s-card:hover { box-shadow: 0 0 0 1px var(--v6-rule); transform: translateY(-3px); }
.v6s-hit { display: flex; flex: 1; flex-direction: column; min-width: 0; color: inherit; }
.v6-public-site .v6s-hit:hover { color: inherit; }
.v6s-hit:hover .v6s-title { color: var(--v6-accent-text); }
.v6s-body { display: flex; flex: 1; flex-direction: column; min-width: 0; gap: 6px; padding: 14px 16px 16px; }
.v6s-meta { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: .8125rem; color: var(--v6-stone); }
.v6-showcase .v6s-title { font-family: var(--v6-sans); font-size: 1.0625rem; font-weight: 600; text-wrap: pretty; line-height: 1.3; letter-spacing: 0; transition: color .3s; }
.v6s-url { margin: 0; overflow: hidden; font: .71875rem var(--v6-mono); color: var(--v6-stone); white-space: nowrap; text-overflow: ellipsis; }
.v6s-excerpt { display: -webkit-box; margin: 2px 0 0; overflow: hidden; font-size: .875rem; line-height: 1.5; color: var(--v6-stone); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.v6s-tags { margin: 0; font: .6875rem var(--v6-mono); color: var(--v6-stone); }
.v6s-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: auto; padding-top: 10px; font: .75rem var(--v6-mono); color: var(--v6-stone); }
.v6s-likes { color: var(--v6-ink); }

/* Constructed preview: ink at alpha on bone; the deco dots are texture only */
.v6s-thumb { position: relative; height: 150px; overflow: hidden; background: var(--v6-bone); border-bottom: 1px solid var(--v6-hair); }
.v6s-thumb::before { content: ""; position: absolute; inset: 0; background: radial-gradient(var(--v6-violet) 1.4px, transparent 1.8px) 0 0 / 7px 7px; -webkit-mask-image: radial-gradient(ellipse 55% 75% at 100% 0, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse 55% 75% at 100% 0, #000 20%, transparent 70%); }
.v6s-thumb > i, .v6s-thumb > span { position: absolute; }
.v6s-thumb:has(.v6s-art) { height: auto; aspect-ratio: 16 / 9; }
.v6s-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.v6s-badge { top: 10px; left: 10px; z-index: 1; padding: 2px 7px; border-radius: 4px; background: var(--v6-paper); box-shadow: inset 0 0 0 1px var(--v6-rule); font: .6875rem var(--v6-mono); color: var(--v6-stone); }
.v6s-hh { top: 26%; width: 56%; left: 14%; height: 12px; border-radius: 3px; background: var(--v6-ink); opacity: .82; }
.v6s-ln { width: 66%; left: 14%; height: 6px; border-radius: 3px; background: var(--v6-ink); opacity: .14; }
.v6s-tiles { left: 14%; right: 14%; top: 50%; bottom: 14%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.v6s-tiles i { border-radius: 4px; background: var(--v6-paper); box-shadow: 0 0 0 1px var(--v6-hair); }
.v6s-tiles i:nth-child(2) { background: var(--v6-ink); }

/* Preview geometry lives here, not in the view (spec 37: no inline style=). */
.v6s-thumb[data-look="page"] .v6s-hh { width: 46%; }
.v6s-ln:nth-of-type(2) { top: 42%; width: 70%; }
.v6s-ln:nth-of-type(3) { top: calc(42% + 11px); width: 62%; }
.v6s-ln:nth-of-type(4) { top: calc(42% + 22px); width: 72%; }
.v6s-ln:nth-of-type(5) { top: calc(42% + 33px); width: 44%; }
.v6s-ln:nth-of-type(6) { top: calc(42% + 44px); width: 66%; }

/* Folded deck: the same paper card with two hairline layers peeking below */
.sc-deck { position: relative; margin-bottom: 14px; touch-action: pan-y; }
.sc-deck-layer { position: absolute; inset: 0; z-index: 0; border-radius: 14px; background: var(--v6-paper); box-shadow: 0 0 0 1px var(--v6-hair); transform-origin: bottom center; transform: translateY(calc(var(--sc-i) * 7px)) scaleX(calc(1 - var(--sc-i) * .04)); }
.sc-deck-face { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 14px; background: var(--v6-paper); box-shadow: 0 0 0 1px var(--v6-hair); }
.sc-deck:hover .sc-deck-face { box-shadow: 0 0 0 1px var(--v6-rule); }
.sc-deck-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--v6-hair); font-size: .8125rem; color: var(--v6-stone); }
.sc-deck-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--kk-current-accent, var(--v6-stone)); }
.sc-deck-count { margin-left: auto; padding: 2px 8px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--v6-rule); font: .6875rem var(--v6-mono); text-transform: uppercase; letter-spacing: .06em; }
.sc-deck-viewport { display: flex; flex: 1; flex-direction: column; }
.sc-deck-slide { display: flex; flex: 1; flex-direction: column; color: inherit; }
.v6-public-site .sc-deck-slide:hover { color: inherit; }
.sc-deck-slide:hover .v6s-title { color: var(--v6-accent-text); }
.sc-deck-slide[hidden] { display: none; }
.sc-deck-foot { display: flex; align-items: center; gap: 2px; padding: 0 8px; border-top: 1px solid var(--v6-hair); }
.sc-deck-btn { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--v6-stone); cursor: pointer; }
.sc-deck-btn:hover:not(:disabled) { color: var(--v6-ink); }
.sc-deck-btn:disabled { opacity: .3; cursor: default; }
.sc-deck-dots, .sc-deck-counter { flex: 1 1 auto; min-width: 0; overflow: hidden; text-align: center; }
.sc-deck-dots { display: flex; align-items: center; justify-content: center; gap: 0; }
.sc-deck-pip { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.sc-deck-pip::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--v6-rule); }
.sc-deck-pip[data-on]::before { background: var(--v6-ink); }
.sc-deck-counter { font: .75rem var(--v6-mono); color: var(--v6-stone); }
.sc-deck-all { display: inline-flex; align-items: center; height: 44px; margin-left: auto; padding: 0 8px; font: .75rem var(--v6-mono); color: var(--v6-stone); white-space: nowrap; }
.sc-deck-btn:focus-visible, .sc-deck-pip:focus-visible, .sc-deck-all:focus-visible { outline: 2px solid var(--v6-ink); outline-offset: -6px; border-radius: 10px; }
/* Without JS the controls are inert; the cover Page and "All →" still work. */
.sc-deck:not([data-sc-deck-ready]) .sc-deck-foot > :not(.sc-deck-all) { display: none; }

/* How a Page gets here */
.v6s-journey { background: var(--v6-paper); border-block: 1px solid var(--v6-hair); }
.v6s-journey > .v6-shell { padding-block: clamp(3.5rem, 7vw, 6rem); }
.v6s-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; margin: clamp(2rem, 4vw, 3.5rem) 0 0; padding: 0; list-style: none; }
.v6s-steps li { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 14px; background: var(--v6-bone); box-shadow: inset 0 0 0 1px var(--v6-hair); }
.v6s-steps h3 { margin-top: 8px; font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1; letter-spacing: -.035em; }
.v6s-steps p { margin: 0; font-size: .9375rem; color: var(--v6-stone); }
.v6s-num { font-family: var(--v6-display); font-size: clamp(3rem, 5vw, 4.4rem); font-weight: 300; line-height: .8; letter-spacing: -.06em; font-variation-settings: "wdth" 75; color: var(--v6-rule); }
.v6s-addr { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: auto; padding: 8px 10px; border-radius: 6px; background: var(--v6-paper); box-shadow: inset 0 0 0 1px var(--v6-hair); font: .71875rem var(--v6-mono); color: var(--v6-stone); }
.v6s-addr span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.v6s-addr b { padding: 2px 6px; border-radius: 4px; background: var(--v6-ink); color: var(--v6-bone); font-weight: 400; }
.v6s-addr b.is-ring { background: none; color: var(--v6-stone); box-shadow: inset 0 0 0 1px var(--v6-rule); }
.v6s-addr b.is-dash { background: none; color: var(--v6-stone); border: 1px dashed var(--v6-rule); }

/* Closing band (Graphite) */
.v6s-fin { position: relative; overflow: hidden; background: var(--v6-ink); color: var(--v6-copy-dark); }
.v6s-fin-in { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding-block: clamp(4rem, 8vw, 7rem); }
.v6s-fin h2 { max-width: 14ch; }
.v6s-fin em { color: var(--v6-accent-dark); }
.v6s-fin a.v6-button-outline { box-shadow: inset 0 0 0 1px rgba(242, 242, 240, .22); }
.v6s-fin a:hover { color: var(--v6-lime); }

@media (prefers-reduced-motion: reduce) {
  .v6s-card, .v6s-title { transition: none; }
  .v6s-card:hover { transform: none; }
}
