* {
  box-sizing: border-box;
}

html {
  font-family: "Open Sauce One", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  padding-top: 72px;
}

h1,
h2,
h3 {
  font-family: inherit;
  font-weight: 700;
}

strong,
b {
  font-weight: 700;
}

/* Subtle animated "mist" overlay behind content */
body::before,
body::after {
  content: "";
  position: absolute;
  inset: -25%;
  display: none;
  pointer-events: none;
  z-index: 0;
  filter: blur(0px);
  opacity: 0;
  will-change: auto;
}

body::before {
  background: none;
  animation: body-mist-1 54s linear infinite;
}

body::after {
  background: none;
  animation: body-mist-2 72s linear infinite;
  opacity: 0.14;
}

body > * {
  position: relative;
  z-index: 1;
}

@keyframes body-mist-1 {
  0% {
    transform: translate3d(-1.1%, -0.7%, 0);
  }
  50% {
    transform: translate3d(1.1%, 0.7%, 0);
  }
  100% {
    transform: translate3d(-1.1%, -0.7%, 0);
  }
}

@keyframes body-mist-2 {
  0% {
    transform: translate3d(0.9%, -0.6%, 0);
  }
  50% {
    transform: translate3d(-1%, 0.8%, 0);
  }
  100% {
    transform: translate3d(0.9%, -0.6%, 0);
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.container {
  width: min(1024px, 92%);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background-color: var(--header-surface);
  backdrop-filter: blur(8px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  overflow: visible;
  z-index: 1000;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: -120px -60px;
  background: none;
  filter: none;
  opacity: 0;
  z-index: 0;
  animation: none;
  pointer-events: none;
}

.site-header > .navbar {
  position: relative;
  z-index: 1;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  z-index: 0;
  pointer-events: none;
}


.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  min-height: 72px;
  overflow: visible;
  flex-wrap: wrap;
}

.nav-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.15rem clamp(0.65rem, 1.8vw, 1.35rem);
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-primary a {
  display: inline-block;
  padding: 0.4rem 0.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--label);
  letter-spacing: 0.01em;
}

.nav-primary a:hover {
  color: var(--white);
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-links--actions {
  gap: 0.55rem 0.85rem;
}

.nav-link-muted {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.4rem 0.35rem;
}

.nav-link-muted:hover {
  color: var(--white);
  opacity: 1;
}

.nav-cta {
  padding: 0.45rem 1.05rem;
  font-size: 0.86rem;
  border-radius: 999px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .nav-primary {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
    padding-top: 0.35rem;
    border-top: 1px solid var(--line);
  }

  .nav-actions {
    margin-left: auto;
  }
}

.brand {
  font-size: 1.7rem;
  font-weight: 800;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  letter-spacing: 0.2px;
  padding: 0.15rem 0;
  position: relative;
}

.brand:not(.brand--orbit)::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12), 0 0 18px rgba(var(--accent-rgb), 0.35);
}

.brand--orbit::before {
  content: none;
}

.brand--orbit {
  line-height: 0;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}

.orbit-brand-img {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  -webkit-touch-callout: none;
}

.brand--orbit .orbit-brand-img--nav {
  height: 48px;
  width: auto;
  display: block;
}

.brand:not(.brand--orbit):hover {
  color: var(--white);
  text-shadow: 0 0 18px rgba(var(--accent-rgb), 0.35);
}

@keyframes header-glow-shift {
  0% {
    transform: translate3d(-1%, -1%, 0) scale(1);
  }
  50% {
    transform: translate3d(1%, 1%, 0) scale(1.02);
  }
  100% {
    transform: translate3d(-1%, -1%, 0) scale(1);
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.nav-links a {
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--white);
  opacity: 0.86;
}

.nav-links a:active {
  transform: translateY(1px);
}

/* Marketing / SaaS-style static pages */
.marketing-page {
  padding-top: 0.75rem;
  padding-bottom: 3.5rem;
}

.marketing-hero {
  margin-bottom: 2.5rem;
  max-width: 42rem;
}

.marketing-page--pricing .marketing-hero {
  max-width: 56rem;
}

.marketing-eyebrow--pricing-cards {
  margin-top: 0;
  margin-bottom: 0.65rem;
}

.marketing-pricing-grid--top {
  margin-bottom: 2.25rem;
}

.marketing-hero--pricing-top {
  margin-top: 0;
  margin-bottom: 2rem;
}

.marketing-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.marketing-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3.4vw, 2.2rem);
  line-height: 1.2;
}

