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

:root {
  --bg: #f2ede4;
  --surface: #ede8df;
  --border: rgba(30, 20, 10, 0.09);
  --text: #1a1714;
  --muted: #8a8078;
  --dim: #b8b0a4;
  --accent: #c4522a;
  --accent2: #a0856a;
  --white: #faf7f2;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inconsolata', monospace;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
}

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

.cursor-trail {
  position: fixed;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(196, 82, 42, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s;
}




/* ═══ HOME PAGE ═══ */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
}

/* Photo */
.photo-wrap {
  position: relative;
  margin-bottom: 28px;
  opacity: 0;
  animation: riseIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.ring {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1.5px solid rgba(196, 82, 42, 0.4);
  box-shadow: 0 0 15px rgba(196, 82, 42, 0.15);
  animation: ringPulse 3.5s ease-in-out infinite;
}

.ring2 {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px solid rgba(196, 82, 42, 0.2);
  box-shadow: 0 0 20px rgba(196, 82, 42, 0.1);
  animation: ringPulse 3.5s ease-in-out infinite 1.2s;
}

@keyframes ringPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(1.04);
  }
}

.photo-avatar {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e8e0d4, #d8cfc0, #ede6da);
  border: 1px solid rgba(100, 80, 60, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 58px;
  position: relative;
  overflow: hidden;
}

.photo-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

.photo-avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(to bottom, transparent 40%, rgba(200, 190, 175, 0.2));
}

.status {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #4ade80;
  border: 2px solid var(--bg);
  z-index: 2;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.45);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(74, 222, 128, 0);
  }
}

.name {
  font-family: 'Lora', serif;
  font-size: clamp(26px, 4.5vw, 38px);
  font-weight: 400;
  letter-spacing: -0.4px;
  color: var(--text);
  margin-bottom: 8px;
  opacity: 0;
  animation: riseIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.22s forwards;
}

.title {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
  opacity: 0;
  animation: riseIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.34s forwards;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 36px;
  opacity: 0;
  animation: riseIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.76s forwards;
}

.soc {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: black;
  transition: color .2s, border-color .2s, background .2s;
}

.soc:hover {
  color: var(--accent);
  border-color: rgba(196, 82, 42, 0.3);
  background: rgba(196, 82, 42, 0.05);
}

/* Footer */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  opacity: 0;
  animation: fadeIn 1s 1.4s forwards;
}

.footer-copy {
  font-size: 22px;
  letter-spacing: 0.08em;
  color: black;
}

.footer-time {
  font-size: 22px;
  letter-spacing: 0.06em;
  color: black;
  font-variant-numeric: tabular-nums;
}

/* ANIMATIONS */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
