/* House of Athlèva — home page only: hero, category tiles, story, loyalty split, reviews, Instagram reels. */
/* ---------- 9. Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse at 75% 40%, #3a3733 0%, #1d1c1a 55%, #111 100%);
  color: var(--ivory);
}
/* faint gold grid lines, like a flight chart */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .06;
  background-image:
    linear-gradient(var(--gold) 1px, transparent 1px),
    linear-gradient(90deg, var(--gold) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
}
.hero__inner {
  display: grid; gap: 2rem; align-items: center;
  padding-block: 2rem 2.5rem;
}
/* --- Visual --- */
.hero__visual {
  position: relative; width: min(74%, 420px); margin-inline: auto;
  padding: 0 1rem 1rem 0;
}
.hero__photo {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  clip-path: inset(100% 0 0 0);
  animation: wipeUp 1.6s .2s var(--ease) forwards;
}
.hero__photo img {
  width: 100%; height: 115%; object-fit: cover; object-position: 50% 20%;
  transform: translateY(var(--parallax, 0px)) scale(1.12);
  animation: kenburns 18s 1.2s ease-in-out infinite alternate;
  will-change: transform;
}
.hero__photo::after { /* soft vignette to sit into the dark background */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,17,17,.35), transparent 40%);
}
.hero__frame {
  position: absolute; top: 1.25rem; left: 1.25rem; right: 0; bottom: 0;
  border: 1px solid var(--gold); border-radius: var(--radius);
  opacity: 0; transform: translate(-10px, -10px);
  animation: frameIn 1.4s 1.2s var(--ease) forwards;
}
.hero__badge {
  position: absolute; left: -2.25rem; bottom: 14%;
  width: 84px; height: 84px; border-radius: 50%;
  background: rgba(17,17,17,.82); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(184,147,74,.5);
  display: grid; place-items: center;
  opacity: 0; animation: fadeIn 1s 1.8s var(--ease) forwards;
}
.hero__badge-ring {
  position: absolute; inset: 0; width: 100%; height: 100%;
  animation: spin 24s linear infinite;
}
.hero__badge-ring text {
  font-family: var(--font-label); font-size: 8.6px; fill: var(--gold-light);
}
.hero__badge-icon {
  width: 24px; height: 24px; fill: none; stroke: var(--gold-light); stroke-width: 1.3;
  stroke-linejoin: round; transform: rotate(-45deg);
}
.hero__pass {
  position: absolute; right: -.25rem; top: 10%;
  display: flex; flex-direction: column; gap: .15rem;
  background: var(--ivory); color: var(--onyx);
  padding: .6rem .9rem .6rem 1.1rem; border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  border-left: 3px dashed var(--gold);
  opacity: 0; animation: passIn 1s 2.1s var(--ease) forwards, float 6s 3.1s ease-in-out infinite;
}
.hero__pass-label {
  font-family: var(--font-label); font-size: .55rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-text);
}
.hero__pass-route {
  display: flex; align-items: center; gap: .45rem;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem; letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}
