/* ── Ananda Farmlands — coming soon ───────────────────────────── */

:root {
  --ink:       #14201a;  /* deep forest — page + video backdrop */
  --cream:     #F7F0DE;
  --olive:     #3B4123;
  --gutter:    clamp(24px, 5vw, 64px);
  --font-ui:   'Archivo', system-ui, sans-serif;
  --font-body: 'Poppins', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--ink);
}

img, video { max-width: 100%; }

a { color: var(--olive); text-decoration: none; }
a:hover { color: #6b7444; }

/* ── Stage ── */

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  overflow: hidden;
  font-family: var(--font-ui);
  color: var(--olive);
}

/* The poster and the flat backdrop carry the frame until the clip
   decodes, so a slow connection never shows a black flash. */
.stage__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: center;
  pointer-events: none;
  background: var(--ink) center / cover no-repeat;
  animation: flyIn 2.2s cubic-bezier(.16, .84, .24, 1) both,
             slowPan 20s ease-in-out 2.2s infinite;
}

.stage__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg,
              rgba(20, 32, 18, .55) 0%,
              rgba(20, 32, 18, .28) 45%,
              rgba(20, 32, 18, 0)   70%);
  animation: softIn 1.4s ease both;
}

/* ── Hero stack ── */

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 2.5vw, 30px);
  animation: float 7s ease-in-out 2.4s infinite;
}

.hero__logo {
  display: block;
  height: clamp(96px, 14vw, 180px);
  width: auto;
  transform: translateX(-60px);   /* optically centres the wordmark */
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .45));
  animation: logoWipe 1.6s cubic-bezier(.2, .7, .2, 1) .3s both;
}

.hero__rule {
  display: block;
  width: 64px;
  height: 2px;
  background: var(--cream);
  transform-origin: center;
  animation: growV 1.1s cubic-bezier(.2, .7, .2, 1) 1.3s both;
}

.hero__soon {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(17.6px, 2.56vw, 35.2px);
  letter-spacing: .01em;
  color: var(--cream);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
  animation: rise 1.2s ease 2.3s both;
}

/* ── Footer lines ── */

.footer__tagline,
.footer__place {
  position: absolute;
  bottom: clamp(24px, 5vw, 56px);
  z-index: 1;
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: .01em;
  color: var(--cream);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}

.footer__tagline {
  left: var(--gutter);
  text-align: left;
  font-size: clamp(14.55px, 2.12vw, 29.11px);
  animation: rise 1.2s cubic-bezier(.2, .7, .2, 1) 1.6s both;
}

.footer__place {
  right: var(--gutter);
  text-align: right;
  font-size: clamp(15.84px, 2.3vw, 31.68px);
  opacity: .85;
  animation: rise 1.2s cubic-bezier(.2, .7, .2, 1) 1.9s both;
}

/* ── Keyframes ── */

@keyframes rise     { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes softIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes growV    { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes float    { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@keyframes logoWipe {
  from { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateX(-60px) translateY(10px); }
  to   { opacity: 1; clip-path: inset(0 0 0 0);    transform: translateX(-60px) translateY(0); }
}

@keyframes flyIn {
  0%   { opacity: 0; transform: scale(1.14) translateX(9%); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1.05) translateX(0); }
}

@keyframes slowPan {
  0%   { transform: scale(1.04); }
  50%  { transform: scale(1.12); }
  100% { transform: scale(1.04); }
}

/* ── Tablet and below ── */

@media (max-width: 900px) {
  .stage__overlay {
    background: linear-gradient(180deg,
                rgba(20, 32, 18, .45) 0%,
                rgba(20, 32, 18, .22) 40%,
                rgba(20, 32, 18, .62) 100%);
  }
}

/* ── Phones / narrow viewports ── */

@media (max-width: 700px) {
  .stage {
    justify-content: center;
    padding: 14vh 20px 24vh;
  }

  .hero { gap: 24px; width: 100%; }

  .hero__logo {
    height: auto;
    width: min(68vw, 340px);
    transform: none;
    animation-name: logoWipeM;
  }

  .hero__rule { width: 56px; }
  .hero__soon { font-size: clamp(16px, 4.6vw, 22px); }

  .footer__tagline,
  .footer__place {
    position: static;
    text-align: center;
    max-width: 22ch;
    margin-inline: auto;
  }

  .footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: clamp(20px, 6vw, 40px);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
  }

  .footer__tagline { font-size: clamp(15px, 4.4vw, 21px); line-height: 1.45; }
  .footer__place   { font-size: clamp(13px, 3.6vw, 17px); }

  /* Phones load a natively portrait clip, so it already fills the frame.
     Gentler entrance and pan keep it near true cover instead of the
     desktop version's 1.05 → 1.12 push. */
  .stage__video {
    animation: flyInM 1.8s cubic-bezier(.16, .84, .24, 1) both,
               slowPanM 24s ease-in-out 1.8s infinite;
  }
}

@keyframes logoWipeM {
  from { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateY(10px); }
  to   { opacity: 1; clip-path: inset(0 0 0 0);    transform: translateY(0); }
}

@keyframes flyInM {
  0%   { opacity: 0; transform: scale(1.08); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes slowPanM {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ── Small phones ── */

@media (max-width: 380px) {
  .stage { padding-top: 12vh; }
  .hero__logo { width: 74vw; }
  .footer__tagline { font-size: 14.5px; }
  .footer__place   { font-size: 12.5px; }
}

/* ── Landscape phones / short viewports ── */

@media (max-height: 520px) and (orientation: landscape) {
  .stage { justify-content: center; padding: 20px 24px 76px; }
  .hero { gap: 14px; animation: none; }
  .hero__logo { height: clamp(52px, 18vh, 88px); width: auto; }
  .hero__soon { font-size: 15px; }
  .footer { bottom: 14px; gap: 4px; }
  .footer__tagline { font-size: 13px; }
  .footer__place   { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}
