:root {
  --sand: #eed3ba;
  --sand-soft: #f7e4d4;
  --sand-muted: rgba(238, 211, 186, 0.72);
  --onyx: #151311;
  --onyx-soft: #211c19;
  --mauve: #4b262f;
  --mauve-soft: #6a3943;
  --line: rgba(255, 244, 235, 0.08);
  --surface: rgba(26, 20, 18, 0.64);
  --surface-strong: rgba(47, 28, 33, 0.76);
  --surface-soft: rgba(238, 211, 186, 0.07);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: max(884px, 100dvh);
  overflow-x: hidden;
  background: #010101;
  color: var(--sand-soft);
  font-family: "Manrope", "Segoe UI", sans-serif;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.025), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 18%);
  pointer-events: none;
  z-index: -3;
}

a {
  color: inherit;
  text-decoration: none;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

#spline-background,
.gradient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#spline-background {
  z-index: -3;
  overflow: hidden;
  background:
    radial-gradient(circle at 73% 71%, rgba(236, 232, 246, 0.12), transparent 13%),
    radial-gradient(circle at 64% 75%, rgba(138, 104, 206, 0.22), transparent 17%),
    radial-gradient(circle at 34% 83%, rgba(82, 46, 132, 0.18), transparent 20%),
    linear-gradient(180deg, #010101 0%, #020202 46%, #07070a 100%);
}

#spline-background::before,
#spline-background::after {
  content: "";
  position: absolute;
  inset: 0;
}

#spline-background::before {
  background:
    radial-gradient(circle at 70% 71%, rgba(245, 242, 250, 0.12), transparent 12%),
    radial-gradient(circle at 57% 78%, rgba(156, 126, 216, 0.15), transparent 17%),
    radial-gradient(circle at 29% 84%, rgba(96, 58, 148, 0.11), transparent 18%);
  opacity: 1;
}

#spline-background::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(1, 1, 1, 0.22) 52%, rgba(0, 0, 0, 0.68) 100%);
}

#wave-background,
.wave-noise {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#wave-background {
  display: block;
  opacity: 0.98;
}

.wave-noise {
  opacity: 0.12;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.12) 0.7px, transparent 0.7px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 26%);
  background-size: 4px 4px, 100% 100%;
  mix-blend-mode: soft-light;
}

.gradient-glow {
  z-index: -2;
  background:
    radial-gradient(circle at 69% 72%, rgba(230, 224, 242, 0.1), transparent 14%),
    radial-gradient(circle at 59% 77%, rgba(128, 96, 192, 0.17), transparent 18%),
    radial-gradient(circle at 34% 84%, rgba(78, 46, 118, 0.13), transparent 22%),
    radial-gradient(circle at 50% 86%, rgba(0, 0, 0, 0.22), transparent 34%);
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  height: 4.4rem;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(21, 19, 17, 0.94);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.95rem;
  background:
    linear-gradient(145deg, rgba(238, 211, 186, 0.2), rgba(75, 38, 47, 0.75));
  border: 1px solid rgba(238, 211, 186, 0.16);
  color: var(--sand);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--sand);
  letter-spacing: -0.03em;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(238, 211, 186, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--sand);
  cursor: pointer;
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease;
}

.icon-button:hover {
  transform: translateY(-2px);
  background: rgba(238, 211, 186, 0.06);
  border-color: rgba(238, 211, 186, 0.18);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 760px);
  margin: 0 auto;
  padding: 6.1rem 0 1.9rem;
}

.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2.6rem;
}

.profile-frame {
  position: relative;
  margin-bottom: 1.5rem;
}

.profile-avatar {
  width: 8.75rem;
  height: 8.75rem;
  padding: 0.4rem;
  border-radius: 2rem;
  background:
    linear-gradient(145deg, rgba(238, 211, 186, 0.1), rgba(75, 38, 47, 0.34));
  border: 1px solid rgba(238, 211, 186, 0.14);
  box-shadow:
    0 0 42px rgba(238, 211, 186, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.profile-avatar__core {
  width: 100%;
  height: 100%;
  border-radius: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(238, 211, 186, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(75, 38, 47, 0.88), rgba(21, 19, 17, 0.94));
}

.avatar-initials {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.08em;
  color: var(--sand-soft);
}

.avatar-role {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand-muted);
}

.verified-badge {
  position: absolute;
  right: -0.4rem;
  bottom: -0.55rem;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  background: var(--sand);
  color: var(--onyx);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(238, 211, 186, 0.18);
}

.profile-copy h1,
.link-card__copy h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

.profile-copy h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 0.98;
}

