/* RIVISTA template styles: page-index-showcase.php */
/* ============ SHOWCASE — cinematic hero slider ============ */
.sh-hero { position: relative; height: calc(100vh - 96px); min-height: 600px; max-height: 920px; overflow: hidden; background: var(--ink); }
.sh-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease), visibility 1.1s; }
.sh-slide.is-active { opacity: 1; visibility: visible; }
.sh-slide .bg { position: absolute; inset: 0; }
.sh-slide .bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.sh-slide.is-active .bg img { animation: shKen 7s ease-out forwards; }
@keyframes shKen { from { transform: scale(1.12); } to { transform: scale(1.0); } }
.sh-slide .veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,19,15,.66), rgba(20,19,15,.22) 52%, rgba(20,19,15,.05)); }

.sh-content { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.sh-inner { max-width: 640px; color: var(--paper); }
.sh-eyebrow { font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; opacity: 0; }
.sh-eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--terra); }
.sh-slide.is-active .sh-eyebrow { animation: shUp .7s var(--ease) .25s both; }
.sh-title { font-family: var(--display); font-weight: 700; font-size: clamp(52px, 7vw, 116px); line-height: .9; letter-spacing: -.04em; margin: 0 0 22px; }
.sh-title i { font-family: var(--serif); font-style: italic; font-weight: 400; }
.sh-title span { display: block; opacity: 0; }
.sh-slide.is-active .sh-title span:nth-child(1) { animation: shUp .8s var(--ease) .35s both; }
.sh-slide.is-active .sh-title span:nth-child(2) { animation: shUp .8s var(--ease) .47s both; }
.sh-sub { font-family: var(--serif); font-style: italic; font-size: clamp(17px, 1.7vw, 22px); line-height: 1.5; max-width: 40ch; margin: 0 0 34px; opacity: 0; }
.sh-slide.is-active .sh-sub { animation: shUp .8s var(--ease) .58s both; }
.sh-cta { display: inline-flex; gap: 14px; opacity: 0; }
.sh-slide.is-active .sh-cta { animation: shUp .8s var(--ease) .7s both; }
@keyframes shUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.sh-btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 30px; background: var(--paper); color: var(--ink); font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.sh-btn:hover { background: var(--terra); color: var(--paper); }
.sh-btn svg { width: 13px; height: 13px; }
.sh-btn-ghost { display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; border: 1px solid rgba(250,248,244,.5); color: var(--paper); font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.sh-btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* arrows */
.sh-arrows { position: absolute; z-index: 5; right: 40px; bottom: 132px; display: flex; gap: 10px; }
.sh-arr { width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(250,248,244,.4); background: rgba(20,19,15,.18); backdrop-filter: blur(6px); color: var(--paper); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.sh-arr:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.sh-arr svg { width: 18px; height: 18px; }

/* counter + progress (bottom-left) */
.sh-foot { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; padding: 0 40px 36px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.sh-count { font-family: var(--display); color: var(--paper); display: flex; align-items: baseline; gap: 8px; }
.sh-count .cur { font-size: 40px; font-weight: 700; letter-spacing: -.03em; }
.sh-count .tot { font-size: 15px; opacity: .6; }
.sh-count .lab { font-family: var(--serif); font-style: italic; font-size: 15px; opacity: .8; margin-left: 12px; }
.sh-prog { flex: 1; max-width: 360px; height: 2px; background: rgba(250,248,244,.25); position: relative; align-self: center; }
.sh-prog .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--paper); }
.sh-prog .fill.run { animation: shProg 6s linear forwards; }
@keyframes shProg { from { width: 0; } to { width: 100%; } }

/* thumbnail rail */
.sh-thumbs { display: flex; gap: 10px; }
.sh-thumb { width: 64px; height: 80px; overflow: hidden; cursor: pointer; position: relative; opacity: .5; transition: opacity var(--dur) var(--ease); border: 1px solid transparent; }
.sh-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sh-thumb.is-active { opacity: 1; border-color: var(--paper); }
.sh-thumb::after { content: ""; position: absolute; inset: 0; background: rgba(20,19,15,.25); }
.sh-thumb.is-active::after { display: none; }

@media (max-width: 820px) {
  .sh-hero { height: auto; min-height: 560px; max-height: none; }
  .sh-arrows { display: none; }
  .sh-foot { padding: 0 20px 24px; flex-direction: column; align-items: flex-start; }
  .sh-prog { width: 100%; max-width: none; }
  .sh-thumbs { display: none; }
}

/* CRAFT III — index-showcase: slow zoom-drift */
@keyframes shKenSlow { from { transform: scale(1.06); } to { transform: scale(1); } }
.sh-slide.is-active .bg img { animation: shKenSlow 12s cubic-bezier(.22,1,.36,1) forwards; }
@media (prefers-reduced-motion: reduce) {
  .sh-slide.is-active .bg img { animation: none; }
}

/* ============ SHOWCASE II — catalogue tail (sh2-) ============ */

/* numbered head: rule-led number, big title, side note */
.sh2-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 30px clamp(24px, 4vw, 72px); align-items: end; margin: 0 0 clamp(44px, 5vw, 72px); }
.sh2-head .num { grid-column: 1 / -1; display: flex; align-items: center; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .14em; line-height: 1; color: var(--ink); }
.sh2-head .num::after { content: ""; flex: 1; height: 1px; margin-left: 18px; background: var(--line); }
.sh2-head .num .dot { color: var(--terra); }
.sh2-head h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(44px, 6.2vw, 96px); line-height: .9; letter-spacing: -.045em; color: var(--ink); }
.sh2-head h2 i { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--ink-3); }
.sh2-note { justify-self: end; max-width: 36ch; margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* pill link */
.sh2-link { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border: 1px solid var(--ink); border-radius: 999px; font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.sh2-link svg { width: 14px; height: 14px; flex: none; transition: transform var(--dur) var(--ease); }
.sh2-link:hover { background: var(--ink); color: var(--paper); }
.sh2-link:hover svg { transform: translateX(3px); }
.sh2-link:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }

/* 01 — collection index */
.sh2-index { padding: clamp(80px, 9vw, 112px) 0; background: var(--paper); }
.sh2-table { border-top: 1px solid var(--ink); }
.sh2-cols,
.sh2-row { display: grid; grid-template-columns: 56px minmax(0, 4.2fr) minmax(0, 2fr) minmax(0, 1.8fr) minmax(0, 1fr) 28px; gap: 0 24px; align-items: center; padding: 0 20px; }
.sh2-cols { padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.sh2-cols .price,
.sh2-row .price { text-align: right; }
.sh2-rows { list-style: none; margin: 0; padding: 0; }
.sh2-rows li { margin: 0; border-bottom: 1px solid var(--line); }
.sh2-row { padding-top: 22px; padding-bottom: 22px; color: var(--ink); transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.sh2-row .meta { display: contents; }
.sh2-row .no { font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .08em; font-variant-numeric: tabular-nums; color: var(--ink-3); transition: color var(--dur) var(--ease); }
.sh2-row .name { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2vw, 28px); line-height: 1.1; letter-spacing: -.025em; }
.sh2-row .fibre,
.sh2-row .colour { font-family: var(--sans); font-size: 14px; line-height: 1.4; color: var(--ink-2); transition: color var(--dur) var(--ease); }
.sh2-row .colour { display: inline-flex; align-items: center; gap: 10px; }
.sh2-row .sw { flex: none; width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(20,19,15,.2); }
.sh2-row .price { font-family: var(--display); font-weight: 700; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.sh2-row .go { display: inline-flex; justify-content: flex-end; opacity: 0; transform: translateX(-8px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.sh2-row .go svg { width: 18px; height: 18px; }
.sh2-row:hover,
.sh2-row:focus-visible { background: var(--ink); color: var(--paper); }
.sh2-row:focus-visible { outline: 2px solid var(--terra); outline-offset: -2px; }
.sh2-row:hover .no,
.sh2-row:hover .fibre,
.sh2-row:hover .colour,
.sh2-row:focus-visible .no,
.sh2-row:focus-visible .fibre,
.sh2-row:focus-visible .colour { color: rgba(250,248,244,.72); }
.sh2-row:hover .sw,
.sh2-row:focus-visible .sw { border-color: rgba(250,248,244,.55); }
.sh2-row:hover .go,
.sh2-row:focus-visible .go { opacity: 1; transform: none; }
.sh2-tfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 32px 20px 0; }
.sh2-tfoot p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.4; color: var(--ink-3); }

/* 02 — featured trio */
.sh2-trio { padding: clamp(80px, 9vw, 112px) 0; background: var(--paper-2); border-top: 1px solid var(--line); }
.sh2-trio-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 4fr); gap: 0 clamp(24px, 3.4vw, 56px); align-items: start; }
.sh2-pick { margin: 0; }
.sh2-pick:nth-child(2) { margin-top: clamp(64px, 10vw, 150px); }
.sh2-pick:nth-child(3) { margin-top: clamp(24px, 3.6vw, 52px); }
.sh2-pick-fig { --nf: clamp(120px, 15vw, 228px); position: relative; display: block; padding-top: calc(var(--nf) * .62); }
.sh2-numeral { position: absolute; top: 0; left: -.04em; z-index: 0; font-family: var(--display); font-weight: 700; font-size: var(--nf); line-height: .8; letter-spacing: -.06em; color: var(--paper-3); pointer-events: none; transition: color var(--dur) var(--ease), -webkit-text-stroke-color var(--dur) var(--ease); }
@supports (-webkit-text-stroke: 1px black) {
  .sh2-numeral { color: transparent; -webkit-text-stroke: 1px var(--ink); }
  .sh2-pick:hover .sh2-numeral { -webkit-text-stroke-color: var(--terra); }
}
.sh2-pick-img { position: relative; z-index: 1; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-3); }
.sh2-pick-img img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
/* designed fallback under every figure: tint swatch, outline mark, label (covered once the photo paints) */
.sh2-ph { position: absolute; inset: 0; z-index: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 28px; background: var(--paper-3); color: var(--ink-3); text-align: center; }
.sh2-ph::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(20,19,15,.12); pointer-events: none; }
.sh2-ph svg { width: clamp(56px, 6vw, 88px); height: auto; }
.sh2-ph-lab { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .16em; line-height: 1.4; text-transform: uppercase; color: var(--ink-2); }
.sh2-ph-lab .sw { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--tint, var(--paper-2)); border: 1px solid rgba(20,19,15,.2); }
.sh2-pick-fig:hover .sh2-pick-img img { transform: scale(1.04); }
.sh2-pick-cap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 20px; align-items: baseline; padding-top: 20px; }
.sh2-pick-cap h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
.sh2-pick-cap h3 a { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: text-decoration-color var(--dur) var(--ease); }
.sh2-pick-cap h3 a:hover { text-decoration-color: currentColor; }
.sh2-pick-cap .price { font-family: var(--display); font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; color: var(--ink); }
.sh2-pick-cap p { grid-column: 1 / -1; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.45; color: var(--ink-2); }

