
/* =====================================
   VARIABLES
===================================== */

:root {
  color-scheme: dark;

  --bg: #090c13;
  --text: #f2f4fc;
  --muted: #949bb1;

  --accent: #a9b8ff;
  --border: rgba(214, 221, 255, .14);
}

/* =====================================
   BASE
===================================== */

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;

  color: var(--text);
  background: var(--bg);
}

/* =====================================
   PAGE BACKGROUND
===================================== */

.page {
  position: relative;
  isolation: isolate;

  display: grid;
  place-items: center;

  min-height: 100vh;
  min-height: 100svh;

  padding: 64px 24px;

  overflow: hidden;
  text-align: center;

  background:
    radial-gradient(
      ellipse 48% 40% at 50% 40%,
      rgba(83, 104, 176, .15),
      transparent 85%
    ),
    radial-gradient(
      circle at 80% 15%,
      rgba(86, 54, 124, .10),
      transparent 33%
    ),
    #090c13;
}

/* Subtle background grid */

.page::before {
  content: "";

  position: absolute;
  z-index: -1;
  inset: 0;

  pointer-events: none;

  background-image:
    linear-gradient(
      rgba(255,255,255,.022) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255,255,255,.022) 1px,
      transparent 1px
    );

  background-size: 56px 56px;

  -webkit-mask-image:
    radial-gradient(
      ellipse at center,
      #000 10%,
      transparent 75%
    );

  mask-image:
    radial-gradient(
      ellipse at center,
      #000 10%,
      transparent 75%
    );
}

/* =====================================
   CONTENT
===================================== */

.content {
  width: min(100%, 990px);
}

/* Decorative line */

.mark {
  width: 46px;
  height: 1px;

  margin: 0 auto 35px;

  background:
    linear-gradient(
      90deg,
      transparent,
      #c2cbff,
      transparent
    );

  box-shadow:
    0 0 20px rgba(176,191,255,.4);
}

/* =====================================
   HEADING
===================================== */

h1 {
  margin: 0;

  font-size: clamp(3.3rem, 8vw, 7rem);
  font-weight: 500;
  line-height: 1.09;

  letter-spacing: -.065em;
  text-wrap: balance;

  background:
    linear-gradient(
      180deg,
      #ffffff 18%,
      #c9d0e5 100%
    );

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
}

/* =====================================
   SCIENTIFIC PROFILE LINKS
===================================== */

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;

  gap: 12px;
  margin-top: 52px;
}

.link-card {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;

  min-width: 182px;
  padding: 17px 20px;

  color: #e6eafb;
  font-size: 15px;
  font-weight: 500;

  letter-spacing: .01em;
  text-decoration: none;

  background:
    rgba(255,255,255,.035);

  border:
    1px solid var(--border);

  border-radius: 12px;

  box-shadow:
    0 12px 36px rgba(0,0,0,.08);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transition:
    background .25s ease,
    border-color .25s ease,
    transform .25s ease,
    box-shadow .25s ease;
}

/* Arrow */

.arrow {
  font-size: 19px;
  font-weight: 400;
  line-height: 1;

  color: #929cbb;

  transition:
    transform .25s ease,
    color .25s ease;
}

/* Hover */

.link-card:hover {
  transform: translateY(-4px);

  background:
    rgba(146,160,234,.10);

  border-color:
    rgba(169,184,255,.42);

  box-shadow:
    0 16px 44px rgba(0,0,0,.18);
}

.link-card:hover .arrow {
  transform: translate(2px, -2px);
  color: var(--accent);
}

/* Keyboard accessibility */

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

/* =====================================
   CONTACTS
===================================== */

.contacts {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 22px;
  margin-top: 47px;
}

/* Separator */

.divider {
  width: 78px;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(216,223,255,.28),
      transparent
    );
}

/* Contact links */

.contact-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;

  gap: 32px;
}

.contact-link {
  display: inline-flex;
  align-items: center;

  gap: 9px;
  padding: 7px 4px;

  color: var(--muted);

  font-size: 14px;
  letter-spacing: .025em;
  text-decoration: none;

  transition:
    color .25s ease,
    transform .25s ease;
}

.contact-link svg {
  width: 18px;
  height: 18px;

  flex-shrink: 0;
}

/* Contact hover */

.contact-link:hover {
  color: #f2f4fc;
  transform: translateY(-2px);
}

/* =====================================
   ENTRANCE ANIMATIONS
===================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);

  animation:
    reveal .95s
    cubic-bezier(.2,.7,.2,1)
    forwards;
}

/* Sequential appearance */

.delay-1 {
  animation-delay: .12s;
}

.delay-2 {
  animation-delay: .32s;
}

.delay-3 {
  animation-delay: .58s;
}

.delay-4 {
  animation-delay: .73s;
}

.delay-5 {
  animation-delay: .88s;
}

.delay-6 {
  animation-delay: 1.10s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================
   MOBILE
===================================== */

@media (max-width: 560px) {

  .page {
    padding: 56px 20px;
  }

  h1 {
    font-size:
      clamp(3rem, 13vw, 4.5rem);
  }

  .links {
    max-width: 340px;
    margin: 38px auto 0;
  }

  .link-card {
    width: 100%;
  }

  .contacts {
    margin-top: 38px;
  }

  .contact-links {
    gap: 24px;
  }

}

/* =====================================
   REDUCED MOTION
===================================== */

@media (prefers-reduced-motion: reduce) {

  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .link-card,
  .arrow,
  .contact-link {
    transition: none;
  }

}
