:root{
  --bg: #0b0b0c;
  --fg: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.62);
  --hair: rgba(255,255,255,0.22);
  --maxw: 54rem;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  letter-spacing: 0.01em;
  overflow: hidden;
}

/* Background slideshow */
.bg{
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--bg);
}

.bg img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;       /* works with portrait + landscape; crops calmly */
  object-position: center;
  opacity: 0;
  transition: opacity 1400ms ease;
  filter: saturate(0.98) contrast(1.02);
  transform: scale(1.02);  /* tiny scale for a softer feel */
}

.bg img.is-active{ opacity: 1; }

/* Dark overlay + subtle grain */
.overlay{
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.25) 40%,
    rgba(0,0,0,0.55)
  );
  pointer-events: none;
}

.grain{
  position: fixed;
  inset: -20%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  transform: rotate(2deg);
}

/* Content */
main{
  position: relative;
  z-index: 3;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 2.5rem 1.25rem;
}

.card{
  width: min(var(--maxw), 100%);
  text-align: left;
  padding: 1.25rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: rgba(0,0,0,0.10);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.28);
}

.name{
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  margin: 0 0 1rem 0;
}

.headline{
  margin: 0;
  font-size: clamp(1.35rem, 3.2vw, 2.1rem);
  line-height: 1.2;
  font-weight: 420;
}

.headline .muted{
  color: var(--muted);
  font-weight: 380;
}

.rule{
  margin: 1.2rem 0 1rem;
  height: 1px;
  background: var(--hair);
  width: 100%;
}

.cta{
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--fg);
  text-decoration: none;
  padding: 0.75rem 0;
  border-radius: 10px;
  outline: none;
  font-size: 1rem;
}

.cta span{
  color: var(--muted);
  font-size: 0.98rem;
}

.cta .arrow{
  display: inline-block;
  transform: translateY(1px);
  transition: transform 220ms ease, opacity 220ms ease;
  opacity: 0.8;
}

.cta:hover .arrow{
  transform: translate(3px, 1px);
  opacity: 1;
}

.cta:focus-visible{
  box-shadow: 0 0 0 3px rgba(255,255,255,0.18);
  padding-left: 0.4rem;
  padding-right: 0.4rem;
}

/* Footer */
footer{
  position: fixed;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.1rem;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
}

footer a{
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

footer a:hover{
  border-bottom-color: rgba(255,255,255,0.35);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .bg img{ transition: none; }
  .cta .arrow{ transition: none; }
  .grain{ display: none; }
}

/* Mobile tweaks */
@media (max-width: 520px){
  .card{ padding: 1.1rem 1rem; border-radius: 16px; }
  footer{ font-size: 0.85rem; }
}