.marketing-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 1.04rem;
}

.marketing-section {
  margin-bottom: 2.25rem;
}

.marketing-section h2 {
  font-size: 1.12rem;
  margin-top: 0;
  margin-bottom: 0.65rem;
}

.marketing-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.marketing-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.marketing-price-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.35rem 1.4rem;
  background: var(--surface-elevated);
  display: flex;
  flex-direction: column;
}

.marketing-price-card h2 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.marketing-price-card--featured {
  border-color: var(--line-accent);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.08);
}

.marketing-price {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}

.marketing-price-period {
  font-size: 0.58em;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
  white-space: nowrap;
}

.marketing-price-card > p:not(.marketing-price) {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  flex-grow: 0;
}

.marketing-list {
  margin: 0 0 1.1rem;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
  flex-grow: 1;
}

.marketing-price-card .button {
  align-self: flex-start;
  margin-top: auto;
}

.marketing-resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.marketing-resource-list li {
  display: grid;
  gap: 0.2rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.marketing-resource-list li:first-child {
  padding-top: 0;
}

.marketing-resource-list li:last-child {
  border-bottom: none;
}

.marketing-resource-list a {
  font-weight: 600;
  color: var(--text);
}

.marketing-resource-list li span:last-child {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.marketing-resource-soon {
  font-weight: 600;
  color: var(--muted);
}

.marketing-resource-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.marketing-beta-pill {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  line-height: 1.2;
  vertical-align: middle;
}

.marketing-beta-pill--inline {
  font-size: 0.38em;
  letter-spacing: 0.12em;
  padding: 0.2em 0.55em;
  margin-left: 0.15em;
  position: relative;
  top: -0.12em;
}

.profile-menu {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: -10px;
  z-index: 10000;
  overflow: visible;
}

.profile-trigger {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--text);
  border-radius: 999px;
  padding: 0.35rem 0.6rem 0.35rem 0.35rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.profile-trigger:hover {
  border-color: var(--line-accent);
  background: rgba(255, 255, 255, 0.08);
}

.profile-trigger:active {
  transform: translateY(1px);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 0, 0, 0.95);
  transition: transform 0.2s ease;
}

.profile-avatar-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.16);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06), 0 12px 28px var(--shadow-deep);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-trigger:hover .profile-avatar-wrap {
  transform: translateY(-0.5px) scale(1.03);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.25), 0 16px 34px var(--shadow-deep);
}