.profile-role {
  margin: 0.7rem 0 1rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
}

.profile-description {
  max-width: 35rem;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--sand-muted);
}

.tag-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.tag-card,
.link-card,
.profile-avatar,
.top-bar,
.icon-button {
  box-shadow: var(--shadow);
}

.tag-card,
.link-card,
.icon-button {
  backdrop-filter: blur(18px);
}

.tag-card {
  position: relative;
  overflow: hidden;
  min-height: 5.2rem;
  padding: 0.95rem;
  border-radius: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(238, 211, 186, 0.08);
}

.tag-card:nth-child(odd) .tag-card__icon {
  color: var(--sand);
}

.tag-card:nth-child(even) .tag-card__icon {
  color: #d795a4;
}

.tag-card__label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 228, 212, 0.72);
}

.links-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.link-card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem 1.3rem;
  border-radius: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(75, 38, 47, 0.12));
  border: 1px solid rgba(238, 211, 186, 0.08);
  transition:
    transform 240ms ease,
    border-color 240ms ease,
    background-color 240ms ease;
}

#services > .link-card:not(.link-card--featured) {
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 0 28px rgba(255, 255, 255, 0.16),
    0 0 82px rgba(255, 255, 255, 0.1);
  animation: link-card-glow-pulse 3.8s ease-in-out infinite;
}

#services > .link-card:not(.link-card--featured):nth-child(2) {
  animation-delay: 0.65s;
}

#services > .link-card:not(.link-card--featured):nth-child(3) {
  animation-delay: 1.3s;
}

.link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(238, 211, 186, 0.2);
}

.link-card--split {
  align-items: center;
}

.link-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.link-card__icon {
  width: 3.25rem;
  height: 3.25rem;
  flex: 0 0 auto;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.link-card__icon--sand {
  background: rgba(238, 211, 186, 0.12);
  color: var(--sand);
}

.link-card__icon--mauve {
  background: rgba(215, 149, 164, 0.11);
  color: #efb2bf;
}

.link-card__icon--glass {
  background: rgba(255, 255, 255, 0.06);
  color: #f7d8b9;
}

.link-card__icon--solid {
  width: 3.6rem;
  height: 3.6rem;
  background: var(--sand);
  color: var(--onyx);
  box-shadow: 0 0 22px rgba(238, 211, 186, 0.18);
}

.link-card__copy {
  min-width: 0;
}

.link-card__copy h2 {
  font-size: 1.08rem;
  line-height: 1.15;
  color: var(--sand-soft);
}

.link-card__copy p,
.link-card__copy ul {
  margin: 0.45rem 0 0;
  font-size: 0.86rem;
  line-height: 1.65;
  color: rgba(247, 228, 212, 0.72);
}

.link-card__copy ul {
  padding-left: 1.1rem;
}

.link-card__copy li + li {
  margin-top: 0.2rem;
}

.link-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
  position: relative;
  z-index: 1;
}

.topic-button {
  min-width: 9rem;
  padding: 0.72rem 0.9rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease;
}

