/* ── Neue Einstellung — self-hosted, no Google Fonts dependency ── */
@font-face {
  font-family: 'Neue Einstellung';
  src: url('fonts/NeueEinstellung-Light.woff2') format('woff2'),
       url('fonts/NeueEinstellung-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}


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

:root {
  --bg: #0e0e10;
  --text: #f8f4ee;
  --accent: #c49a52;
  --muted: #bebebd;
  --font-heading: 'Neue Einstellung', sans-serif;
  --font-body: 'Neue Einstellung', sans-serif;
}

html, body {
  height: 100%;
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
}

/* Warm jewellery-display-case spotlight — overhead warmth fades to cool edges */
body {
  background: radial-gradient(ellipse 60% 50% at 50% 38%, #15100b 0%, var(--bg) 62%);
}

/* Ambient light pulse — warm glow breathes very slowly, like candlelight */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 55% 45% at 50% 38%, rgba(21, 16, 11, 0.55) 0%, transparent 65%);
  animation: spotlightPulse 12s ease-in-out infinite;
}

@keyframes spotlightPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}

/* ── Film grain ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  mix-blend-mode: overlay;
}

/* ── Vignette — edges dark, centre open so the product breathes ── */
.vignette {
  position: fixed;
  inset: -20px;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(248, 244, 238, 0.045) 1px, transparent 1px),
    radial-gradient(ellipse 50% 45% at 50% 50%, transparent 15%, rgba(14, 14, 16, 0.75) 50%, rgba(14, 14, 16, 0.98) 100%),
    linear-gradient(to bottom, rgba(14, 14, 16, 0.8) 0%, rgba(14, 14, 16, 0.3) 20%, rgba(14, 14, 16, 0.75) 50%, rgba(14, 14, 16, 0.3) 80%, rgba(14, 14, 16, 0.95) 100%);
  background-size: 26px 26px, auto, auto;
}

/* ── Pendant canvas — full-bleed ambient background ── */
.product-viewer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  /* blur on wrapper only — no CSS effects on the WebGL canvas element itself,
     which breaks iOS Safari compositing */
  filter: blur(4px);
  opacity: 0;
  transition: opacity 1.5s ease-out;
}

.product-viewer.ready {
  opacity: 1;
}

#pendant-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── Page ── */
.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  gap: 1.5rem;
}

/* ── Logo lockup — ARKE + SAFE TRAVELS as one unit, matching brand guide ── */
.logo-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.wordmark {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(3.5rem, 12vw, 9rem);
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  color: var(--text);
  line-height: 1;
  text-shadow:
    0 0 20px rgba(196, 154, 82, 0.18),
    0 0 60px rgba(196, 154, 82, 0.08),
    0 0 120px rgba(248, 244, 238, 0.03);
  animation: wordmarkBreathe 9s ease-in-out infinite;
  animation-delay: 5s;
  position: relative;
}

