/* High-tech theme — tokens */
:root {
  color-scheme: light dark;
  --font-sans: "Outfit", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --radius-lg: 1.125rem;
  --radius-md: 0.75rem;
  --radius-avatar: 1rem;

  --bg-deep: #030712;
  --bg-mid: #0f172a;
  --cyan: #22d3ee;
  --violet: #a78bfa;
  --magenta: #e879f9;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --glass: rgba(15, 23, 42, 0.55);
  --glass-border: rgba(148, 163, 184, 0.12);
  --glass-highlight: rgba(255, 255, 255, 0.06);
  --accent-glow: rgba(34, 211, 238, 0.35);
  --focus-ring: 0 0 0 2px var(--bg-deep), 0 0 0 5px rgba(34, 211, 238, 0.55);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg-deep: #f8fafc;
    --bg-mid: #e2e8f0;
    --text: #0f172a;
    --text-muted: #64748b;
    --glass: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(15, 23, 42, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.9);
    --accent-glow: rgba(14, 165, 233, 0.25);
    --focus-ring: 0 0 0 2px #fff, 0 0 0 5px rgba(14, 165, 233, 0.45);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.92rem + 0.25vw, 1.0625rem);
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(34, 211, 238, 0.12), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(167, 139, 250, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(232, 121, 249, 0.06), transparent 45%);
}

@media (prefers-color-scheme: light) {
  body {
    background-image:
      radial-gradient(ellipse 100% 70% at 50% 0%, rgba(14, 165, 233, 0.15), transparent 55%),
      radial-gradient(ellipse 70% 50% at 100% 30%, rgba(99, 102, 241, 0.1), transparent 50%),
      linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  }
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--bg-mid);
  color: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 0.375rem;
  z-index: 200;
  font-weight: 600;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.skip-link:focus {
  left: 0.75rem;
  outline: none;
  box-shadow: var(--focus-ring);
}

.page {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1.25rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right))
    max(1.25rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
  overflow: hidden;
}

.page__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
  pointer-events: none;
}

@media (prefers-color-scheme: light) {
  .page__grid {
    background-image:
      linear-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
  }
}

.page__glow {
  position: absolute;
  width: min(90vw, 28rem);
  height: min(90vw, 28rem);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.page__glow--a {
  top: -15%;
  left: 50%;
  transform: translateX(-55%);
  background: radial-gradient(circle, var(--cyan) 0%, transparent 65%);
}

.page__glow--b {
  bottom: -20%;
  right: -10%;
  background: radial-gradient(circle, var(--violet) 0%, transparent 65%);
}

@media (prefers-reduced-motion: no-preference) {
  .page__glow--a {
    animation: drift-a 18s ease-in-out infinite alternate;
  }
  .page__glow--b {
    animation: drift-b 22s ease-in-out infinite alternate;
  }
}

@keyframes drift-a {
  0% {
    transform: translateX(-55%) scale(1);
    opacity: 0.4;
  }
  100% {
    transform: translateX(-45%) scale(1.08);
    opacity: 0.55;
  }
}

@keyframes drift-b {
  0% {
    transform: scale(1);
    opacity: 0.35;
  }
  100% {
    transform: translate(-4%, -4%) scale(1.12);
    opacity: 0.5;
  }
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26.5rem;
  padding: clamp(1.5rem, 5vw, 2.125rem);
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.06),
    0 4px 6px -1px rgba(0, 0, 0, 0.2),
    0 24px 48px -12px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 var(--glass-highlight);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

@media (prefers-color-scheme: light) {
  .card {
    box-shadow:
      0 0 0 1px rgba(14, 165, 233, 0.08),
      0 4px 6px -1px rgba(15, 23, 42, 0.06),
      0 24px 48px -12px rgba(15, 23, 42, 0.12),
      inset 0 1px 0 var(--glass-highlight);
  }
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.35), rgba(167, 139, 250, 0.2), rgba(232, 121, 249, 0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.65;
}

.card__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.125rem;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: var(--radius-md);
  background: rgba(34, 211, 238, 0.06);
}

@media (prefers-color-scheme: light) {
  .card__eyebrow {
    color: #0e7490;
    border-color: rgba(14, 116, 144, 0.25);
    background: rgba(14, 165, 233, 0.08);
  }
}

