:root {
  --bg: #050506;
  --fg: #ece8e1;
  --muted: #8a857c;
  --line: rgba(236, 232, 225, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: #2a3d66;
  color: #ece8e1;
}

.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 28px 48px;
  color: var(--fg);
  background: linear-gradient(to bottom, rgba(5, 5, 6, 0.72) 0%, rgba(5, 5, 6, 0) 100%);
  pointer-events: none;
}

.bar a {
  pointer-events: auto;
}

.wordmark {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.bar__contact {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(236, 232, 225, 0.7);
}

.bar__contact:hover {
  color: var(--fg);
}

.stage {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #050506;
}

.stage__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 1.8s var(--ease);
}

.stage__img.is-on {
  opacity: 1;
}

.stage__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5, 5, 6, 0.42) 0%, transparent 32%),
    linear-gradient(to bottom, rgba(5, 5, 6, 0.28) 0%, transparent 22%);
  pointer-events: none;
}

.contact {
  padding: 56px 28px 48px;
}

.contact__name {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.contact__place {
  margin: 0 0 22px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact__mail {
  font-size: 14px;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  width: max-content;
}

.contact__mail:hover {
  border-bottom-color: var(--fg);
}

@media (max-width: 760px) {
  .bar,
  .contact {
    padding-left: 18px;
    padding-right: 18px;
  }

  .bar {
    padding-top: 18px;
  }

  .contact {
    padding-top: 40px;
    padding-bottom: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage__img {
    transition: none;
  }
}
