/* ============================================================
   CLOUD PAINTS — Decorative Texture Collection page
   Editorial showcase: hero scrim photo, family sections numbered
   01-05, hand-sculpted product cards (image-led), process ribbon,
   CTA. The per-family --fam-color tints subtle accents only;
   the photos do the colour work.
   ============================================================ */

/* HERO --------------------------------------------------------- */
.tx-hero {
  position: relative;
  min-height: clamp(560px, 78vh, 760px);
  padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 9vw, 120px);
  overflow: hidden;
  isolation: isolate;
}
.tx-hero-bg {
  position: absolute; inset: 0;
  z-index: -2;
  background: #0b0a10;
  overflow: hidden;
}
.tx-hero-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.18) contrast(1.08);
}
.tx-hero::after {
  content: ""; position: absolute; inset: 0;
  /* Lifted scrim — was crushing the marble photo. Left edge still
     holds copy contrast; right side breathes. */
  background:
    linear-gradient(90deg,
      rgba(11,10,16,0.78) 0%,
      rgba(11,10,16,0.55) 28%,
      rgba(11,10,16,0.25) 55%,
      rgba(11,10,16,0.06) 82%,
      rgba(11,10,16,0.00) 100%),
    linear-gradient(180deg,
      rgba(11,10,16,0.12) 0%,
      transparent 40%,
      transparent 75%,
      rgba(11,10,16,0.22) 100%);
  z-index: -1;
  pointer-events: none;
}
/* Light theme flips the copy to navy (var(--text)), so the scrim
   must flip too: a warm white mist keeps the photo bright and the
   navy headline crisp. */
[data-theme="light"] .tx-hero::after {
  background:
    linear-gradient(90deg,
      rgba(255,250,240,0.94) 0%,
      rgba(255,250,240,0.78) 30%,
      rgba(255,250,240,0.38) 60%,
      rgba(255,250,240,0.06) 85%,
      rgba(255,250,240,0.00) 100%),
    linear-gradient(180deg,
      rgba(255,250,240,0.55) 0%,
      transparent 45%,
      transparent 75%,
      rgba(255,250,240,0.30) 100%);
}
.tx-hero-inner {
  max-width: 720px;
}
.tx-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 400;
  color: var(--text);
  margin: 16px 0 22px;
}
.tx-hero h1 em {
  color: var(--red-2);
  font-style: italic;
  font-weight: 400;
}
.tx-hero .lede {
  font-size: clamp(1.04rem, 1.4vw, 1.18rem);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 60ch;
  margin: 0 0 28px;
}
.tx-hero-ctas {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 8px;
}

/* SWATCH RIBBON ------------------------------------------------- */
.tx-swatch-ribbon {
  background: var(--bg);
  padding: clamp(40px, 5vw, 64px) 0 0;
}
.tx-swatch-eyebrow {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red-2);
  text-align: center;
  margin-bottom: 18px;
}
.tx-swatch-row {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: clamp(8px, 1vw, 12px);
}
.tx-swatch-row li {
  list-style: none;
}
.tx-swatch-row a {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--c, var(--red-2));
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-mid), box-shadow var(--t-mid);
}
.tx-swatch-row a:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--c, var(--red-2)) 60%, transparent);
}
.tx-swatch-row img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: var(--c);
}
.tx-swatch-row a::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11,10,16,0.72) 100%);
  pointer-events: none;
}
.tx-swatch-row span {
  position: absolute;
  left: 8px; right: 8px; bottom: 8px;
  z-index: 1;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}
@media (max-width: 1100px) {
  .tx-swatch-row { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 560px) {
  /* 2-across made each chip a ~170px stretched block on a phone;
     keep the "one glance" feel with 5 compact squares per row. */
  .tx-swatch-row { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .tx-swatch-row a { border-radius: 8px; }
  .tx-swatch-row span {
    font-size: 7.5px;
    letter-spacing: 0.03em;
    left: 3px; right: 3px; bottom: 5px;
  }
}

/* FIVE-FAMILIES STRIP ------------------------------------------ */
.tx-families-strip {
  background: var(--bg);
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
  padding: clamp(20px, 2.2vw, 28px) 0;
}
.tx-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(8px, 1vw, 14px);
}
.tx-strip-chip {
  display: flex; flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  text-decoration: none;
  color: var(--text);
  transition: transform var(--t-mid), border-color var(--t-mid), background-color var(--t-mid);
}
.tx-strip-chip:hover {
  transform: translateY(-3px);
  border-color: var(--c, var(--red-2));
  background: color-mix(in srgb, var(--c, var(--red-2)) 9%, var(--surface));
}
.tx-strip-chip .n {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c, var(--red-2));
}
.tx-strip-chip .t {
  font-family: var(--serif);
  font-size: clamp(0.96rem, 1.2vw, 1.1rem);
  line-height: 1.2;
  font-weight: 500;
}

