/* Fireplace collection and brand pages share the same reading rhythm. */
.collection-advice {
  background: var(--charcoal);
  color: #f6f5f2;
}

.brand-mast-grid {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(1.5rem, 4.4vw, 5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5.8vw, 6rem);
}

.brand-mast h1 {
  font-size: clamp(3rem, 6.2vw, 7rem);
  text-wrap: balance;
}

.collection-mast h1 + p,
.brand-mast h1 + p {
  max-width: 43ch;
  margin-block: 1.2rem 1.7rem;
  color: #d4d4d8;
}

.collection-kicker {
  margin-bottom: .8rem;
  color: #a51821;
}

.brand-brunner .collection-kicker,
.brand-spartherm .collection-kicker {
  color: #ff9290;
}

.brand-mast figure { min-width: 0; }

.brand-mast img {
  aspect-ratio: 1.35;
  object-fit: cover;
  background: #e9e2d7;
}

.brand-mast figcaption {
  margin-top: .65rem;
  font-size: .82rem;
}

.collection-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem 1.25rem;
}

.collection-ranges { padding-block: clamp(2.75rem, 6vw, 6rem); }

.collection-section-heading {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: end;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.7rem, 4vw, 3.75rem);
}

.collection-section-heading p { max-width: 32ch; }

.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1.4rem, 3.6vw, 4rem);
}

.collection-card {
  display: block;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.collection-card:nth-child(even) { margin-top: clamp(1.5rem, 5vw, 5.5rem); }

.collection-card img {
  aspect-ratio: 1.52;
  object-fit: cover;
  background: #e8dfd2;
}

.collection-card-product img {
  object-fit: contain;
  padding: 1rem;
  background: #e9e4dc;
}

.collection-card > div {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  padding-block: .95rem 1.35rem;
}

.collection-card h3 { margin-bottom: .5rem; }
.collection-card:hover h3 { text-decoration: underline; }
.collection-card p { color: var(--muted); }
.collection-card span { color: var(--action); font-size: 1.35rem; }

.collection-fm {
  display: grid;
  grid-template-columns: minmax(6rem, .25fr) 1fr auto;
  gap: .8rem 1.25rem;
  align-items: baseline;
  margin-top: clamp(1.7rem, 4vw, 3.5rem);
  padding: 1rem 0;
  border-block: 1px solid var(--rule);
  text-decoration: none;
}

.collection-fm strong { font-size: 1.5rem; }
.collection-fm span:last-child { color: var(--action); }

.collection-advice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.25rem 3rem;
  padding-block: clamp(2.5rem, 5.4vw, 5.75rem);
}

.collection-advice h2 {
  font-size: var(--section-heading-size);
  margin-bottom: .8rem;
}