.profile-name {
  font-size: 0.9rem;
  font-weight: 600;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-chevron {
  font-size: 0.8rem;
  color: var(--muted);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 246px;
  padding: 0.5rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(18, 18, 18, 0.98);
  box-shadow: 0 16px 36px var(--shadow-deep);
  visibility: hidden;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, max-height 0.18s ease;
  z-index: 10001;
}

.profile-dropdown a,
.profile-dropdown button {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  text-align: left;
  padding: 0.56rem 0.66rem;
  font: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.profile-dropdown a:hover,
.profile-dropdown button:hover {
  background: var(--dropdown-hover);
}

.profile-dropdown-head {
  display: grid;
  gap: 0.14rem;
  padding: 0.32rem 0.5rem 0.46rem;
}

.profile-dropdown-label {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.profile-dropdown-name {
  font-size: 0.92rem;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-dropdown-divider {
  border: 0;
  border-top: 1px solid var(--line-accent-soft);
  margin: 0.24rem 0 0.36rem;
}

.dropdown-settings {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 0.2rem;
  color: var(--muted);
  opacity: 0.75;
}

.dropdown-settings svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.28s ease, color 0.2s ease, opacity 0.2s ease;
}

.dropdown-settings:hover {
  background: transparent !important;
  opacity: 1;
}

.dropdown-settings:hover svg {
  transform: rotate(24deg);
  color: var(--accent);
}

.profile-menu.open .profile-dropdown {
  visibility: visible;
  opacity: 1;
  max-height: 420px;
  overflow: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.profile-menu.open .profile-chevron {
  transform: rotate(180deg);
}

.hero {
  display: grid;
  place-items: center;
  padding: 4rem 0;
}

.hero-card,
.auth-card,
.page-panel {
  width: min(680px, 100%);
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 18px 40px var(--shadow-deep);
}

.hero-card,
.auth-card {
  margin-inline: auto;
}

.hero-card h1 {
  margin-top: 0.6rem;
  margin-bottom: 0.8rem;
  line-height: 1.3;
  font-weight: 800;
}

.hero-card p {
  color: var(--muted);
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-glow-subtle);
  color: var(--text-accent);
  font-size: 0.85rem;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.8rem;
}

/* Home only: high-contrast monochrome + mission-control console cues */
body.page-home {
  --font-console: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
  --accent: #ffffff;
  --accent-dim: #e6e6e6;
  --accent-deep: #121212;
  --accent-rgb: 255, 255, 255;
  --accent-glow: rgba(255, 255, 255, 0.12);
  --accent-glow-subtle: rgba(255, 255, 255, 0.05);
  --text-accent: rgba(255, 255, 255, 0.9);
  --line-accent-soft: rgba(255, 255, 255, 0.15);
  --line-accent: rgba(255, 255, 255, 0.32);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --dropdown-hover: rgba(255, 255, 255, 0.1);
  --card-tint-a: rgba(255, 255, 255, 0.04);
  --btn-primary-shadow: rgba(0, 0, 0, 0.5);
  --founder: rgba(255, 255, 255, 0.48);
}

body.page-home .site-header {
  background-color: var(--header-surface);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

body.page-home .hero.hero-landing.container {
  width: min(1180px, 94vw);
  max-width: 1180px;
}

body.page-home .hero.hero-landing {
  place-items: stretch;
  align-content: center;
  padding: clamp(2.25rem, 6vw, 4rem) 0 clamp(3.5rem, 9vw, 5.5rem);
  min-height: calc(100vh - 72px);
}

body.page-home .hero-mission-frame {
  width: 100%;
  max-width: none;
  margin-inline: auto;
}

body.page-home .hero-console-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.15rem;
  margin-bottom: clamp(1rem, 2.5vw, 1.35rem);
  padding: 0.6rem 1rem;
  font-family: var(--font-console);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

body.page-home .hero-console-bar__met abbr {
  text-decoration: none;
  margin-right: 0.35em;
  color: rgba(255, 255, 255, 0.38);
}

body.page-home .hero-console-bar__nums {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
}

body.page-home .hero-console-bar__filler {
  flex: 1;
  min-width: 0.75rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.04) 65%,
    transparent
  );
}

body.page-home .hero-console-bar__badge {
  padding: 0.32rem 0.62rem;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
}

body.page-home .hero-landing-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  width: 100%;
  margin-inline: 0;
}

@media (min-width: 900px) {
  body.page-home .hero-landing-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 400px);
    gap: clamp(2rem, 4vw, 3.25rem);
    align-items: start;
  }
}

body.page-home .hero-card--landing {
  position: relative;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
}

/* HUD corner ticks — launch-control display chrome */
body.page-home .hero-card--landing::before,
body.page-home .hero-card--landing::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  border-color: rgba(255, 255, 255, 0.38);
  border-style: solid;
  border-width: 0;
}

body.page-home .hero-card--landing::before {
  top: 12px;
  left: 12px;
  border-top-width: 2px;
  border-left-width: 2px;
}

