:root {
  --indigo: #818CF8;
  --coral: #FB923C;
  --ink: #E7E7EE;
  --muted: #9494A6;
  --line: rgba(231, 231, 238, 0.1);
  --bg: #0E0E13;
  --bg-soft: #16161D;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: "ss01";
}

img, video {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

/* ---------- Landing page ---------- */

.landing {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #14142b, #1c1c3a 45%, #0c0c1c);
}

.landing__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.landing__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 16, 0.62);
  z-index: 1;
}

.landing__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 1.5rem;
}

.landing__name {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.landing__subtitle {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.02em;
  margin-bottom: 2.75rem;
}

.landing__button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #fff;
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease), transform 0.45s var(--ease);
}

.landing__button:hover {
  background: var(--indigo);
  border-color: var(--indigo);
  transform: translateY(-2px);
}

.landing__content {
  animation: fadeUp 0.9s var(--ease) both;
}

/* ---------- Shared page shell ---------- */

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem 6rem;
}

/* ---------- Profile hero ---------- */

.profile-hero {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 4rem 0 3rem;
  flex-wrap: wrap;
  animation: fadeUp 0.7s var(--ease) both;
}

.profile-hero__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 2rem;
  flex-shrink: 0;
  letter-spacing: -0.02em;
  overflow: hidden;
}

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

.profile-hero__name {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.profile-hero__headline {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 46rem;
  margin-bottom: 0.85rem;
}

.profile-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.profile-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.profile-hero__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--indigo);
  background: rgba(129, 140, 248, 0.12);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1rem;
}

.profile-hero__status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg-soft);
  border: 0.5px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), background 0.4s var(--ease);
}

.tag:hover {
  border-color: var(--indigo);
  background: rgba(129, 140, 248, 0.1);
  transform: translateY(-2px);
}

/* ---------- Layout grid ---------- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 3.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

.main-col section + section {
  margin-top: 4rem;
}

.main-col > section,
.sidebar > section {
  animation: fadeUp 0.7s var(--ease) both;
}

.main-col > section:nth-of-type(2) { animation-delay: 0.05s; }
.main-col > section:nth-of-type(3) { animation-delay: 0.1s; }
.main-col > section:nth-of-type(4) { animation-delay: 0.15s; }
.sidebar > section:nth-of-type(2) { animation-delay: 0.05s; }
.sidebar > section:nth-of-type(3) { animation-delay: 0.1s; }

.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.about p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.98rem;
}

/* ---------- Card primitive ---------- */

.card {
  border: 0.5px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}

.card:hover {
  border-color: rgba(129, 140, 248, 0.35);
  box-shadow: 0 16px 36px -20px rgba(0, 0, 0, 0.55);
  transform: translateY(-3px);
}

/* ---------- Activity feed ---------- */

.feed {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  position: relative;
  padding-left: 17px;
}

.feed-item {
  position: relative;
}

.feed-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: -1px;
  top: 100%;
  height: 1.6rem;
  width: 2px;
  background: var(--line);
}

.feed-item__icon {
  position: absolute;
  left: -17px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  flex-shrink: 0;
  color: #fff;
  z-index: 2;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--line);
}

.feed-item__body {
  border: 0.5px solid var(--line);
  border-radius: 14px;
  padding: 1.35rem 1.5rem 1.35rem 1.85rem;
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  position: relative;
  z-index: 1;
}

.feed-item__body:hover {
  border-color: rgba(129, 140, 248, 0.35);
  box-shadow: 0 14px 30px -20px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.feed-item__date {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  display: block;
  margin-bottom: 0.5rem;
}

.feed-item__title {
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 0.5rem;
}

.feed-item__excerpt {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.feed-item__excerpt--clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-item__read-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.7rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--indigo);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: gap 0.35s var(--ease);
}

.feed-item__read-btn::after {
  content: "→";
  transition: transform 0.35s var(--ease);
}

.feed-item__read-btn:hover {
  gap: 0.6rem;
}

.feed-item__read-btn:hover::after {
  transform: translateX(2px);
}

/* ---------- Spotlight (article reader) ---------- */

@keyframes spotlightBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes spotlightIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.spotlight-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 14, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  z-index: 80;
  animation: spotlightBackdropIn 0.3s var(--ease) both;
}

