.reference-middle {
  background: #fff;
  color: var(--text-main);
  font-family: var(--ff-sans);
}
.reference-middle img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.ref-shop-section,
.ref-collections,
.ref-community,
.ref-guides,
.ref-faq,
.ref-featured,
.ref-consultation {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 3.4rem 0 0;
}
.ref-section-head {
  text-align: center;
  margin-bottom: 1.35rem;
}
.ref-section-head h2 {
  margin: 0 0 0.85rem;
  font-family: var(--ff-serif);
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1;
}
.ref-section-head p {
  margin: 0 auto;
  max-width: 620px;
  color: var(--text-muted);
  line-height: 1.6;
}
.ref-tabs {
  display: flex;
  justify-content: center;
  gap: clamp(0.7rem, 2vw, 1.8rem);
  flex-wrap: wrap;
}
.ref-tabs button,
.ref-faq summary {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
}
.ref-tabs button {
  position: relative;
  padding-bottom: 0.45rem;
  font-size: 0.9rem;
}

.ref-tabs button.active {
  color: var(--gold-dark);
}
.ref-tabs button.active::after {
  transform: scaleX(1);
}
.ref-shop-section {
  position: relative;
}
.ref-product-window {
  overflow: hidden;
}
.ref-product-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.45s var(--ease-out), opacity 0.2s ease;
  will-change: transform;
}
.ref-product-track.is-switching {
  opacity: 0;
}
.ref-product-card {
  flex: 0 0 calc((100% - 4rem) / 5);
  min-width: 0;
  text-align: center;
  color: var(--charcoal);
}
.ref-product-card figure {
  position: relative;
  margin: 0;
  aspect-ratio: 0.78;
  overflow: hidden;
  background: var(--cream);
}
.ref-product-card img {
  height: 100%;
  transition: transform 0.45s var(--ease-out);
}
.ref-product-card:hover img {
  transform: scale(1.055);
}
.ref-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  background: #d32222;
  color: #fff;
  padding: 0.25rem 0.45rem;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ref-product-card h3 {
  margin: 0.85rem 0 0.25rem;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.35;
}
.ref-product-code {
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ref-price {
  margin-top: 0.35rem;
  color: var(--dark);
  font-size: 0.9rem;
  font-weight: 500;
}
.ref-slider-btn {
  position: absolute;
  top: 53%;
  z-index: 5;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(43,43,43,0.14);
  border-radius: 50%;
  background: #fff;
  color: var(--gold-dark);
  font-family: var(--ff-serif);
  font-size: 1.7rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(43,43,43,0.08);
}
.ref-prev { left: -1.1rem; }
.ref-next { right: -1.1rem; }
.ref-dream-home {
  width: min(1440px, calc(100% - 48px));
  margin: 4.4rem auto 0;
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1.4rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(1rem, 2vw, 1.4rem);
  border: 1px solid rgba(200,164,93,0.2);
  background: linear-gradient(90deg, #fff 0%, var(--cream) 100%);
}
.ref-home-showcase {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: repeat(2, minmax(190px, 1fr));
  gap: clamp(0.8rem, 1.5vw, 1.2rem);
}
.ref-home-showcase figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #fff;
}
.ref-home-showcase img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.ref-home-showcase figure:hover img {
  transform: scale(1.045);
}
.ref-home-main {
  grid-row: span 2;
  min-height: 470px;
}
.ref-home-main figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.92);
  color: var(--charcoal);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ref-home-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
  padding: clamp(1.5rem, 3.5vw, 3.2rem);
  background: #fff;
  border-left: 3px solid var(--gold);
}
.ref-home-copy span,
.ref-featured h2 {
  color: var(--gold-dark);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ref-home-copy h2,
.ref-consultation h2 {
  margin: 0.5rem 0 0.8rem;
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1;
}
.ref-home-copy p,
.ref-consultation p {
  color: var(--text-muted);
  line-height: 1.7;
}
.ref-home-copy ul {
  display: grid;
  gap: 0.7rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--charcoal);
}
.ref-home-copy li {
  position: relative;
  padding-left: 1.25rem;
  line-height: 1.55;
}
.ref-home-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold-dark);
  background: var(--gold);
}
.ref-home-copy a,
.ref-consultation a {
  width: max-content;
  margin-top: 1rem;
  background: var(--gold);
  color: var(--dark);
  padding: 0.9rem 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  display: block;
  text-transform: uppercase;
}
.ref-offer-strip {
  margin: 3.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--charcoal);
  color: #fff;
}
.ref-offer-strip div {
  min-height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.6rem;
  border-right: 1px solid rgba(255,255,255,0.16);
  background: linear-gradient(135deg, rgba(201,168,76,0.14), rgba(0,0,0,0));
}
.ref-offer-strip strong {
  font-family: var(--ff-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
}
.ref-offer-strip span {
  color: var(--gold-pale);
}
.ref-collection-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem 1rem;
  text-align: center;
}
.ref-collection-grid img {
  width: min(142px, 100%);
  aspect-ratio: 1;
  margin: 0 auto 0.7rem;
  border-radius: 50%;
  border: 1px solid rgba(200,164,93,0.28);
  box-shadow: 0 14px 34px rgba(43,43,43,0.08);
}
.ref-collection-grid span {
  font-size: 0.84rem;
  color: var(--charcoal);
}
.ref-testimonial-viewport {
  position: relative;
  overflow: hidden;
}
.ref-testimonial-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.45s var(--ease-out);
}
.ref-testimonial-track article {
  flex: 0 0 calc((100% - 3rem) / 4);
  background: #fff;
  border: 1px solid rgba(200,164,93,0.18);
  text-align: center;
  padding-bottom: 1rem;
}
.ref-testimonial-track img {
  aspect-ratio: 1.12;
}
.ref-testimonial-track h3 {
  margin: 1rem 1rem 0.35rem;
  font-family: var(--ff-serif);
  font-size: 1.25rem;
  font-weight: 500;
}
.ref-testimonial-track p {
  margin: 0 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.ref-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.ref-guide-grid article {
  background: #fff;
  border: 1px solid rgba(200,164,93,0.18);
  text-align: center;
}
.ref-guide-grid img {
  aspect-ratio: 1.35;
}
.ref-guide-grid h3 {
  margin: 1rem 1rem 0.45rem;
  font-family: var(--ff-serif);
  font-size: 1.25rem;
}
.ref-guide-grid p {
  margin: 0 1rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.ref-guide-grid a {
  display: inline-block;
  margin: 0.9rem 0 1.1rem;
  color: var(--gold-dark);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ref-faq {
  max-width: 980px;
}

.ref-faq details {
  background: #fff;
  border-bottom: 1px solid rgba(200,164,93,0.16);
}
.ref-faq details:last-child {
  border-bottom: 0;
}
.ref-faq summary {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  color: var(--charcoal);
  font-weight: 400;
}
.ref-faq summary::after {
  content: "+";
  color: var(--gold-dark);
}
.ref-faq details[open] summary::after {
  content: "-";
}
.ref-faq details p {
  padding: 0 1.2rem 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.ref-video {
  position: relative;
  width: min(1440px, calc(100% - 48px));
  margin: 3.5rem auto 0;
}
.ref-video img {
  aspect-ratio: 2.2;
}
.ref-video button {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: var(--dark);
  font-size: 1.4rem;
  cursor: pointer;
}
.ref-featured {
  text-align: center;
}
.ref-featured div {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  flex-wrap: wrap;
  margin-top: 1.1rem;
  padding: 20px;
}
.ref-featured span {
  font-family: var(--ff-serif);
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--charcoal);
}
.ref-consultation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 0;
  align-items: center;
  padding: clamp(1rem, 2vw, 1.4rem);
  margin-top: 3.5rem;
  margin-bottom: 4rem;
  border: 1px solid rgba(200,164,93,0.22);
  background: #fff;
}
.ref-consultation-media {
  height: 100%;
  min-height: 420px;
  overflow: hidden;
}
.ref-consultation-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1.75;
  object-fit: cover;
}
.ref-consultation-copy {
  position: relative;
  z-index: 1;
  margin-left: -3rem;
  padding: clamp(1.5rem, 4vw, 3.4rem);
  background: var(--cream);
  border: 1px solid rgba(200,164,93,0.25);
  box-shadow: 0 24px 60px rgba(43,43,43,0.08);
}
.ref-consultation-copy > span {
  color: #6f6c65 !important;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ref-consultation-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}
.ref-consultation-points span {
  border: 1px solid rgba(200,164,93,0.28);
  background: #fff;
  padding: 0.55rem 0.75rem;
  color: var(--charcoal);
  font-size: 0.78rem;
}
@media (max-width: 1180px) {
  .ref-product-card { flex-basis: calc((100% - 2rem) / 3); }
  .ref-dream-home,
  .ref-consultation { grid-template-columns: 1fr; }
  .ref-home-copy { min-height: auto; }
  .ref-consultation-copy { margin-left: 0; }
  .ref-testimonial-track article { flex-basis: calc((100% - 1rem) / 2); }
  .ref-collection-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .ref-shop-section,
  .ref-collections,
  .ref-community,
  .ref-guides,
  .ref-faq,
  .ref-featured,
  .ref-consultation,
  .ref-dream-home,
  .ref-video { width: min(100% - 32px, 1440px); }
  .ref-product-card { flex-basis: 78%; }
  .ref-slider-btn { top: 58%; }
  .ref-prev { left: -0.4rem; }
  .ref-next { right: -0.4rem; }
  .ref-home-showcase,
  .ref-guide-grid,
  .ref-offer-strip { grid-template-columns: 1fr; }
  .ref-home-main,
  .ref-home-showcase figure { min-height: 240px; grid-row: auto; }
  .ref-dream-home,
  .ref-consultation { padding: 0.85rem; }
  .ref-home-copy { border-left: 0; border-top: 3px solid var(--gold); }
  .ref-consultation-media { min-height: 250px; }
  .ref-collection-grid { grid-template-columns: repeat(2, 1fr); }
  .ref-testimonial-track article { flex-basis: 86%; }
  .ref-video img { aspect-ratio: 1.25; }
}
