@view-transition {
  navigation: auto;
}

:root {
  --indigo: #818CF8;
  --accent: var(--indigo);
  --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);
  --pen-blue: #1B3FAE;
  --paper: #EAE3CC;
}

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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

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

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

video::-webkit-media-controls,
video::-webkit-media-controls-enclosure,
video::-webkit-media-controls-panel,
video::-webkit-media-controls-start-playback-button,
video::-webkit-media-controls-overlay-play-button,
video::-webkit-media-controls-panel-container {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

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

ul {
  list-style: none;
}

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

/* ---------- 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;
  pointer-events: none;
}

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

/* ---------- Landing terminal ---------- */

.landing-terminal {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.landing-terminal__window {
  width: min(94vw, 720px);
  max-height: min(78vh, 560px);
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(10, 10, 15, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.04);
  animation: fadeUp 0.7s var(--ease) both;
}

.landing-terminal__titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.landing-terminal__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.landing-terminal__dot--red {
  background: #ff5f56;
}

.landing-terminal__dot--yellow {
  background: #ffbd2e;
}

.landing-terminal__dot--green {
  background: #27c93f;
}

.landing-terminal__titletext {
  margin-left: 0.5rem;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.landing-terminal__body {
  flex: 1;
  min-height: 0;
  padding: 1.1rem 1.25rem 1rem;
  overflow-y: auto;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink);
}

.landing-terminal__output {
  white-space: pre-wrap;
  word-break: break-word;
}

.landing-terminal__row {
  min-height: 1.4em;
}

.landing-terminal__row--in {
  animation: terminalRowIn 0.25s var(--ease) both;
}

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

.terminal-output .is-prompt {
  color: var(--accent);
}

.terminal-output .is-option-key {
  color: var(--accent);
  font-weight: 700;
}

.terminal-output .is-muted {
  color: var(--muted);
}

.terminal-output .is-error {
  color: var(--coral);
}

.terminal-btn {
  display: flex;
  align-items: baseline;
  width: 100%;
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0.1rem 0.5rem;
  margin: 0.04rem 0;
  border-radius: 3px;
  transition: background 0.12s;
  white-space: normal;
}

.terminal-btn::before {
  content: '';
  width: 1.2em;
  flex-shrink: 0;
  color: var(--accent);
}

.terminal-btn:hover,
.terminal-btn:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.terminal-btn:hover::before,
.terminal-btn:focus-visible::before {
  content: '>';
}

.landing-terminal__line {
  display: flex;
  align-items: center;
  margin-top: 0.4rem;
  flex-shrink: 0;
}

.landing-terminal__prompt {
  color: var(--accent);
  margin-right: 0.5rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.landing-terminal__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: inherit;
  font-size: inherit;
  caret-color: var(--accent);
}

@media (max-width: 600px) {
  .landing-terminal__window {
    max-height: 84vh;
  }

  .landing-terminal__body {
    font-size: 0.85rem;
    padding: 0.9rem 1rem 0.85rem;
  }

  .landing-terminal__prompt {
    display: none;
  }
}

/* ---------- Profile cover ---------- */

.profile-cover {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
  background: var(--bg);
}

.profile-cover__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  pointer-events: none;
}

.profile-cover__youtube-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.32;
  pointer-events: none;
}

.profile-cover__youtube-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  border: 0;
}

.profile-cover__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 14, 19, 0.15) 0%, rgba(14, 14, 19, 0.75) 70%, var(--bg) 100%);
  pointer-events: none;
}

.profile-cover__veil {
  position: absolute;
  inset: 0;
  background: var(--bg);
  pointer-events: none;
  animation: profileCoverVeilFade 1.6s var(--ease) 0.6s forwards;
}

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

@media (max-width: 600px) {
  .profile-cover {
    height: 220px;
  }

  .page--with-cover {
    margin-top: -80px;
  }
}

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

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

.page--with-cover {
  margin-top: -130px;
}

