/* ---------- Brand font ---------- */
@font-face {
  font-family: "P22 Mackinac Pro";
  src: url("../fonts/P22Mackinac-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "P22 Mackinac Pro";
  src: url("../fonts/P22Mackinac-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg-0: #0a0908;
  --bg-1: #16130f;
  --gold: #c9a463;
  --gold-soft: #e4cd9e;
  --cream: #f4eee2;
  --white: #ffffff;
  --ink: #050403;
  --card-radius: 22px;
  --max-w: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(201, 164, 99, 0.14), transparent 60%),
    linear-gradient(160deg, var(--bg-1), var(--bg-0) 60%);
  color: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Cursor / ambient canvas ---------- */
#cursor-fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8vh 6vw 10vh;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -20% -10%;
  z-index: 1;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.06), transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
}

.logo {
  width: clamp(160px, 22vw, 300px);
  height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 0 26px rgba(255, 255, 255, 0.18));
  opacity: 0.96;
  margin-bottom: clamp(28px, 5vh, 48px);
  animation: fade-up 0.9s var(--ease) both;
}

.eyebrow {
  font-size: clamp(0.72rem, 1.1vw, 0.85rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 0.9rem;
  animation: fade-up 0.9s var(--ease) 0.08s both;
}

.headline {
  font-family: "P22 Mackinac Pro", "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 1.05;
  color: var(--white);
  margin-bottom: clamp(36px, 6vh, 56px);
  animation: fade-up 0.9s var(--ease) 0.16s both;
}

.countdown {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  animation: fade-up 0.9s var(--ease) 0.26s both;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
}

.countdown-item .num {
  font-family: "P22 Mackinac Pro", serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 5vw, 3rem);
  font-variant-numeric: tabular-nums;
  color: var(--white);
  line-height: 1;
}

.countdown-item .label {
  margin-top: 0.5rem;
  font-size: clamp(0.6rem, 1vw, 0.72rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 238, 226, 0.55);
}

.countdown-sep {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: rgba(201, 164, 99, 0.55);
  transform: translateY(-6px);
}

.open-date {
  margin-top: clamp(28px, 5vh, 44px);
  font-size: 0.9rem;
  color: rgba(244, 238, 226, 0.6);
  letter-spacing: 0.04em;
  animation: fade-up 0.9s var(--ease) 0.34s both;
}

.scroll-hint {
  position: absolute;
  bottom: clamp(20px, 4vh, 40px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(244, 238, 226, 0.35);
  border-radius: 20px;
  display: block;
}
.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--gold-soft);
  animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-dot {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(0); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Family links ---------- */
.family {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(40px, 6vh, 72px) clamp(16px, 4vw, 40px) clamp(60px, 8vh, 100px);
}

.family-card {
  position: relative;
  display: block;
  border-radius: var(--card-radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  isolation: isolate;
  outline-offset: 4px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.family-card:hover,
.family-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.family-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
  filter: saturate(0.85) brightness(0.85);
}

.family-card:hover .family-bg,
.family-card:focus-visible .family-bg {
  transform: scale(1.06);
  filter: saturate(1) brightness(0.7);
}

.family-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 9, 8, 0.05) 0%, rgba(10, 9, 8, 0.35) 55%, rgba(10, 9, 8, 0.92) 100%);
  transition: background 0.5s var(--ease);
}

.family-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(18px, 3vw, 28px);
  gap: 10px;
}

.family-title {
  font-family: "P22 Mackinac Pro", serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--white);
}

.family-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--gold-soft);
  opacity: 0.85;
  transform: translateY(2px);
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.family-card:hover .family-cta,
.family-card:focus-visible .family-cta {
  transform: translateY(0);
  opacity: 1;
}

.family-cta svg {
  transition: transform 0.4s var(--ease);
}
.family-card:hover .family-cta svg {
  transform: translateX(4px);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: clamp(28px, 5vh, 48px) 6vw clamp(36px, 6vh, 56px);
  border-top: 1px solid rgba(244, 238, 226, 0.08);
}

.footer-logo {
  width: 90px;
  filter: brightness(0) invert(1);
  opacity: 0.5;
}

.site-footer p {
  font-size: 0.78rem;
  color: rgba(244, 238, 226, 0.4);
  letter-spacing: 0.03em;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .family {
    grid-template-columns: repeat(2, 1fr);
  }
  .family-card:nth-child(3) {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 620px) {
  .hero { padding: 12vh 7vw 14vh; }
  .countdown { gap: 8px; }
  .countdown-item { min-width: 44px; }
  .family {
    grid-template-columns: 1fr;
  }
  .family-card,
  .family-card:nth-child(3) {
    aspect-ratio: 16 / 10;
  }
  .scroll-hint {
    width: 22px;
    height: 36px;
    bottom: clamp(16px, 3vh, 28px);
  }
}

@media (hover: none) {
  .family-card:hover,
  .family-card:hover .family-bg,
  .family-card:hover .family-cta {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo, .eyebrow, .headline, .countdown, .open-date {
    animation: none;
  }
  .family-bg, .family-card, .family-cta, .family-cta svg {
    transition: none;
  }
}
