:root {
  --profiles-bg: #f6f1ea;
  --profiles-surface: rgba(255, 255, 255, 0.78);
  --profiles-border: rgba(17, 24, 39, 0.08);
  --profiles-ink: #111827;
  --profiles-ink-soft: rgba(17, 24, 39, 0.68);
  --profiles-shadow: 0 24px 60px rgba(17, 24, 39, 0.1);
  --profiles-shadow-strong: 0 34px 86px rgba(17, 24, 39, 0.16);
  --profiles-radius-xl: 34px;
  --profiles-radius-lg: 28px;
  --profiles-radius-md: 18px;
  --profiles-ease: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 32%),
    radial-gradient(circle at 82% 14%, rgba(255, 107, 61, 0.12), transparent 28%),
    radial-gradient(circle at 70% 78%, rgba(22, 163, 74, 0.1), transparent 30%),
    var(--profiles-bg);
  color: var(--profiles-ink);
  font-family: 'Cabinet Grotesk', sans-serif;
  overflow-x: hidden;
}

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

img,
svg {
  display: block;
}

#spbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #ff6b3d, #16a34a);
  z-index: 9999;
  pointer-events: none;
}

#cdot {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
  z-index: 9996;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

#cring {
  position: fixed;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  pointer-events: none;
  z-index: 9995;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

body.ch #cdot {
  transform: translate(-50%, -50%) scale(2.1);
}

body.ch #cring {
  transform: translate(-50%, -50%) scale(1.18);
  opacity: 0.42;
}

#navbar {
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding .32s ease, background .32s ease, border-color .32s ease;
}

#navbar.stuck {
  padding: 14px 48px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

#navbar .np {
  background: transparent;
  border: 1px solid rgba(17, 24, 39, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
}

#navbar .np.act {
  background: var(--profiles-ink);
  color: #fff;
}

#navbar .nav-cta {
  background: linear-gradient(120deg, var(--profiles-ink), #24314a);
  color: #fff;
  padding: 11px 20px;
  border-radius: 999px;
  transition: transform .28s var(--profiles-ease), box-shadow .28s var(--profiles-ease);
}

#navbar .nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.18);
}

.profiles-page {
  position: relative;
}

.profiles-hero {
  position: relative;
  padding: 48px 48px 28px;
  overflow: hidden;
}

.profiles-hero__aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.profiles-hero__aurora span {
  position: absolute;
  border-radius: 999px;
  filter: blur(22px);
  opacity: 0.75;
}

.profiles-hero__aurora span:nth-child(1) {
  width: 320px;
  height: 320px;
  top: 18px;
  left: -80px;
  background: rgba(37, 99, 235, 0.18);
}

.profiles-hero__aurora span:nth-child(2) {
  width: 300px;
  height: 300px;
  top: 46px;
  right: -36px;
  background: rgba(255, 107, 61, 0.2);
}

.profiles-hero__aurora span:nth-child(3) {
  width: 260px;
  height: 260px;
  bottom: -70px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(22, 163, 74, 0.16);
}

.profiles-shell {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: end;
}

.profiles-copy {
  padding-right: 32px;
}

html[dir='rtl'] .profiles-copy {
  padding-right: 0;
  padding-left: 32px;
}

.profiles-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(17, 24, 39, 0.08);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

html[dir='rtl'] .profiles-eyebrow {
  letter-spacing: 0;
  text-transform: none;
}

.profiles-title {
  margin: 18px 0 16px;
  font-size: clamp(42px, 6vw, 88px);
  line-height: 0.94;
  letter-spacing: -0.05em;
  max-width: 10ch;
}

.profiles-title span {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(130deg, #2563eb, #ff6b3d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.profiles-sub {
  max-width: 60ch;
  margin: 0;
  font-size: 17px;
  line-height: 1.85;
  color: var(--profiles-ink-soft);
}

.profiles-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.profiles-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: transform .24s var(--profiles-ease), box-shadow .24s var(--profiles-ease), background .24s var(--profiles-ease);
}

.profiles-btn svg {
  width: 16px;
  height: 16px;
}

.profiles-btn--primary {
  background: linear-gradient(120deg, #111827, #24314a);
  color: #fff;
  box-shadow: 0 16px 30px rgba(17, 24, 39, 0.18);
}

.profiles-btn--ghost {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.profiles-btn:hover {
  transform: translateY(-2px);
}

.profiles-intel {
  position: relative;
  padding: 24px;
  border-radius: var(--profiles-radius-xl);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: var(--profiles-shadow);
  backdrop-filter: blur(18px);
}

.profiles-intel::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--profiles-radius-xl) - 1px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.74)),
    radial-gradient(circle at top right, rgba(255, 107, 61, 0.12), transparent 46%);
  z-index: 0;
}

.profiles-intel > * {
  position: relative;
  z-index: 1;
}

