/* =========================================================
   COLLECTION SPATIAL V3.3 — HORIZONTAL TITLE + DNA GEOMETRY
   Title is always horizontal (desktop + mobile).
   Desktop: extra linear geometric language fills the freed vertical space.
   Mobile: compact, keep existing density (no extra geometry clutter).
   DNA: Geometry / Space / Fragmentation / Rupture / Minimal Advanced
========================================================= */

.sv-collection-hero__content {
  position: relative;
  min-width: 0;
  padding-left: clamp(16px, 2vw, 28px);
  isolation: isolate;
}

/* Left vertical rule — primary geometric anchor */
.sv-collection-hero__content::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: .04em auto .04em 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(22,29,35,.62), rgba(22,29,35,.08));
}

/* ---------- TITLE : always horizontal ---------- */
.sv-collection-hero__title {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  color: var(--sv-text, #171b20);
  font-size: clamp(28px, 3.4vw, 48px); /* slightly reduced so long titles stay single-line friendly */
  font-weight: 450;
  line-height: 1.05;
  letter-spacing: -.045em;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: anywhere;
  white-space: normal;
}

/* Force all JS-generated spans to stay horizontal */
.sv-collection-hero__title .sv-title-line,
.sv-collection-hero__title .sv-title-line--first,
.sv-collection-hero__title .sv-title-line--second {
  display: inline;
  margin-top: 0;
  min-width: 0;
}

.sv-collection-hero__title .sv-title-line + .sv-title-line::before {
  content: " ";
  white-space: pre;
}

.sv-collection-hero__title .sv-title-connector {
  display: inline-block;
  margin: 0 .14em;
  font-size: .88em;
  line-height: 1;
  font-weight: 350;
  letter-spacing: -.04em;
  vertical-align: .02em;
  opacity: .85;
}

/* Underline rule under title */
.sv-collection-hero__title::after {
  content: "";
  display: block;
  width: clamp(48px, 5.5vw, 80px);
  height: 1px;
  margin-top: clamp(16px, 1.8vw, 26px);
  background: linear-gradient(to right, rgba(22,29,35,.55), rgba(22,29,35,.05));
  transition: width 420ms cubic-bezier(.16,.78,.2,1);
}

/* ---------- PRIMARY GEOMETRY (under title) ---------- */
.sv-collection-hero__geometry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(28px, 64px) minmax(42px, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: min(100%, 340px);
  margin-top: clamp(16px, 2vw, 26px);
  min-height: 18px;
  color: rgba(28,39,48,.62);
  pointer-events: none;
}

.sv-collection-hero__geometry-line {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, rgba(28,39,48,.48), rgba(28,39,48,.08));
}

.sv-collection-hero__geometry-track {
  position: relative;
  display: block;
  height: 8px;
  border-top: 1px solid rgba(28,39,48,.22);
  border-bottom: 1px solid rgba(28,39,48,.12);
  transition: border-color 300ms ease;
}

.sv-collection-hero__geometry-track::before,
.sv-collection-hero__geometry-track::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 1px;
  height: 7px;
  background: rgba(28,39,48,.42);
}

.sv-collection-hero__geometry-track::before { left: 18%; }
.sv-collection-hero__geometry-track::after { right: 12%; }

