/* ============================================================
   Fairmount Street Partners — Landing Page
   Brand palette & type system per Complete Brand Guidelines
   ============================================================ */

:root {
  /* Primary palette */
  --pale-green:      #f9fdf7;  /* "White" / Very Pale Green */
  --brownish-gray:   #ad997f;
  --polished-stone:  #ddc4a8;
  --dark-mauve:      #2d2125;  /* Primary dark — panel + secondary-logo pairing */

  /* Secondary palette (support) */
  --graphite:        #6e7180;

  /* Roles */
  --panel-bg:        var(--dark-mauve);
  --ink-on-dark:     var(--pale-green);
  --accent:          var(--polished-stone);

  /* Type hierarchy (from guidelines, scaled with clamp for the web) */
  --tracking-display: -0.03em;  /* -3% */
  --tracking-body:    -0.02em;  /* -2% */
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink-on-dark);
  background-color: var(--dark-mauve);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ============================================================
   Stage — full-viewport background image (requirement #5)
   ============================================================ */
.stage {
  position: relative;
  min-height: 100svh;
  min-height: 100vh; /* fallback */
  display: grid;
  place-items: center;          /* logo + content centered (requirement #6) */
  padding: 2rem;

  background-color: var(--dark-mauve);
  background-image: url("assets/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Subtle warm vignette to seat the panel and add depth without
   obscuring the architectural photo. */
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 50%,
      rgba(45, 33, 37, 0)   38%,
      rgba(45, 33, 37, 0.28) 100%);
  pointer-events: none;
}

/* ============================================================
   Brand panel — approved dark pairing, holds the light logo
   ============================================================ */
.panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  width: min(680px, 100%);
  padding: clamp(2.75rem, 6vw, 4.75rem) clamp(1.75rem, 6vw, 5rem);

  background: color-mix(in srgb, var(--panel-bg) 92%, transparent);
  border: 1px solid rgba(221, 196, 168, 0.18);
  border-radius: 4px;
  box-shadow:
    0 40px 90px -30px rgba(20, 14, 16, 0.65),
    0 2px 0 rgba(249, 253, 247, 0.04) inset;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);

  /* entrance */
  animation: panel-in 1100ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ---------- Logo ---------- */
.logo {
  width: clamp(220px, 34vw, 360px);
  height: auto;
  display: block;
  animation: rise 1000ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 220ms;
}

/* ---------- Title (Display Title role) ---------- */
.title {
  margin: clamp(1.6rem, 4vw, 2.4rem) 0 0;
  font-weight: 500;                 /* Geist Medium */
  font-size: clamp(1.9rem, 5.2vw, 3rem);
  line-height: 1.05;
  letter-spacing: var(--tracking-display);
  color: var(--ink-on-dark);
  text-wrap: balance;
  animation: rise 1000ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 360ms;
}

/* ---------- Divider rule ---------- */
.rule {
  display: block;
  width: 0;
  height: 1px;
  margin: clamp(1.1rem, 3vw, 1.6rem) 0;
  background: linear-gradient(90deg,
      transparent, var(--accent), transparent);
  animation: rule-grow 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 560ms;
}

/* ---------- Tagline ---------- */
.tagline {
  margin: 0;
  font-weight: 300;                 /* Geist Light/Regular */
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  animation: rise 1000ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 680ms;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes panel-in {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes rule-grow {
  from { width: 0;    opacity: 0; }
  to   { width: 64px; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .panel, .logo, .title, .rule, .tagline {
    animation: none;
  }
  .rule { width: 64px; }
}

/* ============================================================
   BREAKPOINT 1 — DESKTOP is the default above.
   BREAKPOINT 2 — MOBILE  (<= 768px)
   ============================================================ */
@media (max-width: 768px) {
  .stage {
    padding: 1.25rem;
    /* fixed attachment is unreliable on mobile; scroll with content */
    background-attachment: scroll;
    align-items: center;
  }

  .panel {
    width: 100%;
    padding: 2.75rem 1.5rem 3rem;
    border-radius: 3px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .logo {
    width: min(72vw, 280px);
  }

  .title {
    font-size: clamp(1.6rem, 8vw, 2.1rem);
  }

  .tagline {
    font-size: 0.95rem;
    letter-spacing: 0.06em;
  }
}