body.page-home .hero-card--landing::after {
  bottom: 12px;
  right: 12px;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

body.page-home .hero-card--landing h1 {
  margin-top: 0.85rem;
  margin-bottom: 1.25rem;
  font-size: clamp(1.75rem, 3.6vw, 2.65rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 800;
  max-width: none;
}

body.page-home .hero-skim {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
  max-width: 38rem;
}

body.page-home .hero-skim li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem 1rem;
  align-items: start;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.page-home .hero-skim li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

body.page-home .hero-skim-label {
  font-family: var(--font-console);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  padding-top: 0.2rem;
}

body.page-home .hero-skim-text {
  font-size: 1.05rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 560px) {
  body.page-home .hero-skim li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  body.page-home .hero-skim-label {
    padding-top: 0;
  }
}

body.page-home .badge {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--font-console);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.65rem;
  border-radius: 2px;
}

body.page-home .hero-actions--landing {
  flex-wrap: wrap;
  margin-top: 1.75rem;
  gap: 0.75rem;
}

body.page-home .hero-actions--landing .button {
  border-radius: 4px;
  padding: 0.65rem 1.25rem;
  letter-spacing: 0.04em;
  transition: transform 0.18s ease, box-shadow 0.22s ease, background-color 0.22s ease,
    border-color 0.22s ease, color 0.22s ease, filter 0.22s ease;
}

body.page-home .button-primary {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

body.page-home .button-primary:hover {
  filter: none;
  background: #e8e8e8;
  color: var(--black);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5);
}

body.page-home .button-secondary--light {
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--white);
  background: transparent;
}

body.page-home .button-secondary--light:hover {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.94);
  color: var(--black);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.35);
}

body.page-home .hero-landing-aside {
  display: flex;
  justify-content: center;
  align-items: stretch;
  min-width: 0;
}

body.page-home .hero-orbit-panel {
  position: relative;
  margin: 0;
  width: 100%;
  padding: 1.35rem 1.35rem 1.45rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

body.page-home .hero-orbit-panel::before,
body.page-home .hero-orbit-panel::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
  border-color: rgba(255, 255, 255, 0.3);
  border-style: solid;
  border-width: 0;
}

body.page-home .hero-orbit-panel::before {
  top: 10px;
  left: 10px;
  border-top-width: 2px;
  border-left-width: 2px;
}