/* FAMILY SECTIONS ---------------------------------------------- */
.tx-families {
  background: var(--bg);
  padding: clamp(80px, 11vw, 140px) 0;
}
.tx-family {
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid var(--border-2);
}
.tx-family:first-child { border-top: none; padding-top: 0; }
.tx-fam-head {
  max-width: 760px;
  margin: 0 auto clamp(36px, 4vw, 52px);
  text-align: center;
}
.tx-fam-num {
  display: inline-block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fam-color, var(--red-2));
  padding: 6px 14px;
  border: 1px solid color-mix(in srgb, var(--fam-color, var(--red-2)) 35%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--fam-color, var(--red-2)) 12%, transparent);
}
.tx-fam-head h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  font-weight: 400;
  color: var(--text);
  margin: 18px 0 16px;
}
.tx-fam-head h2 em {
  color: var(--fam-color, var(--red-2));
  font-style: italic;
  font-weight: 400;
}
.tx-fam-head p {
  font-size: 1.04rem;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 60ch;
  margin: 0 auto;
}

.tx-fam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(18px, 2.2vw, 32px);
}

/* PRODUCT CARDS ------------------------------------------------- */
.tx-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-mid), border-color var(--t-mid), box-shadow var(--t-mid);
}
.tx-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--c, var(--red-2)) 50%, var(--border-2));
  box-shadow: 0 22px 44px -22px rgba(0,0,0,0.5);
}
.tx-card-img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0b0a10;
}
.tx-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(.4,0,.2,1);
}
.tx-card:hover .tx-card-img img { transform: scale(1.06); }
.tx-card-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11,10,16,0.65) 100%);
  pointer-events: none;
}
.tx-card-tag {
  position: absolute;
  top: 14px; left: 14px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  padding: 6px 12px;
  background: color-mix(in srgb, var(--c, var(--red-2)) 75%, transparent);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.tx-card-body {
  padding: 22px 22px 26px;
  display: flex; flex-direction: column; gap: 6px;
  flex: 1;
}
.tx-card-name {
  font-family: var(--serif);
  font-size: clamp(1.16rem, 1.5vw, 1.32rem);
  line-height: 1.18;
  font-weight: 500;
  color: var(--text);
  margin: 0;
}
.tx-card-tagline {
  font-size: 0.92rem;
  color: var(--text-2);
  margin: 0 0 10px;
}
.tx-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-2);
}
.tx-card-sizes {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.tx-card-size {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border: 1px solid var(--border-2);
  border-radius: 6px;
  color: var(--text-2);
}
.tx-card-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c, var(--red-2));
  transition: gap var(--t-fast);
}
.tx-card:hover .tx-card-cta { gap: 10px; }

/* PROCESS RIBBON ----------------------------------------------- */
.tx-process {
  background:
    linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--red-2) 5%, transparent) 50%, transparent 100%),
    var(--bg);
  padding: clamp(70px, 10vw, 120px) 0;
  border-top: 1px solid var(--border-2);
}
.tx-process-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(40px, 5vw, 56px);
}
.tx-process-head h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  font-weight: 400;
  margin: 14px 0 0;
}
.tx-process-head h2 em { color: var(--red-2); font-style: italic; font-weight: 400; }
.tx-process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
}
.tx-process-step {
  padding: clamp(24px, 2.8vw, 36px);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 18px;
  position: relative;
}
.tx-process-step .num {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red-2);
}
.tx-process-step h3 {
  font-family: var(--serif);
  font-size: clamp(1.32rem, 1.8vw, 1.55rem);
  line-height: 1.18;
  font-weight: 400;
  margin: 14px 0 10px;
  color: var(--text);
}
.tx-process-step p {
  color: var(--text-2);
  font-size: 0.97rem;
  line-height: 1.65;
  margin: 0;
}

/* CTA ---------------------------------------------------------- */
.tx-cta-wrap {
  background: var(--bg);
  padding: clamp(70px, 10vw, 120px) 0;
  border-top: 1px solid var(--border-2);
}
.tx-cta {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.tx-cta h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.022em;
  font-weight: 400;
  margin: 14px 0 14px;
}
.tx-cta h2 em { color: var(--red-2); font-style: italic; font-weight: 400; }
.tx-cta p {
  color: var(--text-2);
  line-height: 1.65;
  margin: 0 0 24px;
}
.tx-cta-btns {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

/* RESPONSIVE --------------------------------------------------- */
@media (max-width: 900px) {
  .tx-strip { grid-template-columns: repeat(2, 1fr); }
  .tx-process-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tx-strip { grid-template-columns: 1fr; }
}