/* 03 — the studio */
.sh2-studio { padding: clamp(80px, 9vw, 112px) 0; background: var(--paper); border-top: 1px solid var(--line); }
.sh2-studio-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.sh2-studio-fig { margin: clamp(0px, 8vw, 128px) 0 0; }
.sh2-studio-img { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-3); }
.sh2-studio-img img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.sh2-studio-fig figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 16px; font-family: var(--sans); font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.sh2-studio-fig figcaption span { font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.sh2-studio-body .sh2-head { grid-template-columns: minmax(0, 1fr); margin-bottom: 32px; }
.sh2-lead { max-width: 40ch; margin: 0 0 clamp(36px, 4vw, 56px); font-family: var(--serif); font-size: clamp(21px, 2vw, 28px); line-height: 1.35; color: var(--ink-2); }
.sh2-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); }
.sh2-fact { padding: 22px 24px 24px 0; border-bottom: 1px solid var(--line); }
.sh2-fact:nth-child(odd) { border-right: 1px solid var(--line); }
.sh2-fact:nth-child(even) { padding-left: 28px; padding-right: 0; }
.sh2-fact dt { font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.sh2-fact dd { margin: 0; }
.sh2-fact .fig { display: block; margin: 14px 0 10px; font-family: var(--display); font-weight: 700; font-size: clamp(64px, 7vw, 108px); line-height: .85; letter-spacing: -.05em; font-variant-numeric: tabular-nums; color: var(--ink); }
.sh2-fact .fig i { margin-left: .42em; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: .3em; letter-spacing: 0; color: var(--ink-3); }
.sh2-fact.is-key .fig { color: var(--terra); }
.sh2-fact .txt { display: block; max-width: 30ch; font-family: var(--sans); font-size: 14px; line-height: 1.55; color: var(--ink-2); }

/* 04 — banner */
.sh2-banner { padding: clamp(80px, 9vw, 112px) 0; background: var(--ink); color: var(--paper); }
.sh2-banner-top { display: flex; align-items: center; font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; line-height: 1; }
.sh2-banner-top::after { content: ""; order: 1; flex: 1; height: 1px; margin: 0 18px; background: rgba(250,248,244,.22); }
.sh2-banner-top .num .dot { color: var(--terra); }
.sh2-banner-label { order: 2; color: rgba(250,248,244,.72); }
.sh2-banner-line { max-width: 19ch; margin: clamp(48px, 6vw, 88px) 0; font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 8vw, 124px); line-height: .98; letter-spacing: -.025em; color: var(--paper); text-wrap: balance; }
.sh2-banner-line i { font-style: italic; color: rgba(250,248,244,.7); }
.sh2-banner-line .dot { color: var(--terra); }
.sh2-banner-foot { display: flex; justify-content: flex-end; padding-top: 28px; border-top: 1px solid rgba(250,248,244,.22); }
.sh2-banner .sh2-link { border-color: rgba(250,248,244,.5); color: var(--paper); }
.sh2-banner .sh2-link:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* Theme style panel (closed): hide it so its off-canvas shadow cannot bleed over the right edge on phones. */
.style-panel:not(.is-open) { visibility: hidden; transition: transform .55s cubic-bezier(.16, 1, .3, 1), visibility 0s linear .55s; }

