/* ═══════════════════════════════════════════════════════════════════
   catalogue — the four lines, a line, a piece
   Loaded after site.css; it adds, it does not restyle the landing page.
   Everything uses logical properties so RTL and LTR both hold.
   ═══════════════════════════════════════════════════════════════════ */

/* ---------- shared page furniture ---------- */

.page-head {
  padding-block: clamp(7rem, 14vh, 11rem) clamp(2.5rem, 6vh, 4rem);
  background: var(--bg);
}
.page-head h1 {
  font-size: var(--step-4);
  line-height: var(--lh-display);
  max-width: 18ch;
  margin-block: 1rem 1.4rem;
}
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}

.crumbs { margin-bottom: clamp(1.6rem, 4vh, 2.6rem); }
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.crumbs li + li::before {
  content: "/";
  margin-inline-end: 0.75rem;
  color: var(--rule);
}
.crumbs a { text-decoration: none; border-block-end: 1px solid transparent; transition: border-color 200ms; }
.crumbs a:hover { border-block-end-color: var(--brass); }

.rail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}
.rail-head h2 { font-size: var(--step-3); line-height: var(--lh-head); }
.rail-head p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- collections index: the four lines ---------- */

.line-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
}
@media (max-width: 780px) { .line-grid { grid-template-columns: 1fr; } }

.line-card {
  display: block;
  text-decoration: none;
  cursor: pointer;
  color: inherit;
}
.line-card__fig {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--walnut-deep, #2A1206);
}
.line-card__fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1), filter 500ms;
  filter: saturate(0.94);
}
.line-card:hover .line-card__fig img,
.line-card:focus-visible .line-card__fig img { transform: scale(1.045); filter: saturate(1.02); }

/* a line with nothing photographed yet gets the mark, never a stock image */
.line-card__void {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(218, 158, 60, 0.10), transparent 60%),
    var(--walnut-deep, #2A1206);
  color: rgba(228, 220, 202, 0.18);
}
.line-card__void svg { width: clamp(60px, 12vw, 110px); height: auto; }

.line-card__n {
  position: absolute;
  inset-block-start: 1rem;
  inset-inline-start: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brass);
  background: rgba(18, 7, 1, 0.72);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  line-height: 1.6;
}
.line-card__body { padding-block-start: 1.4rem; }
.line-card__kicker {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.line-card__body h2 {
  font-size: var(--step-3);
  line-height: var(--lh-head);
  margin-bottom: 0.6rem;
}
.line-card__thesis { color: var(--text-muted); max-width: 38ch; }
.line-card__count {
  display: inline-block;
  margin-block-start: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  border-block-end: 1px solid currentColor;
  padding-block-end: 0.2rem;
}

.cta-band { text-align: center; }
.cta-band h2 { font-size: var(--step-3); line-height: var(--lh-head); margin-bottom: 0.9rem; }
.cta-band p { color: var(--text-on-dark-muted); max-width: 44ch; margin: 0 auto 2rem; }

/* ---------- one line: hero ---------- */

.line-hero {
  position: relative;
  min-height: min(82vh, 760px);
  display: flex;
  align-items: flex-end;
  color: var(--sand);
  background: var(--walnut-deep, #2A1206);
  overflow: hidden;
}
.line-hero__media { position: absolute; inset: 0; }
.line-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.line-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(15, 7, 2, 0.92) 8%, rgba(15, 7, 2, 0.35) 48%, rgba(15, 7, 2, 0.55)),
    linear-gradient(to var(--edge, right), rgba(15, 7, 2, 0.6), transparent 60%);
}
.line-hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(6rem, 12vh, 8rem) clamp(3rem, 7vh, 5rem);
  /* no width here: .shell already sets it, and a width:100% would beat it
     in the cascade and push the heading out to the viewport edge. */
}
.line-hero .crumbs { color: rgba(228, 220, 202, 0.7); }
.line-hero .crumbs li + li::before { color: rgba(228, 220, 202, 0.28); }
.line-hero__n {
  display: block;
  font-size: var(--step-2);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--brass);
  margin-bottom: 0.5rem;
}
.line-hero h1 {
  font-size: var(--step-5);
  line-height: var(--lh-display);
  letter-spacing: -0.03em;
  margin-block: 0.4rem 1.1rem;
}
.line-hero__thesis {
  font-size: var(--step-1);
  line-height: 1.6;
  color: rgba(228, 220, 202, 0.85);
  max-width: 34ch;
}
/* a line with no hero photograph still needs a readable band, not a black void */
.line-hero--bare { min-height: min(58vh, 520px); }
.line-hero--bare::after {
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(218, 158, 60, 0.12), transparent 62%),
    linear-gradient(to top, rgba(15, 7, 2, 0.9), rgba(15, 7, 2, 0.55));
}

