:root {
  color-scheme: dark;
  color: #fff5e9;
  background: #231918;
  font-family: system-ui, sans-serif;
  --accent: #ffd2a1;
  --inset: clamp(1.5rem, 6vw, 7rem);
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: clamp(1.5rem, 5vh, 4rem) var(--inset) clamp(1rem, 3.5vh, 2.5rem);
}

.scene,
.scene::after,
.scene__frame,
.scene__photo,
.scene__light {
  position: absolute;
  inset: 0;
}

.scene {
  z-index: -1;
  overflow: hidden;
  background: #231918;
}

.scene::after {
  content: "";
  background:
    linear-gradient(180deg, #170f16a8, transparent 28%, #1e14151a 50%, #140e12d9 100%),
    linear-gradient(90deg, #150e16a3, #1b121a57 48%, transparent 84%);
}

.scene__frame {
  transform-origin: 63% 47%;
  animation: drift 18s ease-in-out infinite alternate paused;
}

.scene__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 61% center;
}

.scene__light {
  background: radial-gradient(ellipse at 98% 42%, #ffb16b82, transparent 43%);
  animation: glow 9s ease-in-out infinite alternate paused;
}

.scene[data-playing="true"] :is(.scene__frame, .scene__light) {
  animation-play-state: running;
}

@keyframes drift {
  from { transform: scale(1.025); }
  to { transform: scale(1.12) translate(-1.3%, 0.65%); }
}

@keyframes glow {
  from { opacity: 0.15; }
  to { opacity: 0.66; }
}

.masthead {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.mark {
  display: grid;
  place-items: center;
  width: 2.6rem;
  aspect-ratio: 1;
  border: 1px solid #fff5e98c;
  border-radius: 50%;
  color: var(--accent);
  font: italic 1.35rem Georgia, serif;
}

.masthead__name,
.intro p {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.intro {
  align-self: end;
  padding-block: clamp(3.5rem, 10vh, 8rem) clamp(3rem, 9vh, 7rem);
}

.intro h1 {
  margin: 0;
  font: 400 clamp(3.75rem, 11vw, 10.5rem) / 0.85 Georgia, serif;
  letter-spacing: -0.075em;
  text-shadow: 0 0.12em 0.35em #1a101757;
}

.intro h1 em {
  color: var(--accent);
  font-weight: 400;
  letter-spacing: -0.06em;
}

.intro p {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: clamp(1.4rem, 4vh, 2.5rem) 0 0;
  line-height: 1.5;
}

.intro p::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--accent);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #fff5e94d;
}

.footer__domain {
  color: inherit;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-underline-offset: 0.2em;
}

.motion {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid #fff5e97d;
  border-radius: 999px;
  background: #1c15166b;
  color: inherit;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.motion[hidden] {
  display: none;
}

.motion:hover {
  background: #fff5e926;
}

.motion:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.motion__icon {
  width: 0.65rem;
  height: 0.65rem;
  border-inline: 2px solid currentColor;
}

.motion[data-playing="false"] .motion__icon {
  border: 0;
  background: currentColor;
  clip-path: polygon(12% 0, 95% 50%, 12% 100%);
}

@media (max-width: 38rem) {
  .scene__photo {
    object-position: 57% center;
  }

  .scene::after {
    background: linear-gradient(180deg, #170f1699, transparent 30%, #180f1780 65%, #140e12e6);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene:not([data-playing="true"]) :is(.scene__frame, .scene__light) {
    animation: none;
    opacity: 1;
  }

  .scene:not([data-playing="true"]) .scene__light {
    opacity: 0.15;
  }
}