body.page-home .hero-orbit-panel::after {
  bottom: 10px;
  right: 10px;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

body.page-home .hero-orbit-title {
  margin: 0 0 1rem;
  font-family: var(--font-console);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

body.page-home .hero-orbit-svg-wrap {
  border-radius: 4px;
  background: radial-gradient(ellipse 80% 70% at 50% 72%, rgba(255, 255, 255, 0.04), #040404);
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
  line-height: 0;
}

body.page-home .hero-orbit-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Home hero: chat + altitude plot narrative (monochrome, English) */
body.page-home .hero-orbit-svg-wrap.hero-collab-wrap {
  overflow: visible;
}

body.page-home .hero-collab-wrap {
  --hero-collab-t: 32s;
  line-height: normal;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.35rem 0.25rem 0;
}

body.page-home .hero-collab-chat {
  position: relative;
  min-height: 8rem;
  pointer-events: none;
}

@media (min-width: 520px) {
  body.page-home .hero-collab-chat {
    min-height: 6.6rem;
  }
}

body.page-home .hero-collab-bubble {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  margin: 0;
  padding: 0.5rem 0.65rem;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.74rem;
  line-height: 1.38;
  color: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

body.page-home .hero-collab-bubble--user {
  margin-left: 0.35rem;
  margin-right: 1.25rem;
  border-color: rgba(255, 255, 255, 0.3);
}

body.page-home .hero-collab-bubble--ai {
  margin-left: 1.35rem;
  margin-right: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.34);
}

body.page-home .hero-collab-bubble__meta {
  display: block;
  font-family: var(--font-console);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
  margin-bottom: 0.38rem;
}

body.page-home .hero-collab-bubble__text {
  margin: 0;
  font-family: var(--font-console);
}

body.page-home .hero-collab-bubble--s1 {
  animation: hero-collab-bs1 var(--hero-collab-t) linear infinite;
}

body.page-home .hero-collab-bubble--s2 {
  animation: hero-collab-bs2 var(--hero-collab-t) linear infinite;
}

body.page-home .hero-collab-bubble--s3 {
  animation: hero-collab-bs3 var(--hero-collab-t) linear infinite;
}

body.page-home .hero-collab-bubble--s4 {
  animation: hero-collab-bs4 var(--hero-collab-t) linear infinite;
}

body.page-home .hero-collab-bubble--s5 {
  animation: hero-collab-bs5 var(--hero-collab-t) linear infinite;
}

body.page-home .hero-collab-bubble--s6 {
  animation: hero-collab-bs6 var(--hero-collab-t) linear infinite;
}

@keyframes hero-collab-bs1 {
  0%,
  1.8% {
    opacity: 0;
    transform: translateY(10px);
  }
  3%,
  11.5% {
    opacity: 1;
    transform: translateY(0);
  }
  13%,
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes hero-collab-bs2 {
  0%,
  13% {
    opacity: 0;
    transform: translateY(10px);
  }
  14.2%,
  28.5% {
    opacity: 1;
    transform: translateY(0);
  }
  30%,
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes hero-collab-bs3 {
  0%,
  30% {
    opacity: 0;
    transform: translateY(10px);
  }
  31.2%,
  42.5% {
    opacity: 1;
    transform: translateY(0);
  }
  44%,
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes hero-collab-bs4 {
  0%,
  44% {
    opacity: 0;
    transform: translateY(10px);
  }
  45.2%,
  62.5% {
    opacity: 1;
    transform: translateY(0);
  }
  64%,
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes hero-collab-bs5 {
  0%,
  64% {
    opacity: 0;
    transform: translateY(10px);
  }
  65.2%,
  74.5% {
    opacity: 1;
    transform: translateY(0);
  }
  75.8%,
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes hero-collab-bs6 {
  0%,
  76% {
    opacity: 0;
    transform: translateY(10px);
  }
  77.2%,
  92.5% {
    opacity: 1;
    transform: translateY(0);
  }
  94%,
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}

body.page-home .hero-collab-draft {
  animation: hero-collab-draft-plot var(--hero-collab-t) linear infinite;
}

body.page-home .hero-collab-refined {
  animation: hero-collab-refined-plot var(--hero-collab-t) linear infinite;
}

body.page-home .hero-collab-markers {
  animation: hero-collab-markers-reveal var(--hero-collab-t) linear infinite;
}

body.page-home .hero-collab-marker-label--a,
body.page-home .hero-collab-marker-label--b {
  animation: hero-collab-marker-labels var(--hero-collab-t) linear infinite;
}

@keyframes hero-collab-draft-plot {
  0%,
  12.5% {
    opacity: 0;
    stroke-dashoffset: 100;
  }
  13.5% {
    opacity: 1;
    stroke-dashoffset: 100;
  }
  21% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  21.5%,
  43% {
    opacity: 1;
    stroke-dashoffset: 0;
  }
  44.5%,
  100% {
    opacity: 0;
    stroke-dashoffset: 0;
  }
}

@keyframes hero-collab-refined-plot {
  0%,
  43.5% {
    opacity: 0;
    stroke-dashoffset: 100;
  }
  45% {
    opacity: 1;
    stroke-dashoffset: 100;
  }
  54% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  54.5%,
  100% {
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

@keyframes hero-collab-markers-reveal {
  0%,
  75% {
    opacity: 0;
  }
  77% {
    opacity: 0;
  }
  79%,
  100% {
    opacity: 1;
  }
}

@keyframes hero-collab-marker-labels {
  0%,
  75% {
    opacity: 0;
  }
  79%,
  100% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-home .hero-collab-chat {
    min-height: 0;
  }

  body.page-home .hero-collab-bubble {
    position: relative;
    animation: none !important;
    opacity: 1 !important;
    transform: none;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0.5rem;
  }

  body.page-home .hero-collab-bubble:last-child {
    margin-bottom: 0;
  }

  body.page-home .hero-collab-draft,
  body.page-home .hero-collab-refined,
  body.page-home .hero-collab-markers,
  body.page-home .hero-collab-marker-label--a,
  body.page-home .hero-collab-marker-label--b {
    animation: none;
  }

  body.page-home .hero-collab-draft {
    opacity: 0;
    stroke-dashoffset: 0;
  }

  body.page-home .hero-collab-refined {
    opacity: 1;
    stroke-dashoffset: 0;
  }

  body.page-home .hero-collab-markers,
  body.page-home .hero-collab-marker-label--a,
  body.page-home .hero-collab-marker-label--b {
    opacity: 1;
  }
}

body.page-home .hero-orbit-blocks {
  margin: 1.15rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.page-home .hero-orbit-block {
  padding: 1rem 1.05rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.page-home .hero-orbit-block-title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.25;
}

body.page-home .hero-orbit-block-tag {
  margin: 0 0 0.5rem;
  font-family: var(--font-console);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.88);
}

body.page-home .hero-orbit-block-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 899px) {
  body.page-home .hero-landing-aside {
    order: -1;
    max-width: min(520px, 100%);
    margin-inline: auto;
  }

  body.page-home .hero-card--landing h1 {
    max-width: none;
  }
}

.button {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
}

.button-primary {
  background: var(--accent);
  color: var(--black);
  box-shadow: 0 8px 20px var(--btn-primary-shadow);
}

.button-primary:hover {
  box-shadow: 0 12px 26px var(--btn-primary-shadow);
  filter: brightness(1.06);
}

.button-secondary,
.button-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.button-secondary:hover,
.button-ghost:hover {
  border-color: var(--line-accent);
  background: var(--surface-hover);
}

.button:active {
  transform: translateY(1px);
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.auth-layout {
  display: flex;
  justify-content: center;
  padding: 3rem 0;
}

.auth-card h1 {
  margin-top: 0;
  font-weight: 800;
}

.auth-switch {
  margin: 1rem 0 0;
  color: var(--muted);
}

.auth-switch-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-switch-link:hover {
  color: var(--text-accent);
}

.form-grid {
  display: grid;
  gap: 0.55rem;
}

label {
  margin-top: 0.5rem;
  color: var(--label);
}

input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--text);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--text);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  resize: vertical;
  min-height: 110px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.22);
  background: var(--input-bg-focus);
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.22);
  background: var(--input-bg-focus);
}

.message {
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
}

.message-error {
  background: var(--danger-surface);
  border: 1px solid rgba(var(--danger-rgb), 0.35);
  color: var(--danger-text);
}

.message-success {
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  color: var(--text-accent);
}

.page-panel {
  width: min(860px, 96%);
  margin: 1.25rem auto 0;
  min-height: calc(100vh - 100px);
  max-height: none;
  overflow: visible;
}

.profile-description {
  color: var(--muted);
  margin-top: 0;
}

.auth-card-profile {
  width: min(720px, 100%);
}

.profile-page-header {
  margin-bottom: 1.35rem;
}

.profile-page-header h1 {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.profile-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--line);
}

.profile-avatar-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  padding: 3px;
  flex-shrink: 0;
  background: linear-gradient(
    145deg,
    rgba(var(--accent-rgb), 0.85),
    rgba(var(--accent-rgb), 0.25) 45%,
    rgba(255, 255, 255, 0.12)
  );
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.profile-avatar-lg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--bg-soft);
}

.profile-identity-main {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.profile-display-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--text);
  word-break: break-word;
}

.profile-about {
  margin-top: 1.25rem;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  border-radius: 0;
  text-align: left;
}

.profile-about-label {
  margin: 0 0 0.45rem;
  padding: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: left;
}

.profile-bio-body {
  margin: 0;
  padding: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  white-space: pre-wrap;
  color: rgba(255, 255, 255, 0.92);
  text-align: left;
}

.profile-bio-body.profile-bio-empty {
  color: var(--muted);
  font-style: normal;
  font-size: 0.92rem;
}

.profile-badges {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  max-width: 100%;
}

.profile-badge-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.profile-badge-label {
  font-size: 0.82rem;
  color: var(--white);
  white-space: nowrap;
}

.profile-edit-form {
  margin-top: 1rem;
}

.profile-action-row {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.logout-inline-form {
  margin: 0;
}

.button-danger {
  border-color: var(--danger-border);
  background: rgba(var(--danger-rgb), 0.2);
  color: var(--danger-text);
}

.button-danger:hover {
  border-color: rgba(var(--danger-rgb), 0.85);
  background: rgba(var(--danger-rgb), 0.32);
}

#avatar-image {
  padding: 0.4rem;
  background: var(--input-bg);
}

#avatar-image::file-selector-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--accent);
  color: var(--black);
  font: inherit;
  font-size: 0.85rem;
  padding: 0.45rem 0.8rem;
  margin-right: 0.7rem;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.16s ease;
}

