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

:root {
  --bg: #000;
  --fg: #fff;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
}

.scene-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url("bg.jpg") center / cover no-repeat;
}

#torch {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 0 auto;
  padding: 4.5rem 1.75rem 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  min-height: 100vh;
  justify-content: center;
  text-align: center;
}

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.face {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  background: #000;
  border: 3px solid var(--fg);
}

.copy h1 {
  margin: 0 0 1.15rem;
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.copy .tagline {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--fg);
  max-width: 26ch;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
  padding: 1.05rem 1.7rem;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg);
  background: var(--fg);
  border: 3px solid var(--fg);
  border-radius: 0;
  cursor: pointer;
}

.btn:hover {
  background: transparent;
  color: var(--fg);
}

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

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.modal__panel {
  position: relative;
  width: min(420px, 100%);
  background: var(--bg);
  border: 2px solid var(--fg);
  padding: 1.25rem 1.25rem 1rem;
  text-align: left;
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 0.65rem;
}

.modal__head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
}

.modal__close {
  appearance: none;
  background: none;
  border: none;
  color: var(--fg);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.15rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li + li {
  border-top: 1px solid var(--fg);
}

.contact-list a,
.contact-plain {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0.15rem;
  color: var(--fg);
  text-decoration: none;
  font-size: 1.1rem;
}

.contact-list a .contact-val {
  color: #4ea1ff;
  text-decoration: underline;
}

.contact-list a:hover .contact-val {
  color: #7cbcff;
}

.contact-key {
  color: var(--fg);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.contact-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  text-align: right;
  word-break: break-all;
}

@media (max-width: 480px) {
  .page {
    padding-top: 3rem;
    justify-content: flex-start;
  }

  .face {
    width: 150px;
    height: 150px;
  }

  .copy h1 {
    font-size: 2.6rem;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #torch {
    display: none;
  }

  .scene-bg {
    filter: brightness(0.25);
  }
}
