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

.copy-link {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  padding: .6rem 0;
  font: 600 .85rem "DM Sans", sans-serif;
  cursor: pointer;
  color: var(--wine);
}

.footer-links {
  flex-wrap: wrap;
}

.footer-links a {
  font-size: .9rem;
}

.footer-links a:hover {
  color: #e9cba6;
}

.brand-with-logo {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  letter-spacing: 0;
}

.brand-with-logo > img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(116, 28, 45, .12);
}

.brand .brand-name {
  color: var(--ink);
  line-height: .8;
}

.brand-name b {
  color: #a34f17;
}

.brand-name small {
  color: var(--ink);
}

.footer-brand .brand-name,
.footer-brand .brand-name small {
  color: #fff;
}

.family-section {
  max-width: 1280px;
  margin: 0 auto 8rem;
  padding: 0 2rem;
}

.family-heading {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1rem 5rem;
  align-items: end;
  margin-bottom: 3rem;
}

.family-heading .eyebrow {
  grid-column: 1 / -1;
  color: var(--wine);
}

.family-heading h2 {
  margin: 0;
  font: 600 clamp(2.8rem, 5vw, 5rem)/.95 "Playfair Display", serif;
  letter-spacing: -.04em;
}

.family-heading > p:last-child {
  color: #6b6259;
  line-height: 1.7;
  max-width: 520px;
}

.family-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.family-card {
  min-height: 265px;
  padding: 1.75rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}

.family-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 35px rgba(44, 28, 20, .12);
  position: relative;
  z-index: 1;
}

.family-card > span {
  color: #9a8e83;
  font-size: .72rem;
  letter-spacing: .15em;
}

.family-card h3 {
  margin: auto 0 .65rem;
  font: 600 2rem/1.05 "Playfair Display", serif;
}

.family-card p {
  color: #71675e;
  line-height: 1.55;
  margin: 0 0 1.5rem;
}

.family-card b {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--wine);
}

.family-card.accent {
  background: #b76b2e;
  color: #fff;
}

.family-card.accent-soft {
  background: #f0dfca;
}

.family-card.love-card {
  background: var(--wine);
  color: #fff;
}

.family-card.festive {
  background: #234437;
  color: #fff;
}

.family-card.dark-card {
  background: var(--ink);
  color: #fff;
}

.family-card.accent p,
.family-card.accent b,
.family-card.love-card p,
.family-card.love-card b,
.family-card.festive p,
.family-card.festive b,
.family-card.dark-card p,
.family-card.dark-card b {
  color: rgba(255,255,255,.82);
}

.wide-card {
  grid-column: span 2;
  background: var(--cream);
}

.family-card-media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}

.family-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20,12,10,.08) 15%, rgba(20,12,10,.88) 100%);
}

.family-card-media > span:not(.family-slides),
.family-card-media h3,
.family-card-media p,
.family-card-media b {
  position: relative;
  z-index: 1;
  color: #fff;
}

.family-slides {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.family-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: family-photo-cycle 16s infinite;
}

.family-slides img:nth-child(2) { animation-delay: 4s; }
.family-slides img:nth-child(3) { animation-delay: 8s; }
.family-slides img:nth-child(4) { animation-delay: 12s; }

@keyframes family-photo-cycle {
  0%, 20% { opacity: 1; transform: scale(1); }
  25%, 95% { opacity: 0; transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}

.catalog-section {
  padding: 7rem max(2rem, calc((100vw - 1280px) / 2));
  background: var(--paper);
  scroll-margin-top: 2rem;
}

.catalog-section-alt { background: var(--cream); }
.catalog-section-alt .product-card { background: var(--paper); }

.catalog-heading {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 6rem;
  align-items: end;
  margin-bottom: 2.5rem;
}

.catalog-heading .eyebrow { color: var(--wine); }

.catalog-heading h2 {
  margin: .7rem 0 0;
  font: 600 clamp(3rem, 5.5vw, 5.5rem)/.95 "Playfair Display", serif;
  letter-spacing: -.045em;
}

.catalog-heading > p {
  color: #665c53;
  line-height: 1.75;
  margin: 0;
}

.subcategory-tabs {
  display: flex;
  gap: .65rem;
  overflow-x: auto;
  padding: .25rem 0 1.5rem;
  scrollbar-width: thin;
}

.subcategory-tabs button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: .75rem 1rem;
  font: 600 .8rem "DM Sans", sans-serif;
  cursor: pointer;
  transition: .2s ease;
}