.collection-advice p { max-width: 52ch; color: #d4d4d8; }

.brand-mast { background: #ede7dc; }
.brand-mast h1 + p { color: #4f4840; }

.brand-brunner .brand-mast,
.brand-spartherm .brand-mast {
  background: var(--charcoal);
  color: #f6f5f2;
}

.brand-brunner .brand-mast h1 + p,
.brand-spartherm .brand-mast h1 + p { color: #d4d4d8; }

.brand-brunner .brand-mast-grid {
  grid-template-columns: minmax(0, 1.24fr) minmax(0, .76fr);
}

.brand-brunner .brand-mast figure { grid-column: 1; grid-row: 1; }
.brand-brunner .brand-mast-grid > div { grid-column: 2; grid-row: 1; }
.brand-brunner .brand-mast img { aspect-ratio: 1.2; }

.brand-wamsler .brand-mast-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
}

.brand-wamsler .brand-mast img {
  height: clamp(17rem, 38vw, 35rem);
  object-fit: contain;
  padding: clamp(.5rem, 2vw, 2rem);
  background: #d4d4d8;
}

.brand-max-blank .brand-mast img { aspect-ratio: 1.13; }

.brand-back {
  display: inline-block;
  margin-bottom: clamp(1.2rem, 3vw, 2.6rem);
  font-size: .9rem;
}

.brand-example {
  border-bottom: 1px solid #cbc0b1;
  background: #e9e1d5;
}

.brand-example-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  align-items: center;
  gap: 1rem 2rem;
  padding-block: clamp(1.35rem, 3vw, 2.8rem);
}

.brand-example .collection-kicker { color: #a51821; }
.brand-example h2 { margin-bottom: .55rem; font-size: clamp(1.7rem, 3vw, 3.4rem); }
.brand-example .collection-actions { justify-content: end; }
.brand-example .collection-actions a { font-size: .9rem; font-weight: 650; }

.brand-gallery > h2,
.brand-models > h2 { margin-bottom: 1.6rem; }

.brand-gallery .view img { background: #e9e2d7; }

.brand-models {
  padding-block: clamp(2.75rem, 6.3vw, 6rem);
}

.brand-models details:last-child { border-bottom: 1px solid var(--rule); }
.brand-models summary { font-size: 1.05rem; }
.brand-models summary::marker { color: var(--action); }
.brand-models li { margin-left: clamp(.65rem, 2vw, 1.7rem); }

.brand-material img { aspect-ratio: 1.4; object-fit: cover; }

@media (max-width: 820px) {
  .brand-mast-grid,
  .brand-brunner .brand-mast-grid,
  .brand-wamsler .brand-mast-grid,
  .brand-example-grid,
  .collection-advice-grid { grid-template-columns: minmax(0, 1fr); }

  .brand-brunner .brand-mast-grid > div,
  .brand-brunner .brand-mast figure { grid-column: auto; grid-row: auto; }

  .brand-example .collection-actions { justify-content: start; }
  .collection-advice .button { justify-self: start; }
}

@media (max-width: 550px) {
  .collection-grid { grid-template-columns: minmax(0, 1fr); }
  .collection-card:nth-child(even) { margin-top: 0; }
  .collection-fm { grid-template-columns: 1fr auto; }
  .collection-fm span:first-of-type { grid-row: 2; grid-column: 1 / -1; }
  .collection-fm span:last-child { grid-row: 1; grid-column: 2; }
}

@media (min-width: 601px) and (max-width: 820px) {
  .brand-mast-grid { padding-block: 2rem; gap: 1.35rem; }

  .brand-mast img { aspect-ratio: 1.72; }

  .brand-wamsler .brand-mast img { height: clamp(16rem, 38vw, 22rem); }

  .collection-mast h1 + p,
  .brand-mast h1 + p { max-width: 54ch; margin-block: .9rem 1.25rem; }

  .collection-card:nth-child(even) { margin-top: 0; }
  .brand-back { margin-bottom: 1.05rem; }
}

.range-story { padding-block:clamp(2.75rem,7vw,7rem); }
.range-story-head { max-width:47rem; margin-bottom:clamp(1.5rem,4vw,3rem); }
.range-story-head h2 { margin:.55rem 0 .85rem; }
.range-story-head p:last-child { max-width:59ch; color:#5b5147; }
.range-story-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:clamp(1rem,2.2vw,2rem); }
.range-example { grid-column:span 2; min-width:0; }
.range-example:nth-child(-n+4) { grid-column:span 3; }
.range-example img { display:block; width:100%; aspect-ratio:1.24; object-fit:contain; background:#ece6dd; border-radius:.45rem; }
.range-example:nth-child(-n+4) img { aspect-ratio:1.52; }
.range-example h3 { font-size:clamp(1.1rem,2vw,1.55rem); line-height:1.2; letter-spacing:-.025em; text-wrap:pretty; margin:.7rem 0 .25rem; }
.range-example a { display:inline-flex; align-items:center; min-height:44px; color:#921724; font-size:.88rem; }
.range-next-links { display:flex; flex-wrap:wrap; align-items:center; gap:.8rem 1.3rem; }
.range-supplier { display:inline-flex; align-items:center; min-height:44px; font-weight:650; }
@media(max-width:680px) {
 .range-story-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .range-example,.range-example:nth-child(-n+4) { grid-column:auto; }
 .range-example:first-child { grid-column:1/-1; }
 .range-example img,.range-example:nth-child(n+2) img { aspect-ratio:1.05; }
}
.range-model-name { font-size:.86rem; color:#62564d; }
.range-example.range-room-photo img { object-fit:cover; object-position:center 60%; }

.collection-mast {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(34rem, 71svh, 55rem);
  background: var(--photo-shadow);
  color: #fff;
}
.collection-hero-photo { position: absolute; inset: 0; pointer-events: none; }
.collection-hero-photo img { position: absolute; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: right 76%; }
.collection-hero-photo::after { content: ""; position: absolute; z-index: -1; inset: 0; background: var(--hero-photo-fade); }
.collection-hero-photo figcaption { position: absolute; z-index: 1; right: var(--pad); bottom: 1rem; font-size: .8rem; }
.collection-hero-photo figcaption a { display: inline-block; padding: .45rem .65rem; background: #121316e6; color: #fff; pointer-events: auto; }
.collection-mast-grid { width:100%; margin-block:0; padding-block: 4.25rem clamp(3rem, 6vw, 6rem); }
.collection-mast-grid > div { max-width: min(49%, 43rem); }
.collection-mast h1 { font-size: clamp(2.65rem, 4.5vw, 5.3rem); }
.collection-mast h1 span { display:block; margin-top:.18em; font-size:.82em; font-weight:500; }
.collection-mast h1 + p { color: #f6f5f2; }
.collection-mast .collection-kicker { color: #f6f5f2; }

@media (max-width: 820px) {
  .collection-hero-photo::after { background: var(--hero-photo-fade-stacked); }
  .collection-mast-grid > div { max-width: 36rem; }
  .collection-mast-grid { padding-bottom: 4.25rem; }
}

@media (max-width: 720px) {
  .collection-mast { min-height:clamp(32rem,74svh,39rem); }
  .collection-hero-photo img { height:100%; object-position:68% center; mask-image:none; }
  .collection-hero-photo::after { display:block; background:linear-gradient(0deg,#121316e8 0%,#121316a6 25%,transparent 62%); }
  .collection-mast-grid { padding-top:20rem; padding-bottom:4.5rem; }
  .collection-mast h1 { font-size:clamp(2.15rem,8vw,2.7rem); }
  .collection-actions { margin-top:1.25rem; }
}

@media(min-width:2000px) {
  .collection-hero-photo { width:var(--marketing-photo-width); margin-inline:auto; }
  .collection-hero-photo img { mask-image:linear-gradient(90deg,transparent,#000 9%,#000 96%,transparent); }
}
@media(max-width:720px) {
 .collection-mast h1 + p { display:none; }
}

/* A visual guide follows the complete brand collection. */
.collection-styles { padding-block:clamp(3rem,6vw,6rem); }
.style-guide-heading { max-width:48rem; margin-bottom:2rem; }
.style-guide-heading h2 { font-size:clamp(2rem,3.8vw,3.8rem); line-height:1.1; margin:.5rem 0 1rem; text-wrap:balance; }
.style-guide-heading > p:last-child { max-width:52ch; }
.style-guide-grid { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:clamp(1rem,2vw,2rem); }
.style-guide-card { min-width:0; background:#fff; border-radius:8px; overflow:hidden; }
.style-guide-freestanding,.style-guide-tiled { grid-column:span 7; }
.style-guide-built-in,.style-guide-inserts { grid-column:span 5; }
.style-example-track { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; overscroll-behavior-x:contain; }
.style-example-track::-webkit-scrollbar { display:none; }
.style-example-track > .style-example-slide { position:relative; flex:0 0 100%; min-width:0; scroll-snap-align:start; scroll-snap-stop:always; text-decoration:none; }
.style-example-slide > a { display:block; }
.style-example-track img { width:100%; height:clamp(18rem,28vw,27rem); object-fit:cover; }
.style-example-brand { position:absolute; bottom:1rem; left:1rem; display:flex; gap:1rem; align-items:center; padding:.5rem .75rem; background:#18191de6; color:#fff; font-size:.8rem; }
.style-example-track > a:focus-visible { outline:3px solid var(--action); outline-offset:-3px; }
.style-guide-copy { padding:clamp(1.25rem,2.5vw,2rem); }
.style-guide-title { display:flex; align-items:center; justify-content:space-between; gap:.75rem; margin-bottom:.75rem; }
.style-guide-copy h3 { font-size:clamp(1.5rem,2.1vw,2.2rem); line-height:1.15; margin:0; }
.style-guide-copy p { font-size:.95rem; line-height:1.6; max-width:57ch; }
.style-example-controls { display:flex; flex:none; gap:0; }
.style-example-controls[hidden] { display:none; }
.style-example-controls button { display:grid; place-items:center; width:28px; height:44px; border:0; padding:0; background:transparent; cursor:pointer; }
.style-example-controls button::before { content:''; width:7px; height:7px; border-radius:50%; background:#b7afa7; }
.style-example-controls button[aria-pressed=true]::before { background:var(--action); }
@media(max-width:760px) {
 .style-guide-grid { grid-template-columns:1fr; gap:1.5rem; }
 .style-guide-card { grid-column:auto; }
 .style-example-track img { height:auto; aspect-ratio:4/3; }
}

.style-guide-eyebrow { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.style-guide-eyebrow .caption { margin:0; }
.style-autoplay { min-height:44px; padding:.4rem .8rem; border:1px solid var(--rule); border-radius:2rem; background:transparent; color:var(--ink); font:inherit; font-size:.75rem; cursor:pointer; }
.style-autoplay[hidden] { display:none; }