.hero__pass-route .icon { color: var(--gold); }
.hero__pass-city { display: inline-block; min-width: 3ch; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.hero__pass-city.is-out { opacity: 0; transform: translateY(-6px); }
.hero__spark {
  position: absolute; color: var(--gold); pointer-events: none;
  animation: twinkle 4s ease-in-out infinite;
}
.hero__spark--1 { top: -6px; left: 12%; font-size: 1.1rem; animation-delay: 2.4s; }
.hero__spark--2 { bottom: 8%; right: -6px; font-size: .75rem; animation-delay: 3.6s; opacity: 0; }
/* --- Copy --- */
.hero__content { text-align: center; }
.hero__title {
  color: var(--ivory);
  font-size: clamp(2.75rem, 11vw, 5.75rem);
  font-weight: 400; line-height: 1.04; margin-bottom: 1.5rem;
}
.hero__title em { font-style: italic; color: var(--gold-light); }
.hero__sub { max-width: 32rem; margin-inline: auto; color: rgba(247,243,234,.82); font-size: 1.02rem; margin-bottom: 2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__ctas .btn--light { flex: 1 1 100%; }
.hero__ctas .btn--ghost-light { flex: 1 1 calc(50% - .375rem); }
/* --- City marquee --- */
.hero__marquee {
  border-top: 1px solid rgba(184,147,74,.25);
  overflow: hidden; white-space: nowrap; padding-block: 1rem;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.hero__marquee-track {
  display: inline-flex; align-items: center; gap: 1.75rem;
  animation: marquee 45s linear infinite;
  font-family: var(--font-label); font-size: .72rem; letter-spacing: .32em; text-transform: uppercase;
  color: rgba(247,243,234,.6);
}
.hero__marquee-track i { font-style: normal; color: var(--gold); font-size: .6rem; }
@media (min-width: 768px) {
  .hero__visual { width: min(100%, 460px); padding: 0 1.25rem 1.25rem 0; }
  .hero__badge { width: 104px; height: 104px; left: -2.5rem; }
  .hero__ctas { justify-content: center; }
  .hero__ctas .btn { flex: 0 0 auto; }
}
@media (min-width: 1024px) {
  .hero__inner {
        grid-template-columns: 1.1fr .9fr; gap: 4rem;
        min-height: calc(100svh - var(--header-h) - 36px - 52px);
        padding-block: 3.5rem;
      }
  .hero__content { order: -1; text-align: left; }
  .hero__sub { margin-inline: 0; }
  .hero__ctas { justify-content: flex-start; }
  .hero__visual { width: 100%; max-width: 480px; justify-self: end; }
  .hero__badge { width: 124px; height: 124px; left: -3rem; }
  .hero__pass { right: -1.5rem; }
}
@keyframes wipeUp { to { clip-path: inset(0 0 0 0); } }
@keyframes kenburns {
  from { transform: translateY(var(--parallax, 0px)) scale(1.12) translateX(0); }
  to   { transform: translateY(var(--parallax, 0px)) scale(1.04) translateX(-1.5%); }
}
@keyframes frameIn { to { opacity: 1; transform: none; } }
@keyframes passIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle { 0%,100% { opacity: .2; transform: scale(.8) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(45deg); } }
@keyframes lineUp { to { transform: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }
/* Reduced motion: show everything in its final state, no looping movement */
@media (prefers-reduced-motion: reduce) {
  .hero__photo { clip-path: none; }
  .hero__photo img { transform: scale(1.04); }
}
/* ---------- 10. Category tiles ---------- */
.category-grid { display: grid; gap: 1rem; }
.category-tile {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  border-radius: var(--radius); background: var(--onyx);
}
.category-tile__img { display: block; aspect-ratio: 4 / 5; }
.category-tile__img img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%;
  transition: transform 1.4s var(--ease);
}
.category-tile:hover .category-tile__img img,
.category-tile:focus-visible .category-tile__img img { transform: scale(1.04); }
.category-tile::after { /* legibility gradient */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(17,17,17,.78) 0%, rgba(17,17,17,.25) 38%, transparent 60%);
}
.category-tile::before { /* inset gold hairline that draws in on hover */
  content: ""; position: absolute; inset: .75rem; z-index: 2; pointer-events: none;
  border: 1px solid var(--gold-light); border-radius: 2px;
  opacity: 0; transform: scale(1.02);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.category-tile:hover::before, .category-tile:focus-visible::before { opacity: .8; transform: none; }
.category-tile__label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: .4rem;
  color: rgba(247,243,234,.85);
}
.category-tile__num {
  font-family: var(--font-label); font-size: .68rem; letter-spacing: .3em; color: var(--gold-light);
}
.category-tile__flag {
  font-family: var(--font-label); font-size: .58rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--onyx); background: var(--gold-light); padding: .25rem .55rem; border-radius: 2px;
}
.category-tile__label h3 { color: var(--ivory); font-size: clamp(1.9rem, 6vw, 2.5rem); font-weight: 400; }
.category-tile__label p { margin: 0 0 .6rem; font-size: .9rem; }
.category-tile__label .link-arrow { color: var(--ivory); border-color: var(--gold-light); }
/* Essentials: landscape tile, copy sits on the left over the dark side of the photo */
.category-tile--wide .category-tile__img img { object-position: 68% 30%; }
@media (min-width: 768px) {
  .category-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .category-tile__img { aspect-ratio: 3 / 4; }
  .category-tile__label { padding: 2rem 2rem 2.25rem; }
  .category-tile--wide { grid-column: 1 / -1; }
  .category-tile--wide .category-tile__img { aspect-ratio: 21 / 9; }
  .category-tile--wide .category-tile__img img { object-position: 50% 30%; }
  .category-tile--wide::after {
        background: linear-gradient(to right, rgba(17,17,17,.85) 0%, rgba(17,17,17,.4) 35%, transparent 55%);
      }
  .category-tile--wide .category-tile__label { top: 0; right: auto; justify-content: center; max-width: 26rem; padding-left: 3rem; }
}
@media (min-width: 1024px) {
  .category-tile__img { aspect-ratio: 4 / 5; }
  .category-tile--wide .category-tile__img { aspect-ratio: 5 / 2; }
}
/* ---------- 13. Story band ---------- */
.story { background: var(--sand); padding-block: var(--section-y); }
.story__inner { display: grid; gap: 2.5rem; align-items: center; }
.story__text .section-title { margin-bottom: 1.5rem; }
.story__text .btn { margin-top: 1rem; }
.route-map { width: 100%; height: auto; }
.route-map__line {
  fill: none; stroke: var(--gold); stroke-width: 1; stroke-dasharray: 4 5;
  animation: dash 40s linear infinite;
}
.route-map__line--faint { opacity: .45; }
.route-map__pins circle { fill: var(--ivory); stroke: var(--gold); stroke-width: 1.2; }
.route-map text { font-family: var(--font-label); font-size: 10px; letter-spacing: .2em; fill: var(--gold-text); }
@media (min-width: 1024px) {
  .story__inner { grid-template-columns: 1fr 1fr; gap: 5rem; }
}
/* ---------- 14. Loyalty / Referral split ---------- */
.split { display: grid; gap: 1rem; padding-block: 0 var(--section-y); }
.split__panel { padding: 2.75rem 1.75rem; border-radius: var(--radius); }
.split__panel--dark { background: var(--onyx); color: rgba(247,243,234,.82); }
.split__panel--sand { background: var(--white); border: 1px solid var(--sand); }
@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .split__panel { padding: 4rem 3rem; }
}
/* ---------- 15. Reviews ---------- */
.carousel--reviews { grid-auto-columns: 85%; }
@media (min-width: 768px) {
  .carousel--reviews { grid-auto-columns: calc((100% - 3rem) / 3); }
}
@media (min-width: 1280px) {
  .carousel--reviews { grid-auto-columns: calc((100% - 3rem) / 3); }
}
.review {
  margin: 0; background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius);
  padding: 2rem 1.75rem; display: flex; flex-direction: column; gap: 1rem;
}
.stars { color: var(--gold); letter-spacing: .2em; font-size: .9rem; }
.review blockquote {
  margin: 0; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.35;
  font-style: italic; color: var(--onyx); flex: 1;
}
.review figcaption { display: flex; flex-direction: column; font-size: .85rem; }
.review figcaption strong { color: var(--onyx); font-weight: 500; }
.review figcaption span { color: var(--graphite); font-size: .78rem; letter-spacing: .04em; }
/* ---------- 16. Social strip ---------- */
.social { padding-block: 0 var(--section-y); }
.social__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.social__tile { aspect-ratio: 1; border-radius: 2px; transition: opacity var(--dur) var(--ease); }
.social__tile:hover { opacity: .85; }
.social__links { display: flex; justify-content: center; gap: .75rem; margin-top: 2rem; flex-wrap: wrap; }
@media (min-width: 768px) {
  .social__grid { grid-template-columns: repeat(6, 1fr); }
}
/* Instagram reels row — always one horizontal row that scrolls sideways */
.reels-wrap { position: relative; }
.reels {
  display: flex; flex-wrap: nowrap; gap: 1rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 1rem;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
}
.reel {
  flex: 0 0 82%; max-width: 340px; min-width: 0;
  scroll-snap-align: start; display: flex; flex-direction: column; gap: .75rem;
}
.reel__frame {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--sand);
  aspect-ratio: 9 / 16.5;
}
.reel__frame::before {
  content: "✦"; position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--gold); font-size: 1.2rem; animation: twinkle 3s ease-in-out infinite;
}
.reel__frame iframe { position: relative; width: 100%; height: 100%; border: 0; display: block; background: transparent; }
.reel__link { align-self: flex-start; font-family: var(--font-label); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--onyx); display: inline-flex; gap: .4rem; align-items: center; border-bottom: 1px solid var(--gold); padding-bottom: 3px; }
.reel__link:hover { color: var(--gold-text); }
.reels__arrow {
  display: none; position: absolute; top: 45%; z-index: 5; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ivory); color: var(--onyx); border: 1px solid var(--gold);
  box-shadow: 0 6px 18px rgba(17,17,17,.12);
  align-items: center; justify-content: center;
  transition: background-color var(--dur) var(--ease);
}
.reels__arrow:hover { background: var(--white); }
.reels__arrow--prev { left: -12px; }
.reels__arrow--prev .icon { transform: rotate(180deg); }
.reels__arrow--next { right: -12px; }
@media (min-width: 600px) {
  .reel { flex-basis: calc((100% - 1rem) / 2); }
}
@media (min-width: 1024px) {
  .reel { flex-basis: calc((100% - 3rem) / 4); max-width: none; }
  .reels { margin-inline: 0; padding-inline: 0; }
  .reels__arrow { display: inline-flex; }
}
/* ---- Shop by Category: three neat tiles in one row (tablet/desktop) ---- */
@media (min-width: 768px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .category-tile--wide { grid-column: auto; }
  .category-tile__img, .category-tile--wide .category-tile__img { aspect-ratio: 3 / 4; }
  .category-tile--wide .category-tile__img img { object-position: 62% 50%; }
  .category-tile--wide::after { background: linear-gradient(to top, rgba(17,17,17,.78) 0%, rgba(17,17,17,.25) 38%, transparent 60%); }
  .category-tile--wide .category-tile__label { top: auto; right: 0; justify-content: flex-end; max-width: none; padding-left: 2rem; }
  .category-tile__label h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
}
@media (min-width: 1280px) {
  .category-tile__img, .category-tile--wide .category-tile__img { aspect-ratio: 4 / 5; }
}