.topic-button:hover {
  transform: translateY(-2px);
  border-color: rgba(238, 211, 186, 0.28);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.topic-button--sand {
  background: rgba(238, 211, 186, 0.14);
  color: var(--sand-soft);
}

.topic-button--mauve {
  background: rgba(215, 149, 164, 0.12);
  color: #ffd7df;
}

.link-card__arrow,
.link-card__watermark {
  color: rgba(247, 228, 212, 0.3);
  flex: 0 0 auto;
}

.link-card__arrow {
  transition: transform 220ms ease, color 220ms ease;
}

.link-card:hover .link-card__arrow {
  transform: translateX(4px);
  color: var(--sand);
}

.link-card--featured {
  padding: 1.45rem 1.3rem;
  border: 1px solid rgba(238, 211, 186, 0.18);
  background:
    linear-gradient(135deg, rgba(238, 211, 186, 0.08), rgba(75, 38, 47, 0.24)),
    rgba(255, 255, 255, 0.03);
  display: block;
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 0 28px rgba(255, 255, 255, 0.16),
    0 0 82px rgba(255, 255, 255, 0.1);
  animation: link-card-glow-pulse 3.8s ease-in-out infinite;
}

.link-card--featured .link-card__copy h2 {
  font-size: 1.2rem;
  color: var(--sand);
}

.featured-card__topline,
.featured-card__footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.featured-card__badge,
.featured-card__status,
.featured-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.featured-card__badge {
  padding: 0.7rem 0.95rem;
  color: var(--sand);
  text-transform: uppercase;
  background: rgba(238, 211, 186, 0.08);
  border: 1px solid rgba(238, 211, 186, 0.12);
}

.featured-card__badge .material-symbols-outlined {
  font-size: 1rem;
}

.featured-card__status {
  padding: 0.6rem 0.9rem;
  color: rgba(247, 228, 212, 0.68);
  background: rgba(255, 255, 255, 0.04);
}

.featured-card__body {
  position: relative;
  z-index: 1;
  margin-top: 1.35rem;
}

.featured-card__copy h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--sand-soft);
}

.featured-card__copy p {
  margin: 0.95rem 0 0;
  max-width: 52ch;
  font-size: 0.98rem;
  line-height: 1.75;
  color: rgba(247, 228, 212, 0.72);
}

.featured-card__list {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.featured-card__list li {
  position: relative;
  padding-left: 1.9rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(247, 228, 212, 0.86);
}

.featured-card__list li::before {
  content: "check_circle";
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-family: "Material Symbols Outlined";
  font-size: 1.15rem;
  color: #dcb18c;
  font-variation-settings: "FILL" 0, "wght" 600, "GRAD" 0, "opsz" 24;
}

.featured-card__highlight {
  margin-top: 1.35rem;
  padding: 1rem 1.05rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(238, 211, 186, 0.08);
  color: rgba(247, 228, 212, 0.82);
  font-size: 0.92rem;
  line-height: 1.65;
}

.featured-card__footer {
  margin-top: 1.35rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(238, 211, 186, 0.1);
}

.featured-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.featured-card__meta strong {
  font-size: 1.02rem;
  line-height: 1.2;
  color: var(--sand-soft);
}

.featured-card__meta span {
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(247, 228, 212, 0.62);
}

.featured-card__cta {
  flex: 0 0 auto;
  padding: 0.9rem 1.15rem;
  color: var(--onyx);
  background: var(--sand);
  box-shadow: 0 0 22px rgba(238, 211, 186, 0.16);
}

.featured-card__cta .material-symbols-outlined {
  font-size: 1rem;
}

.footer {
  margin-top: 2.35rem;
  padding-bottom: 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-copy {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 228, 212, 0.5);
  text-align: center;
}

@keyframes grid-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, -96px, 0);
  }
}

@keyframes spin {
  from {
    transform: translateZ(180px) rotateZ(0deg);
  }
  to {
    transform: translateZ(180px) rotateZ(360deg);
  }
}

@keyframes spin-tilted {
  from {
    transform: translateZ(280px) rotateX(72deg) rotateZ(360deg);
  }
  to {
    transform: translateZ(280px) rotateX(72deg) rotateZ(0deg);
  }
}

@keyframes prism-a {
  0%,
  100% {
    transform: translate3d(0, 0, 230px) rotateZ(22deg) rotateX(30deg);
  }
  50% {
    transform: translate3d(-1rem, -1.2rem, 320px) rotateZ(28deg) rotateX(36deg);
  }
}

@keyframes prism-b {
  0%,
  100% {
    transform: translate3d(0, 0, 320px) rotateZ(-16deg) rotateY(18deg);
  }
  50% {
    transform: translate3d(-1rem, 0.8rem, 380px) rotateZ(-10deg) rotateY(24deg);
  }
}

