/* Emmetropia — the eye at rest
   Daylight. The open inverse of the Reality Distortion Engine. */

:root {
  --paper: #f6f1e7;
  --paper-warm: #efe4cf;
  --ink: #241f18;
  --ink-soft: #4c4436;
  --muted: #837962;
  --amber: #c8892e;
  --amber-soft: #e0ae57;
  --amber-glow: rgba(201, 138, 46, 0.22);
  --line: rgba(36, 31, 24, 0.14);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(120% 90% at 50% -10%, #fffaf0 0%, var(--paper) 42%, var(--paper-warm) 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

/* ---- layers ------------------------------------------------------------- */
.art {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url("hero.webp") center / cover no-repeat;
  opacity: 0.5;
  mix-blend-mode: soft-light;
  -webkit-mask-image: radial-gradient(58% 52% at 50% 44%, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.9) 100%);
          mask-image: radial-gradient(58% 52% at 50% 44%, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.9) 100%);
  animation: drift 26s ease-in-out infinite alternate;
}

#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.glow {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(52% 38% at 50% 8%, rgba(255, 246, 224, 0.85), rgba(255, 246, 224, 0) 70%),
    radial-gradient(40% 30% at 78% 88%, rgba(224, 174, 87, 0.14), rgba(224, 174, 87, 0) 70%),
    radial-gradient(46% 34% at 18% 78%, rgba(201, 138, 46, 0.10), rgba(201, 138, 46, 0) 72%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---- stage -------------------------------------------------------------- */
.stage {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(24px, 6vw, 72px);
  gap: 0;
}

.aperture {
  width: clamp(120px, 20vw, 190px);
  aspect-ratio: 1;
  border-radius: 50%;
  margin-bottom: clamp(30px, 6vh, 54px);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 0 0 10px rgba(255, 250, 240, 0.5),
    inset 0 0 40px rgba(201, 138, 46, 0.16),
    0 0 60px rgba(201, 138, 46, 0.10);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 252, 244, 0.95), rgba(239, 228, 207, 0.5) 58%, rgba(201, 138, 46, 0.14) 100%);
  position: relative;
  animation: breathe 7.5s ease-in-out infinite;
}
.aperture::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #fffefb, #f2e6cf 55%, #d9b263 100%);
  box-shadow: 0 0 24px rgba(224, 174, 87, 0.45);
  opacity: 0.85;
}

.kicker {
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: clamp(0.72rem, 1.5vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--amber);
  padding-left: 0.42em;
}

.wordmark {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-optical-sizing: auto;
  font-size: clamp(2.6rem, 9vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.strap {
  margin: clamp(18px, 3vh, 28px) 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.note {
  margin: clamp(22px, 4vh, 34px) auto 0;
  max-width: 34ch;
  font-size: clamp(0.86rem, 1.7vw, 0.98rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--muted);
}

.stone {
  margin-top: clamp(30px, 5vh, 46px);
  font-size: 1.05rem;
  line-height: 1;
  color: var(--muted);
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.4s ease, color 0.4s ease, transform 0.4s ease;
}
.stone:hover, .stone:focus-visible {
  opacity: 1;
  color: var(--amber);
  transform: translateY(-1px);
  outline: none;
}

/* ---- footer ------------------------------------------------------------- */
.foot {
  position: fixed;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px clamp(18px, 4vw, 34px);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* ---- motion ------------------------------------------------------------- */
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.035); }
}

@keyframes drift {
  from { transform: scale(1.06) translate(-1%, -1%); }
  to   { transform: scale(1.12) translate(1.5%, 1%); }
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: rise 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.d0 { animation-delay: 0.15s; }
.d1 { animation-delay: 0.30s; }
.d2 { animation-delay: 0.52s; }
.d3 { animation-delay: 0.74s; }
.d4 { animation-delay: 1.00s; }
.d5 { animation-delay: 0.10s; }

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

@media (prefers-reduced-motion: reduce) {
  .aperture { animation: none; }
  .art { animation: none; }
  .reveal { opacity: 1; transform: none; animation: none; }
  #sky { display: none; }
}
