/* =========================================================================
   ADARA REALTY — Homepage (cinematic landing)
   Loaded only on index.html. Motion is GPU-friendly (transform/opacity),
   library-free, and respects prefers-reduced-motion.
   ========================================================================= */

/* ---------- Bigger, bolder hero ---------- */
.hero__tagline { font-size: clamp(1.6rem, 4vw, 3.1rem); font-weight: 600; letter-spacing: -.01em; }
.hero__logo .word { font-size: clamp(3.8rem, 15vw, 10rem); }
.home-hero-cta { margin-top: 40px; }
.home-hero-cta .btn { backdrop-filter: blur(3px); }

/* Parallax drift for hero content as you scroll away */
[data-parallax] { will-change: transform; }

/* ---------- Line-mask reveal (kinetic type) ---------- */
.mask { display: block; overflow: hidden; padding-bottom: .06em; }
.mask > span { display: block; transition: transform 1s var(--ease); }
/* Hidden starting state only applies when JS is active (progressive enhancement) */
.motion .mask > span { transform: translateY(115%); }
.reveal-in .mask > span { transform: none; }
.reveal-in .mask:nth-child(2) > span { transition-delay: .10s; }
.reveal-in .mask:nth-child(3) > span { transition-delay: .20s; }
.reveal-in .mask:nth-child(4) > span { transition-delay: .30s; }

