/* FAWN — v4 titleless */

:root {
  --ground: #C3BFBC;   /* R195 G191 B188 */
  --ink: #000;
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --type: clamp(12px, 1.4vw, 18px);
}

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

html, body {
  margin: 0;
  height: 100%;
  background: var(--ground);
  color: var(--ink);
}

body {
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ---- Full-bleed frosted photo ---- */
/* Bleeds 32px past the viewport so the blur never shows a soft edge */
.backdrop {
  position: fixed;
  inset: -32px;
  overflow: hidden;
}

.backdrop picture,
.backdrop img {
  display: block;
  width: 100%;
  height: 100%;
}

.backdrop img {
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 0;
  will-change: filter, opacity, transform;
}

/* ---- Centred text ---- */
.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px clamp(20px, 4vw, 56px);
  text-align: center;
}

.tagline,
.connect {
  margin: 0;
  font-weight: 400;
  font-size: var(--type);
  letter-spacing: 0.01em;
  line-height: 1.4;
  opacity: 0;
}

.tagline { white-space: nowrap; }

.connect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-decoration-color .3s ease;
}
.connect:hover { text-decoration-color: var(--ink); }
.connect:focus-visible { outline: 1px solid var(--ink); outline-offset: 6px; }

/* ---- Load sequence (starts once the photo is ready) ---- */
@keyframes focus-in {
  0%   { filter: blur(28px); opacity: 0; transform: scale(1.06); }
  30%  { opacity: .6; }
  100% { filter: blur(0);    opacity: 1; transform: scale(1); }
}
@keyframes recede {
  0%   { filter: blur(0);   opacity: 1; }
  100% { filter: blur(6px); opacity: .4; }
}
@keyframes text-in {
  0%   { opacity: 0; filter: blur(8px); }
  100% { opacity: 1; filter: blur(0); }
}

.is-ready .backdrop img {
  animation:
    focus-in 3.8s cubic-bezier(.22,.61,.36,1) .3s both,
    recede   2s   ease-in-out 4.4s forwards;
}
.is-ready .tagline { animation: text-in 1.8s ease-out 4.6s both; }
.is-ready .connect { animation: text-in 1.4s ease-out 5.4s both; }

/* ---- Reduced motion: show the final state, no animation ---- */
@media (prefers-reduced-motion: reduce) {
  .backdrop img,
  .is-ready .backdrop img { animation: none; opacity: .4; filter: blur(6px); }
  .tagline, .connect,
  .is-ready .tagline, .is-ready .connect { animation: none; opacity: 1; }
}