.subcategory-tabs button:hover,
.subcategory-tabs button.active {
  background: var(--wine);
  border-color: var(--wine);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.product-card {
  min-width: 0;
  background: var(--cream);
  transition: opacity .25s ease, transform .25s ease;
}

.product-card[hidden] { display: none; }

.product-card > img,
.product-media {
  width: 100%;
  height: 370px;
}

.product-card > img,
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-media {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.product-media-cycle img {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: product-photo-cycle 10s infinite;
}

.product-media-cycle img:nth-child(2) { animation-delay: 5s; }

.product-media-cycle-eight img {
  animation-name: ceremony-photo-cycle;
  animation-duration: 32s;
}

.product-media-cycle-eight img:nth-child(1) { animation-delay: 0s; }
.product-media-cycle-eight img:nth-child(2) { animation-delay: 4s; }
.product-media-cycle-eight img:nth-child(3) { animation-delay: 8s; }
.product-media-cycle-eight img:nth-child(4) { animation-delay: 12s; }
.product-media-cycle-eight img:nth-child(5) { animation-delay: 16s; }
.product-media-cycle-eight img:nth-child(6) { animation-delay: 20s; }
.product-media-cycle-eight img:nth-child(7) { animation-delay: 24s; }
.product-media-cycle-eight img:nth-child(8) { animation-delay: 28s; }

.product-media-cycle-nine img {
  animation-name: ceremony-nine-photo-cycle;
  animation-duration: 36s;
}

.product-media-cycle-nine img:nth-child(1) { animation-delay: 0s; }
.product-media-cycle-nine img:nth-child(2) { animation-delay: 4s; }
.product-media-cycle-nine img:nth-child(3) { animation-delay: 8s; }
.product-media-cycle-nine img:nth-child(4) { animation-delay: 12s; }
.product-media-cycle-nine img:nth-child(5) { animation-delay: 16s; }
.product-media-cycle-nine img:nth-child(6) { animation-delay: 20s; }
.product-media-cycle-nine img:nth-child(7) { animation-delay: 24s; }
.product-media-cycle-nine img:nth-child(8) { animation-delay: 28s; }
.product-media-cycle-nine img:nth-child(9) { animation-delay: 32s; }

@keyframes ceremony-photo-cycle {
  0%, 10% { opacity: 1; transform: scale(1); }
  12.5%, 97.5% { opacity: 0; transform: scale(1.025); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes ceremony-nine-photo-cycle {
  0%, 8.8% { opacity: 1; transform: scale(1); }
  11.1%, 97.7% { opacity: 0; transform: scale(1.025); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes product-photo-cycle {
  0%, 42% { opacity: 1; transform: scale(1); }
  50%, 92% { opacity: 0; transform: scale(1.025); }
  100% { opacity: 1; transform: scale(1); }
}

.product-card > div:not(.product-media) { padding: 1.25rem; }

.product-card span {
  color: var(--wine);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.product-card h3 {
  margin: .55rem 0 1.25rem;
  font: 600 1.55rem/1.15 "Playfair Display", serif;
}

.product-card a {
  display: inline-block;
  border-bottom: 1px solid currentColor;
  padding-bottom: .35rem;
  color: var(--wine);
  font-size: .8rem;
  font-weight: 700;
}

.pack-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  background: var(--paper);
}

.pack-card .product-media { height: 600px; }

.pack-card .pack-copy {
  padding: clamp(2rem, 5vw, 4.5rem);
  align-self: center;
}

.pack-card .pack-copy > p {
  color: #665c53;
  margin: 0 0 .8rem;
}

.pack-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  color: #4f4740;
}

.pack-list li {
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
}

.pack-list li::before {
  content: "✓";
  color: var(--wine);
  font-weight: 700;
  margin-right: .65rem;
}

.father-section {
  background: var(--cream);
  padding: 7rem max(2rem, calc((100vw - 1280px) / 2));
  scroll-margin-top: 2rem;
}

.father-heading {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 6rem;
  align-items: end;
  margin-bottom: 3rem;
}

.father-heading .eyebrow { color: var(--wine); }

.father-heading h2 {
  margin: .7rem 0 0;
  font: 600 clamp(3rem, 6vw, 5.8rem)/.95 "Playfair Display", serif;
  letter-spacing: -.045em;
}

.father-heading > div:last-child > p {
  color: #665c53;
  line-height: 1.75;
  margin: 0;
}

.father-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 320px;
  gap: 1rem;
}

.father-photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #e8ded1;
}

.father-photo-large { grid-column: span 2; grid-row: span 2; }
.father-photo-wide { grid-column: span 2; }

.father-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .5s ease;
}

.father-photo:hover img { transform: scale(1.025); }

.father-photo figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(255,253,249,.94);
  padding: .65rem .85rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
}

@media (max-width: 900px) {
  .family-grid { grid-template-columns: repeat(2, 1fr); }
  .family-heading { grid-template-columns: 1fr; }
  .family-heading .eyebrow { grid-column: auto; }
  .father-heading { grid-template-columns: 1fr; gap: 1.5rem; }
  .father-gallery { grid-template-columns: repeat(2, 1fr); }
  .catalog-heading { grid-template-columns: 1fr; gap: 1.5rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .pack-card { grid-template-columns: 1fr; }
  .pack-card .product-media { height: 520px; }
}

@media (max-width: 600px) {
  .brand-with-logo > img { width: 48px; height: 48px; }
  .brand-name { font-size: 1.35rem; }
  .family-section { padding: 0 1.25rem; margin-bottom: 5rem; }
  .family-grid { grid-template-columns: 1fr; }
  .family-card, .wide-card { grid-column: auto; min-height: 220px; }
  .family-heading { margin-bottom: 2rem; }
  .father-section { padding: 5rem 1.25rem; }
  .father-gallery { grid-template-columns: 1fr; grid-auto-rows: 330px; }
  .father-photo-large, .father-photo-wide { grid-column: auto; grid-row: auto; }
  .catalog-section { padding: 5rem 1.25rem; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card > img, .product-media { height: 380px; }
  .pack-card .product-media { height: 440px; }
}

@media (prefers-reduced-motion: reduce) {
  .family-slides img { animation: none; opacity: 0; }
  .family-slides img:first-child { opacity: 1; }
  .product-media-cycle img { animation: none; opacity: 0; }
  .product-media-cycle img:first-child { opacity: 1; }
}
