:root {
  --color-fg: #e9efe7;
  --color-muted: #8b9a8d;
  --color-line: rgba(233, 239, 231, 0.22);
  --color-tint: rgba(20, 60, 40, 0.55);
  --color-spot: rgba(140, 220, 170, 0.18);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --content-max: 540px;

  --mx: 50vw;
  --my: 50vh;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background-color: #000;
  color: var(--color-fg);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ----- background stack ----------------------------------------- */

.layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.layer--bg {
  z-index: 0;
  background: url('bg.jpg') center/cover no-repeat;
  filter: brightness(0.32) contrast(1.2) saturate(0.55) sepia(0.35) hue-rotate(60deg);
  transform: scale(1.04);
}

.layer--tint {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 12, 8, 0.55) 0%, rgba(0, 6, 4, 0.85) 100%),
    var(--color-tint);
  mix-blend-mode: multiply;
}

.layer--scan {
  z-index: 2;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.32) 0px,
    rgba(0, 0, 0, 0.32) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.55;
  mix-blend-mode: multiply;
}

.layer--noise {
  z-index: 3;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.7'/></svg>");
  opacity: 0.18;
  mix-blend-mode: overlay;
  animation: noise-drift 320ms steps(2) infinite;
}

.layer--spotlight {
  z-index: 4;
  background: radial-gradient(
    circle 260px at var(--mx) var(--my),
    var(--color-spot) 0%,
    rgba(140, 220, 170, 0.06) 35%,
    transparent 70%
  );
  mix-blend-mode: screen;
  transition: background-position 80ms ease-out;
}

.layer--vignette {
  z-index: 5;
  background: radial-gradient(
    ellipse at center,
    transparent 35%,
    rgba(0, 0, 0, 0.55) 75%,
    rgba(0, 0, 0, 0.95) 100%
  );
}

/* ----- content -------------------------------------------------- */

.page {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 1.5rem;
  text-align: center;
  gap: 4rem;
  animation: fade-in 1.4s ease-out both;
}

.hero__name {
  position: relative;
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.1;
  text-shadow:
    0 0 1px rgba(180, 240, 200, 0.25),
    0 0 18px rgba(120, 200, 160, 0.12);
  animation: flicker 6.5s infinite;
}

.hero__name::before,
.hero__name::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.45;
}

.hero__name::before {
  color: rgba(255, 90, 90, 0.55);
  transform: translate(-1px, 0);
}

.hero__name::after {
  color: rgba(90, 220, 220, 0.55);
  transform: translate(1px, 0);
}

.bio {
  max-width: var(--content-max);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-muted);
}

.bio__line--lead {
  color: var(--color-fg);
  font-weight: 400;
}

.contact__link {
  display: inline-block;
  padding: 0.55rem 0;
  color: var(--color-fg);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  text-decoration: none;
  transition: color 240ms ease, letter-spacing 240ms ease;
}

.contact__link:hover,
.contact__link:focus-visible {
  letter-spacing: 0.28em;
  outline: none;
}

/* ----- motion --------------------------------------------------- */

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes noise-drift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, 1%); }
  50%  { transform: translate(1%, -1.5%); }
  75%  { transform: translate(2%, 1%); }
  100% { transform: translate(-1%, 2%); }
}

@keyframes flicker {
  0%, 100%       { opacity: 1; }
  43%            { opacity: 1; }
  44%            { opacity: 0.78; }
  46%            { opacity: 1; }
  72%            { opacity: 1; }
  73%            { opacity: 0.85; }
  74%            { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .page,
  .hero__name,
  .layer--noise {
    animation: none;
  }
}

@media (max-width: 480px) {
  .page {
    gap: 3rem;
    padding: 2.5rem 1.25rem;
  }

  .layer--scan {
    opacity: 0.45;
  }
}
