/* Appily Fiftythree — homepage · Copper Atlas / Flacio-structure */

@keyframes af53-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes af53-scale {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes af53-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.45); }
  70% { box-shadow: 0 0 0 12px rgba(255,255,255,0); }
}

/* Full-bleed hero */
.af-hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ts-ink);
  margin-top: -8px;
}
.af-hero-media {
  position: absolute; inset: 0;
  animation: af53-scale 1.1s var(--ease-out) both;
}
.af-hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 8s linear;
}
.af-hero:hover .af-hero-media img { transform: scale(1.06); }
.af-hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(21, 32, 43, .78) 0%, rgba(21, 32, 43, .35) 48%, rgba(21, 32, 43, .2) 100%),
    linear-gradient(0deg, rgba(21, 32, 43, .55) 0%, transparent 42%);
}
.af-hero-copy {
  position: relative;
  z-index: 1;
  padding: 72px 0 64px;
  max-width: 640px;
  margin-left: max(0px, calc((100% - var(--container)) / 2));
  width: min(var(--container), calc(100% - 32px));
  color: #F4F7FA;
  animation: af53-rise .8s var(--ease-out) .1s both;
}
.af-hero-kicker {
  margin: 0 0 16px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: #E8C4B4;
}
.af-hero-copy h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.03em;
  max-width: 12ch;
}
.af-hero-copy h1 em {
  font-style: italic;
  font-weight: 500;
  color: #F0D2C4;
}
.af-hero-lede {
  margin: 0 0 28px;
  max-width: 42ch;
  color: rgba(244, 247, 250, .78);
  font-size: 15px;
}
.af-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.af-hero-ghost {
  background: transparent !important;
  border-color: rgba(255,255,255,.75) !important;
  color: #fff !important;
}
.af-hero-ghost:hover {
  background: #fff !important;
  color: var(--ts-ink) !important;
}
.af-hero-dots {
  display: flex; gap: 8px; margin-top: 36px;
}
.af-hero-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.35);
}
.af-hero-dots span.is-active {
  width: 22px; border-radius: 999px;
  background: transparent;
  border: 1.5px solid #fff;
}

/* Circular category row */
.af-cats {
  padding: 48px 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--ts-line);
}
.af-cats-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.af-cat {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
}
.af-cat-orb {
  width: 104px; height: 104px;
  border-radius: 50%;
  overflow: hidden;
  background: #EDE4DC;
  border: 1px solid rgba(184, 92, 56, .18);
  display: grid; place-items: center;
  transition: transform .4s var(--ease-out), box-shadow .4s;
}
.af-cat:hover .af-cat-orb {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 28px rgba(21, 32, 43, .12);
}
.af-cat-orb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.af-cat-glyph {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 700; color: var(--ts-wine);
}
.af-cat-label {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600;
}

/* Most popular split */
.af-popular,
.af-bestsellers {
  padding: 72px 0;
}
.af-popular-grid,
.af-bestsellers-grid {
  display: grid;
  grid-template-columns: .85fr 1.6fr;
  gap: 40px;
  align-items: center;
}
.af-popular-intro h2,
.af-bestsellers-intro h2,
.af-section-head h2,
.af-look-copy h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ts-ink);
}
.af-popular-intro p,
.af-bestsellers-intro p,
.af-section-head p,
.af-look-copy p {
  margin: 0 0 24px;
  color: var(--ts-muted);
  max-width: 32ch;
}
.af-popular-cards,
.af-bestsellers-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Lifestyle look + hotspots */
.af-look {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: var(--ts-ink);
}
.af-look-media {
  position: absolute; inset: 0;
}
.af-look-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}
.af-look-overlay {
  position: relative;
  min-height: 520px;
  background: linear-gradient(90deg, rgba(21,32,43,.7), rgba(21,32,43,.25) 55%, rgba(21,32,43,.35));
}
.af-look-inner {
  position: relative;
  min-height: 520px;
  display: flex; align-items: center;
}
.af-look-copy {
  color: #fff;
  max-width: 420px;
  animation: af53-rise .7s var(--ease-out) both;
}
.af-look-copy h2 { color: #fff; }
.af-look-copy p { color: rgba(255,255,255,.78); max-width: 38ch; }

.af-hotspot {
  position: absolute;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--ts-ink);
  display: grid; place-items: center;
  font-size: 20px; font-weight: 500; line-height: 1;
  transform: translate(-50%, -50%);
  animation: af53-pulse 2.4s ease-out infinite;
  z-index: 2;
}
.af-hotspot:hover { background: var(--ts-wine); color: #fff; }
.af-hotspot-static {
  position: absolute;
  right: 14px; bottom: 14px;
  top: auto; left: auto;
  transform: none;
  animation: none;
}

/* Promo tiles */
.af-promo-tiles { padding: 56px 0; }
.af-promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.af-promo-tile {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  display: block;
  background: var(--ts-surface);
}
.af-promo-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.af-promo-tile:hover img { transform: scale(1.06); }
.af-promo-overlay {
  position: absolute; inset: auto 0 0 0;
  padding: 22px;
  background: linear-gradient(transparent, rgba(21,32,43,.72));
  color: #fff;
}
.af-promo-overlay h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 600;
}
.af-promo-overlay span {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  opacity: .85;
}