.profiles-intel__eyebrow {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--profiles-ink-soft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

html[dir='rtl'] .profiles-intel__eyebrow {
  letter-spacing: 0;
  text-transform: none;
}

.profiles-intel__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.profiles-intel__card {
  padding: 18px 16px;
  border-radius: 22px;
  background: rgba(247, 248, 252, 0.9);
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.profiles-intel__card strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.04em;
}

.profiles-intel__card span {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: var(--profiles-ink-soft);
}

.profiles-grid-section {
  padding: 8px 48px 100px;
}

.profiles-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.profile-card {
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: var(--profiles-radius-lg);
  background: var(--profiles-surface);
  border: 1px solid var(--profiles-border);
  box-shadow: var(--profiles-shadow);
  overflow: hidden;
  isolation: isolate;
  transition: transform .36s var(--profiles-ease), box-shadow .36s var(--profiles-ease), border-color .36s var(--profiles-ease);
}

.profile-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, var(--accent-soft), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82));
  z-index: -2;
}

.profile-card::after {
  content: '';
  position: absolute;
  inset: auto -15% -30% 35%;
  height: 200px;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.68), transparent);
  transform: rotate(-8deg);
  opacity: 0.6;
  z-index: -1;
}

.profile-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--profiles-shadow-strong);
  border-color: rgba(17, 24, 39, 0.12);
}

.profile-card__chrome {
  position: absolute;
  inset: 14px 14px auto auto;
  width: 92px;
  height: 92px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), transparent);
  border: 1px solid rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

html[dir='rtl'] .profile-card__chrome {
  inset: 14px auto auto 14px;
}

.profile-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-card__index {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(17, 24, 39, 0.54);
}

.profile-card__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(17, 24, 39, 0.08);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}

.profile-card__icon {
  width: 58px;
  height: 58px;
  margin: 24px 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), var(--accent-soft));
  color: var(--accent);
  box-shadow: 0 16px 28px rgba(17, 24, 39, 0.1);
}

.profile-card__icon svg {
  width: 28px;
  height: 28px;
}

.profile-card__title {
  margin: 0 0 10px;
  font-size: 27px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.profile-card__summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--profiles-ink-soft);
}

.profile-card__meta {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-card__count,
.profile-card__sample-label {
  font-size: 12px;
  font-weight: 700;
}

.profile-card__count {
  color: var(--profiles-ink);
}

.profile-card__sample-label {
  color: rgba(17, 24, 39, 0.46);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[dir='rtl'] .profile-card__sample-label {
  letter-spacing: 0;
  text-transform: none;
}

.profile-card__samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 22px;
}

.profile-card__samples span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(17, 24, 39, 0.08);
  font-size: 12px;
  line-height: 1.35;
  color: var(--profiles-ink-soft);
}

.profile-card.is-empty .profile-card__samples span {
  border-style: dashed;
}

.profile-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.82));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.16);
  transition: transform .24s var(--profiles-ease), box-shadow .24s var(--profiles-ease);
}

.profile-card__cta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.profile-card__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 38px rgba(17, 24, 39, 0.22);
}

.reveal-in,
.reveal-card {
  opacity: 0;
}

@media (max-width: 1080px) {
  .profiles-shell {
    grid-template-columns: 1fr;
  }

  .profiles-copy,
  html[dir='rtl'] .profiles-copy {
    padding: 0;
  }
}

@media (max-width: 900px) {
  #navbar {
    padding: 16px 24px;
  }

  #navbar.stuck {
    padding: 12px 24px;
  }

  .profiles-hero {
    padding: 34px 24px 22px;
  }

  .profiles-grid-section {
    padding: 8px 24px 84px;
  }

  .profiles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .profiles-hero {
    padding: 24px 16px 18px;
  }

  .profiles-grid-section {
    padding: 6px 16px 72px;
  }

  .profiles-title {
    margin-bottom: 14px;
  }

  .profiles-sub {
    font-size: 15px;
    line-height: 1.75;
  }

  .profiles-intel {
    padding: 18px;
  }

  .profiles-intel__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .profiles-intel__card {
    padding: 14px 10px;
    border-radius: 18px;
  }

  .profile-card {
    min-height: 330px;
    padding: 16px;
    border-radius: 24px;
  }

  .profile-card__title {
    font-size: 20px;
  }

  .profile-card__summary {
    font-size: 13px;
    line-height: 1.6;
  }

  .profile-card__icon {
    width: 50px;
    height: 50px;
    margin: 18px 0 14px;
    border-radius: 17px;
  }

  .profile-card__icon svg {
    width: 24px;
    height: 24px;
  }

  .profile-card__samples {
    margin: 14px 0 18px;
  }

  .profile-card__samples span {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 11px;
  }

  .profile-card__cta {
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 12px;
  }
}

@media (hover: none), (pointer: coarse) {
  body,
  a,
  button,
  .profile-card {
    cursor: auto !important;
  }

  #cdot,
  #cring {
    display: none !important;
  }
}