.line-lede { padding-block: clamp(3.5rem, 8vh, 6rem); }
.line-note {
  margin-block-start: 2rem;
  padding-inline-start: 1.1rem;
  border-inline-start: 2px solid var(--brass);
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 48ch;
}

/* ---------- one line: its pieces ---------- */

.piece-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (max-width: 1000px) { .piece-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .piece-grid { grid-template-columns: 1fr; } }

.piece-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.piece-card__fig {
  position: relative;
  aspect-ratio: var(--frame, 4 / 5);
  overflow: hidden;
  background: var(--sand-deep, #D9CFB7);
}
/* the range is 3:4, square and wide; cover would slice the square ones */
.piece-card__fig img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
.piece-card__link:hover .piece-card__fig img,
.piece-card__link:focus-visible .piece-card__fig img { transform: scale(1.05); }
.piece-card__badge {
  position: absolute;
  inset-block-start: 0.85rem;
  inset-inline-start: 0.85rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(18, 7, 1, 0.74);
  color: var(--brass);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.7;
}
.piece-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin-block: 1.1rem 0.5rem;
}
.piece-card__meta h3 { font-size: var(--step-1); line-height: var(--lh-head); }
.piece-card__mat {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.piece-card__link > p { color: var(--text-muted); }
.piece-card__more {
  display: inline-block;
  margin-block-start: 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--brass);
  border-block-end: 1px solid transparent;
  padding-block-end: 0.15rem;
  transition: border-color 220ms;
}
.piece-card__link:hover .piece-card__more,
.piece-card__link:focus-visible .piece-card__more { border-block-end-color: currentColor; }

/* an honest empty state: we say the line is being made, we do not pad the grid */
.line-empty {
  text-align: center;
  padding: clamp(3rem, 8vw, 5.5rem) 1.5rem;
  border: 1px solid var(--rule);
}
.line-empty__mark { display: inline-block; width: 64px; color: var(--brass); opacity: 0.55; }
.line-empty__mark svg { width: 100%; height: auto; }
.line-empty h3 { font-size: var(--step-2); line-height: var(--lh-head); margin-block: 1.4rem 0.8rem; }
.line-empty p { color: var(--text-muted); max-width: 46ch; margin: 0 auto 2rem; }

/* ---------- the other lines ---------- */

.siblings h2 { font-size: var(--step-2); line-height: var(--lh-head); margin-bottom: 2rem; }
.siblings__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 800px) { .siblings__grid { grid-template-columns: 1fr; } }
.siblings__grid a {
  display: block;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--rule-on-dark);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 250ms, background-color 250ms;
}
.siblings__grid a:hover,
.siblings__grid a:focus-visible { border-color: var(--brass); background: rgba(218, 158, 60, 0.06); }
.siblings__grid span { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; color: var(--brass); }
.siblings__grid b { display: block; font-size: var(--step-1); font-weight: 600; margin-block: 0.5rem 0.25rem; }
.siblings__grid i { font-style: normal; font-size: 0.8rem; color: var(--text-on-dark-muted); }

/* ---------- one piece ---------- */

.piece-top { padding-block: clamp(6.5rem, 13vh, 9rem) 0; }

.piece-view { padding-block: clamp(1rem, 3vh, 2rem) clamp(4rem, 9vh, 7rem); }
.piece-view__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 900px) { .piece-view__grid { grid-template-columns: 1fr; } }

.piece-view__shots { display: grid; gap: clamp(1rem, 2vw, 1.75rem); }
.shot {
  margin: 0;
  background: var(--sand-deep, #D9CFB7);
  overflow: hidden;
  aspect-ratio: var(--frame, 4 / 5);
}
/* contain, never cover: the range is 3:4, square and near 2:1 at once, and a
   catalogue frame must not cut the object it is showing. */
.shot img { width: 100%; height: 100%; object-fit: contain; }

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.6rem, 1.2vw, 1rem);
}
@media (max-width: 560px) { .shot-grid { grid-template-columns: repeat(2, 1fr); } }
.shot-grid .shot { cursor: zoom-in; transition: opacity 240ms; }
.shot-grid .shot:hover { opacity: 0.86; }

.piece-view__sticky { position: sticky; inset-block-start: clamp(5rem, 10vh, 7rem); }
@media (max-width: 900px) { .piece-view__sticky { position: static; } }

.piece-view__line {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  text-decoration: none;
  border-block-end: 1px solid transparent;
  padding-block-end: 0.2rem;
  transition: border-color 220ms;
}
.piece-view__line:hover, .piece-view__line:focus-visible { border-block-end-color: currentColor; }
.piece-view h1 {
  font-size: var(--step-4);
  line-height: var(--lh-display);
  letter-spacing: -0.025em;
  margin-block: 1rem 0.9rem;
}
.piece-view__line1 { font-size: var(--step-1); line-height: 1.6; color: var(--walnut); }
.piece-view__body { margin-block-start: 1.4rem; color: var(--text-muted); }

