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

:root {
  --bg: #0c0b09;
  --bg-subtle: #141210;
  --text: #f5f0e8;
  --text-muted: #8a8279;
  --accent: #c8a97e;
  --accent-dim: rgba(200, 169, 126, 0.15);

  --font: "Outfit", system-ui, sans-serif;

  --hero-name-size: clamp(3.2rem, 7.5vw, 7.5rem);
}

/* CUSTOM CURSOR */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  display: none;
}

.custom-cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  display: none;
}

@media (pointer: fine) {
  * {
    cursor: none !important;
  }

  .custom-cursor-dot,
  .custom-cursor-outline {
    display: block;
  }
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  overflow: hidden;
  min-height: 100vh;
  position: relative;
}

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

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

.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
}

.bg-glow {
  position: fixed;
  top: 20%;
  right: 10%;
  width: 50vw;
  height: 50vw;
  max-width: 700px;
  max-height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  filter: blur(80px);
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 clamp(2rem, 5vw, 7rem);
  align-items: center;
  gap: clamp(2rem, 4vw, 5rem);
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 2;
}

.hero-greeting {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.line-accent {
  display: inline-block;
  width: 2.5rem;
  height: 1px;
  background: var(--accent);
  transform-origin: left center;
}

.greeting-text {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-name {
  line-height: 1;
  margin-bottom: 1.5rem;
}

.name-line-wrap {
  overflow: hidden;
  padding-bottom: 0.15em;
}

.name-line {
  display: block;
  font-size: var(--hero-name-size);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  will-change: transform;
}

.name-first {
  color: var(--text);
}

.name-last {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
  text-shadow: 1.5px var(--text);
}

.hero-divider {
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.divider-line {
  display: block;
  width: 4.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform-origin: left center;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}

.hero-socials {
  display: flex;
  gap: 2.5rem;
}

.social-link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.35s ease;
}

.social-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.social-link:hover::after {
  width: 100%;
}

.hero-image-section {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-image-wrapper {
  position: relative;
  width: min(100%, 420px);
}

.image-reveal {
  position: relative;
  z-index: 3;
  overflow: hidden;
  border-radius: 6px;
}

.hero-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.04) brightness(0.96) saturate(0.95);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-frame {
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent);
  border-radius: 6px;
  z-index: 1;
  transform: translate(18px, 18px);
  opacity: 0;
  pointer-events: none;
}

.image-bg-shape {
  position: absolute;
  top: -8%;
  right: -8%;
  width: 70%;
  height: 45%;
  border-radius: 50%;
  background: var(--accent-dim);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding: 3rem clamp(1.5rem, 5vw, 3rem);
    gap: 2.5rem;
    align-content: center;
  }

  .hero-image-section {
    order: -1;
  }

  .hero-image-wrapper {
    width: min(70%, 300px);
  }

  .hero-name {
    margin-bottom: 1rem;
  }

  .name-line {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .name-last {
    -webkit-text-stroke-width: 1px;
  }

  .hero-content {
    text-align: center;
    align-items: center;
  }

  .hero-socials {
    justify-content: center;
  }

  .image-frame {
    transform: translate(12px, 12px);
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 1.25rem;
  }

  .hero-image-wrapper {
    width: min(65%, 260px);
  }

  .hero-socials {
    gap: 1.5rem;
  }
}
