:root {
  --cream: #f3e4cc;
  --gold: #e8a33d;
  --clay: #c1552c;
  --olive: #7c8f4e;
  --ink: #0e2a31;
  --ink-dim: rgba(14, 42, 49, 0.75);
  --ink-faint: rgba(14, 42, 49, 0.6);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  background-color: var(--cream);
  background-image: url("assets/marble-bg.jpg");
  background-image: image-set(
    url("assets/marble-bg.webp") type("image/webp"),
    url("assets/marble-bg.jpg") type("image/jpeg")
  );
  background-repeat: repeat;
  background-position: top left;
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'Schibsted Grotesk', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* iOS Safari renders background-attachment: fixed unreliably (jitter/blank on scroll) */
@supports (-webkit-touch-callout: none) {
  body {
    background-attachment: scroll;
  }
}

.scene {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 2.5rem;
}

.hero {
  position: relative;
  z-index: 1;
  max-width: 620px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.brand__logo {
  width: 260px;
  height: auto;
  aspect-ratio: 1 / 1;
  animation: rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.15s;
}

h1 {
  margin: 0;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.08;
  color: var(--ink);
  animation: rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.32s;
}

.lede {
  margin: 0;
  max-width: 42ch;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-dim);
  animation: rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.44s;
}

.wave {
  position: relative;
  z-index: 1;
  width: 200px;
  height: 14px;
  margin-top: 2.75rem;
  overflow: visible;
}

.wave path {
  fill: none;
  stroke: var(--clay);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.55;
}

.foot {
  position: relative;
  z-index: 1;
  margin-top: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.foot__logo {
  width: 40px;
  height: auto;
  aspect-ratio: 1 / 1;
  opacity: 0.85;
}

.foot p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .brand__logo, h1, .lede {
    animation: none;
  }
}

@media (max-width: 480px) {
  .brand__logo {
    width: 190px;
  }
}
