@font-face {
  font-family: Manrope;
  src: url("fonts/Manrope.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: Manrope, sans-serif;
  color: #f7f4ec;
  background: #101e29;
  --muted: #d4dedb;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --orbit-size: min(400px, calc(100vw - 36px));
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-underline-offset: 5px; }
::selection { color: #10212a; background: #d7e7de; }
:focus-visible { outline: 2px solid #f7f4ec; outline-offset: 6px; }
html { scrollbar-color: #81968d #101e29; }

.landscape {
  position: fixed;
  inset: -18px;
  z-index: -2;
  background: #101e29 url("../bgs/IMG_0368.JPG") center / cover no-repeat;
  filter: brightness(1.2) saturate(0.95);
  pointer-events: none;
}

.water-surface { display: block; width: 100%; height: 100%; opacity: 0; }
.landscape.water-ready .water-surface { opacity: 1; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 43%, transparent 15%, rgb(8 20 22 / 18%) 75%),
    linear-gradient(to bottom, rgb(5 17 20 / 14%), rgb(7 17 20 / 3%) 42%, rgb(6 15 19 / 72%) 100%);
  pointer-events: none;
}

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(30px, env(safe-area-inset-top)) 18px max(38px, env(safe-area-inset-bottom));
  isolation: isolate;
}

.heading { text-align: center; }
h1 {
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.035em;
  margin: 0;
  text-shadow: 0 3px 24px rgb(4 12 19 / 28%);
}

.constellation {
  position: relative;
  width: var(--orbit-size);
  height: var(--orbit-size);
  flex: 0 0 auto;
  margin: 17px 0 25px;
}

.constellation::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(185 205 195 / 16%), transparent 70%);
  pointer-events: none;
}

.portrait-wrap {
  position: absolute;
  width: 53%;
  height: 53%;
  top: 23.5%;
  left: 23.5%;
  border-radius: 50%;
  padding: 3px;
  background: rgb(236 240 224 / 65%);
  box-shadow: 0 16px 46px rgb(3 12 18 / 42%);
}

.portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: brightness(1.1) contrast(1.015);
}

.socials { margin: 0; padding: 0; list-style: none; }
.social-slot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 15%;
  height: 15%;
  transform: translate(-50%, -50%);
}

.social-slot:hover, .social-slot:focus-within { z-index: 2; }
.social-link {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  position: relative;
  padding: 0;
  border: 1px solid rgb(223 235 226 / 29%);
  border-radius: 50%;
  background: rgb(14 30 40 / 88%);
  color: #e9eee8;
  text-decoration: none;
  transition: transform 260ms var(--ease-out), background-color 220ms ease,
    border-color 220ms ease, color 220ms ease, box-shadow 260ms ease;
}

.social-icon {
  width: 46%;
  height: 46%;
  display: block;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, 4px);
  padding: 7px 11px;
  border-radius: 6px;
  background: #12232e;
  color: #f7f4ec;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, transform 200ms var(--ease-out), visibility 160ms;
}

.social-link:focus-visible {
  background: color-mix(in srgb, var(--brand) 18%, #10212d);
  border-color: var(--brand);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 24%, transparent);
}
.social-link:focus-visible .tooltip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.social-link:active { transform: scale(0.96); }

