@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Inter:wght@400;500;600&display=swap");

:root {
  color-scheme: dark;
  --bg: #12100d;
  --bg-deep: #0a0907;
  --panel: rgba(24, 21, 18, 0.9);
  --panel-border: rgba(216, 202, 183, 0.12);
  --panel-border-strong: rgba(225, 213, 196, 0.18);
  --panel-ink: rgba(13, 11, 10, 0.7);
  --line-soft: rgba(228, 216, 199, 0.08);
  --text: #f1ebe2;
  --muted: #b3aa9d;
  --muted-strong: #d7cdbf;
  --accent: #bca991;
  --accent-strong: #d5c5b1;
  --accent-soft: rgba(213, 197, 177, 0.12);
  --button: rgba(255, 250, 244, 0.03);
  --button-hover: rgba(255, 250, 244, 0.05);
  --shadow-lg: 0 38px 96px rgba(0, 0, 0, 0.48);
  --shadow-md: 0 22px 42px rgba(0, 0, 0, 0.3);
  --radius-card: 34px;
  --radius-pill: 999px;
  --radius-button: 24px;
  --transition: 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1, "clig" 1, "calt" 1;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 3% 14%, rgba(147, 129, 110, 0.16), transparent 23%),
    radial-gradient(circle at 86% 9%, rgba(96, 87, 76, 0.1), transparent 15%),
    radial-gradient(circle at 69% 66%, rgba(62, 56, 49, 0.082), transparent 15%),
    radial-gradient(circle at 30% 108%, rgba(168, 151, 130, 0.064), transparent 20%),
    linear-gradient(180deg, #171411 0%, #100e0c 46%, var(--bg-deep) 100%);
  overflow-x: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.background-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.34;
  animation: orb-float 26s cubic-bezier(0.35, 0, 0.25, 1) infinite alternate;
}

.orb-one {
  top: 0%;
  left: -12%;
  width: 320px;
  height: 320px;
  background: rgba(146, 131, 114, 0.13);
}

.orb-two {
  right: -12%;
  top: 16%;
  width: 280px;
  height: 280px;
  background: rgba(103, 95, 85, 0.12);
  animation-delay: -6s;
}

.orb-three {
  left: 30%;
  bottom: -20%;
  width: 300px;
  height: 300px;
  background: rgba(165, 149, 127, 0.07);
  animation-delay: -10s;
}

.grid-texture,
.grain-overlay,
.cursor-glow {
  position: absolute;
  inset: 0;
}

.grid-texture {
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(255, 248, 239, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 248, 239, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0.75), transparent 78%);
}

.grain-overlay {
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 248, 239, 0.55) 0.4px, transparent 0.8px),
    radial-gradient(circle at 80% 30%, rgba(255, 248, 239, 0.35) 0.5px, transparent 1px),
    radial-gradient(circle at 40% 70%, rgba(255, 248, 239, 0.3) 0.5px, transparent 1px),
    radial-gradient(circle at 70% 80%, rgba(255, 248, 239, 0.28) 0.4px, transparent 1px);
  background-size: 190px 190px;
  mix-blend-mode: soft-light;
}

.grain-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(102deg, transparent 0 28%, rgba(255, 248, 239, 0.012) 46%, transparent 64%),
    linear-gradient(180deg, rgba(255, 248, 239, 0.01), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.05));
}

.cursor-glow {
  opacity: 0;
  background: radial-gradient(circle at var(--cursor-x, 50%) var(--cursor-y, 50%), rgba(214, 197, 177, 0.055), transparent 165px);
  transition: opacity 260ms ease;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px 32px;
}

.profile-card {
  position: relative;
  width: min(100%, 620px);
  padding: 44px 40px 36px;
  border: 1px solid rgba(225, 213, 196, 0.2);
  border-radius: var(--radius-card);
  background:
    linear-gradient(180deg, rgba(255, 248, 239, 0.028), transparent 13%),
    radial-gradient(circle at 18% 12%, rgba(255, 248, 239, 0.026), transparent 21%),
    linear-gradient(180deg, rgba(30, 26, 23, 0.975), rgba(17, 15, 13, 0.99));
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(7px) saturate(104%);
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  animation: card-enter 980ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  transform-style: preserve-3d;
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 320ms ease;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(145deg, rgba(255, 246, 234, 0.065), transparent 18%, transparent 72%, rgba(255, 246, 234, 0.016)),
    linear-gradient(180deg, transparent 69%, rgba(0, 0, 0, 0.16));
  pointer-events: none;
}

