* {
  box-sizing: border-box;
}

:root {
  --bg: #050505;
  --text: #f4f4f1;
  --muted: #9b9b98;
  --line: rgba(255, 255, 255, 0.075);
  --accent: #ffd52d;
}

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

body {
  color: var(--text);
  font-family: "DM Sans", Arial, sans-serif;
  overflow: hidden;
}

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

.site {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 213, 45, 0.035), transparent 28%),
    #050505;
}

/* Perspective grid */
.grid {
  position: absolute;
  z-index: -3;
  inset: -20%;
  width: 140%;
  height: 140%;
  opacity: 0.58;
  transform:
    perspective(850px)
    rotateX(62deg)
    translate3d(var(--grid-x, 0px), var(--grid-y, 0px), 0)
    scale(1.35);
  transform-origin: center center;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 58px 58px;
  will-change: transform;
}

.vignette {
  position: absolute;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 25%, rgba(0, 0, 0, 0.22) 70%, rgba(0, 0, 0, 0.7) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.12), transparent 35%, rgba(0, 0, 0, 0.25));
}

.cursor-glow {
  position: fixed;
  z-index: -1;
  left: 0;
  top: 0;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(255, 213, 45, 0.09) 0%,
    rgba(255, 213, 45, 0.035) 24%,
    transparent 68%
  );
  filter: blur(12px);
  transition: opacity 0.4s ease;
  will-change: transform;
}

.cursor-dot {
  position: fixed;
  z-index: 20;
  width: 7px;
  height: 7px;
  left: 0;
  top: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(255, 213, 45, 0.6);
  transform: translate(-50%, -50%);
  will-change: transform;
}

.header,
.footer {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: clamp(24px, 4.6vw, 76px);
  padding-right: clamp(24px, 4.6vw, 76px);
}

.header {
  top: 0;
  padding-top: clamp(25px, 4.3vw, 70px);
}

.logo {
  font-size: clamp(16px, 1.3vw, 22px);
  font-weight: 600;
  letter-spacing: 0.17em;
  transition: color 0.25s ease;
}

.logo:hover {
  color: var(--accent);
}

.location,
.socials a,
.email {
  font-size: clamp(9px, 0.68vw, 12px);
  letter-spacing: 0.23em;
  font-weight: 500;
}

.location {
  color: #dededb;
}

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 100px 24px;
}

.hero-content {
  width: min(900px, 100%);
  text-align: center;
  transform: translateY(-1.5vh);
}

h1 {
  margin: 0;
  font-size: clamp(52px, 7.4vw, 122px);
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-weight: 500;
}

h1 span {
  display: block;
}

.accent {
  color: var(--accent);
}

.intro {
  margin: clamp(24px, 2.2vw, 38px) auto 0;
  color: #b0b0ad;
  font-size: clamp(13px, 1.15vw, 18px);
  line-height: 1.55;
  letter-spacing: -0.015em;
}

.notify-form {
  display: flex;
  width: min(540px, 100%);
  height: 58px;
  margin: clamp(34px, 3.2vw, 52px) auto 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
  background: rgba(18, 18, 18, 0.62);
  backdrop-filter: blur(12px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.notify-form:focus-within {
  border-color: rgba(255, 213, 45, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 213, 45, 0.04);
}

.notify-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 24px;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-size: 14px;
}

.notify-form input::placeholder {
  color: #767674;
}

.notify-form button {
  width: 185px;
  border: 0;
  cursor: pointer;
  background: var(--accent);
  color: #080808;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.25s ease;
}

.notify-form button:hover {
  background: #ffe45f;
}

.notify-form button:active {
  transform: scale(0.985);
}

.arrow {
  font-size: 20px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.notify-form button:hover .arrow {
  transform: translateX(4px);
}

.form-message {
  height: 18px;
  margin: 10px 0 0;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.footer {
  bottom: 0;
  padding-bottom: clamp(25px, 4vw, 64px);
}

.socials {
  display: flex;
  align-items: center;
  gap: clamp(25px, 3vw, 50px);
}

.socials a,
.email {
  transition: color 0.25s ease;
}

.socials a:hover,
.email:hover {
  color: var(--accent);
}

.socials span {
  display: inline-block;
  margin-left: 7px;
  font-size: 15px;
  letter-spacing: 0;
  transform: translateY(1px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Tablet */
@media (max-width: 800px) {
  .grid {
    background-size: 44px 44px;
  }

  .hero {
    padding-top: 120px;
    padding-bottom: 120px;
  }

  h1 {
    font-size: clamp(50px, 10vw, 80px);
  }

  .intro {
    font-size: 15px;
  }

  .cursor-glow,
  .cursor-dot {
    display: none;
  }
}

/* Mobile */
@media (max-width: 600px) {
  body {
    overflow: hidden;
  }

  .site {
    min-height: 100svh;
  }

  .header {
    padding-top: 24px;
  }

  .logo {
    font-size: 15px;
    letter-spacing: 0.14em;
  }

  .location {
    font-size: 8px;
    letter-spacing: 0.16em;
  }

  .hero {
    padding: 90px 20px 100px;
  }

  .hero-content {
    transform: translateY(-2vh);
  }

  h1 {
    font-size: clamp(44px, 13.2vw, 68px);
    line-height: 0.94;
    letter-spacing: -0.06em;
  }

  .intro {
    margin-top: 22px;
    padding: 0 12px;
    font-size: 13px;
    line-height: 1.5;
  }

  .desktop-only {
    display: none;
  }

  .notify-form {
    height: auto;
    flex-direction: column;
    border: 0;
    overflow: visible;
    background: transparent;
    gap: 8px;
    margin-top: 30px;
  }

  .notify-form:focus-within {
    box-shadow: none;
  }

  .notify-form input,
  .notify-form button {
    width: 100%;
    height: 54px;
    border-radius: 3px;
  }

  .notify-form input {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(18, 18, 18, 0.72);
    padding: 0 18px;
  }

  .notify-form button {
    width: 100%;
  }

  .footer {
    align-items: flex-end;
    padding-bottom: 23px;
  }

  .socials {
    gap: 17px;
  }

  .socials a,
  .email {
    font-size: 7px;
    letter-spacing: 0.16em;
  }

  .socials span {
    margin-left: 3px;
    font-size: 11px;
  }

  .email {
    max-width: 48%;
    text-align: right;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  .grid,
  .cursor-glow,
  .cursor-dot,
  .notify-form button,
  .arrow {
    transition: none !important;
  }
}
