/* Rohida: collections.html. Builds on tokens.css and site.css. */

/* ---------- Intro: one chair, held still ---------- */
.c-intro { min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; padding-block: clamp(40px, 6vw, 72px) clamp(56px, 7vw, 96px); }
.c-intro-grid { width: 100%; align-items: center; row-gap: 48px; }
.c-intro-text > * + * { margin-top: 28px; }
.c-h1 { font-size: clamp(44px, 5vw, 72px); line-height: 1.02; max-width: 11ch; }
.c-answer > * + * { margin-top: 18px; }
.c-answer .lede { max-width: 46ch; }
.c-cta { padding-top: 8px; }
.c-chair { margin: 0; justify-self: center; width: min(100%, 420px); }
.c-chair-frame { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: var(--bg); }
.c-chair-frame img { width: 100%; height: 100%; object-fit: cover; }
.c-chair [data-fx="arrive.raking-light"] { --fx-raking-colour: rgba(90, 58, 38, .42); --fx-raking-angle: 104deg; --fx-raking-penumbra: 24%; }
.c-chair [data-fx="guide.chalk-line"] { margin-top: 18px; --rule: var(--ink); opacity: .35; }
.c-chair-cap { margin-top: 12px; }
@media (min-width: 900px) {
  .c-intro-text { grid-column: 1 / 6; }
  .c-chair { grid-column: 7 / 12; width: auto; justify-self: center; }
  .c-chair-frame { height: 72svh; width: auto; aspect-ratio: 3 / 4; }
  .c-chair-frame img { height: 100%; }
}

/* ---------- Pieces: five families as panels ---------- */
.c-pieces-grid { align-items: start; row-gap: 48px; }
.c-pieces-text > * + * { margin-top: 24px; }
.c-note { color: var(--muted); opacity: .8; max-width: 34ch; }
.c-families { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--hairline); }
.c-family {
  display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; row-gap: 4px;
  padding: 16px 0 18px; border-bottom: 1px solid var(--hairline);
  color: var(--ink); cursor: default;
  transition: color var(--dur-quick) var(--ease-settle);
}
.c-family-n { grid-row: 1 / 3; padding-top: 9px; }
.c-family-t { font-size: clamp(26px, 2.2vw, 32px); line-height: 1.1; }
.c-family-l { font-size: 16px; line-height: 1.5; color: var(--muted); }
.c-family .c-family-n { transition: color var(--dur-quick) var(--ease-settle); }
.c-families.is-live .c-family { color: color-mix(in srgb, var(--ink) 45%, transparent); }
.c-families.is-live .c-family .c-family-l { color: color-mix(in srgb, var(--muted) 60%, transparent); }
.c-families.is-live .c-family.is-on { color: var(--ink); }
.c-families.is-live .c-family.is-on .c-family-l { color: var(--muted); }
.c-families.is-live .c-family.is-on .c-family-n { color: var(--kiln); }
@media (pointer: fine) { .c-families.is-live .c-family { cursor: pointer; } }