#avatar-image::file-selector-button:hover {
  filter: brightness(1.05);
}

#avatar-image::file-selector-button:active {
  transform: translateY(1px);
}

.profile-file-help {
  margin: -0.1rem 0 0.4rem;
  font-size: 0.83rem;
  color: var(--muted);
}

.profile-readonly-field {
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}

.about-lead {
  color: var(--text);
  max-width: 68ch;
}

.about-hero {
  padding: 0.6rem 0 1.1rem;
  text-align: center;
}

.about-logo-wrap {
  display: flex;
  justify-content: center;
}

.about-logo-link {
  line-height: 0;
  display: inline-flex;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}

.about-logo-wrap .orbit-brand-img--hero {
  width: min(520px, 92vw);
  height: auto;
  max-height: none;
  display: block;
}

.about-byline {
  margin-top: 0.35rem;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.about-byline-name {
  color: var(--white);
}

.about-section {
  margin-top: 1.1rem;
}

.about-section-title {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  margin: 0 0 0.55rem;
}

.profile-card-trigger {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.about-profile-card {
  width: min(620px, 100%);
  margin: 0 auto;
}

.about-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
  z-index: 2000;
}

.about-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Smoother blur: blur the page content (GPU), not the backdrop */
.site-header,
.page-panel {
  transition: filter 180ms ease, transform 180ms ease;
}

body.about-modal-open .site-header,
body.about-modal-open .page-panel {
  filter: blur(6px);
  transform: translateZ(0) scale(0.995);
}

.about-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.98);
  width: min(980px, 96vw);
  height: min(92vh, 860px);
  max-height: min(92vh, 860px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 18, 18, 0.98);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 2001;
  outline: none;
}