/* Story / testimonial */
.af-story {
  padding: 72px 0;
  background: #fff;
}
.af-story-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: stretch;
}
.af-story-visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: var(--ts-surface);
}
.af-story-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  min-height: 420px;
}
.af-story-seal {
  position: absolute; top: 22px; left: 22px;
  width: 118px; height: 118px;
  border-radius: 50%;
  display: grid; place-items: center;
  text-align: center;
  padding: 14px;
  background: rgba(184, 92, 56, .92);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600; line-height: 1.25;
  letter-spacing: .02em;
  transform: rotate(-8deg);
}
.af-story-quote {
  margin: 0;
  padding: 48px 36px;
  background: var(--ts-paper);
  border-left: 3px solid var(--ts-wine);
  display: flex; flex-direction: column; justify-content: center;
}
.af-stars { color: var(--ts-gold); letter-spacing: 2px; margin-bottom: 18px; }
.af-story-quote p {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-style: italic; font-weight: 500;
  line-height: 1.35; color: var(--ts-ink);
}
.af-story-quote cite {
  font-style: normal;
  font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ts-muted);
}

/* Mosaic collage */
.af-mosaic {
  padding: 0 0 72px;
}
.af-mosaic-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 12px;
}
.af-mosaic-cell {
  position: relative;
  overflow: hidden;
  background: var(--ts-surface);
  display: block;
}
.af-mosaic-cell.is-large {
  grid-row: 1 / span 2;
}
.af-mosaic-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease-out);
}
.af-mosaic-cell:hover img { transform: scale(1.05); }

.af-featured { padding: 24px 0 72px; }
.af-section-head { margin-bottom: 8px; }

.af-info-strip {
  border-top: 1px solid var(--ts-line);
  background: var(--ts-ink);
  color: #E8EEF4;
  padding: 28px 0;
}
.af-info-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.af-info-strip-inner div {
  display: flex; flex-direction: column; gap: 4px;
  padding-left: 14px;
  border-left: 2px solid rgba(184, 92, 56, .7);
}
.af-info-strip strong {
  font-size: 13px; letter-spacing: .04em;
}
.af-info-strip span {
  font-size: 12px; color: rgba(232, 238, 244, .62);
}

@media (max-width: 980px) {
  .af-cats-row { grid-template-columns: repeat(3, 1fr); }
  .af-popular-grid,
  .af-bestsellers-grid,
  .af-story-grid { grid-template-columns: 1fr; }
  .af-popular-cards,
  .af-bestsellers-cards { grid-template-columns: repeat(3, 1fr); }
  .af-promo-grid { grid-template-columns: 1fr; }
  .af-promo-tile { aspect-ratio: 16/9; }
  .af-mosaic-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .af-mosaic-cell.is-large {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 260px;
  }
  .af-mosaic-cell { min-height: 180px; }
  .af-info-strip-inner { grid-template-columns: 1fr 1fr; }
  .af-hero-copy {
    margin-left: auto;
    margin-right: auto;
  }
  .af-hotspot { display: none; }
  .af-hotspot-static { display: grid; }
}

@media (max-width: 640px) {
  .af-cats-row { grid-template-columns: repeat(2, 1fr); }
  .af-cat-orb { width: 88px; height: 88px; }
  .af-popular-cards,
  .af-bestsellers-cards { grid-template-columns: 1fr; }
  .af-info-strip-inner { grid-template-columns: 1fr; }
  .af-hero { min-height: 70vh; }
  .af-story-seal { width: 96px; height: 96px; font-size: 11px; }
}