/* Generic fade-up for supporting bits (hidden state only when JS is active) */
.fade { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.motion .fade { opacity: 0; transform: translateY(28px); }
.reveal-in .fade, .fade.reveal-in { opacity: 1; transform: none; }
.reveal-in .fade.d1 { transition-delay: .25s; }
.reveal-in .fade.d2 { transition-delay: .4s; }

/* ---------- Parenthesised section label (Elyse-style) ---------- */
.label {
  display: inline-block; font-family: var(--sans);
  font-size: .75rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: clamp(20px, 4vh, 42px);
}
.statement--ink .label, .statement--maroon .label, .concierge .label { color: var(--gold-soft); }

/* ---------- Statement sections ---------- */
.statement {
  min-height: 92vh; display: flex; align-items: center;
  padding-block: clamp(90px, 14vh, 200px);
}
.statement .container { width: 100%; }
.statement__eyebrow { display: block; margin-bottom: clamp(20px, 4vh, 40px); }
.statement__title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.8rem, 9vw, 8rem); line-height: .98; letter-spacing: -.02em;
  max-width: 16ch;
}
.statement__title .accent { color: var(--gold); font-style: italic; }
.statement__foot { margin-top: clamp(28px, 5vh, 56px); display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.statement--center { text-align: center; }
.statement--center .statement__title { margin-inline: auto; }
.statement--center .statement__foot { justify-content: center; }

/* Dark statement variant sits on maroon-ink */
.statement--ink { background: var(--maroon-ink); color: #fff; }
.statement--ink .statement__title { color: #fff; }
.statement--maroon { background: linear-gradient(160deg, var(--maroon), var(--maroon-deep)); color: #fff; }
.statement--maroon .statement__title { color: #fff; }

/* ---------- Heritage split with parallax image ---------- */
.cine-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.cine-split__media { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-lg); }
.cine-split__media img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.cine-split__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 5.5vw, 4.6rem); line-height: 1; letter-spacing: -.015em; }

/* ---------- Animated counters ---------- */
.counters { display: flex; gap: clamp(30px, 6vw, 72px); flex-wrap: wrap; margin-top: clamp(28px, 5vh, 50px); }
.counter__num { font-family: var(--serif); font-weight: 600; font-size: clamp(3rem, 7vw, 5.4rem); line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.counter__label { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.72); margin-top: 10px; max-width: 18ch; }

/* ---------- Big kinetic offering ("Buy · Rent · Invest") ---------- */
.offering { text-align: center; }
.offering__word {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(3.2rem, 13vw, 12rem); line-height: 1; letter-spacing: -.02em;
  display: inline-block;
}
.offering__word a { transition: color .3s var(--ease); }
.offering__word a:hover { color: var(--gold); }
.offering__sep { color: var(--gold); font-style: italic; padding: 0 .12em; }
.offering__title { line-height: .95; }
.offering__sub { margin-top: 34px; }

/* ---------- Image marquee ---------- */
.marquee {
  overflow-x: auto; overflow-y: hidden; cursor: grab; user-select: none;
  scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee::-webkit-scrollbar { display: none; }
.marquee.dragging { cursor: grabbing; }
.marquee__track { display: flex; gap: 22px; width: max-content; }
.marquee__item { position: relative; flex: 0 0 auto; width: clamp(260px, 34vw, 460px); aspect-ratio: 3/2; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-md); }
.marquee__item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.marquee__item span { position: absolute; left: 16px; bottom: 14px; color: #fff; font-family: var(--serif); font-size: 1.3rem; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
@keyframes marquee { to { transform: translateX(calc(-50% - 11px)); } }

/* ---------- Concierge close ---------- */
.concierge { background: linear-gradient(160deg, var(--maroon), var(--maroon-deep)); color: #fff; }
.concierge__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.6rem, 7vw, 5.5rem); line-height: 1; letter-spacing: -.02em; color: #fff; }
.concierge__lead { margin-top: 20px; max-width: 46ch; color: rgba(243,236,230,.82); font-size: 1.05rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cine-split { grid-template-columns: 1fr; }
  .cine-split__media { order: -1; aspect-ratio: 16/11; }
  .statement { min-height: 76vh; }
}

@media (prefers-reduced-motion: reduce) {
  .mask > span, .fade { transition: none !important; transform: none !important; opacity: 1 !important; }
  .marquee__track { animation: none; }
  .cine-split__media img { height: 100%; }
}

/* =========================================================================
   Refinements
   ========================================================================= */

/* --- Hero wordmark: moving sunlight shimmer --- */
.hero__logo .word {
  background: linear-gradient(100deg,
    var(--cream) 28%, #ffffff 42%, var(--gold-soft) 50%, #fff7ea 58%, var(--cream) 72%);
  background-size: 230% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: wordShine 6.5s ease-in-out infinite;
  text-shadow: 0 0 38px rgba(184,147,90,.28);
}
@keyframes wordShine { 0% { background-position: 160% 0; } 100% { background-position: -60% 0; } }

/* --- "Who is Adara?" glowing link --- */
.who-link {
  display: inline-block; margin-top: clamp(26px, 4.5vh, 48px);
  font-family: var(--sans); font-size: clamp(1.02rem, 1.5vw, 1.28rem); font-weight: 600;
  color: var(--maroon); text-decoration: none;
  border-bottom: 2px solid var(--gold); padding-bottom: 4px;
  animation: linkGlow 2.6s ease-in-out infinite;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.who-link::after { content: " \2192"; }
.who-link:hover { color: var(--maroon-bright); border-color: var(--maroon-bright); }
@keyframes linkGlow {
  0%, 100% { text-shadow: 0 0 0 rgba(184,147,90,0); }
  50%      { text-shadow: 0 0 16px rgba(184,147,90,.75); }
}

/* --- Heritage title: readable on the dark maroon panel --- */
.statement--ink .cine-split__title { color: #fff; font-weight: 700; text-shadow: 0 2px 24px rgba(0,0,0,.25); }

/* --- Portfolio words: sequential glow to signal they're clickable --- */
.offering__word a {
  color: var(--ink); text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0% 3px; background-repeat: no-repeat; background-position: 0 100%;
  transition: color .3s var(--ease), background-size .35s var(--ease);
}
.offering__word a:hover { color: var(--maroon); background-size: 100% 3px; }
.offering__word:nth-child(1) a { animation: wordPulse 6s ease-in-out infinite 0s; }
.offering__word:nth-child(3) a { animation: wordPulse 6s ease-in-out infinite 2s; }
.offering__word:nth-child(5) a { animation: wordPulse 6s ease-in-out infinite 4s; }
@keyframes wordPulse {
  0%, 20%, 100% { color: var(--ink); text-shadow: none; }
  7%, 13%       { color: var(--gold); text-shadow: 0 0 30px rgba(184,147,90,.75); }
}

/* --- Marquee captions: bold, clean, legible --- */
.marquee__item::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 55%;
  background: linear-gradient(transparent, rgba(20,4,8,.68)); pointer-events: none;
}
.marquee__item span {
  z-index: 1; left: 20px; bottom: 16px;
  font-family: "Poppins", Verdana, "Segoe UI", sans-serif;
  font-weight: 700; font-size: clamp(1.35rem, 2.1vw, 1.95rem); letter-spacing: .01em;
  text-shadow: 0 2px 14px rgba(0,0,0,.8);
}

@media (prefers-reduced-motion: reduce) {
  .hero__logo .word { animation: none; }
  .who-link, .offering__word a { animation: none; }
}