@keyframes orb-a {
  0%,
  100% {
    transform: translate3d(0, 0, 360px);
  }
  50% {
    transform: translate3d(1.2rem, -1rem, 440px);
  }
}

@keyframes orb-b {
  0%,
  100% {
    transform: translate3d(0, 0, 420px);
  }
  50% {
    transform: translate3d(-0.9rem, -1rem, 500px);
  }
}

@keyframes orb-c {
  0%,
  100% {
    transform: translate3d(0, 0, 300px);
  }
  50% {
    transform: translate3d(1rem, 0.8rem, 360px);
  }
}

@keyframes spin-slow {
  from {
    transform: translateZ(140px) rotateX(68deg) rotateZ(0deg);
  }
  to {
    transform: translateZ(140px) rotateX(68deg) rotateZ(360deg);
  }
}

@keyframes aurora-a {
  0%,
  100% {
    transform: translate3d(0, 0, 120px) scale(1);
  }
  50% {
    transform: translate3d(1.2rem, -1rem, 160px) scale(1.08);
  }
}

@keyframes aurora-b {
  0%,
  100% {
    transform: translate3d(0, 0, 100px) scale(1);
  }
  50% {
    transform: translate3d(-1.4rem, 0.8rem, 140px) scale(1.06);
  }
}

@keyframes link-card-glow-pulse {
  0%,
  100% {
    box-shadow:
      var(--shadow),
      0 0 0 1px rgba(255, 255, 255, 0.14),
      0 0 24px rgba(255, 255, 255, 0.14),
      0 0 72px rgba(255, 255, 255, 0.08);
  }
  50% {
    box-shadow:
      var(--shadow),
      0 0 0 1px rgba(255, 255, 255, 0.24),
      0 0 44px rgba(255, 255, 255, 0.24),
      0 0 120px rgba(255, 255, 255, 0.16);
  }
}

@media (max-width: 720px) {
  .background-scene {
    inset: -8vh -14vw;
    transform: rotateX(72deg) translate3d(0, -8vh, -120px);
    opacity: 0.62;
  }

  .scene-ring-c,
  .scene-prism-b {
    opacity: 0.55;
  }

  .top-bar {
    position: relative;
  }

  .page-shell {
    width: min(100% - 1rem, 100%);
    padding-top: 1rem;
    padding-bottom: 0.95rem;
  }

  .links-stack {
    width: calc(100% - 1.25rem);
    margin: 0 auto;
  }

  .tag-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .link-card {
    padding: 1.15rem;
  }

  .link-card--split {
    flex-direction: column;
    align-items: stretch;
  }

  .link-card__actions {
    justify-content: stretch;
  }

  .topic-button {
    flex: 1 1 12rem;
  }

  .link-card__copy h2 {
    font-size: 1rem;
  }

  .featured-card__copy h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 560px) {
  .background-scene {
    inset: -6vh -22vw;
    opacity: 0.5;
  }

  .scene-grid,
  .scene-ring-c,
  .scene-orb-c {
    display: none;
  }

  .top-bar {
    padding: 0 0.9rem;
  }

  .links-stack {
    width: calc(100% - 1.5rem);
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .profile-avatar {
    width: 7.75rem;
    height: 7.75rem;
  }

  .link-card__content {
    align-items: flex-start;
  }

  .link-card__actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .topic-button {
    width: 100%;
    min-width: 0;
    padding: 0.78rem 0.7rem;
    font-size: 0.72rem;
  }

  .link-card__icon {
    width: 2.95rem;
    height: 2.95rem;
  }

  .link-card__icon--solid {
    width: 3.2rem;
    height: 3.2rem;
  }

  .featured-card__topline,
  .featured-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .featured-card__status {
    padding: 0.55rem 0.8rem;
  }

  .featured-card__meta {
    width: 100%;
  }

  .featured-card__cta {
    width: 100%;
    justify-content: center;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .background-scene {
    transform: rotateX(68deg) translate3d(0, -12vh, -120px);
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

}