/* Instagram reels: poster shown until the real reel has loaded */
.reel__frame::before { content: none; }
.reel__poster {
  position: absolute; inset: 0; z-index: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem;
  background: radial-gradient(120% 80% at 50% 30%, #2a2622 0%, var(--onyx) 70%); color: var(--ivory); cursor: pointer; border: 0;
  transition: opacity 600ms var(--ease);
}
.reel__mark { width: 64px; height: auto; opacity: .9; }
.reel__play { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold-light); transition: background 300ms var(--ease), transform 300ms var(--ease); }
.reel__poster:hover .reel__play, .reel__poster:focus-visible .reel__play { background: rgba(184,147,74,.18); transform: scale(1.06); }
.reel__handle { font-family: var(--font-label); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); }
.reel__loading { position: absolute; bottom: 1.25rem; font-size: .72rem; letter-spacing: .12em; color: rgba(247,243,234,.7); opacity: 0; transition: opacity 300ms; }
.reel__frame.is-loading .reel__loading { opacity: 1; animation: reelPulse 1.6s ease-in-out infinite; }
@keyframes reelPulse { 50% { opacity: .35; } }
.reel__frame.is-ready .reel__poster { opacity: 0; pointer-events: none; }
.reel__frame iframe { position: absolute; inset: 0; }