.profile-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-card) - 1px);
  border: 1px solid rgba(255, 248, 239, 0.052);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 239, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.profile-card:hover {
  box-shadow: 0 42px 104px rgba(0, 0, 0, 0.5);
}

.card-sheen {
  position: absolute;
  inset: -30% auto auto 61%;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 222, 207, 0.038), transparent 72%);
  filter: blur(14px);
  pointer-events: none;
}

.card-ambient-line {
  position: absolute;
  inset: 82px 28px auto 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(225, 212, 194, 0.11), transparent);
  opacity: 0.72;
  pointer-events: none;
}

.card-header,
.action-list,
.card-footer {
  position: relative;
  z-index: 1;
}

.top-row {
  display: flex;
  align-items: center;
  margin-bottom: 26px;
}

.eyebrow {
  margin: 0;
  color: var(--muted-strong);
  font-size: 12px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.identity-block {
  display: grid;
  grid-template-columns: 92px 1fr;
  column-gap: 22px;
  align-items: start;
  margin-bottom: 22px;
}

.avatar {
  position: relative;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  margin-top: 4px;
  border: 1px solid rgba(226, 214, 198, 0.28);
  border-radius: 26px;
  background:
    linear-gradient(155deg, rgba(255, 247, 235, 0.016), rgba(255, 247, 235, 0.003) 42%, rgba(255, 247, 235, 0)),
    linear-gradient(180deg, rgba(37, 32, 28, 0.985), rgba(17, 15, 13, 1));
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 239, 0.016),
    inset 0 -10px 18px rgba(0, 0, 0, 0.26),
    0 14px 22px rgba(0, 0, 0, 0.15);
}

.avatar::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(223, 208, 189, 0.36), rgba(223, 208, 189, 0.07));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.avatar::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(223, 208, 189, 0.18);
  border-radius: 18px;
}

.avatar-surface {
  position: absolute;
  inset: 10px;
  border-radius: 17px;
  background:
    linear-gradient(180deg, rgba(255, 248, 239, 0.012), rgba(255, 248, 239, 0.003)),
    linear-gradient(180deg, rgba(43, 38, 34, 0.96), rgba(20, 17, 15, 0.992));
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 239, 0.022),
    inset 0 -9px 14px rgba(0, 0, 0, 0.24);
}

.avatar-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(145deg, rgba(255, 248, 239, 0.036), transparent 22%, transparent 73%, rgba(255, 248, 239, 0.008)),
    linear-gradient(180deg, transparent 70%, rgba(0, 0, 0, 0.115));
  pointer-events: none;
}

.avatar-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255, 248, 239, 0.022),
    inset 0 10px 14px rgba(255, 248, 239, 0.006);
  pointer-events: none;
}

.avatar-core {
  position: relative;
  z-index: 1;
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  font-weight: 600;
  color: #ebe0d1;
  text-shadow:
    0 1px 0 rgba(255, 248, 239, 0.018),
    0 -1px 0 rgba(0, 0, 0, 0.3);
  font-feature-settings: "kern" 1, "liga" 1, "clig" 1;
}

.avatar-core-c,
.avatar-core-j {
  position: absolute;
  line-height: 1;
}

.avatar-core-c {
  top: 11px;
  left: 16px;
  font-size: 42px;
  letter-spacing: -0.05em;
}

.avatar-core-j {
  top: 22px;
  left: 41px;
  font-size: 34px;
  letter-spacing: -0.05em;
}

.identity-copy h1 {
  margin: 0 0 13px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.3rem, 14vw, 82px);
  font-weight: 500;
  line-height: 0.89;
  letter-spacing: -0.04em;
  text-wrap: balance;
  text-wrap-style: balance;
  font-feature-settings: "kern" 1, "liga" 1, "clig" 1, "dlig" 1;
}

.subtitle {
  margin: 0;
  color: var(--muted-strong);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0.48;
}

.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  margin-bottom: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(223, 208, 189, 0.064);
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgba(255, 248, 239, 0.016), rgba(255, 248, 239, 0.006));
  color: rgba(217, 207, 191, 0.78);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.012em;
  box-shadow: inset 0 1px 0 rgba(255, 248, 239, 0.014);
}

.action-list {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.action-button {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  min-height: 76px;
  padding: 14px 17px;
  border: 1px solid rgba(223, 208, 189, 0.074);
  border-radius: var(--radius-button);
  background:
    linear-gradient(180deg, rgba(255, 248, 239, 0.022), rgba(255, 248, 239, 0.01)),
    var(--button);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 239, 0.026),
    inset 0 -8px 18px rgba(0, 0, 0, 0.094);
  overflow: hidden;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background-color var(--transition),
    box-shadow var(--transition),
    filter var(--transition);
}