/* ---------- 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;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.profile-hero__cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  vertical-align: middle;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.profile-hero__cert-badge:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.profile-hero__cert-flag {
  font-size: 0.85rem;
}

.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(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  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-ticker-band {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-top: 0.5rem;
  margin-bottom: 2.5rem;
}

.tags-ticker {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 0.5rem 0;
  position: relative;
  touch-action: pan-y;
  cursor: grab;
}

.tags-ticker.is-dragging {
  cursor: grabbing;
}

.tags-ticker::before,
.tags-ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 64px;
  z-index: 2;
  pointer-events: none;
}

.tags-ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.tags-ticker::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}

.tags-ticker__track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  animation: tagsTickerScroll 32s linear infinite;
  user-select: none;
}

.tags-ticker:hover .tags-ticker__track,
.tags-ticker.is-paused .tags-ticker__track {
  animation-play-state: paused;
}

@keyframes tagsTickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.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;
  margin-right: 0.55rem;
  flex-shrink: 0;
  white-space: nowrap;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), background 0.4s var(--ease);
}

.tag:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  transform: translateY(-2px);
}

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

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

.layout--no-sidebar {
  grid-template-columns: minmax(0, 1fr);
}

@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; }

/* ---------- Mini terminal (sidebar) ---------- */

.mini-terminal {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.mini-terminal__titlebar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
}

.mini-terminal__titletext {
  margin-left: 0.4rem;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 0.72rem;
  color: var(--muted);
}

.mini-terminal__body {
  padding: 0.85rem 0.9rem 0.75rem;
  max-height: 220px;
  overflow-y: auto;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--ink);
}

.mini-terminal__output {
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-spotlight-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 14, 0.7);
  backdrop-filter: blur(8px);
  z-index: 79;
  animation: spotlightBackdropIn 0.3s var(--ease) both;
}

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

.mini-terminal.is-spotlight {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(520px, calc(100% - 3rem));
  height: max-content;
  max-height: calc(100% - 3rem);
  z-index: 80;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  background: rgba(22, 22, 29, 0.88);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  animation: spotlightIn 0.4s var(--ease) both;
}

.mini-terminal.is-spotlight .mini-terminal__body {
  max-height: min(60vh, 420px);
  font-size: 0.88rem;
}

.mini-terminal:not(.is-spotlight) {
  cursor: pointer;
}

.mini-terminal:not(.is-spotlight) .landing-terminal__dot--green {
  cursor: pointer;
}

.mini-terminal.is-spotlight .landing-terminal__dot--red {
  cursor: pointer;
}

.mini-terminal.is-spotlight .landing-terminal__dot--green {
  cursor: default;
}

.section-title {
  position: relative;
  display: inline-block;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--pen-blue);
  padding: 0.4rem 1rem;
  margin: 0.3rem 0 2.4rem;
  transform: rotate(-1.1deg);
  transition: transform 0.4s var(--ease);
  cursor: default;
}

.section-title::before {
  content: "";
  position: absolute;
  inset: -22% -8%;
  z-index: -1;
  background: var(--paper);
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.55);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  clip-path: polygon(
    0% 9%, 6% 1%, 13% 7%, 20% 0%, 28% 6%, 35% 1%, 43% 8%, 51% 2%, 58% 7%, 66% 1%, 74% 6%, 82% 0%, 90% 5%, 100% 1%,
    98% 13%, 100% 24%, 96% 35%, 100% 46%, 97% 57%, 100% 68%, 96% 79%, 100% 91%, 97% 100%,
    90% 96%, 82% 100%, 74% 95%, 66% 100%, 58% 96%, 50% 100%, 42% 95%, 34% 100%, 26% 96%, 18% 100%, 10% 95%, 3% 100%, 0% 92%,
    4% 82%, 0% 71%, 3% 60%, 0% 49%, 4% 38%, 0% 27%, 3% 17%
  );
}

.section-title:hover {
  transform: rotate(0.6deg) translateY(-3px) scale(1.04);
}

.section-title:hover::before {
  box-shadow: 0 14px 26px -10px rgba(0, 0, 0, 0.6);
}


