@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Gothic+A1:wght@300;400;500;600;700;800&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0&display=swap");

:root {
  --noon-yellow: #feee00;
  --noon-black: #111111;
  --noon-dark: #050505;
  --color-text: #ffffff;
  --color-muted: rgba(255, 255, 255, 0.62);
  --color-soft: rgba(254, 238, 0, 0.14);
  --font-body: "Gothic A1", system-ui, sans-serif;
  --font-display: "DM Serif Display", Georgia, serif;
}

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

html {
  min-height: 100%;
  font-size: 62.5%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background: var(--noon-black);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.6rem;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.material-symbols-outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Material Symbols Outlined";
  font-size: 1.8rem;
  line-height: 1;
  white-space: nowrap;
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

#preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--noon-black);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

#preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.dots-fade {
  display: flex;
  gap: 0.8rem;
}

.dots-fade span {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  background: var(--noon-yellow);
  animation: dotsFade 0.9s infinite ease-in-out;
}

.dots-fade span:nth-child(2) {
  animation-delay: 0.15s;
}

.dots-fade span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes dotsFade {
  0%, 80%, 100% {
    opacity: 0.25;
    transform: scale(0.75);
  }

  40% {
    opacity: 1;
    transform: scale(1);
  }
}

.site-header {
  position: fixed;
  top: 5.2rem;
  left: 6.4rem;
  right: 6.4rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.site-logo,
.header-email {
  pointer-events: auto;
}

.site-logo {
  width: 13.2rem;
}

.header-email {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--color-muted);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.header-email:hover {
  color: var(--noon-yellow);
}

.intro {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  padding: 10rem 12vw;
}

.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 75% 45%, rgba(254, 238, 0, 0.36), transparent 30rem),
    radial-gradient(circle at 20% 20%, rgba(254, 238, 0, 0.16), transparent 24rem),
    linear-gradient(135deg, #000000 0%, #111111 52%, #050505 100%);
  animation: noonFlash 3.4s ease-in-out infinite;
}

.intro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgba(0, 0, 0, 0.42);
}

@keyframes noonFlash {
  0%, 100% {
    filter: brightness(0.78) saturate(1);
    opacity: 0.92;
  }

  50% {
    filter: brightness(1.24) saturate(1.35);
    opacity: 1;
  }
}

.intro-particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(to right, var(--color-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-soft) 1px, transparent 1px);
  background-size: 8rem 8rem;
  mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
  pointer-events: none;
}

.intro-content {
  position: relative;
  z-index: 2;
  max-width: 88rem;
}

.intro h1 {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: clamp(4.8rem, 8vw, 9.6rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.noon-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 4rem;
  padding: 1.45rem 2.6rem;
  border: 1px solid var(--noon-yellow);
  border-radius: 999px;
  background: var(--noon-yellow);
  color: var(--noon-black);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 0 35px rgba(254, 238, 0, 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.noon-button:hover {
  transform: translateY(-0.25rem);
  background: #fff34a;
  box-shadow: 0 0 55px rgba(254, 238, 0, 0.46);
}

.intro-social {
  position: fixed;
  right: 6.4rem;
  bottom: 5.6rem;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.intro-social a {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  color: var(--color-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.intro-social a:hover {
  color: var(--noon-yellow);
  transform: translateX(-0.2rem);
}

@media (max-width: 900px) {
  .site-header {
    top: 3rem;
    left: 3rem;
    right: 3rem;
  }

  .intro {
    padding: 11rem 3rem 10rem;
  }

  .intro-social {
    right: 3rem;
    bottom: 3rem;
    flex-direction: row;
  }
}

@media (max-width: 600px) {
  body {
    overflow-y: auto;
  }

  .site-logo {
    width: 10.8rem;
  }

  .header-email {
    font-size: 0;
    letter-spacing: 0;
  }

  .header-email .material-symbols-outlined {
    font-size: 2rem;
  }

  .intro h1 {
    font-size: clamp(4rem, 15vw, 6.4rem);
  }

}
/* Accessibility and modern mobile viewport safeguards. */
.noon-button:focus-visible,
.site-logo:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 0.5rem;
}

@supports (min-height: 100svh) {
  body,
  .intro {
    min-height: 100svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