.sv-collection-hero__geometry-index {
  font-size: 9px;
  line-height: 1;
  letter-spacing: .16em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---------- DESKTOP DNA EXTENSION (empty space filler) ---------- */
/* Only visible on desktop / large screens where left column has vertical room */
.sv-collection-hero__dna-extend {
  display: none; /* mobile hidden */
}

@media (min-width: 761px) {
  .sv-collection-hero__dna-extend {
    display: block;
    position: relative;
    margin-top: clamp(28px, 3.5vw, 48px);
    width: min(100%, 280px);
    pointer-events: none;
    color: rgba(28,39,48,.45);
  }

  /* Fragmented horizontal rules — rupture language */
  .sv-collection-hero__dna-extend-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
  }

  .sv-collection-hero__dna-extend-row:last-child {
    margin-bottom: 0;
  }

  .sv-collection-hero__dna-extend-line {
    height: 1px;
    background: linear-gradient(90deg, rgba(28,39,48,.35), transparent);
  }

  .sv-collection-hero__dna-extend-line--right {
    background: linear-gradient(270deg, rgba(28,39,48,.35), transparent);
  }

  .sv-collection-hero__dna-extend-tick {
    width: 6px;
    height: 1px;
    background: rgba(28,39,48,.5);
  }

  /* Vertical rupture stack */
  .sv-collection-hero__dna-extend-stack {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 18px;
    padding-left: 2px;
  }

  .sv-collection-hero__dna-extend-stack span {
    display: block;
    width: 1px;
    height: 11px;
    background: linear-gradient(to bottom, rgba(28,39,48,.5), rgba(28,39,48,.08));
  }

  .sv-collection-hero__dna-extend-stack span:nth-child(2) {
    height: 7px;
    opacity: .7;
  }

  .sv-collection-hero__dna-extend-stack span:nth-child(3) {
    height: 15px;
    opacity: .45;
  }

  /* Micro index */
  .sv-collection-hero__dna-extend-index {
    margin-top: 16px;
    font-size: 8px;
    letter-spacing: .18em;
    color: rgba(28,39,48,.5);
    font-variant-numeric: tabular-nums;
  }
}

/* Hover feedback on desktop */
@media (hover:hover) and (pointer:fine) {
  .sv-collection-hero__content:hover .sv-collection-hero__title::after {
    width: clamp(72px, 7.5vw, 110px);
  }
  .sv-collection-hero__content:hover .sv-collection-hero__geometry-track {
    border-top-color: rgba(28,39,48,.42);
  }
  .sv-collection-hero__content:hover .sv-collection-hero__dna-extend-line {
    background: linear-gradient(90deg, rgba(28,39,48,.5), transparent);
  }
  .sv-collection-hero__content:hover .sv-collection-hero__dna-extend-line--right {
    background: linear-gradient(270deg, rgba(28,39,48,.5), transparent);
  }
}

/* Tablet adjustment */
@media (max-width: 1024px) and (min-width: 761px) {
  .sv-collection-hero__title {
    font-size: clamp(26px, 3.6vw, 40px);
    letter-spacing: -.048em;
  }
  .sv-collection-hero__title::after {
    margin-top: 18px;
  }
  .sv-collection-hero__geometry {
    margin-top: 18px;
  }
}

/* ---------- MOBILE : keep compact, no DNA extend ---------- */
@media (max-width: 760px) {
  .sv-collection-hero__content {
    padding-left: 12px;
  }

  .sv-collection-hero__title {
    width: 100%;
    font-size: clamp(17px, 5.5vw, 25px);
    line-height: 1.12;
    letter-spacing: -.055em;
    white-space: nowrap;
    overflow-wrap: normal;
    text-wrap: nowrap;
  }

  .sv-collection-hero__title .sv-title-line,
  .sv-collection-hero__title .sv-title-line--second {
    display: inline;
    margin-top: 0;
  }

  .sv-collection-hero__title .sv-title-connector {
    margin: 0 .13em;
    font-size: .86em;
    vertical-align: .02em;
  }

  .sv-collection-hero__title::after {
    width: 46px;
    margin-top: 13px;
  }

  .sv-collection-hero__geometry {
    grid-template-columns: 28px minmax(36px, 1fr) auto;
    gap: 8px;
    width: min(100%, 250px);
    margin-top: 14px;
    min-height: 14px;
  }

  .sv-collection-hero__geometry-track {
    height: 7px;
  }

  .sv-collection-hero__geometry-index {
    font-size: 8px;
    letter-spacing: .12em;
  }

  /* DNA extend stays hidden on mobile */
  .sv-collection-hero__dna-extend {
    display: none !important;
  }
}

@media (max-width: 360px) {
  .sv-collection-hero__title {
    font-size: clamp(15px, 5.1vw, 18.5px);
    letter-spacing: -.06em;
  }
  .sv-collection-hero__geometry {
    width: min(100%, 220px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sv-collection-hero__title::after,
  .sv-collection-hero__geometry-track,
  .sv-collection-hero__dna-extend-line {
    transition: none !important;
  }
}
