/* ─────────────────────────────────────────────────────────────
   Alveus Group — A House of Brands (v3)
   Per official brand guidelines:
     • Sand canvas (#f0e1ce), Earth ink (#3d2a25)
     • Display: Big Shoulders Display (Technor stand-in)
     • Body: Inter (Avenir stand-in)
   ───────────────────────────────────────────────────────────── */

:root {
  /* Official AG palette */
  --copper:      #93511d;
  --earth:       #3d2a25;
  --matte:       #101010;
  --sand:        #f0e1ce;

  /* Derived */
  --sand-light:  #f6ebd9;
  --sand-soft:   #e8d8c0;
  --earth-soft:  #5a4239;
  --earth-mute:  #8a7468;
  --earth-faint: #b8a99c;
  --rule:        rgba(61, 42, 37, 0.18);

  /* Type (stand-ins for Technor + Avenir) */
  --display: 'Big Shoulders Display', 'Saira Condensed', 'Oswald', sans-serif;
  --body:    'Inter', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--sand);
  color: var(--earth);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* Soft warm light: brighter top-left, deeper bottom-right */
  background-image:
    radial-gradient(ellipse 70% 50% at 30% 20%, rgba(251, 240, 215, 0.7) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(147, 81, 29, 0.06) 0%, transparent 70%);
}

/* Subtle grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/></svg>");
}

.skip-link {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  left: 1rem; top: 1rem; width: auto; height: auto;
  padding: .5rem .75rem; background: var(--earth); color: var(--sand);
  z-index: 100;
}

/* ── Top bar ───────────────────────────────────────────────── */
.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(1.25rem, 2.4vw, 1.85rem) clamp(1.25rem, 3.5vw, 2.6rem);
  font-family: var(--body);
  font-size: clamp(0.68rem, 0.82vw, 0.76rem);
  letter-spacing: 0.24em;
  color: var(--earth);
  opacity: 0;
  animation: fadeIn 1.4s var(--ease) 0.2s forwards;
}
.top .wordmark { font-weight: 500; }
.top .place    { color: var(--earth-soft); font-weight: 400; }

@keyframes fadeIn { to { opacity: 1; } }

/* ── Stage ─────────────────────────────────────────────────── */
.stage {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5.5rem clamp(1.5rem, 5vw, 3rem) 5.5rem;
}

/* ── AG Mark ───────────────────────────────────────────────── */
.mark {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  animation: breath 6s ease-in-out infinite;
}
.mark img {
  width: clamp(64px, 6.5vw, 90px);
  height: auto;
  display: block;
}

@keyframes breath {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.94; }
  50%      { transform: translateY(-1.5px) scale(1.012); opacity: 1; }
}

/* ── Eyebrow ───────────────────────────────────────────────── */
.eyebrow {
  margin: 0 0 clamp(1.25rem, 2.4vw, 1.85rem);
  font-family: var(--body);
  font-weight: 500;
  font-size: clamp(0.66rem, 0.78vw, 0.74rem);
  letter-spacing: 0.34em;
  color: var(--earth-soft);
  text-transform: uppercase;
}

/* ── Lead (the display headline) ───────────────────────────── */
.lead {
  margin: 0 0 clamp(0.9rem, 1.6vw, 1.25rem);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.5rem, 6.5vw, 5.25rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--earth);
  text-transform: uppercase;
}

.arriving {
  margin: 0 0 clamp(3rem, 6vw, 5rem);
  font-family: var(--body);
  font-weight: 500;
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  letter-spacing: 0.32em;
  color: var(--earth-soft);
  text-transform: uppercase;
}

/* ── Brands row ────────────────────────────────────────────── */
.brands {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4rem);
  flex-wrap: wrap;
  max-width: 68rem;
  margin-top: clamp(0.5rem, 2vw, 1.5rem);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.25rem;
  min-width: 11rem;
}

.brand-logo {
  height: clamp(80px, 9vw, 115px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.brand-logo img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  display: block;
}

.brand-kind {
  margin: 0;
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(0.85rem, 1vw, 0.98rem);
  letter-spacing: 0.01em;
  color: var(--earth);
  font-style: italic;
}

.brand-status {
  margin: 0.65rem 0 0;
  font-family: var(--body);
  font-weight: 500;
  font-size: clamp(0.62rem, 0.74vw, 0.7rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--earth-mute);
  padding-top: 0.65rem;
  border-top: 1px solid var(--rule);
  min-width: 10rem;
}

.brand-divider {
  width: 1px;
  align-self: stretch;
  background: var(--rule);
  display: block;
}

/* ── Footer ────────────────────────────────────────────────── */
.bottom {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 5;
  padding: clamp(1rem, 2.5vw, 1.75rem) clamp(1.25rem, 4vw, 2rem);
  text-align: center;
  font-family: var(--body);
  font-size: clamp(0.6rem, 0.72vw, 0.68rem);
  letter-spacing: 0.26em;
  color: var(--earth-mute);
  opacity: 0;
  animation: fadeIn 1.4s var(--ease) 2s forwards;
}
.bottom p { margin: 0; }

/* ── Reveal animation ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  animation: typeResolve 1.4s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes typeResolve {
  0%   { opacity: 0; filter: blur(5px); transform: translateY(2px); }
  100% { opacity: 1; filter: blur(0); transform: translateY(0); }
}

/* ── Mobile ────────────────────────────────────────────────── */
@media (max-width: 680px) {
  .top {
    padding: 1.1rem 1.25rem;
    font-size: 0.58rem;
    letter-spacing: 0.2em;
  }
  .stage {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  .lead {
    font-size: clamp(2.5rem, 11vw, 3.5rem);
    letter-spacing: 0.005em;
  }
  .arriving {
    font-size: 0.78rem;
    letter-spacing: 0.28em;
  }
  .eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.28em;
  }
  .brands {
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
  }
  .brand-divider {
    width: 1.75rem;
    height: 1px;
  }
  .brand-status {
    min-width: 9rem;
    font-size: 0.6rem;
    letter-spacing: 0.28em;
  }
  .brand-logo { height: 80px; }

  .bottom {
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    padding: 1rem 1rem 1.25rem;
  }
}

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .mark { animation: none; }
  .reveal { opacity: 1; filter: none; transform: none; }
  .top, .bottom { opacity: 1; }
}