.specs { margin-block: 2.25rem 2.25rem; padding: 0; }
.spec {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding-block: 0.85rem;
  border-block-start: 1px solid var(--rule);
  align-items: baseline;
}
.spec:last-child { border-block-end: 1px solid var(--rule); }
.spec dt {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.spec dd { margin: 0; font-size: 0.95rem; }
.spec--price dd { font-size: var(--step-1); color: var(--walnut); }
@media (max-width: 460px) { .spec { grid-template-columns: 1fr; gap: 0.25rem; } }

.piece-view__hint { margin-block-start: 1.1rem; font-size: 0.85rem; color: var(--text-muted); max-width: 42ch; }

.sib-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 800px) { .sib-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .sib-grid { grid-template-columns: 1fr; } }
.sib-card { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.sib-card__fig { display: block; aspect-ratio: 5 / 4; overflow: hidden; background: var(--sand-deep, #D9CFB7); }
.sib-card__fig img { width: 100%; height: 100%; object-fit: contain; transition: transform 800ms cubic-bezier(0.16, 1, 0.3, 1); }
.sib-card:hover .sib-card__fig img, .sib-card:focus-visible .sib-card__fig img { transform: scale(1.05); }
.sib-card b { display: block; font-weight: 600; margin-block: 0.8rem 0.2rem; }
.sib-card i { font-style: normal; font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- the four lines, on the landing page ---------- */

.lines-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule-on-dark); }
@media (max-width: 900px) { .lines-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .lines-strip { grid-template-columns: 1fr; } }
.lines-strip a {
  display: block;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--bg-dark, #1A0B03);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background-color 300ms;
}
.lines-strip a:hover, .lines-strip a:focus-visible { background: #231004; }
.lines-strip .n { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; color: var(--brass); }
.lines-strip h3 { font-size: var(--step-2); line-height: var(--lh-head); margin-block: 0.9rem 0.5rem; }
.lines-strip .k { display: block; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-on-dark-muted); margin-bottom: 0.9rem; }
.lines-strip p { color: var(--text-on-dark-muted); font-size: 0.92rem; }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .line-card__fig img,
  .piece-card__fig img,
  .sib-card__fig img { transition: none; }
  .line-card:hover .line-card__fig img,
  .piece-card__link:hover .piece-card__fig img,
  .sib-card:hover .sib-card__fig img { transform: none; }
}

/* rail headings on the landing page now open the piece */
.piece__meta h3 a {
  text-decoration: none;
  color: inherit;
  border-block-end: 1px solid transparent;
  transition: border-color 220ms;
}
.piece__meta h3 a:hover,
.piece__meta h3 a:focus-visible { border-block-end-color: var(--brass); }

/* ---------- the line film ---------- */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.line-film__frame { margin: 0; position: relative; }
.line-film__video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--espresso-deep, #120701);
  display: block;
}
.line-film__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--sand);
}
.line-film__play span {
  width: clamp(56px, 7vw, 84px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(228, 220, 202, 0.55);
  background: rgba(18, 7, 1, 0.42);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  transition: background-color 260ms, border-color 260ms, scale 260ms;
}
.line-film__play span::before {
  content: "";
  /* Physical, not logical: a play triangle points right in every locale, and
     the landing page's own player does the same. Mirroring it would be wrong. */
  border-block: 0.5em solid transparent;
  border-left: 0.85em solid currentColor;
  font-size: clamp(11px, 1.4vw, 16px);
  margin-left: 0.2em;
}
.line-film__play:hover span,
.line-film__play:focus-visible span { background: rgba(218, 158, 60, 0.28); border-color: var(--brass); scale: 1.06; }
.line-film__play[hidden] { display: none; }

.line-film figcaption {
  margin-block-start: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .line-film__play span { transition: none; }
  .line-film__play:hover span { scale: 1; }
}

/* ---------- the method: three steps per line ---------- */

.method {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
@media (max-width: 860px) { .method { grid-template-columns: 1fr; } }

.method__step { border-block-start: 1px solid var(--rule); padding-block-start: 1.4rem; }
.method__n {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--brass);
  margin-bottom: 0.9rem;
}
.method__step h3 { font-size: var(--step-1); line-height: var(--lh-head); margin-bottom: 0.7rem; }
.method__step p { color: var(--text-muted); }

.line-card__note {
  margin-block-start: 0.9rem;
  padding-inline-start: 0.9rem;
  border-inline-start: 2px solid var(--brass);
  font-size: 0.86rem;
  color: var(--text-muted);
  max-width: 40ch;
}

/* ---------- the QR, inside the contact card ---------- */

.qr-inline {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-block-start: 1.6rem;
  padding-block-start: 1.4rem;
  border-block-start: 1px solid var(--rule-on-dark);
}
.qr-inline img {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  background: #fff;
  padding: 0.4rem;
  border-radius: 4px;
}
.qr-inline span {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-on-dark-muted);
}