.action-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 24%, rgba(255, 248, 239, 0.055) 50%, transparent 76%);
  transform: translateX(-120%);
  transition: transform 850ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.action-button::after {
  content: "";
  position: absolute;
  inset: auto 14px 0 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(223, 208, 189, 0.1), transparent);
  opacity: 0.58;
}

.action-button:hover,
.action-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(223, 208, 189, 0.13);
  background:
    linear-gradient(180deg, rgba(255, 248, 239, 0.034), rgba(255, 248, 239, 0.016)),
    var(--button-hover);
  box-shadow:
    0 13px 22px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 248, 239, 0.03);
  filter: brightness(1.01);
}

.action-button:hover::before,
.action-button:focus-visible::before {
  transform: translateX(120%);
}

.action-button:focus-visible {
  outline: 2px solid rgba(223, 208, 189, 0.24);
  outline-offset: 4px;
}

.primary-action {
  min-height: 80px;
  border-color: rgba(213, 197, 177, 0.26);
  transform: translateY(-1px);
  background:
    linear-gradient(180deg, rgba(226, 211, 193, 0.12), rgba(255, 248, 239, 0.024)),
    rgba(255, 248, 239, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 239, 0.058),
    inset 0 -8px 18px rgba(0, 0, 0, 0.048),
    0 15px 24px rgba(0, 0, 0, 0.165);
}

.button-icon {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(223, 208, 189, 0.054);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 248, 239, 0.01), rgba(255, 248, 239, 0.005));
  color: rgba(239, 231, 218, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 248, 239, 0.012);
}

.button-icon svg {
  width: 18px;
  height: 18px;
  opacity: 0.86;
}

.button-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
  min-width: 0;
}

.button-label {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.012em;
}

.button-meta {
  color: var(--muted);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.66;
  font-weight: 400;
}

.button-badge {
  position: relative;
  z-index: 1;
  align-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(223, 208, 189, 0.12);
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgba(255, 248, 239, 0.055), rgba(255, 248, 239, 0.03));
  color: #e8e0d4;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.card-footer {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(223, 208, 189, 0.07);
}

.footer-domain {
  margin: 0;
  width: fit-content;
  color: rgba(230, 221, 210, 0.76);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(223, 208, 189, 0.09);
  transition:
    color var(--transition),
    transform var(--transition),
    border-color var(--transition);
}

.footer-domain:hover,
.footer-domain:focus-visible {
  color: var(--text);
  transform: translateX(1px);
  border-color: rgba(223, 208, 189, 0.2);
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.994);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes orb-float {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(0, -10px, 0);
  }
}

@media (min-width: 720px) {
  .page-shell {
    padding: 42px 24px;
  }

  .profile-card {
    padding: 44px 40px 36px;
  }
}

@media (min-width: 960px) {
  .page-shell {
    padding: 58px 28px;
  }

  .profile-card {
    width: min(100%, 620px);
    padding: 44px 40px 36px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .cursor-glow {
    opacity: 1;
  }
}

@media (max-width: 420px) {
  .profile-card {
    border-radius: 30px;
    padding: 24px 20px 24px;
  }

  .card-ambient-line {
    inset: 74px 18px auto 18px;
  }

  .top-row {
    margin-bottom: 24px;
  }

  .identity-block {
    grid-template-columns: 80px 1fr;
    column-gap: 16px;
    margin-bottom: 22px;
  }

  .avatar {
    width: 80px;
    height: 80px;
    border-radius: 26px;
    margin-top: 2px;
  }

  .avatar::after {
    border-radius: 18px;
  }

  .avatar-surface {
    inset: 9px;
    border-radius: 17px;
  }

  .avatar-core-c {
    top: 10px;
    left: 15px;
    font-size: 2.28rem;
  }

  .avatar-core-j {
    top: 18px;
    left: 34px;
    font-size: 2.02rem;
  }

  .identity-copy h1 {
    font-size: clamp(3rem, 13vw, 4rem);
    margin-bottom: 11px;
    line-height: 0.88;
  }

  .subtitle {
    font-size: 12px;
    letter-spacing: 0.22em;
    opacity: 0.54;
  }

  .meta-chips {
    margin-top: 26px;
  }

  .chip {
    min-height: 38px;
    font-size: 12px;
  }

  .action-button {
    grid-template-columns: 40px 1fr;
    min-height: 72px;
    padding: 14px 15px;
    gap: 13px;
  }

  .button-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .button-label {
    font-size: 14px;
  }

  .button-meta {
    font-size: 12px;
  }

  .button-badge {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .cursor-glow {
    display: none;
  }
}
