/* =============================================================================
   Oozie portfolio — dark dusty-rose theme (aligned with brand art: backgrounds
   in the #3a1e28–#6b3540 range, accent #db707a, light copy #f5e6ea / #ffd6e0)
   ============================================================================= */
:root {
  --bg-gradient-start: #3a1e28;
  --bg-gradient-mid: #4f2834;
  --bg-gradient-end: #2c141c;
  --surface: rgba(255, 200, 215, 0.08);
  --surface-elevated: rgba(255, 255, 255, 0.07);
  --accent-muted: #9a6b78;
  --accent-warm: #e8a8b8;
  --accent-deep: #db707a;
  --accent-glow: #f0b8c4;
  --text: #f5e6ea;
  --text-heading: #ffd6e0;
  --text-muted: #c9a8b4;
  --border: rgba(255, 200, 215, 0.14);
  --focus-ring: #ffb0c8;
  --success: #7ecf9a;
  --error: #ff8a9a;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.25);
  --radius: 14px;
  --radius-sm: 10px;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --max-w: 1180px;
  --container-pad: 24px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =============================================================================
   Reset & base
   ============================================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.7;
  color: var(--text);
  background: linear-gradient(165deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 42%, var(--bg-gradient-end) 100%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--text-heading);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

a:hover {
  color: var(--accent-glow);
}

/* =============================================================================
   Typography
   ============================================================================= */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 1.4rem + 2.5vw, 3.25rem);
  margin: 0 0 0.65em;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.65rem, 1.2rem + 1.4vw, 2.25rem);
  margin: 0 0 0.75em;
}

h3 {
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.4rem);
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

code {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, monospace;
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: rgba(219, 112, 122, 0.2);
  color: var(--accent-glow);
}

.lead {
  font-size: clamp(1.05rem, 1rem + 0.25vw, 1.125rem);
  color: var(--text-muted);
  max-width: 58ch;
  line-height: 1.7;
}

/* Long-form paragraphs (about, etc.) */
.readable {
  max-width: 65ch;
}

.readable + .readable {
  margin-top: 1rem;
}

/* =============================================================================
   Layout utilities
   ============================================================================= */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding: clamp(3.5rem, 8vw, 6.25rem) 0;
}

.section--tight {
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}

.section--alt {
  background: rgba(0, 0, 0, 0.14);
  border-block: 1px solid rgba(255, 200, 215, 0.06);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--accent-deep);
  color: #1a0a0e;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  left: 0.75rem;
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =============================================================================
   Header & navigation (sticky, responsive)
   ============================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(32, 16, 22, 0.78);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  animation: header-in 0.45s var(--ease-out-soft) both;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(28, 14, 20, 0.92);
  border-bottom-color: rgba(255, 200, 215, 0.18);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
}

@supports not (backdrop-filter: blur(1px)) {
  .site-header {
    background: rgba(40, 20, 28, 0.96);
  }

  .site-header.is-scrolled {
    background: rgba(36, 18, 26, 0.98);
  }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.5rem 0;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-heading);
  text-decoration: none;
  letter-spacing: -0.03em;
  transition: color 0.2s var(--ease), transform 0.25s var(--ease);
}

.nav__brand:hover {
  color: var(--accent-glow);
  transform: translateY(-1px);
}

.nav__mark-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  border: 2px solid rgba(255, 200, 215, 0.25);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--surface-elevated);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s var(--ease);
}

.nav__toggle:hover {
  background: var(--surface);
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  flex-shrink: 0;
  background: var(--text-heading);
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

body.nav-open .nav__toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body.nav-open .nav__toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav__toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  color: var(--text-muted);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav__list a:hover {
  color: var(--text-heading);
  background: rgba(255, 200, 215, 0.12);
}

.nav__list a.is-active {
  color: var(--text-heading);
  background: rgba(219, 112, 122, 0.25);
}

.nav__list a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

@media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
  .nav__list a {
    position: relative;
  }

  .nav__list a::after {
    content: "";
    position: absolute;
    left: 0.42rem;
    right: 0.42rem;
    bottom: 0.12rem;
    height: 2px;
    border-radius: 1px;
    background: linear-gradient(90deg, rgba(219, 112, 122, 0.9), rgba(255, 200, 215, 0.45));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.22s var(--ease);
  }

  .nav__list a:hover::after,
  .nav__list a.is-active::after {
    transform: scaleX(1);
  }
}