.about-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.about-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.95rem 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.about-modal-title {
  display: grid;
  gap: 0.55rem;
}

.about-modal-identity {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 0.75rem;
  align-items: center;
}

.about-modal-avatar {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(var(--accent-rgb), 0.14);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  color: var(--white);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.about-modal-name-wrap .dev-name {
  line-height: 1.2;
}

.about-modal-joined {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.about-modal-joined-value {
  color: var(--white);
}

.about-modal-title .dev-name {
  font-size: 1.25rem;
}

.about-modal-close {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.about-modal-close:hover {
  border-color: rgba(var(--accent-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.08);
  transform: translateY(-1px);
}

.about-modal-body {
  padding: 0.85rem 0.95rem 0.95rem;
  display: grid;
  gap: 0.65rem;
}

.about-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}

.about-modal-block {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  padding: 0.7rem;
}

.about-modal-label {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.about-modal-value {
  margin-top: 0.45rem;
  color: var(--white);
  line-height: 1.45;
}

/* Keep it usable on very short screens */
@media (max-height: 640px) {
  .about-modal {
    height: 92vh;
    max-height: 92vh;
  }
}

.about-modal-link {
  display: inline-block;
  margin-top: 0.45rem;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 140ms ease;
}

.about-modal-link:hover {
  color: var(--accent);
}

.about-card {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-elevated);
}

.dev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}

.dev-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.24);
  padding: 0.9rem;
  transition: border-color 140ms ease, transform 140ms ease, filter 140ms ease;
}