.github { --x: 14.49%; --y: 29.5%; --brand: #d5e2eb; --icon: url("icons/github.svg"); --step: 0; }
.youtube { --x: 29.5%; --y: 14.49%; --brand: #ff625b; --icon: url("icons/youtube.svg"); --step: 1; }
.upwork { --x: 50%; --y: 9%; --brand: #8bcb6a; --icon: url("icons/upwork.svg"); --step: 2; }
.steam { --x: 70.5%; --y: 14.49%; --brand: #9dd2ed; --icon: url("icons/steam.svg"); --step: 3; }
.soundcloud { --x: 85.51%; --y: 29.5%; --brand: #f6a365; --icon: url("icons/soundcloud.svg"); --step: 4; }
.tiktok { --x: 85.51%; --y: 70.5%; --brand: #7be5df; --icon: url("icons/tiktok.svg"); --step: 5; }
.instagram { --x: 70.5%; --y: 85.51%; --brand: #e9a0be; --icon: url("icons/instagram.svg"); --step: 6; }
.email { --x: 50%; --y: 91%; --brand: #e4c58f; --icon: url("icons/email.svg"); --step: 7; }
.linkedin { --x: 29.5%; --y: 85.51%; --brand: #83bbeb; --icon: url("icons/linkedin.svg"); --step: 8; }
.discord { --x: 14.49%; --y: 70.5%; --brand: #b1adff; --icon: url("icons/discord.svg"); --step: 9; }
.soundcloud .social-icon { width: 51%; height: 51%; }

.footer { text-align: center; }
.roles {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 500;
  color: #e4ebe5;
  text-wrap: balance;
}
.roles a { font-weight: 700; text-decoration-color: rgb(228 235 229 / 45%); }
.role-divider { color: #aebfba; }
.divider { width: 56px; height: 1px; margin: 23px auto 20px; background: rgb(222 231 222 / 45%); }
.contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
  text-decoration: none;
  text-underline-offset: 6px;
}
.contact svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.5; transition: transform 220ms var(--ease-out); }
.contact:hover { text-decoration: underline; text-decoration-color: #b8cdc0; }
.contact:hover svg { transform: translateX(4px); }
.roles a:hover { text-decoration-color: currentColor; }

.copy-notice {
  position: fixed;
  z-index: 5;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  max-width: calc(100% - 32px);
  width: max-content;
  transform: translate(-50%, 8px);
  padding: 12px 18px;
  border-radius: 8px;
  background: #e5ece2;
  color: #13222a;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 550;
  box-shadow: 0 8px 32px rgb(3 12 18 / 35%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms, transform 220ms var(--ease-out);
}
.copy-notice.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.discord-fallback { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

.water-toggle {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 12px;
  border: 1px solid rgb(223 235 226 / 25%);
  border-radius: 50%;
  color: #d4dedb;
  background: rgb(14 30 32 / 80%);
}
.water-toggle[hidden], .water-toggle .play-icon { display: none; }
.water-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.water-toggle.is-paused .pause-icon { display: none; }
.water-toggle.is-paused .play-icon { display: block; }
.water-toggle .tooltip { left: auto; right: 0; transform: translateY(4px); }
.water-toggle:hover { color: #f7f4ec; border-color: #b8cdc0; }
.water-toggle:is(:hover, :focus-visible) .tooltip { opacity: 1; visibility: visible; transform: translateY(0); }

@media (hover: hover) and (pointer: fine) {
  .social-link:hover {
    transform: translateY(-3px) scale(1.06);
    background: color-mix(in srgb, var(--brand) 18%, #10212d);
    border-color: var(--brand);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 24%, transparent);
  }
  .social-link:hover .social-icon { color: var(--brand); }
  .social-link:hover .tooltip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}

@media (prefers-reduced-motion: no-preference) {
  .heading { animation: text-arrive 750ms var(--ease-out) both; }
  .portrait { animation: portrait-arrive 850ms var(--ease-out) both; }
  .social-link { animation: icon-arrive 650ms var(--ease-out) both; animation-delay: calc(100ms + var(--step) * 35ms); }
  .footer { animation: text-arrive 850ms 220ms var(--ease-out) both; }
  @keyframes text-arrive { from { opacity: 0.35; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes portrait-arrive { from { opacity: 0.6; filter: brightness(0.9) contrast(1.015); } to { opacity: 1; filter: brightness(1.1) contrast(1.015); } }
  @keyframes icon-arrive { from { opacity: 0.25; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .landscape, .constellation, .portrait-wrap, .contact svg { transform: none !important; }
}