@media (max-width: 860px) {
  /* Avoid space-between with 3 flex children (brand / toggle / nav), which
     centers the menu button. Pin toggle to the right; nav shell takes no row width. */
  .nav {
    justify-content: flex-start;
  }

  .nav__toggle {
    display: inline-flex;
    margin-left: auto;
    z-index: 60;
  }

  #siteNav {
    flex: 0 0 0;
    width: 0;
    min-width: 0;
    overflow: visible;
  }

  .nav__list {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 1rem clamp(1rem, 4vw, 1.5rem) 1.5rem;
    background: rgba(28, 14, 20, 0.97);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.25s var(--ease), visibility 0.3s;
  }

  body.nav-open .nav__list {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__list li {
    width: 100%;
    max-width: 22rem;
    display: flex;
    justify-content: center;
  }

  .nav__list a {
    display: block;
    width: 100%;
    padding: 0.85rem 0.75rem;
    border-radius: var(--radius-sm);
    text-align: center;
  }
}

/* =============================================================================
   Buttons & tags
   ============================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}

.btn:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.btn--primary {
  background: linear-gradient(135deg, #e8a8b8, var(--accent-deep));
  color: #1a0a0e;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  color: #1a0a0e;
}

.btn--ghost {
  background: rgba(255, 200, 215, 0.08);
  color: var(--text-heading);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: rgba(255, 200, 215, 0.16);
}

.btn--small {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  background: rgba(219, 112, 122, 0.22);
  color: var(--accent-glow);
}

/* =============================================================================
   Hero & cards
   ============================================================================= */
.hero {
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(3.5rem, 9vw, 6.5rem);
}

.hero__copy {
  max-width: 38rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.75rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2.5rem, 4vw, 3.5rem);
  }
}

/* Brand hero image (Oozie O3 artwork) */
.hero__figure {
  margin: 0;
  position: relative;
}

.hero__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 16 / 10;
  transition: transform 0.45s var(--ease-out-soft), box-shadow 0.45s var(--ease);
}

.hero__figure:hover .hero__img {
  transform: scale(1.02);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.45);
}

@media (prefers-reduced-motion: no-preference) {
  .hero__figure.is-revealed .hero__img {
    animation: hero-img-float 9s ease-in-out infinite;
  }

  .hero__figure.is-revealed:hover .hero__img {
    animation: none;
    transform: scale(1.02);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.45);
  }
}

@keyframes hero-img-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: clamp(2.25rem, 4vw, 3rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--border);
  list-style: none;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

.stat {
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease);
}

.stat:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 200, 215, 0.22);
}

.stat__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-heading);
}

.stat__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card__media {
  aspect-ratio: 16 / 10;
  background: var(--surface);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  padding: 1.15rem 1.25rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.card__title {
  margin: 0 0 0.5rem;
}

.card__excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  flex: 1;
}

.card__link {
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  align-self: flex-start;
}

.card__link:hover {
  text-decoration: underline;
}

/* =============================================================================
   About page — profile + bio grid
   ============================================================================= */
.about-intro {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-intro {
    grid-template-columns: min(300px, 38%) 1fr;
  }
}

.about-intro__figure {
  margin: 0;
}

.about-intro__img {
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease-out-soft), box-shadow 0.4s var(--ease);
}

.about-intro__figure:hover .about-intro__img {
  transform: scale(1.02);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
}

/* =============================================================================
   About timeline & values
   ============================================================================= */
.timeline {
  list-style: none;
  border-left: 2px solid var(--accent-warm);
  padding-left: 1.5rem;
  margin: 0;
}

.timeline li {
  margin-bottom: 1.5rem;
  list-style: none;
  position: relative;
  transition: transform 0.25s var(--ease);
}

.timeline li:hover {
  transform: translateX(4px);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1.5rem - 6px);
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-deep);
  border: 2px solid var(--bg-gradient-mid);
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.value-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.value-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 200, 215, 0.28);
  box-shadow: var(--shadow-sm);
}