/* ---------- 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: color-mix(in srgb, var(--accent) 35%, transparent);
  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__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;
  z-index: 3;
  color: #fff;
  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: color-mix(in srgb, var(--accent) 35%, transparent);
  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;
}

/* ---------- 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(--accent);
  transform: rotate(90deg);
}

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

.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__title--manuscript {
  font-family: "Caveat", cursive;
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: 0;
  color: #fff;
}

.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: color-mix(in srgb, var(--accent) 30%, transparent);
}

.experience-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0 1rem;
  transition: background 0.4s var(--ease);
}

.experience-item summary > div:first-child {
  min-width: 0;
}

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

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

.experience-item__role {
  font-weight: 600;
  font-size: 1.12rem;
  margin-bottom: 0.25rem;
}

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

.experience-item__dates {
  font-size: 0.88rem;
  color: var(--muted);
  white-space: nowrap;
  text-align: right;
}

.experience-item__chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.4s var(--ease);
}

.experience-item__chevron::before,
.experience-item__chevron::after {
  content: "";
  position: absolute;
  background: var(--muted);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.experience-item__chevron::before {
  width: 12px;
  height: 2px;
}

.experience-item__chevron::after {
  width: 2px;
  height: 12px;
}

.experience-item[open] .experience-item__chevron::after {
  transform: scaleY(0);
  opacity: 0;
}

.experience-item:hover .experience-item__chevron {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

.experience-item__content {
  height: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
}

.experience-item[open] .experience-item__content {
  height: auto;
  border-top-color: var(--line);
}

.experience-item__content-inner {
  padding: 1.25rem 1.5rem 1.6rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

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

.testimonials-ticker {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: 0.75rem;
  touch-action: pan-y;
  cursor: grab;
}

.testimonials-ticker.is-dragging {
  cursor: grabbing;
}

.testimonials-ticker::before,
.testimonials-ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 64px;
  z-index: 2;
  pointer-events: none;
}

.testimonials-ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.testimonials-ticker::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}

.testimonials-ticker__track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  animation-name: testimonialsTickerScroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  user-select: none;
}

.testimonials-ticker:hover .testimonials-ticker__track,
.testimonials-ticker.is-paused .testimonials-ticker__track {
  animation-play-state: paused;
}

@keyframes testimonialsTickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.testimonial {
  position: relative;
  flex: 0 0 300px;
  min-height: 320px;
  margin-right: 1.25rem;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg-soft);
  transition: background 0.45s var(--ease);
}

.testimonial:hover {
  background: #0A66C2;
}

.testimonial__cover {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.testimonial__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  opacity: 0.14;
}

.testimonial__photo--fallback {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2.25rem;
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--coral));
  opacity: 0.14;
}

.testimonial__body {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 1.1rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
}

.testimonial__name-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.testimonial__who {
  min-width: 0;
}

.testimonial__author {
  font-family: "Caveat", cursive;
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.testimonial__role {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.15rem;
  transition: color 0.45s var(--ease);
}

.testimonial:hover .testimonial__role {
  color: rgba(255, 255, 255, 0.85);
}

.testimonial__linkedin {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0.8;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.testimonial__linkedin svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.testimonial__linkedin:hover {
  opacity: 1;
  transform: scale(1.12);
}

.testimonial__quote {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.45s var(--ease);
}

.testimonial:hover .testimonial__quote {
  color: rgba(255, 255, 255, 0.88);
}

.testimonial__read-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  margin-top: 0.9rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

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

.testimonial__read-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

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

/* ---------- Testimonials footer (full-bleed) ---------- */

.testimonials-footer {
  width: 100%;
  margin-top: 3.5rem;
  padding: 0 0 3rem;
}

.testimonials-footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.testimonials-refresh {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease);
}

.testimonials-refresh svg {
  width: 16px;
  height: 16px;
  transition: transform 0.4s var(--ease);
}

.testimonials-refresh:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.testimonials-refresh:hover svg {
  transform: rotate(75deg);
}

.testimonials-refresh.is-spinning svg {
  animation: testimonialsRefreshSpin 0.6s var(--ease);
}

@keyframes testimonialsRefreshSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
  .testimonials-footer {
    padding: 0 0 2.25rem;
  }
}

.spotlight__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.4rem;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 600;
}

/* ---------- 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(--accent);
  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-inner {
    padding: 1.1rem 1.1rem 1.1rem;
  }

  .feed {
    padding-left: 14px;
  }

  .feed::before {
    left: 13px;
  }

  .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;
  }

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

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

  .spotlight__title--manuscript {
    font-size: 1.9rem;
  }

  .testimonial {
    flex: 0 0 250px;
    min-height: 290px;
  }
}

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