.wordmark span {
  display: inline-block;
  opacity: 0;
  animation: charReveal 1.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.wordmark span:nth-child(1) { animation-delay: 0.30s; }
.wordmark span:nth-child(2) { animation-delay: 0.45s; }
.wordmark span:nth-child(3) { animation-delay: 0.72s; }
.wordmark span:nth-child(4) { animation-delay: 1.12s; }

@keyframes charReveal {
  0%   { opacity: 0; filter: blur(10px); transform: translateY(6px); }
  100% { opacity: 1; filter: blur(0);    transform: translateY(0);   }
}

@keyframes wordmarkBreathe {
  0%, 100% { opacity: 1;    letter-spacing: 0.14em;  text-indent: 0.14em;  text-shadow: 0 0 20px rgba(196, 154, 82, 0.18), 0 0 60px rgba(196, 154, 82, 0.08); }
  50%       { opacity: 0.88; letter-spacing: 0.148em; text-indent: 0.148em; text-shadow: 0 0 28px rgba(196, 154, 82, 0.28), 0 0 80px rgba(196, 154, 82, 0.13); }
}


/* ── Tagline — sub-line of logo lockup, small tracked caps ── */
.tagline {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(0.65rem, 1.2vw, 0.7rem);
  color: var(--accent);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(196, 154, 82, 0.2), 0 0 40px rgba(196, 154, 82, 0.25);
  animation: fadeIn 0.6s ease-out 0.5s both, goldGlow 5s ease-in-out 2s infinite;
}

/* Light catching precious metal */
@keyframes goldGlow {
  0%, 100% { text-shadow: 0 0 10px rgba(196, 154, 82, 0.2),  0 0 40px rgba(196, 154, 82, 0.25); }
  50%       { text-shadow: 0 0  6px rgba(196, 154, 82, 0.5),  0 0 25px rgba(196, 154, 82, 0.45), 0 0 70px rgba(196, 154, 82, 0.18); }
}

/* ── Gold divider ── */
.divider {
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.55;
  animation: fadeIn 1s ease-out both;
  animation-delay: 0.7s;
  transform-origin: center;
  transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Sub ── */
.sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.6s ease-out;
  animation: fadeIn 1s ease-out both;
  animation-delay: 0.9s;
}

.sub:hover { color: rgba(196, 154, 82, 0.65); }

/* ── Form — underline input, inline arrow, luxury convention ── */
.form {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin-top: 0.75rem;
  animation: fadeIn 1s ease-out both;
  animation-delay: 1s;
}

input[type="email"] {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(248, 244, 238, 0.25);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 0.75rem 2.5rem 0.75rem 0.75rem;
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.3s ease-out, box-shadow 0.3s ease-out;
}

input[type="email"]::placeholder {
  color: rgba(248, 244, 238, 0.3);
  letter-spacing: 0.15em;
}

input[type="email"]:focus {
  border-bottom: 0;
  box-shadow: 0 2px 14px rgba(196, 154, 82, 0.12);
}

input[type="email"]:focus + button[type="submit"] {
  transform: translateY(-50%) translateX(-0.4rem);
}

button[type="submit"] {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem 0 0.5rem 0.75rem;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
  -webkit-appearance: none;
  appearance: none;
}

button[type="submit"]:hover:not(:disabled) {
  opacity: 0.6;
  transform: translateY(-50%) translateX(3px);
}

button[type="submit"]:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

button[type="submit"]:focus-visible,
input[type="email"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* ── Form message ── */
.form-message {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  text-transform: uppercase;
  min-height: 1.5rem;
  animation: fadeIn 0.8s ease-out both;
}

.form-message:empty {
  min-height: 0;
}

.form-message.error {
  font-style: normal;
  font-family: var(--font-body);
  color: #c87070;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

/* ── Consent ── */
.consent {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(248, 244, 238, 0.45);
  max-width: 300px;
  line-height: 1.8;
  animation: fadeIn 1s ease-out both;
  animation-delay: 1.15s;
}

.consent a {
  color: rgba(248, 244, 238, 0.55);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.25s ease-out;
}

.consent a:hover {
  color: var(--accent);
}

/* ── Luxury entrance: opacity only, content arrives — it doesn't move ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Accessibility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Mobile ── */
@media (max-width: 480px) {
  .wordmark {
    letter-spacing: 0.15em;
    text-indent: 0.15em;
    font-size: clamp(3.5rem, 18vw, 5rem);
  }

  /* Breathe keyframe must match the mobile letter-spacing values — otherwise
     the animation snaps to the desktop 0.14em after 5s */
  @keyframes wordmarkBreathe {
    0%, 100% { opacity: 1;    letter-spacing: 0.15em;   text-indent: 0.15em;  text-shadow: 0 0 20px rgba(196, 154, 82, 0.18), 0 0 60px rgba(196, 154, 82, 0.08); }
    50%       { opacity: 0.88; letter-spacing: 0.158em;  text-indent: 0.158em; text-shadow: 0 0 28px rgba(196, 154, 82, 0.28), 0 0 80px rgba(196, 154, 82, 0.13); }
  }

  .page {
    gap: 1.25rem;
    padding: 2.5rem 1.5rem;
  }

  /* Prevent iOS Safari auto-zoom on input focus (requires font-size >= 16px) */
  input[type="email"] {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Disable only large motion effects that could cause vestibular issues */
  body::before { animation: none !important; }
  .wordmark { animation: none !important; }
  .wordmark::before { animation: none !important; }
  .tagline { animation: none !important; text-shadow: 0 0 50px rgba(196, 154, 82, 0.45); }
  /* Chars start opacity:0 — restore without stagger animation */
  .wordmark span {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    animation: none !important;
  }
}
