@font-face {
  font-family: "Visby CF";
  src: url("assets/fonts/VisbyCF-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Visby CF";
  src: url("assets/fonts/VisbyCF-DemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Visby CF";
  src: url("assets/fonts/VisbyCF-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Visby CF";
  src: url("assets/fonts/VisbyCF-ExtraBold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f8fbff;
  --muted: #aebbd0;
  --line: rgba(189, 222, 255, 0.16);
  --cyan: #b7edff;
  --navy: #030E1E;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--navy); }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Visby CF", Arial, sans-serif;
}

body,
main,
.profile-shell,
.profile {
  background:
    radial-gradient(70% 34% at 50% 0%, rgba(24, 91, 148, .16) 0%, rgba(3, 14, 30, 0) 72%),
    #030E1E;
  background-color: #030E1E;
}

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

.profile-shell { min-height: 100svh; padding: 0 20px 34px; }
.profile { width: min(100%, 532px); margin: 0 auto; text-align: center; }
.profile__header { display: flex; flex-direction: column; align-items: center; }

.hero-visual {
  position: relative;
  width: calc(100% + 40px);
  height: auto;
  margin: 0 -20px;
  overflow: clip;
  background: #030E1E;
}
.hero-visual__picture,
.hero-visual__photo {
  display: block;
  width: 100%;
  height: auto;
}
.hero-visual__photo {
  height: auto;
  object-fit: initial;
  object-position: initial;
  animation: none;
  transform: none;
}
.hero-visual::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(3, 14, 30, 0) 0%,
    rgba(3, 14, 30, 0) 89%,
    rgba(3, 14, 30, .16) 95%,
    #030E1E 100%
  );
}
.profile__identity { position: relative; z-index: 1; margin-top: -62px; padding: 0 10px; }
.handle { margin: 0; color: var(--ink); font-size: clamp(1.3rem, 2vw, 1.65rem); font-weight: 700; letter-spacing: -.03em; }

.link-list { display: grid; gap: 14px; margin-top: 31px; text-align: center; }
.link-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 12px 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: linear-gradient(105deg, rgba(17, 35, 73, .76), rgba(5, 16, 43, .7));
  box-shadow: 0 11px 27px rgba(0, 0, 12, .18), inset 0 1px rgba(255,255,255,.045);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  transition: transform 240ms ease, border-color 240ms ease, background 240ms ease, box-shadow 240ms ease;
  -webkit-tap-highlight-color: transparent;
}
.link-card::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0;
  background: linear-gradient(115deg, rgba(103, 200, 255, .11), transparent 48%);
  transition: opacity 240ms ease;
}
.link-card::after {
  position: absolute;
  right: 22px;
  top: 50%;
  z-index: 1;
  color: rgba(232, 246, 255, .9);
  content: "•••";
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1;
  transform: translateY(-55%);
}
.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(179, 227, 255, .4);
  background: linear-gradient(105deg, rgba(27, 48, 100, .85), rgba(10, 25, 63, .72));
  box-shadow: 0 16px 31px rgba(0, 0, 12, .32), inset 0 1px rgba(255,255,255,.08);
}
.link-card:hover::before { opacity: 1; }
.link-card:active { transform: translateY(0); }

.profile__footer { margin-top: 31px; }
.secondary-links { display: inline-flex; align-items: center; gap: 13px; color: #a9c6e0; font-size: .78rem; font-weight: 600; }
.secondary-links a { color: inherit; text-decoration: none; transition: color 180ms ease; }
.secondary-links a:hover { color: white; }
.secondary-links a span { padding-left: 2px; font-size: .9em; }
.secondary-links > span { width: 3px; height: 3px; border-radius: 50%; background: #5e789a; }
.profile__footer p { margin: 22px 0 0; color: #6f829e; font-size: .7rem; letter-spacing: .025em; }

a:focus-visible { outline: 2px solid #b8edff; outline-offset: 4px; }
.reveal { opacity: 0; animation: reveal .7s cubic-bezier(.2,.75,.3,1) forwards; }
.reveal--1 { animation-delay: 80ms; }.reveal--2 { animation-delay: 180ms; }.reveal--3 { animation-delay: 260ms; }
@keyframes reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-image-drift { from { transform: scale(1.02) translate3d(-.4%, 0, 0); } to { transform: scale(1.06) translate3d(.5%, -.5%, 0); } }

@media (min-width: 700px) {
  .profile-shell { padding-bottom: 46px; }
  .hero-visual {
    width: 100vw;
    height: auto;
    margin-inline: calc(50% - 50vw);
  }
  .profile__identity { margin-top: -77px; }
  .link-list { margin-top: 36px; gap: 13px; }
}
@media (min-width: 1201px) {
  .hero-visual { height: auto; }
  .hero-visual__picture,
  .hero-visual__photo { height: auto; }
  .hero-visual__photo { object-fit: initial; object-position: initial; }
}
@media (min-width: 600px) and (max-width: 1200px) {
  .hero-visual {
    width: 100vw;
    height: min(56vw, 672px);
    margin-inline: calc(50% - 50vw);
  }
  .hero-visual__picture,
  .hero-visual__photo { height: 100%; }
  .hero-visual__photo { object-fit: cover; object-position: center top; }
  .profile__identity { margin-top: -32px; }
  .link-list { margin-top: 28px; }
}
@media (min-width: 1721px) {
  .hero-visual {
    height: auto;
    margin-top: -64px;
    clip-path: inset(64px 0 0);
  }
  .hero-visual__picture,
  .hero-visual__photo { height: auto; }
  .hero-visual__photo { object-fit: initial; object-position: initial; }
  .profile__identity { margin-top: -120px; }
  .link-list { margin-top: 30px; }
}
@media (max-width: 599px) {
  .hero-visual { height: min(88vw, 390px); }
  .hero-visual__picture,
  .hero-visual__photo { height: 100%; }
  .hero-visual__photo { object-fit: cover; object-position: center top; }
  .profile__identity { margin-top: -26px; }
}
@media (min-width: 381px) and (max-width: 499px) {
  .link-card { min-height: 58px; }
}
@media (max-width: 380px) {
  .profile-shell { padding-inline: 18px; }
  .hero-visual { width: calc(100% + 36px); margin-inline: -18px; height: auto; }
  .profile__identity { margin-top: -26px; }
  .link-list { margin-top: 27px; }
  .link-card { min-height: 63px; }
  .link-card--primary { min-height: 77px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