@media (max-width: 980px) {
  .sh2-head { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .sh2-note { justify-self: start; max-width: 52ch; }
  .sh2-cols,
  .sh2-row { grid-template-columns: 40px minmax(0, 3fr) minmax(0, 1.5fr) minmax(0, 1.4fr) minmax(0, .8fr) 18px; gap: 0 16px; padding-left: 12px; padding-right: 12px; }
  .sh2-trio-grid { gap: 0 20px; }
  .sh2-pick:nth-child(2) { margin-top: 64px; }
  .sh2-pick:nth-child(3) { margin-top: 24px; }
  .sh2-studio-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .sh2-studio-fig { margin-top: 0; }
  .sh2-studio-img { aspect-ratio: 3 / 2; }
}

@media (max-width: 640px) {
  .sh2-cols { display: none; }
  .sh2-row { grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "no name price" "no meta price"; gap: 6px 14px; align-items: baseline; padding: 18px 8px; }
  .sh2-row .no { grid-area: no; font-size: 12px; }
  .sh2-row .name { grid-area: name; font-size: 19px; }
  .sh2-row .meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
  .sh2-row .fibre,
  .sh2-row .colour { font-size: 13px; }
  .sh2-row .price { grid-area: price; font-size: 17px; }
  .sh2-row .go { display: none; }
  .sh2-tfoot { flex-direction: column; align-items: flex-start; padding: 28px 0 0; }
  .sh2-tfoot p { font-size: 17px; }
  .sh2-trio-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .sh2-pick:nth-child(2),
  .sh2-pick:nth-child(3) { margin-top: 0; }
  .sh2-pick-fig { --nf: 132px; }
  .sh2-studio-img { aspect-ratio: 4 / 5; }
  .sh2-fact { padding: 20px 14px 22px 0; }
  .sh2-fact:nth-child(even) { padding-left: 16px; padding-right: 0; }
  .sh2-fact .fig { font-size: 52px; }
  .sh2-banner-line { font-size: clamp(42px, 12vw, 56px); }
  .sh2-banner-foot { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .sh2-row,
  .sh2-row .go,
  .sh2-link svg,
  .sh2-pick-img img { transition: none; }
  .sh2-pick-fig:hover .sh2-pick-img img { transform: none; }
}