.value-card i {
  font-size: 1.35rem;
  color: var(--accent-deep);
  margin-bottom: 0.5rem;
}

.value-card__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* =============================================================================
   Contact form
   ============================================================================= */
.form {
  max-width: 520px;
}

.form__group {
  margin-bottom: 1.15rem;
}

.form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--text-heading);
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(20, 10, 14, 0.55);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form input:focus-visible,
.form textarea:focus-visible {
  outline: none;
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px rgba(219, 112, 122, 0.25);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form__error {
  font-size: 0.85rem;
  color: var(--error);
  margin-top: 0.35rem;
  display: none;
}

.form__error.is-visible {
  display: block;
}

.form__success {
  display: none;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: rgba(80, 180, 120, 0.15);
  color: var(--success);
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid rgba(126, 207, 154, 0.35);
}

.form__success.is-visible {
  display: block;
}

.back-to-top {
  position: fixed;
  bottom: clamp(1rem, 4vw, 2rem);
  right: clamp(1rem, 4vw, 2rem);
  width: 48px;
  height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
  border: 1px solid rgba(219, 112, 122, 0.45);
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, rgba(219, 112, 122, 0.95), rgba(180, 72, 88, 0.92));
  color: #fff;
  box-shadow: var(--shadow-sm), 0 0 24px rgba(219, 112, 122, 0.25);
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    opacity 0.2s var(--ease);
}

.back-to-top.show {
  display: flex;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow), 0 0 32px rgba(219, 112, 122, 0.35);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

body.pastel-cursor-on .back-to-top {
  cursor: none;
}

/* =============================================================================
   Footer & social
   ============================================================================= */
.site-footer {
  margin-top: auto;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: rgba(18, 8, 12, 0.55);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer__nav a {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.social a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 200, 215, 0.1);
  border: 1px solid var(--border);
  color: var(--text-heading);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.social a:hover {
  background: rgba(219, 112, 122, 0.3);
  transform: translateY(-2px);
}

.social a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.copyright {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* Page shell: push footer down */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* =============================================================================
   Contact: Discord + optional Lanyard (single full-width card)
   ============================================================================= */
.discord-contact {
  width: 100%;
  max-width: none;
}

.discord-contact__panel {
  width: 100%;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.discord-contact__panel:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.discord-contact__identity {
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.discord-contact__hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem 1.25rem;
}

.discord-contact__avatar-wrap {
  flex-shrink: 0;
}

.discord-contact__avatar {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--border);
  object-fit: cover;
  background: var(--surface);
  transition: transform 0.35s var(--ease-out-soft), box-shadow 0.35s var(--ease);
}

.discord-contact--live .discord-contact__avatar:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.discord-contact__profile {
  flex: 1;
  min-width: min(100%, 220px);
}

.discord-contact__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.5rem);
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.discord-contact__handle {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.discord-contact__live-status {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
}

.discord-contact__state-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--text-muted);
}

.discord-contact__live-status--online .discord-contact__state-dot {
  background: #3ba55d;
}

.discord-contact__live-status--idle .discord-contact__state-dot {
  background: #faa61a;
}

.discord-contact__live-status--dnd .discord-contact__state-dot {
  background: #ed4245;
}

.discord-contact__live-status--offline .discord-contact__state-dot {
  background: var(--text-muted);
}

.discord-contact__activity {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.discord-contact__activity-name {
  display: block;
  font-weight: 600;
  color: var(--text);
}

.discord-contact__activity-details {
  display: block;
  margin-top: 0.15rem;
}

.discord-contact__label {
  margin: 0.75rem 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.discord-contact__hero + .discord-contact__label {
  margin-top: 1.35rem;
}

.discord-contact__value {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-heading);
}

.discord-contact__value--row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.discord-contact__value code {
  font-size: 1.1rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
}

.discord-contact__hint {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.discord-contact__feedback {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--success);
}

.discord-contact__open {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.discord-presence__error {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--error);
}

/* =============================================================================
   Motion: keyframes, scroll reveal, Lanyard polish (see prefers-reduced-motion)
   ============================================================================= */
@keyframes header-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lanyard-dot-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(59, 165, 93, 0.45);
  }
  50% {
    opacity: 0.95;
    box-shadow: 0 0 0 6px rgba(59, 165, 93, 0);
  }
}