.spotlight-backdrop.hidden {
  display: none;
}

.spotlight {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 82vh;
  overflow-y: auto;
  background: rgba(22, 22, 29, 0.88);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2.5rem 2.25rem;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  animation: spotlightIn 0.4s var(--ease) both;
}

.spotlight__close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0.5px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.spotlight__close:hover {
  color: var(--ink);
  border-color: var(--indigo);
  transform: rotate(90deg);
}

.spotlight__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.9rem;
}

.spotlight__date {
  color: var(--muted);
  font-weight: 500;
  text-transform: none;
}

.spotlight__title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
  padding-right: 2rem;
}

.spotlight__body {
  color: var(--muted);
  line-height: 1.85;
  font-size: 0.98rem;
}

.spotlight__body p + p {
  margin-top: 1rem;
}

/* ---------- Experience ---------- */

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.experience-item {
  border: 0.5px solid var(--line);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
}

.experience-item {
  transition: border-color 0.4s var(--ease);
}

.experience-item:hover {
  border-color: rgba(129, 140, 248, 0.3);
}

.experience-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background 0.4s var(--ease);
}

.experience-item summary::-webkit-details-marker {
  display: none;
}

.experience-item summary:hover {
  background: var(--bg-soft);
}

.experience-item__role {
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}

.experience-item__company {
  font-size: 0.85rem;
  color: var(--muted);
}

.experience-item__dates {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.experience-item__chevron {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.45s var(--ease);
}

.experience-item[open] .experience-item__chevron {
  transform: rotate(180deg);
}

.experience-item__content {
  padding: 0 1.5rem 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ---------- Testimonials ---------- */

.testimonials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 700px) {
  .testimonials {
    grid-template-columns: 1fr;
  }
}

.testimonial {
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
}

.testimonial__header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.testimonial__avatar-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: -2.6rem;
  border: 3px solid var(--bg-soft);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line);
  overflow: hidden;
  background: linear-gradient(135deg, var(--indigo), var(--coral));
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.testimonial__avatar-fallback {
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
}

.testimonial__author {
  font-size: 0.92rem;
  font-weight: 700;
}

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

.testimonial blockquote {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
  flex: 1;
  position: relative;
  padding-left: 1.5rem;
}

.testimonial blockquote::before {
  content: "“";
  position: absolute;
  left: -0.15rem;
  top: -0.4rem;
  color: var(--coral);
  font-weight: 700;
  font-size: 2.2rem;
  font-family: Georgia, serif;
  line-height: 1;
}

/* ---------- Sidebar ---------- */

.sidebar section + section {
  margin-top: 2.75rem;
}

.numbers {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.numbers__value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--indigo);
  letter-spacing: -0.02em;
}

.numbers__label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.interests {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.interest {
  font-size: 0.78rem;
  font-weight: 500;
  border: 0.5px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  color: var(--coral);
  background: rgba(251, 146, 60, 0.1);
}

.languages {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.language {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.88rem;
  border-bottom: 0.5px solid var(--line);
  padding-bottom: 0.6rem;
}

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

.placeholder-note {
  font-size: 0.72rem;
  color: var(--coral);
  font-style: normal;
  display: block;
  margin-top: 0.25rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
  .profile-hero {
    padding: 2.75rem 0 2rem;
    gap: 1.25rem;
  }

  .profile-hero__avatar {
    width: 76px;
    height: 76px;
    font-size: 1.5rem;
  }

  .profile-hero__name {
    font-size: 1.5rem;
  }

  .main-col section + section {
    margin-top: 2.75rem;
  }

  .sidebar section + section {
    margin-top: 2rem;
  }

  .experience-item summary {
    padding: 1rem 1.1rem;
  }

  .experience-item__content {
    padding: 0 1.1rem 1.1rem;
  }

  .feed {
    padding-left: 14px;
  }

  .feed-item__icon {
    left: -14px;
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .feed-item__body {
    padding: 1.1rem 1.25rem 1.1rem 1.5rem;
  }

  .testimonial__avatar-wrap {
    width: 46px;
    height: 46px;
    margin-top: -2.2rem;
  }

  .spotlight {
    padding: 2rem 1.5rem;
    max-height: 88vh;
  }

  .spotlight__title {
    font-size: 1.2rem;
    padding-right: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
  }
}