.dev-card-trigger {
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.dev-card-trigger:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.7);
  outline-offset: 2px;
}

.dev-card-trigger::-moz-focus-inner {
  border: 0;
}

.dev-card:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  transform: translateY(-1px);
  filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.14));
}

.dev-card-top {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.75rem;
  align-items: center;
}

.dev-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(var(--accent-rgb), 0.14);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.dev-name {
  font-weight: 800;
  color: var(--white);
}

.dev-role {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.dev-role-founder {
  color: var(--founder);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: none;
}

.dev-card-empty {
  border-style: dashed;
  opacity: 0.85;
}

.dev-empty-title {
  font-weight: 700;
  color: var(--white);
}

.dev-empty-sub {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 48ch;
}

.about-subtitle {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: 0.02em;
}

.about-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.about-social-popover {
  position: relative;
}

/* If the popover would overflow, allow it to shift within viewport */
.about-mail-popover {
  max-width: min(420px, 86vw);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease, filter 140ms ease;
}

.social-link:hover {
  border-color: rgba(var(--accent-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.08);
  filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.22));
  transform: translateY(-1px);
}

.social-link:active {
  transform: translateY(0);
}

.social-link.social-mail {
  border-color: rgba(255, 255, 255, 0.12);
}

.about-mail-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  width: min(380px, 86vw);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 18, 18, 0.98);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  padding: 0.7rem;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top left;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 1;
}

.about-mail-popover.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.about-mail-popover-title {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin: 0.05rem 0 0.55rem;
}

.about-mail-copy {
  width: 100%;
  display: grid;
  grid-template-columns: 86px 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
  color: var(--white);
  cursor: pointer;
  text-align: left;
  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.about-mail-copy + .about-mail-copy {
  margin-top: 0.45rem;
}

.about-mail-copy:hover {
  border-color: rgba(var(--accent-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.08);
  transform: translateY(-1px);
}

.about-mail-copy-label {
  color: var(--muted);
  font-size: 0.86rem;
}

.about-mail-copy-value {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.about-mail-copied {
  font-weight: 800;
  color: var(--accent);
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.about-mail-copy.is-copied .about-mail-copied {
  opacity: 1;
  transform: translateY(0);
}

.social-icon {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 160ms ease, filter 160ms ease;
}

.social-label {
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Hover animations — subtle, modern */
.social-discord:hover .social-icon {
  animation: icon-shake 160ms ease-in-out 0s 3;
}

.social-github:hover .social-icon {
  animation: icon-tilt 520ms ease-in-out 0s 1;
}

.social-mail:hover .social-icon {
  animation: icon-wiggle 420ms ease-in-out 0s 1;
}

@keyframes icon-shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-2px);
  }
  50% {
    transform: translateX(2px);
  }
  75% {
    transform: translateX(-1px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes icon-tilt {
  0% {
    transform: rotate(0deg);
  }
  35% {
    transform: rotate(-10deg);
  }
  70% {
    transform: rotate(8deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@keyframes icon-wiggle {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-8deg);
  }
  50% {
    transform: rotate(6deg);
  }
  75% {
    transform: rotate(-4deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.about-mails {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.35rem;
}

.about-mail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
}

.about-mail-label {
  color: var(--muted);
  font-size: 0.85rem;
}

.about-mail-value {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 140ms ease, opacity 140ms ease;
}

.about-mail-value:hover {
  color: var(--accent);
}