@keyframes lanyard-card-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes copy-pop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s var(--ease-out-soft),
    transform 0.55s var(--ease-out-soft);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

.reveal--tilt {
  transform: translateY(20px) rotate(-0.4deg);
}

.reveal--tilt.is-revealed {
  transform: translateY(0) rotate(0deg);
}

.discord-contact--live.discord-contact__panel {
  animation: lanyard-card-in 0.55s var(--ease-out-soft) both;
  animation-delay: var(--reveal-delay, 0s);
}

.discord-contact__live-status--online .discord-contact__state-dot {
  animation: lanyard-dot-pulse 2.2s ease-in-out infinite;
}

.discord-contact__feedback:not([hidden]) {
  animation: copy-pop 0.45s var(--ease-out-soft);
}

/* =============================================================================
   Portfolio: category cards (buttons) + explorer dialog + image lightbox
   ============================================================================= */
.card--category {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-elevated);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.card--category:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card--category:focus {
  outline: none;
}

.card--category:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.card--category .card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card--category .card__link {
  margin-top: auto;
}

.portfolio-dialog {
  width: min(920px, 94vw);
  max-height: min(90vh, 900px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(165deg, #352028 0%, #2a141c 100%);
  color: var(--text);
  box-shadow: var(--shadow);
}

.portfolio-dialog::backdrop {
  background: rgba(12, 6, 10, 0.72);
  backdrop-filter: blur(8px);
}

@supports not (backdrop-filter: blur(1px)) {
  .portfolio-dialog::backdrop {
    background: rgba(12, 6, 10, 0.85);
  }
}

.portfolio-dialog__chrome {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2rem);
  max-height: min(90vh, 900px);
  overflow: auto;
}

.portfolio-dialog__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 200, 215, 0.1);
  color: var(--text-heading);
  cursor: pointer;
  transition: background 0.2s var(--ease);
  z-index: 1;
}

.portfolio-dialog__close:hover {
  background: rgba(219, 112, 122, 0.35);
}

.portfolio-dialog__close:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.portfolio-dialog__title {
  margin: 0 3rem 0.5rem 0;
  padding-right: 0.5rem;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
}

.portfolio-dialog__blurb {
  margin-bottom: 1.5rem;
  max-width: 65ch;
}

.portfolio-dialog__items {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.portfolio-item {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.portfolio-item__title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.portfolio-item__summary {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.portfolio-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.portfolio-item__tags li {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(219, 112, 122, 0.18);
  color: var(--accent-glow);
}

.portfolio-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}

.portfolio-thumb {
  position: relative;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--surface);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.portfolio-thumb:hover {
  border-color: rgba(255, 200, 215, 0.35);
  transform: scale(1.02);
}

.portfolio-thumb:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.portfolio-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.portfolio-lightbox {
  width: min(1100px, 96vw);
  max-height: 94vh;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #1a0c12;
  color: var(--text);
  box-shadow: var(--shadow);
}

.portfolio-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
}

.portfolio-lightbox__inner {
  position: relative;
  padding: 1rem;
}

.portfolio-lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(40, 20, 28, 0.95);
  color: var(--text-heading);
  cursor: pointer;
  z-index: 1;
  transition: background 0.2s var(--ease);
}

.portfolio-lightbox__close:hover {
  background: rgba(219, 112, 122, 0.35);
}

.portfolio-lightbox__close:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.portfolio-lightbox__figure {
  margin: 0;
  padding: 0 0 0.5rem;
}

.portfolio-lightbox__figure img {
  width: 100%;
  max-height: min(78vh, 820px);
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
}

.portfolio-lightbox__caption {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 70ch;
}

/* =============================================================================
   Nemesis-style effects (pastel palette): immersive hero, cursor, terminal,
   GitHub block, filters, testimonials, pricing, FAQ
   ============================================================================= */