.card__eyebrow-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

@media (prefers-reduced-motion: no-preference) {
  .card__eyebrow-pulse {
    animation: pulse-dot 2s ease-in-out infinite;
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(0.85);
  }
}

.avatar {
  box-sizing: border-box;
  width: clamp(4.75rem, 20vw, 5.75rem);
  height: clamp(4.75rem, 20vw, 5.75rem);
  margin: 0 auto 1.125rem;
  padding: 2px;
  border-radius: var(--radius-avatar);
  overflow: hidden;
  background: linear-gradient(135deg, var(--cyan), var(--violet), var(--magenta));
  box-shadow: 0 0 32px rgba(34, 211, 238, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-avatar) - 2px);
}

@media (prefers-color-scheme: light) {
  .avatar {
    box-shadow: 0 0 28px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }
}

.card__name {
  margin: 0 0 0.4rem;
  font-size: clamp(1.625rem, 5.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  background: linear-gradient(105deg, var(--text) 0%, var(--text) 40%, var(--cyan) 85%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (prefers-color-scheme: light) {
  .card__name {
    background: linear-gradient(105deg, #0f172a 0%, #0f172a 35%, #0284c7 75%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }
}

.card__role {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: clamp(0.9375rem, 2.8vw, 1rem);
  font-weight: 500;
}

.card__tagline {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(0.875rem, 2.5vw, 0.9375rem);
  max-width: 34ch;
  margin-inline: auto;
  line-height: 1.55;
}

.card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.action {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 3rem;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: rgba(15, 23, 42, 0.35);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

@media (prefers-color-scheme: light) {
  .action {
    background: rgba(255, 255, 255, 0.5);
  }
}

.action:hover {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.08);
  box-shadow: 0 0 20px -4px var(--accent-glow);
  transform: translateY(-1px);
}

.action:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.action:active {
  transform: translateY(0);
}

.action__icon {
  flex-shrink: 0;
  width: 2.375rem;
  height: 2.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.15);
}

.action__icon--linkedin,
.action__icon--whatsapp {
  background: transparent;
  border-color: rgba(34, 211, 238, 0.15);
}

.action__icon--linkedin svg,
.action__icon--whatsapp svg {
  display: block;
}

@media (prefers-color-scheme: light) {
  .action__icon {
    color: #0891b2;
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.2);
  }

  .action__icon--linkedin,
  .action__icon--whatsapp {
    background: transparent;
    border-color: rgba(14, 165, 233, 0.2);
  }
}

.action__label {
  font-size: 0.9375rem;
  word-break: break-word;
  text-align: left;
}

/* See more + feeds */
.card__feeds-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--glass-border);
}

.see-more {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cyan);
  cursor: pointer;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.see-more:hover {
  background: rgba(34, 211, 238, 0.14);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 20px -6px var(--accent-glow);
}

.see-more:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.see-more__icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.see-more[aria-expanded="true"] .see-more__icon {
  transform: rotate(180deg);
}

@media (prefers-color-scheme: light) {
  .see-more {
    color: #0e7490;
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.35);
  }

  .see-more:hover {
    background: rgba(14, 165, 233, 0.16);
    border-color: rgba(14, 116, 144, 0.45);
  }
}

.feeds-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s ease, opacity 0.35s ease;
  opacity: 0;
}

.feeds-panel.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.feeds-panel__inner {
  min-height: 0;
  overflow: hidden;
}

.feeds {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 0.125rem;
}

.feed-card {
  margin: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: rgba(15, 23, 42, 0.4);
  overflow: hidden;
  box-shadow: inset 0 1px 0 var(--glass-highlight);
}

@media (prefers-color-scheme: light) {
  .feed-card {
    background: rgba(255, 255, 255, 0.55);
  }
}

.feed-card__hero {
  aspect-ratio: 16 / 9;
  background: var(--bg-mid);
  overflow: hidden;
}

.feed-card__hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-card__body {
  padding: 1rem 1.125rem 1.125rem;
  text-align: left;
}

.feed-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
}

.feed-card__excerpt {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.feed-card__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .feeds-panel {
    transition: none;
  }

  .see-more__icon {
    transition: none;
  }
}
