:root {
  --background: #000;
  --surface: #0a0a0a;
  --text: #fff;
  --muted: #aaa;
  --line: rgba(255, 255, 255, 0.2);
  --brand: #fff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  min-width: 320px;
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(52rem 34rem at 80% -8%, rgba(255, 255, 255, 0.08), transparent 60%),
    radial-gradient(38rem 30rem at 4% 36%, rgba(255, 255, 255, 0.035), transparent 66%),
    linear-gradient(180deg, #0c0c0c 0%, #040404 58%, var(--background) 100%);
}

body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 0.5px, transparent 0.6px);
  background-size: 4px 4px;
  content: "";
  opacity: 0.15;
  pointer-events: none;
}

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

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.profile-page {
  position: relative;
  z-index: 1;
  width: min(100%, 32.5rem);
  min-height: 100vh;
  margin-inline: auto;
  padding-bottom: 2.75rem;
  overflow: hidden;
  --profile-accent: #ededed;
  --profile-accent-rgb: 237, 237, 237;
  background: rgba(0, 0, 0, 0.18);
}

.topbar {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
  padding: 0.75rem 1.25rem;
}

.topbar__brand {
  color: #fff;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 18px #000;
}

.round-button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(218, 231, 239, 0.22);
  border-radius: 50%;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.11);
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(0.75rem);
}

.round-button svg {
  width: 1.35rem;
  height: 1.35rem;
}

.hero {
  position: relative;
  height: 34rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero::before {
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.99) 0%, rgba(0, 0, 0, 0.86) 36%, rgba(0, 0, 0, 0.18) 67%, rgba(0, 0, 0, 0.04) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.02) 48%, rgba(0, 0, 0, 0.9) 100%);
}

.hero::after {
  z-index: 1;
  top: -15%;
  right: -30%;
  width: 30rem;
  height: 30rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 68%);
  border-radius: 50%;
  filter: blur(0.5rem);
}

.hero__line {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 1rem;
  left: 1rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, #fff, #777, transparent);
  opacity: 0.55;
}

.hero__portrait {
  position: absolute;
  z-index: 1;
  top: 1.55rem;
  right: -2.2rem;
  width: 24.5rem;
  height: 31.5rem;
  object-fit: cover;
  object-position: 50% 35%;
  filter: saturate(0.95) contrast(1.03) brightness(0.96);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 95%, transparent 100%);
}

.hero__placeholder {
  position: absolute;
  z-index: 1;
  top: 5.6rem;
  right: -2.4rem;
  display: grid;
  width: 22rem;
  height: 22rem;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.2), transparent 24%),
    radial-gradient(circle at 50% 50%, rgba(var(--profile-accent-rgb), 0.34), rgba(7, 7, 7, 0.98) 72%);
  border: 1px solid rgba(var(--profile-accent-rgb), 0.5);
  border-radius: 50%;
  box-shadow: 0 1.6rem 5rem rgba(var(--profile-accent-rgb), 0.2);
}

.hero__placeholder::before {
  position: absolute;
  inset: 25%;
  background: url("brands/c8x.jpeg") center / contain no-repeat;
  content: "";
  opacity: 0.12;
  transform: rotate(-8deg) scale(1.55);
}

.hero__initials {
  position: relative;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.25rem;
  letter-spacing: -0.09em;
  text-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.45);
  transform: translateX(-0.5rem);
}

.hero__content {
  position: absolute;
  z-index: 4;
  top: 5.8rem;
  left: 1.4rem;
  width: 49%;
  min-width: 11.5rem;
}

.brand-mark {
  display: grid;
  width: 6.5rem;
  height: 6.5rem;
  margin-bottom: 1.1rem;
  place-items: center;
  overflow: hidden;
  background: transparent;
  border-radius: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero__eyebrow {
  max-width: 9rem;
  margin: 0;
  color: #d7d7d7;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.3;
}

.hero__divider {
  width: 2.15rem;
  height: 2px;
  margin: 0.85rem 0;
  background: linear-gradient(90deg, #fff, #777);
}

.hero h1 {
  margin: 0 0 0.35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 9vw, 2.45rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero h1.hero__name--long {
  max-width: 10.5rem;
  font-size: clamp(1.75rem, 7.8vw, 2.2rem);
  line-height: 0.98;
}

.hero__role {
  margin: 0;
  color: #c7c7c7;
  font-size: 0.93rem;
  line-height: 1.25;
}

.hero__values {
  margin: 0.9rem 0 0;
  color: #ddd;
  font-size: 0.67rem;
  font-weight: 650;
  letter-spacing: 0.25rem;
  line-height: 1.65;
}

.quick-actions {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: -4.75rem 0.9rem 0.75rem;
}

.quick-action {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 7.2rem;
  padding: 1rem 0.45rem 0.75rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(145deg, rgba(28, 28, 28, 0.94), rgba(5, 5, 5, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 1.25rem;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.11), 0 0.75rem 1.9rem rgba(0, 0, 0, 0.3);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.quick-action::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 34%);
  content: "";
  pointer-events: none;
}

.quick-action:hover {
  transform: translateY(-0.2rem);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.11), 0 1rem 2.1rem rgba(0, 0, 0, 0.38);
}

.quick-action--whatsapp,
.quick-action--team {
  background: linear-gradient(145deg, rgba(28, 28, 28, 0.96), rgba(5, 5, 5, 0.98));
  border-color: rgba(255, 255, 255, 0.44);
}

.quick-action svg {
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 0.45rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.quick-action .quick-action__logo {
  width: 3.15rem;
  height: 3.15rem;
  margin-bottom: 0.35rem;
  object-fit: contain;
  border-radius: 50%;
}

.quick-action strong,
.quick-action small {
  position: relative;
}

.quick-action strong {
  display: block;
  font-size: 0.91rem;
}

.quick-action small {
  display: block;
  margin-top: 0.2rem;
  color: #bdbdbd;
  font-size: 0.68rem;
  line-height: 1.2;
}

.links-section {
  padding: 0 0.9rem;
}

.links-list {
  display: grid;
  gap: 0.65rem;
}

.link-card {
  --accent: #fff;
  --accent-rgb: 255, 255, 255;
  position: relative;
  display: flex;
  min-height: 4.9rem;
  padding: 0.65rem 0.85rem;
  align-items: center;
  gap: 0.85rem;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(145deg, rgba(22, 22, 22, 0.96), rgba(5, 5, 5, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 1.2rem;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.065), 0 0.55rem 1.6rem rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.link-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
  box-shadow: 0 0 1.1rem var(--accent);
  content: "";
}

.link-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.12), transparent 42%);
  content: "";
  pointer-events: none;
}

.link-card:hover {
  transform: translateY(-0.14rem);
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 0.8rem 1.8rem rgba(0, 0, 0, 0.27);
}

.link-card__icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  flex: 0 0 auto;
  place-items: center;
  color: var(--accent);
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.13), rgba(12, 12, 12, 0.94));
  border: 1px solid rgba(var(--accent-rgb), 0.34);
  border-radius: 0.95rem;
}