:root {
  --fx-glass-bg: rgba(255, 200, 215, 0.06);
  --fx-glass-blur: blur(14px);
  --fx-mono: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, monospace;
}

/* Custom cursor (enabled via effects.js; hidden on touch / reduced motion) */
body.pastel-cursor-on {
  cursor: none;
}

body.pastel-cursor-on a,
body.pastel-cursor-on button:not(:disabled) {
  cursor: none;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--text-heading);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(255, 214, 224, 0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition:
    width 0.3s ease,
    height 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.cursor-dot.hovering {
  width: 14px;
  height: 14px;
  background: var(--accent-deep);
}

.cursor-ring.hovering {
  width: 50px;
  height: 50px;
  border-color: rgba(219, 112, 122, 0.45);
  background: rgba(219, 112, 122, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

@media (pointer: coarse), (hover: none) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

/* Immersive hero (home): mesh, grid lines, glows, noise */
.hero--immersive {
  position: relative;
  overflow: hidden;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero--immersive .hero__grid {
  position: relative;
  z-index: 1;
}

.hero__mesh {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 20%, rgba(219, 112, 122, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(232, 168, 184, 0.12), transparent 50%);
  opacity: 1;
}

.hero__gridlines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 200, 215, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 200, 215, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 15%, transparent 72%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.38;
  pointer-events: none;
}

.hero__glow--1 {
  width: min(520px, 80vw);
  height: min(520px, 80vw);
  background: rgba(219, 112, 122, 0.55);
  top: -18%;
  left: -8%;
}

.hero__glow--2 {
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  background: rgba(255, 182, 198, 0.25);
  bottom: -22%;
  right: -12%;
  opacity: 0.32;
}

.hero__glow--3 {
  width: min(300px, 50vw);
  height: min(300px, 50vw);
  background: rgba(255, 150, 170, 0.2);
  top: 35%;
  left: 45%;
  opacity: 0.28;
}

.hero__noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

.hero__tag {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin: 0 0 1.25rem;
}

.hero__tag-type {
  display: inline-block;
  min-height: 1.35em;
}

.hero__lead {
  margin-top: 0;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-glow) 0%, var(--accent-deep) 45%, var(--accent-warm) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* 404 — same immersive treatment as home hero, centered copy */
.error-page {
  min-height: min(72vh, 52rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.error-page__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.error-page__eyebrow {
  margin-bottom: 0.75rem;
}

.error-page__title {
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: clamp(1.65rem, 1.2rem + 1.4vw, 2.25rem);
}

.error-page__code {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 12vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  margin: 0;
}

.error-page__title-line {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.error-page__lead {
  margin-inline: auto;
  max-width: 42ch;
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.75rem;
}

.error-page__actions .btn i {
  margin-left: 0.45em;
}

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-heading);
}

.stat__row {
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
  flex-wrap: wrap;
}

.stat__suffix {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-heading);
}

.stat__text {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-heading);
  line-height: 1.2;
}

/* GitHub section */
.section--github {
  position: relative;
}

.github__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.github__stat {
  padding: 1.25rem 1rem;
  text-align: center;
  border-radius: var(--radius);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: var(--fx-glass-blur);
  -webkit-backdrop-filter: var(--fx-glass-blur);
}

.github__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--text-heading);
}

.github__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.github__activity {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--fx-glass-bg);
  padding: 1rem;
  min-height: 4rem;
  backdrop-filter: var(--fx-glass-blur);
  -webkit-backdrop-filter: var(--fx-glass-blur);
}

