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

:root {
  --bg: #f5f0e8;
  --ink: #1a1814;
  --mid: #8a8070;
  --line: rgba(26, 24, 20, .15);
}

html,
body {
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: 'Cormorant Garamond', Georgia, serif;
  cursor: none;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.ring {
  position: fixed;
  border-radius: 50%;
  border: 1px solid var(--line);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.ring-1 {
  width: 560px;
  height: 560px;
  top: 50%;
  left: 50%;
  animation: breathe 7s ease-in-out infinite;
}

.ring-2 {
  width: 380px;
  height: 380px;
  top: 50%;
  left: 50%;
  animation: breathe 7s ease-in-out infinite .6s;
}

.ring-3 {
  width: 220px;
  height: 220px;
  top: 50%;
  left: 50%;
  animation: breathe 7s ease-in-out infinite 1.2s;
}

@keyframes breathe {

  0%,
  100% {
    opacity: .5;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: .9;
    transform: translate(-50%, -50%) scale(1.015);
  }
}

#cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, background .2s;
}

#cursor.hovering {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--ink);
}

.gh-btn {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: var(--ink);
  padding: 0;
  background: none;
  border: none;
  cursor: none;
  outline: none;
  opacity: 0;
  animation: fadeUp .9s .3s cubic-bezier(.4, 0, .2, 1) forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

.icon-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gh-icon {
  width: 52px;
  height: 52px;
  fill: var(--ink);
  transition: transform .6s cubic-bezier(.34, 1.56, .64, 1);
  position: relative;
  z-index: 1;
}

.ink-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ink);
  transform: scale(0);
  transition: transform .5s cubic-bezier(.34, 1.2, .64, 1);
}

.gh-btn:hover .ink-circle {
  transform: scale(1);
}

.gh-btn:hover .gh-icon {
  fill: var(--bg);
  transform: scale(1.1);
}

.divider {
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width .5s cubic-bezier(.77, 0, .18, 1);
}

.gh-btn:hover .divider {
  width: 120px;
}

.gh-label {
  font-size: .72rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  letter-spacing: .45em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color .3s, letter-spacing .4s;
  white-space: nowrap;
}

.gh-btn:hover .gh-label {
  color: var(--ink);
  letter-spacing: .6em;
}

.mark {
  position: fixed;
  width: 20px;
  height: 20px;
  pointer-events: none;
  opacity: .25;
}

.mark::before,
.mark::after {
  content: '';
  position: absolute;
  background: var(--ink);
}

.mark::before {
  width: 1px;
  height: 100%;
  left: 50%;
  top: 0;
}

.mark::after {
  width: 100%;
  height: 1px;
  top: 50%;
  left: 0;
}

.mark-tl {
  top: 40px;
  left: 40px;
}

.mark-tr {
  top: 40px;
  right: 40px;
}

.mark-bl {
  bottom: 40px;
  left: 40px;
}

.mark-br {
  bottom: 40px;
  right: 40px;
}