.c-gallery { min-width: 0; }
.c-gallery .accordion-gallery { height: 64svh !important; min-height: 440px; perspective: none; }
.c-gallery .ag-panel { box-shadow: none; background: var(--ground-dark); }
.c-gallery .ag-panel:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.c-gallery .ag-panel__overlay { background: linear-gradient(180deg, transparent 52%, rgba(90, 58, 38, .62) 100%), color-mix(in srgb, var(--ag-overlay) calc(var(--ag-dim, .35) * 100%), transparent); }
.c-gallery .ag-panel__bar { width: 1px; height: 32px; border-radius: 0; box-shadow: none; }
.c-gallery .ag-panel__label { left: 24px; bottom: 22px; }
.c-gallery .ag-panel__text {
  font-family: var(--font-display), Georgia, serif; font-weight: 300; letter-spacing: -0.01em;
  font-size: clamp(26px, 2.4vw, 38px); text-shadow: none;
}
.c-gallery-fallback { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 6px; height: 64svh; min-height: 440px; }
.c-gallery-fallback img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .c-pieces-grid { align-items: stretch; }
  .c-pieces-text { grid-column: 1 / 5; }
  .c-gallery { grid-column: 5 / 13; }
  .c-gallery > * { position: sticky; top: calc(var(--header-h) + 40px); }
  .c-gallery .accordion-gallery { height: 72svh !important; }
}
@media (max-width: 899.98px) {
  .c-pieces-text { display: contents; }
  .c-pieces-text > * { grid-column: 1 / -1; margin-top: 0; }
  .c-pieces-text > .label:first-child { order: 0; }
  .c-pieces-grid { row-gap: 20px; }
  .c-gallery { order: 1; margin-block: 16px 8px; }
  .c-families { order: 2; margin-top: 0; }
  .c-gallery .accordion-gallery { height: 62svh !important; min-height: 420px; }
}
@media (max-width: 520px) {
  .c-gallery .accordion-gallery { height: auto !important; min-height: 0; }
  .c-gallery .ag-panel { min-height: 72px; }
  .c-gallery .ag-panel--active { min-height: 300px; }
  .c-gallery-fallback { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .c-gallery-fallback img { aspect-ratio: 4 / 3; height: auto; }
}

/* ---------- Finish: spec beside the drying stack ---------- */
.c-finish-grid { align-items: center; row-gap: 48px; }
.c-finish-text > * + * { margin-top: 24px; }
.c-finish-h { font-size: clamp(36px, 3.4vw, 52px); max-width: 15ch; }
.c-finish-body { font-size: 18px; line-height: 1.6; max-width: 48ch; }
.c-spec { margin-top: 40px !important; }
.c-spec .spec-row dd { font-size: clamp(18px, 1.4vw, 20px); }
.c-spec-end { margin-top: 0 !important; }
@media (min-width: 900px) {
  .c-finish-fig { grid-column: 1 / 6; }
  .c-finish-text { grid-column: 7 / 13; }
}

/* ---------- Proof: the card held while the room passes under it ---------- */
.c-proof { position: relative; height: 160svh; background: var(--ground-dark); }
.c-proof-photo { position: absolute; inset: 0; overflow: hidden; }
.c-proof-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.c-proof-photo::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 60svh; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(90, 58, 38, .5), rgba(90, 58, 38, 0));
}
.c-proof-stage {
  position: sticky; top: 0; height: 100svh; width: 100%; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 4vw) 4vw 4vw;
}
.c-proof-tag { color: var(--surface); font-size: 13px; text-shadow: 0 0 18px rgba(90, 58, 38, .5); }
.c-proof-card {
  width: min(100%, 34ch + 96px); max-width: 560px;
  padding: clamp(24px, 3vw, 44px);
}
.c-proof-card > * + * { margin-top: 16px; }
.c-proof-h { font-size: clamp(30px, 2.8vw, 40px); line-height: 1.08; }
.c-proof-body { font-size: 17px; line-height: 1.6; max-width: 34ch; }
@media (max-width: 899.98px) {
  .c-proof { height: 140svh; }
  .c-proof-photo img { object-position: 38% 60%; }
}

/* ---------- Ask: the indigo band ---------- */
.c-ask { min-height: 70svh; display: flex; align-items: center; padding-block: clamp(80px, 10vw, 144px); }
.c-ask-grid { width: 100%; align-items: end; row-gap: 36px; }
.c-ask-h { font-size: clamp(48px, 5.6vw, 92px); color: var(--accent-ink); max-width: 9ch; }
.c-ask-side > * + * { margin-top: 32px; }
.c-ask .lede { color: var(--accent-ink); }
@media (min-width: 900px) {
  .c-ask-h { grid-column: 1 / 8; }
  .c-ask-side { grid-column: 8 / 13; padding-bottom: 10px; }
}
.c-bigbtn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: flex-end; gap: 24px;
  min-height: 44px; padding: 20px 24px 22px 26px;
  background: var(--accent-ink); color: var(--accent);
  border-radius: var(--radius-control); text-decoration: none;
  font-family: var(--font-display), Georgia, serif; font-weight: 300;
  font-size: clamp(30px, 2.8vw, 44px); line-height: 1.02; letter-spacing: -0.01em;
}
.c-bigbtn-t { display: flex; flex-direction: column; }
.c-bigbtn .arrow { width: 28px; height: 28px; flex: none; margin-bottom: 6px; }
.c-bigbtn-clone {
  position: absolute; inset: 0; display: inline-flex; align-items: flex-end; gap: 24px;
  padding: inherit; background: var(--ink); color: var(--accent-ink);
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transition: clip-path var(--dur-standard) var(--ease-plane);
}
.c-bigbtn-clone .arrow { transform: translateX(6px); }
.c-bigbtn:hover .c-bigbtn-clone, .c-bigbtn:focus-visible .c-bigbtn-clone { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.c-bigbtn:focus-visible { outline-color: var(--accent-ink); }