.github__empty {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.github__empty code {
  font-size: 0.85em;
}

.gh-commit {
  display: block;
  padding: 0.85rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.gh-commit:last-child {
  margin-bottom: 0;
}

.gh-commit:hover {
  border-color: rgba(255, 200, 215, 0.28);
  background: rgba(255, 200, 215, 0.06);
}

.gh-commit__top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.gh-commit__repo {
  font-weight: 700;
  color: var(--accent-glow);
}

.gh-commit__msg {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
}

.gh-commit__sha {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-family: var(--fx-mono);
  color: var(--text-muted);
}

/* Portfolio filter chips */
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 200, 215, 0.06);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.filter-btn:hover {
  color: var(--text-heading);
  border-color: rgba(255, 200, 215, 0.28);
}

.filter-btn.active {
  background: rgba(219, 112, 122, 0.28);
  color: var(--text-heading);
  border-color: rgba(219, 112, 122, 0.45);
}

.card--category.filter-hidden {
  display: none !important;
}

/* Terminal */
.terminal {
  background: var(--fx-glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  backdrop-filter: var(--fx-glass-blur);
  -webkit-backdrop-filter: var(--fx-glass-blur);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border);
}

.terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal__dot--red {
  background: #f87171;
}

.terminal__dot--yellow {
  background: #fbbf24;
}

.terminal__dot--green {
  background: #34d399;
}

.terminal__title {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--fx-mono);
}

.terminal__body {
  padding: 1.15rem 1.25rem;
  font-family: var(--fx-mono);
  font-size: 0.82rem;
  line-height: 1.75;
}

.terminal__body p {
  margin: 0 0 0.15rem;
}

.terminal__body[data-terminal-seq] .t-type {
  display: inline-block;
  min-height: 1.75em;
  min-width: 0.35ch;
  vertical-align: bottom;
}

.t-prompt {
  color: var(--accent-deep);
  font-weight: 700;
}

.t-output {
  color: var(--text-muted);
  padding-left: 1rem;
}

.t-green {
  color: var(--success);
}

.t-cursor::after {
  content: "|";
  animation: blink 1s step-end infinite;
  color: var(--accent-deep);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.t-dim {
  color: var(--text-muted);
  opacity: 0.85;
}

/* Section headers (home + shared; matches Nemesis-style rhythm) */
.section__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 48rem;
  margin-inline: auto;
}

.section__header--left {
  text-align: left;
  margin-inline: 0;
  max-width: none;
}

.section__header--left .section__sub {
  margin-inline: 0;
  max-width: 40rem;
}

.section__tag {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin: 0 0 0.75rem;
}

.section__title {
  margin: 0;
}

.section__sub {
  margin: 0.75rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 42rem;
  margin-inline: auto;
}

.section__pill {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-glow);
  margin: 0 0 0.85rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(219, 112, 122, 0.18);
  border: 1px solid rgba(255, 200, 215, 0.22);
}

/* Buyer wall (home): stats + dual marquee, reference-style layout */
.testimonials-wall .container {
  max-width: min(1180px, 100%);
}

.buyers-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  max-width: 52rem;
  margin-inline: auto;
}

@media (max-width: 600px) {
  .buyers-stats {
    grid-template-columns: 1fr;
    max-width: 16rem;
  }
}

.buyers-stat {
  position: relative;
  text-align: center;
  padding: 1.15rem 1rem 0.95rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.buyers-stat__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 1.85rem);
  color: var(--text-heading);
  line-height: 1.15;
  min-height: 1.35em;
}

.buyers-stat__track {
  display: block;
  height: 4px;
  margin-top: 0.9rem;
  border-radius: 999px;
  background: rgba(255, 200, 215, 0.1);
  overflow: hidden;
}

.buyers-stat__fill {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(
    90deg,
    rgba(219, 112, 122, 0.55),
    rgba(240, 184, 196, 0.95),
    rgba(219, 112, 122, 0.75)
  );
  background-size: 200% 100%;
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  .buyers-stats--revealed .buyers-stat__fill {
    animation: buyers-stat-fill-sheen 3.2s ease-in-out infinite;
  }
}

@keyframes buyers-stat-fill-sheen {
  0%,
  100% {
    background-position: 0% 50%;
    opacity: 1;
  }
  50% {
    background-position: 100% 50%;
    opacity: 0.92;
  }
}

.buyers-stat__suffix {
  font-weight: 800;
  opacity: 0.85;
}

.buyers-stat__label {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.testimonials-marquee {
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
  padding-block: 0.35rem;
  perspective: 2000px;
  perspective-origin: 50% 50%;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 4%,
    #000 96%,
    transparent
  );
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}

.testimonials-marquee:last-child {
  margin-bottom: 0;
}

