:root{
  --ink: #05070a;
  --paper: #f5f3ee;
  --fog: #aab4bf;
  --amber: #ff9c4d;
  --amber-dim: #c65a1f;
}

*{ box-sizing: border-box; }

html, body{
  margin: 0;
  height: 100%;
  background: var(--ink);
}

body{
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: var(--paper);
}

.hero{
  position: relative;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
  background-image: url('hero.jpg');
  background-size: cover;
  background-position: 50% 30%;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
}

/* vignette so type stays legible regardless of crop */
.scrim{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2,3,5,0.80) 0%, rgba(2,3,5,0.15) 30%, rgba(2,3,5,0) 55%, rgba(2,3,5,0.35) 78%, rgba(2,3,5,0.92) 100%);
  pointer-events: none;
}

.mark{
  position: relative;
  z-index: 1;
  padding: clamp(1.75rem, 5vw, 4rem);
  padding-bottom: 0;
  max-width: 46rem;
}

.wordmark{
  margin: 0;
  font-weight: 700;
  font-size: clamp(2.6rem, 7.5vw, 5.75rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-shadow: 0 2px 24px rgba(0,0,0,0.55);
}

.deg{
  color: var(--amber);
}

.tagline{
  margin: 0.35em 0 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 500;
  font-size: clamp(0.85rem, 2vw, 1.15rem);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--amber);
  text-shadow:
    0 0 6px rgba(255,156,77,0.75),
    0 0 22px rgba(255,156,77,0.45),
    0 0 46px rgba(255,110,40,0.25);
  animation: flicker 6s ease-in-out infinite;
}

@keyframes flicker{
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.82; }
  94% { opacity: 1; }
  95.5% { opacity: 0.7; }
  96.5% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce){
  .tagline{ animation: none; }
}

.contact{
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 4vw, 3rem);
  padding: clamp(1.25rem, 4vw, 2rem) clamp(1.25rem, 5vw, 4rem);
  border-top: 1px solid rgba(245,243,238,0.16);
  background: linear-gradient(0deg, rgba(2,3,5,0.75), rgba(2,3,5,0));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.contact__item{
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  text-decoration: none;
  color: var(--paper);
}

.contact__label{
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fog);
}

.contact__value{
  font-size: clamp(0.95rem, 2.3vw, 1.15rem);
  font-weight: 500;
  transition: color 0.2s ease;
}

.contact__item:hover .contact__value,
.contact__item:focus-visible .contact__value{
  color: var(--amber);
}

.contact__item:focus-visible{
  outline: 1px solid var(--amber);
  outline-offset: 6px;
}

.contact__rule{
  width: 1px;
  height: 2rem;
  background: rgba(245,243,238,0.2);
}

@media (max-width: 560px){
  .hero{ background-position: 46% 22%; }

  .mark{ padding-bottom: 0; text-align: left; }

  .contact{
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .contact__rule{ display: none; }
}