.link-card__icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.link-card__icon .link-card__logo {
  width: 2.45rem;
  height: 2.45rem;
  object-fit: contain;
}

.link-card__copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.link-card__copy strong,
.link-card__copy span {
  display: block;
}

.link-card__copy strong {
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.link-card__copy span {
  margin-top: 0.16rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.77rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-card__arrow {
  position: relative;
  z-index: 1;
  width: 1.35rem;
  height: 1.35rem;
  margin-left: auto;
  flex: 0 0 auto;
  color: #eee;
}

.profile-footer {
  padding: 1.8rem 1.25rem 0;
  color: #999;
  text-align: center;
}

.profile-footer::before {
  display: block;
  width: min(100%, 22rem);
  height: 1px;
  margin: 0 auto 1.05rem;
  background: linear-gradient(90deg, transparent, #ddd 45%, transparent);
  content: "";
  opacity: 0.35;
}

.profile-footer__tagline {
  margin: 0;
  color: #bbb;
  font-size: 0.62rem;
  letter-spacing: 0.24rem;
}

.profile-footer__copyright {
  margin: 0.7rem 0 0;
  color: #777;
  font-size: 0.68rem;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  width: max-content;
  max-width: calc(100% - 2rem);
  margin-inline: auto;
  padding: 0.7rem 1rem;
  color: #fff;
  font-size: 0.8rem;
  background: rgba(16, 16, 16, 0.98);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.8rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.team-directory {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 74rem);
  margin-inline: auto;
  padding: 4rem 0;
}

.directory-header {
  max-width: 38rem;
  margin-bottom: 2.25rem;
}

.directory-header__logo {
  display: block;
  width: 5rem;
  height: 5rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 0;
}

.directory-header__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.directory-header p {
  margin: 0;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.directory-header h1 {
  margin: 0.6rem 0 0.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.directory-header span {
  color: var(--muted);
  line-height: 1.65;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 22rem));
  gap: 1rem;
}

.member-card {
  --member-accent: #ededed;
  --member-accent-rgb: 237, 237, 237;
  position: relative;
  min-height: 23rem;
  overflow: hidden;
  color: #fff;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  isolation: isolate;
}

.member-card__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.16), transparent 22%),
    radial-gradient(circle at 50% 38%, rgba(var(--member-accent-rgb), 0.27), rgba(7, 7, 7, 0.99) 74%);
}

.member-card__placeholder::before {
  position: absolute;
  width: 72%;
  height: 40%;
  background: url("brands/c8x.jpeg") center / contain no-repeat;
  content: "";
  opacity: 0.1;
  transform: rotate(-8deg);
}

.member-card__initials {
  position: relative;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.5rem;
  letter-spacing: -0.08em;
  text-shadow: 0 0.75rem 2.25rem rgba(0, 0, 0, 0.42);
}

.member-card::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, 0.97) 100%);
  content: "";
}

.member-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 350ms ease;
}

.member-card:hover img {
  transform: scale(1.035);
}

.member-card:hover .member-card__placeholder {
  filter: brightness(1.08);
}

.member-card__content {
  position: absolute;
  z-index: 2;
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
}

.member-card__content strong,
.member-card__content span {
  display: block;
}

.member-card__content strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 500;
}

.member-card__content span {
  margin-top: 0.25rem;
  color: #c4c4c4;
  font-size: 0.85rem;
}

@media (min-width: 33rem) {
  body.profile-body { padding: 1.65rem; }
  .profile-page {
    min-height: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2.25rem;
    box-shadow: 0 2.2rem 6rem rgba(0, 0, 0, 0.56);
  }
}

@media (max-width: 24.5rem) {
  .hero { height: 34.5rem; }
  .hero__portrait { top: 1.8rem; right: -3.7rem; width: 22.5rem; height: 30rem; }
  .hero__placeholder { top: 5.8rem; right: -4.8rem; width: 20rem; height: 20rem; }
  .hero__initials { font-size: 4.5rem; }
  .hero__content { top: 5.5rem; left: 1.1rem; }
  .brand-mark { width: 5.75rem; height: 5.75rem; }
  .quick-actions { margin-top: -4.35rem; }
  .quick-action { min-height: 6.75rem; padding-inline: 0.3rem; }
  .link-card__copy strong { font-size: 1rem; }
}

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