/* CSS fallback when GSAP hasn’t taken over (or if it fails to load) */
.testimonials-marquee__track {
  display: flex;
  width: max-content;
  gap: 0;
  will-change: transform;
  backface-visibility: hidden;
  animation: testimonials-marquee-x 75s linear infinite;
}

.testimonials-marquee--reverse .testimonials-marquee__track {
  animation-name: testimonials-marquee-x-reverse;
  animation-duration: 85s;
}

.testimonials-marquee.marquee-gsap .testimonials-marquee__track {
  animation: none;
}

.testimonials-marquee:has(.buyer-card:hover) .testimonials-marquee__track {
  animation-play-state: paused;
}

@keyframes testimonials-marquee-x {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes testimonials-marquee-x-reverse {
  from {
    transform: translate3d(-50%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

.testimonials-marquee__group {
  display: flex;
  flex-shrink: 0;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 1.15rem;
  padding-inline: 0.5rem;
}

/* One strip only: no second row, so no “T” grid from wrapping */
.testimonials-marquee--single {
  margin-bottom: 0;
}

/* Hover one card: strip pauses (JS), other cards fall back visually */
.testimonials-marquee:has(.buyer-card:hover) .buyer-card:not(:hover) {
  filter: blur(8px);
  opacity: 0.34;
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
      to right,
      transparent,
      #000 3%,
      #000 97%,
      transparent
    );
    mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
  }

  .testimonials-marquee__track {
    animation: none !important;
  }

  .testimonials-marquee:has(.buyer-card:hover) .testimonials-marquee__track {
    animation-play-state: running;
  }

  /* Global * transition reset breaks blur fades; restore for this strip only */
  .testimonials-marquee .buyer-card {
    transition:
      filter 0.42s var(--ease-out-soft),
      opacity 0.42s var(--ease-out-soft),
      box-shadow 0.42s var(--ease-out-soft),
      border-color 0.42s var(--ease-out-soft) !important;
  }
}

.buyer-card {
  position: relative;
  flex: 0 0 auto;
  width: min(320px, 78vw);
  padding: 1.15rem 1.2rem 1.1rem;
  border-radius: var(--radius);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: var(--fx-glass-blur);
  -webkit-backdrop-filter: var(--fx-glass-blur);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition:
    box-shadow 0.45s var(--ease-out-soft),
    border-color 0.45s var(--ease-out-soft),
    filter 0.45s var(--ease-out-soft),
    opacity 0.45s var(--ease-out-soft);
}

.buyer-card:hover {
  border-color: rgba(219, 112, 122, 0.45);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(219, 112, 122, 0.22),
    0 0 36px rgba(219, 112, 122, 0.12);
  filter: brightness(1.04);
}

.testimonials-marquee:has(.buyer-card:hover) .buyer-card:hover {
  filter: brightness(1.06);
  opacity: 1;
  z-index: 5;
  border-color: rgba(219, 112, 122, 0.52);
  box-shadow:
    0 26px 52px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(219, 112, 122, 0.28),
    0 0 40px rgba(219, 112, 122, 0.18);
}

.buyer-card__quote {
  position: absolute;
  top: 0.5rem;
  right: 0.85rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.25rem;
  line-height: 1;
  color: rgba(255, 200, 215, 0.08);
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out-soft), color 0.35s var(--ease-out-soft);
}

.buyer-card:hover .buyer-card__quote {
  opacity: 0.14;
  color: rgba(255, 200, 215, 0.12);
}

.buyer-card__top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.buyer-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(219, 112, 122, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text-heading);
  flex-shrink: 0;
  transition: transform 0.45s var(--ease-out-soft), background 0.35s var(--ease-out-soft);
}

.buyer-card:hover .buyer-card__avatar {
  transform: scale(1.06);
  background: rgba(219, 112, 122, 0.48);
}

.buyer-card__name-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.buyer-card__name {
  font-weight: 700;
  color: var(--text-heading);
  font-size: 0.95rem;
}

.buyer-card__verified {
  color: var(--accent-deep);
  font-size: 0.85rem;
  line-height: 1;
}

