/* ---------------------------------------------
   göt 24 barbershop — 404 page
   Black / white / gray only. Arial. Minimal motion.
--------------------------------------------- */

:root {
  --black: #050505;
  --bg-1: #0a0a0a;
  --bg-2: #121212;
  --line: rgba(255, 255, 255, 0.08);
  --text-primary: #f2f2f2;
  --text-secondary: #8a8a8a;
  --text-tertiary: #5c5c5c;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

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

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

body {
  height: 100%;
  min-height: 100vh;
  min-height: 100svh;
  min-height: calc(var(--vh, 1vh) * 100);
  background: var(--bg-1);
  color: var(--text-primary);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Subtle static base gradient, extremely low contrast */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, var(--bg-2) 0%, var(--bg-1) 60%),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(255, 255, 255, 0.025) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* ---------------- Header ---------------- */

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  padding: calc(20px + var(--safe-top)) calc(20px + var(--safe-right)) 20px calc(20px + var(--safe-left));
  pointer-events: none;
}

.logo {
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  font-weight: 400;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-8px);
  animation: logoIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

@keyframes logoIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  min-height: calc(var(--vh, 1vh) * 100);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(90px + var(--safe-top)) calc(28px + var(--safe-right)) calc(60px + var(--safe-bottom)) calc(28px + var(--safe-left));
}

.glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(700px, 90vw);
  height: min(700px, 90vw);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: -1;
  animation: drift 12s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -52%) scale(1.06); }
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-tertiary);
  margin-bottom: 28px;
  opacity: 0;
  animation:
    dotIn 0.8s ease-out 0.2s forwards,
    pulse 2.6s ease-in-out 1.2s infinite;
}

@keyframes dotIn {
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.12);
    opacity: 0.6;
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    opacity: 1;
  }
}

.headline {
  font-size: clamp(22px, 5.2vw, 40px);
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  max-width: 16ch;
  opacity: 0;
  transform: translateY(14px);
  animation: textIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

@keyframes textIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subline {
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  opacity: 0;
  animation: subIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.75s forwards;
}

@keyframes subIn {
  to { opacity: 1; }
}

/* ---------------- Responsive tuning ---------------- */

@media (max-width: 380px) {
  .headline {
    font-size: 20px;
  }
  .logo {
    font-size: 12px;
  }
}

@media (min-width: 768px) {
  .content {
    padding-top: calc(110px + var(--safe-top));
  }
}

@media (min-width: 1440px) {
  .headline {
    max-width: 18ch;
  }
}

/* Landscape phones: keep everything visible, no cut-off */
@media (max-height: 480px) and (orientation: landscape) {
  .content {
    padding-top: calc(70px + var(--safe-top));
    padding-bottom: calc(30px + var(--safe-bottom));
  }
  .site-header {
    padding-top: calc(12px + var(--safe-top));
    padding-bottom: 12px;
  }
  .pulse-dot {
    margin-bottom: 16px;
  }
  .headline {
    font-size: clamp(18px, 4vw, 28px);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .logo,
  .headline,
  .subline,
  .pulse-dot,
  .glow {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