/* Reel posters: a brand photo with a play button — the Instagram reel only loads when tapped */
.reel__cover { position: absolute; inset: 0; z-index: -1; }
.reel__cover img { width: 100%; height: 100%; object-fit: cover; }
.reel__poster { isolation: isolate; background: var(--onyx); justify-content: flex-end; padding-bottom: 1.5rem; }
.reel__poster::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17,17,17,.05) 30%, rgba(17,17,17,.72) 100%); }
.reel__play { background: rgba(17,17,17,.35); backdrop-filter: blur(2px); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.reel__poster:hover .reel__play, .reel__poster:focus-visible .reel__play { transform: translate(-50%, -50%) scale(1.06); }
.reel__loading { bottom: auto; top: calc(50% + 44px); }
.reel__poster:hover .reel__cover img { transform: scale(1.03); }
.reel__cover img { transition: transform 900ms var(--ease); }

/* Instagram posts load by themselves as they come into view — the dark panel only shows while one is loading */
.reel__poster { justify-content: center; padding-bottom: 0; cursor: default; }
.reel__poster::before { content: none; }
.reel__loading { top: auto; bottom: 1.25rem; }
/* Speed: the hero photo is on screen from the first paint (no wipe), and the words arrive quickly */
.hero__photo { clip-path: none; animation: none; }
.hero .hero__line > * { animation-duration: .8s; animation-delay: calc(.1s + var(--d) * .1s); }
.hero .hero__reveal { animation-duration: .8s; animation-delay: calc(.1s + var(--d) * .1s); }
.hero__frame { animation-delay: .4s; }