.buyer-card__role {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.buyer-card__stars {
  display: flex;
  gap: 0.15rem;
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  color: #e8b86d;
}

.buyer-card__text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 0.85rem;
}

.buyer-card__source {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-glow);
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 200, 215, 0.28);
  background: rgba(0, 0, 0, 0.12);
  transition: transform 0.4s var(--ease-out-soft), border-color 0.35s, background 0.35s;
}

.buyer-card:hover .buyer-card__source {
  transform: translateY(-2px);
  border-color: rgba(255, 200, 215, 0.42);
  background: rgba(219, 112, 122, 0.12);
}

.buyer-card__source i {
  font-size: 0.85rem;
  opacity: 0.95;
}

/* Testimonials */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.testimonial {
  padding: 1.35rem;
  border-radius: var(--radius);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: var(--fx-glass-blur);
  -webkit-backdrop-filter: var(--fx-glass-blur);
}

.testimonial__text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(219, 112, 122, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-heading);
}

.testimonial__name {
  font-weight: 700;
  color: var(--text-heading);
  font-size: 0.95rem;
}

.testimonial__role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Pricing */
.pricing__transparency {
  text-align: center;
  max-width: 52ch;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.pricing-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: var(--fx-glass-blur);
  -webkit-backdrop-filter: var(--fx-glass-blur);
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: rgba(219, 112, 122, 0.45);
  box-shadow: 0 0 0 1px rgba(219, 112, 122, 0.15);
}

.pricing-card__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 0.5rem;
}

.pricing-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.pricing-card__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}

.pricing-card__price span {
  opacity: 0.6;
  font-weight: 600;
}

.pricing-card__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  flex-grow: 0;
}

.pricing-card__features {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.pricing-card__features li {
  margin-bottom: 0.35rem;
}

/* FAQ */
.faq__grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 800px;
  margin-inline: auto;
  width: 100%;
}

.faq-item {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.faq-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--text-heading);
}

.faq-item__header::-webkit-details-marker {
  display: none;
}

.faq-item__icon {
  font-size: 1.25rem;
  color: var(--accent-warm);
  flex-shrink: 0;
}

.faq-item__content {
  padding: 0 1.15rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.faq-item__content p {
  margin: 0;
}

.about-terminal-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

@media (min-width: 900px) {
  .about-terminal-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.home-terminal-aside {
  display: flex;
  align-items: center;
}

.home-terminal-aside__text {
  margin: 0;
  max-width: 52ch;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.home-terminal-aside__text a {
  font-weight: 600;
}

/* =============================================================================
   Pricing page (dedicated /pricing)
   ============================================================================= */
.pricing-page__hero {
  position: relative;
  overflow: hidden;
}

.pricing-page__hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.pricing-page__hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(219, 112, 122, 0.22), transparent 58%),
    radial-gradient(ellipse 50% 42% at 85% 65%, rgba(232, 168, 184, 0.12), transparent 52%);
}

.pricing-page__hero-glow {
  position: absolute;
  width: min(520px, 95vw);
  height: min(520px, 95vw);
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(219, 112, 122, 0.14);
  filter: blur(88px);
  opacity: 0.85;
}

.pricing-page__hero-copy {
  position: relative;
  z-index: 1;
}

.pricing-trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.75rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pricing-trust-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  line-height: 1.35;
  max-width: 100%;
}

.pricing-trust-list i {
  color: var(--accent-deep);
  font-size: 1rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .pricing-trust-list li {
    flex: 1 1 100%;
    justify-content: center;
    text-align: left;
  }
}

.pricing-page__note {
  margin-bottom: 2rem;
}

.pricing__grid--page {
  max-width: 1080px;
  margin-inline: auto;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .pricing__grid--page {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing__grid--page .pricing-card.featured {
    transform: translateY(-6px);
    box-shadow: var(--shadow), 0 0 0 1px rgba(219, 112, 122, 0.22);
  }
}

.pricing-cta-card {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(219, 112, 122, 0.14), rgba(0, 0, 0, 0.22));
  box-shadow: var(--shadow-sm);
}

.pricing-cta-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.65rem);
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}

.pricing-cta-card__text {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.pricing-cta-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
