/* THE REVEAL — one mark, one exposure, one screen. */
:root {
  color-scheme: dark;
  --black: #050505;
  --white: #eeefed;
  --pointer-x: 0px;
  --pointer-y: 0px;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
body { background: var(--black); color: var(--white); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
.reveal {
  position: relative;
  width: 100%; height: 100vh; height: 100svh; height: 100dvh;
  overflow: hidden; isolation: isolate;
}
/* A diffuse diagonal exposure belongs to the mark, not to a container. */
.light-field {
  position: absolute; inset: -30%; pointer-events: none;
  transform: translate(calc(var(--pointer-x) * 2), calc(var(--pointer-y) * 2)) rotate(-32deg);
  transition: transform 1.8s cubic-bezier(.16,1,.3,1);
}
.light-breath {
  position: absolute; width: 24%; height: 100%; left: 38%; top: 0;
  background: linear-gradient(90deg, transparent, #ffffff03 26%, #ffffff09 49.7%, #ffffff11 50%, #ffffff03 51%, transparent 80%);
  filter: blur(14px);
  opacity: .7;
  animation: exposure 18s ease-in-out 3s infinite;
}
.sculpture {
  position: absolute; left: 53%; top: 43%;
  width: min(44vw, 54vh, 520px); width: min(44vw, 54dvh, 520px);
  aspect-ratio: 1;
  transform: translate(calc(-50% + var(--pointer-x)), calc(-50% + var(--pointer-y)));
  transition: transform 1.8s cubic-bezier(.16,1,.3,1);
}
.entrance {
  width: 100%; height: 100%;
  animation: reveal-mark 2.6s cubic-bezier(.16,.7,.18,1) both;
}
.mark { position: relative; width: 100%; height: 100%; }
.mark img { display: block; width: 100%; height: 100%; filter: brightness(0) invert(.87); }
.silver, .reflection {
  position: absolute; inset: 0;
  mask: url('/teaser/Logo.svg') center / contain no-repeat;
  -webkit-mask: url('/teaser/Logo.svg') center / contain no-repeat;
  pointer-events: none;
}
.silver {
  /* Tonal shading preserves every original path and the full silhouette. */
  background: linear-gradient(145deg, #fafbf8 4%, #dadbd8 35%, #888b89 57%, #f2f3f0 76%, #b0b3b1 100%);
}
.reflection {
  background: linear-gradient(125deg, transparent 30%, #ffffff00 42%, #ffffff60 50%, #ffffff00 58%, transparent 72%);
  background-size: 350% 100%; background-position: 100% 50%;
  opacity: .7;
  animation: reflection 18s cubic-bezier(.4,0,.2,1) 3s infinite;
}
.announcement { position: absolute; left: 12%; bottom: 14%; }
h1 { margin: 0; font-size: clamp(20px,1.8vw,26px); font-weight: 400; letter-spacing: -.035em; line-height: 1.24; }
.word-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.word-line > span { display: block; animation: reveal-type 1.3s cubic-bezier(.16,1,.3,1) 1.25s both; }
.word-line:nth-child(2) { color: #8d918f; }
.word-line:nth-child(2) > span { animation-delay: 1.42s; }
.invitation {
  position: absolute; right: 12%; bottom: 14%; margin: 0;
  overflow: hidden; padding-bottom: .12em;
  font-size: clamp(13px,1.1vw,16px); font-weight: 400; letter-spacing: .025em;
  color: #c3c6c3;
}
.invitation span { display: block; animation: reveal-type 1.5s cubic-bezier(.16,1,.3,1) 1.85s both; }
@keyframes reveal-mark {
  0% { clip-path: polygon(0 0, 0 0, 0 0); opacity: 0; transform: translateY(18px); }
  12% { opacity: 1; }
  100% { clip-path: polygon(0 0, 200% 0, 0 200%); opacity: 1; transform: translateY(0); }
}
@keyframes reveal-type {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
/* A brief light passage, then a long still interval. No perpetual drifting. */
@keyframes reflection {
  0%, 48% { background-position: 100% 50%; opacity: 0; }
  54% { opacity: .7; }
  67% { background-position: 0% 50%; opacity: 0; }
  100% { background-position: 0% 50%; opacity: 0; }
}
@keyframes exposure {
  0%, 44%, 76%, 100% { opacity: .5; }
  59% { opacity: .95; }
}
@media (max-width: 900px) and (orientation: portrait) {
  .sculpture { width: min(78vw, 51dvh); left: 53%; top: 43%; }
  .announcement { left: max(8%, env(safe-area-inset-left)); bottom: max(14%, calc(env(safe-area-inset-bottom) + 35px)); }
  h1 { font-size: clamp(20px,4vw,30px); }
  .invitation { right: max(8%, env(safe-area-inset-right)); bottom: max(8%, calc(env(safe-area-inset-bottom) + 20px)); font-size: 12px; }
  .light-field { inset: -20% -80%; transform: rotate(-27deg); }
}
@media (max-height: 600px) and (orientation: portrait) {
  .sculpture { width: min(78vw,47dvh); top: 41%; }
  .announcement { bottom: 17%; }
  .invitation { bottom: max(8%, calc(env(safe-area-inset-bottom) + 16px)); }
}
@media (max-height: 500px) and (orientation: landscape) {
  .sculpture { width: 68dvh; top: 45%; }
  .announcement { left: max(6%,env(safe-area-inset-left)); bottom: max(10%,env(safe-area-inset-bottom)); }
  h1 { font-size: 18px; }
  .invitation { right: max(6%,env(safe-area-inset-right)); bottom: max(10%,env(safe-area-inset-bottom)); font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reflection { display: none; }
  .entrance { clip-path: none; }
}
