:root {
  --ink: #1c2428;
  --mist: #eef3f4;
  --fog: #d5e0e4;
  --slate: #4a5a62;
  --accent: #2f6f6a;
  --accent-deep: #245652;
  --paper: #f5f7f8;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  overflow-x: hidden;
}

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

.stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #9eb0b6;
}

.stage__photo {
  position: absolute;
  inset: -4%;
  background:
    linear-gradient(120deg, rgba(36, 56, 62, 0.35), transparent 55%),
    linear-gradient(0deg, rgba(28, 36, 40, 0.45), transparent 42%),
    radial-gradient(ellipse 80% 60% at 70% 35%, #c5d4d8 0%, transparent 60%),
    linear-gradient(160deg, #8ea3aa 0%, #b7c6cb 38%, #dfe8ea 72%, #cfd9dc 100%);
  animation: pan 28s var(--ease) infinite alternate;
}

.stage__photo::before {
  content: "";
  position: absolute;
  inset: 12% 8% auto auto;
  width: min(48vw, 34rem);
  height: min(58vh, 28rem);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 40%),
    linear-gradient(135deg, #6d858c 0%, #a8bbc0 48%, #e7eef0 100%);
  box-shadow: 0 30px 80px rgba(20, 28, 32, 0.22);
  transform: rotate(-2.5deg);
  animation: frame-in 1.1s var(--ease) both;
}

.stage__photo::after {
  content: "";
  position: absolute;
  left: 6%;
  bottom: 10%;
  width: min(28vw, 16rem);
  height: min(28vw, 16rem);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f2f6f7, #7f949a 70%);
  opacity: 0.55;
  filter: blur(2px);
  animation: float 12s ease-in-out infinite;
}

.stage__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(245, 247, 248, 0.92) 0%, rgba(245, 247, 248, 0.72) 42%, rgba(245, 247, 248, 0.18) 100%),
    linear-gradient(180deg, transparent 55%, rgba(245, 247, 248, 0.85) 100%);
}

.stage__grain {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem clamp(1.25rem, 4vw, 3rem);
}

.logo,
.logo-hero {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.03em;
}

.logo {
  font-size: 1.15rem;
}

.top__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--slate);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.top__link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 6.5rem clamp(1.25rem, 4vw, 3rem) clamp(2.75rem, 9vh, 5.5rem);
  max-width: 38rem;
}

.logo-hero {
  margin: 0 0 1rem;
  font-size: clamp(3rem, 9vw, 5.4rem);
  line-height: 0.95;
  animation: rise 0.85s var(--ease) both;
}

.hero h1 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.55rem, 3.4vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 14ch;
  animation: rise 0.85s var(--ease) 0.1s both;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 28ch;
  color: var(--slate);
  animation: rise 0.85s var(--ease) 0.2s both;
}

.cta {
  animation: rise 0.85s var(--ease) 0.3s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.3rem;
  border: none;
  background: var(--accent);
  color: #f4faf9;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--accent-deep);
}

.contact {
  padding: 4.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
  max-width: 34rem;
}

.contact h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.contact p {
  margin: 0 0 1.1rem;
  color: var(--slate);
}

.mail {
  font-weight: 500;
  border-bottom: 1px solid rgba(47, 111, 106, 0.45);
  color: var(--accent-deep);
  transition: border-color 0.25s var(--ease);
}

.mail:hover {
  border-bottom-color: var(--accent-deep);
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 2.25rem;
  font-size: 0.85rem;
  color: var(--slate);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pan {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.05) translate3d(-1.5%, 1%, 0);
  }
}

@keyframes frame-in {
  from {
    opacity: 0;
    transform: translate(3%, 2%) rotate(-2.5deg);
  }
  to {
    opacity: 1;
    transform: rotate(-2.5deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .stage__photo,
  .stage__photo::before,
  .stage__photo::after,
  .logo-hero,
  .hero h1,
  .lede,
  .cta {
    animation: none;
  }
}

@media (max-width: 720px) {
  .stage__photo::before {
    width: 72vw;
    height: 36vh;
    inset: 10% 4% auto auto;
  }

  .stage__photo::after {
    display: none;
  }

  .stage__veil {
    background:
      linear-gradient(180deg, rgba(245, 247, 248, 0.55) 0%, rgba(245, 247, 248, 0.88) 58%, rgba(245, 247, 248, 0.96) 100%);
  }
}
